/*
Theme Name: GanaTuDrone
Theme URI: https://ganatudrone.online
Author: Daniel Esau Rivera Ayala
Author URI: https://kreativos.pro/
Description: Theme profesional optimizado para SEO específicamente diseñado para rifas de drones DJI. Incluye schemas estructurados, optimización de velocidad y panel administrativo personalizado. Desarrollado por Kreativos Pro.
Version: 1.1.7
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ganatudrone
Tags: drones, rifas, sorteos, e-commerce, seo-optimized, responsive, custom-admin
*/

/* ==========================================================================
   Variables CSS (Custom Properties)
   ========================================================================== */

:root {
  /* Colores principales - Tema Drone */
  --color-primary: #0066cc;
  --color-secondary: #00a8e8;
  --color-accent: #ff6b35;
  --color-success: #00c853;
  --color-warning: #ffd600;
  --color-danger: #d32f2f;

  /* Colores neutros */
  --color-dark: #1a1a1a;
  --color-gray-900: #212121;
  --color-gray-800: #424242;
  --color-gray-700: #616161;
  --color-gray-600: #757575;
  --color-gray-500: #9e9e9e;
  --color-gray-400: #bdbdbd;
  --color-gray-300: #e0e0e0;
  --color-gray-200: #eeeeee;
  --color-gray-100: #f5f5f5;
  --color-white: #ffffff;

  /* Tipografía */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  --font-heading: 'Poppins', var(--font-primary);

  /* Espaciados */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* Transiciones */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  /* Bordes */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 3px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 15px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.05);

  /* Breakpoints (para referencia en JS) */
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-xxl: 1400px;
}

/* ==========================================================================
   Reset y Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray-900);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--color-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Layout Principal
   ========================================================================== */

.site-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
}

/* Espaciado superior solo en páginas internas (no en home ni single) */
body:not(.home):not(.single) .site-content {
  padding-top: 3rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-md);
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--spacing-sm) * -1);
}

.col {
  flex: 1;
  padding: 0 var(--spacing-sm);
}

/* ==========================================================================
   Componentes de Rifas
   ========================================================================== */

.rifa-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  margin-bottom: var(--spacing-lg);
}

.rifa-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.rifa-card__image {
  position: relative;
  padding-top: 66.67%; /* 3:2 aspect ratio */
  overflow: hidden;
  background: var(--color-gray-200);
}

.rifa-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.rifa-card:hover .rifa-card__image img {
  transform: scale(1.05);
}

.rifa-card__content {
  padding: var(--spacing-lg);
}

.rifa-card__title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-dark);
}

.rifa-card__description {
  color: var(--color-gray-700);
  margin-bottom: var(--spacing-md);
}

.rifa-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-gray-300);
}

.rifa-card__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* ==========================================================================
   Botones
   ========================================================================== */

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1.5;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background-color: #e55a2b;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Header y Navegación - MEJORADO Y PROFESIONAL
   ========================================================================== */

.site-header {
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    background: rgba(255,255,255,0.98);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-height: 70px;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    letter-spacing: -0.02em;
}

.site-logo:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.site-logo img,
.custom-logo {
    height: 50px;
    width: auto;
    max-width: 220px;
    display: block;
    transition: transform 0.3s ease;
}

.site-logo:hover img,
.site-logo:hover .custom-logo {
    transform: scale(1.05);
}

/* Botón Hamburguesa Mejorado */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
    position: relative;
    overflow: hidden;
}

.mobile-menu-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.mobile-menu-toggle:hover::before {
    width: 100px;
    height: 100px;
}

.mobile-menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
}

.mobile-menu-toggle:active {
    transform: translateY(0);
}

.hamburger-line {
    width: 22px;
    height: 2.5px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: relative;
    margin: 3px 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Overlay Mejorado */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.5) 0%, rgba(0, 168, 232, 0.5) 100%);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Navegación Desktop */
.site-nav .nav-menu,
.site-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.site-nav li {
    position: relative;
}

.site-nav a {
    color: var(--color-gray-800);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.01em;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.site-nav a:hover {
    color: var(--color-primary);
}

.site-nav a:hover::after {
    width: 100%;
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
    color: var(--color-primary);
}

.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after {
    width: 100%;
}

/* Botones CTA */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white) !important;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* ========================================
   RESPONSIVE - MOBILE (< 992px)
   ======================================== */

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        padding: 100px 30px 30px;
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        overflow-y: auto;
        border-left: 3px solid var(--color-primary);
    }

    .site-nav.active {
        right: 0;
    }

    .site-nav .nav-menu,
    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .site-nav .nav-menu li,
    .site-nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    }

    .site-nav .nav-menu li:last-child,
    .site-nav ul li:last-child {
        border-bottom: none;
    }

    .site-nav a {
        display: block;
        padding: 1rem 1.25rem;
        border-radius: 10px;
        width: 100%;
        font-size: 1.05rem;
        transition: all 0.3s ease;
    }

    .site-nav a::after {
        display: none;
    }

    .site-nav a:hover,
    .site-nav .current-menu-item > a,
    .site-nav .current_page_item > a {
        background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(0, 168, 232, 0.08) 100%);
        color: var(--color-primary);
        transform: translateX(5px);
        border-left: 4px solid var(--color-primary);
        padding-left: calc(1.25rem - 4px);
    }

    .site-nav .btn {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
        padding: 1rem;
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        padding: 0.75rem 0;
        min-height: 60px;
    }

    .site-logo {
        font-size: 1.25rem;
    }

    .site-logo img,
    .custom-logo {
        height: 40px;
    }

    .site-nav {
        width: 280px;
        padding: 80px 20px 20px;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .hamburger-line {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .site-nav {
        width: 260px;
    }
}


/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (min-width: 768px) and (max-width: 991px) {
  .primary-menu {
    gap: 0;
  }

  .primary-menu a {
    font-size: 1.05rem;
    padding: 1.125rem 1.5rem;
  }
}

/* ========================================
   RESPONSIVE - DESKTOP
   ======================================== */

@media (min-width: 992px) {
  .menu-toggle {
    display: none !important;
  }

  .nav-overlay,
  .nav-header,
  .nav-footer {
    display: none !important;
  }

  .nav-container {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .primary-menu {
    display: flex !important;
    flex-direction: row;
  }

  .btn-whatsapp-desktop {
    display: inline-flex;
  }
}

/* Desktop grande */
@media (min-width: 1200px) {
  .header-wrapper {
    padding: 1.25rem 0;
  }

  .primary-menu {
    gap: 3rem;
  }

  .primary-menu a {
    font-size: 1rem;
  }

  .site-logo img,
  .custom-logo {
    height: 50px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-gray-900);
  color: var(--color-gray-300);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

/* Footer en páginas normales con margin-top */
.home .site-footer,
.page .site-footer,
.archive .site-footer,
.blog .site-footer {
  margin-top: var(--spacing-xxl);
}

/* Footer sin margin-top en vistas individuales de posts */
.single-post .site-footer {
  margin-top: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.footer-bottom {
  border-top: 1px solid var(--color-gray-700);
  padding-top: var(--spacing-md);
  text-align: center;
  font-size: 0.875rem;
}

/* ==========================================================================
   Breadcrumbs (SEO)
   ========================================================================== */

.breadcrumbs {
  padding: var(--spacing-md) 0;
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  padding: 0;
  margin: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: '›';
  margin-left: var(--spacing-xs);
  color: var(--color-gray-500);
}

/* ==========================================================================
   BLOG LAYOUT CON SIDEBAR
   Layout de dos columnas para blog con sidebar al lado derecho
   ========================================================================== */

/* Wrapper con layout de dos columnas */
.blog-layout-wrapper,
.blog-page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  align-items: start;
}

/* Content area ocupa la columna izquierda */
.blog-layout-wrapper .content-area,
.blog-page-with-sidebar .blog-main-content {
  min-width: 0; /* Previene overflow en grid */
}

/* Sidebar ocupa la columna derecha */
.blog-layout-wrapper .sidebar,
.blog-page-with-sidebar .sidebar {
  /* Sidebar estático, sin sticky ni scroll */
}

/* Ajuste del grid de posts en blog con sidebar */
.blog-layout-wrapper .posts-grid,
.blog-page-with-sidebar .posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
  .blog-layout-wrapper,
  .blog-page-with-sidebar {
    grid-template-columns: 1fr 300px;
    gap: 2rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .blog-layout-wrapper,
  .blog-page-with-sidebar {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-layout-wrapper .sidebar,
  .blog-page-with-sidebar .sidebar {
    order: 2; /* Sidebar va después del content en móvil */
  }

  .blog-layout-wrapper .content-area,
  .blog-page-with-sidebar .blog-main-content {
    order: 1;
  }
}

/* ==========================================================================
   Utilidades
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Secciones y Componentes de la Página
   ========================================================================== */

/* Secciones Generales */
.section-padding {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  max-width: 700px;
  margin: 0 auto;
}

.bg-light {
  background: var(--color-gray-100);
}

.bg-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.bg-primary .section-title,
.bg-primary .section-description {
  color: var(--color-white);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  overflow: hidden;
  padding: 5rem 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
  background-size: cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Grids con centrado automático de elementos huérfanos */
.steps-grid,
.features-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  justify-items: stretch;
  align-items: stretch;
}

/* Default: Mobile first - 1 columna */
.steps-grid,
.features-grid {
  grid-template-columns: 1fr;
}

.steps-grid > *,
.features-grid > * {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Tablets pequeños: 2 columnas */
@media (min-width: 576px) {
  .steps-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid > *,
  .features-grid > * {
    max-width: none;
    margin: 0;
  }
}

/* Tablets a Desktop medio: 2 columnas CENTRADAS */
@media (min-width: 768px) and (max-width: 1199px) {
  .steps-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .steps-grid > *,
  .features-grid > * {
    max-width: 380px;
    justify-self: center;
  }
}

/* Desktop grande: 4 columnas */
@media (min-width: 1200px) {
  .steps-grid,
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 100%;
  }

  .steps-grid > *,
  .features-grid > * {
    max-width: none;
    justify-self: stretch;
  }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* Step Card */
.step-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  transition: all var(--transition-normal);
  border: 2px solid var(--color-gray-200);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.step-card__number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.step-card__description {
  color: var(--color-gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Feature Card */
.feature-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.feature-card__description {
  color: var(--color-gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  padding: 4rem 0;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Botones Mejorados */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  font-family: var(--font-primary);
  line-height: 1.5;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-gray-600);
  color: var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-gray-700);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background: #ff5722;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-white:hover {
  background: var(--color-gray-100);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Rifas Section */
.rifas-section {
  background: var(--color-white);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ==========================================================================
   RESPONSIVE DESIGN - Mobile First Approach
   ========================================================================== */

/* Desktop Extra Grande (1400px+) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .blog-page-with-sidebar,
  .single-post-with-sidebar {
    max-width: 1400px;
  }
}

/* Tablet y Desktop Grande (1200px+) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  :root {
    --spacing-xl: 4rem;
    --spacing-xxl: 5rem;
  }

  .hero-section {
    min-height: 600px;
  }

  .section-padding {
    padding: 5rem 0;
  }

  /* Optimización del contenido en pantallas grandes */
  article.single-post {
    padding: 3.5rem;
  }

  .entry-content {
    max-width: 850px;
  }
}

/* Tablet y Laptop (992px - 1199px) */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }

  .blog-page-with-sidebar,
  .single-post-with-sidebar {
    gap: 2rem;
  }

  article.single-post {
    padding: 2.5rem;
  }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .container {
    max-width: 720px;
    padding: 0 1.5rem;
  }

  /* Header Mobile Mejorado */

  .header-content {
    gap: 1rem;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 5rem 2rem 2rem;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    z-index: 1000;
    overflow-y: auto;
  }

  .main-navigation.is-active {
    opacity: 1;
    visibility: visible;
  }

  .primary-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 400px;
    margin: auto;
    animation: slideInFromTop 0.4s ease-out;
  }

  @keyframes slideInFromTop {
    from {
      opacity: 0;
      transform: translateY(-30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .primary-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeInItem 0.3s ease-out forwards;
  }

  .primary-menu li:nth-child(1) { animation-delay: 0.1s; }
  .primary-menu li:nth-child(2) { animation-delay: 0.15s; }
  .primary-menu li:nth-child(3) { animation-delay: 0.2s; }
  .primary-menu li:nth-child(4) { animation-delay: 0.25s; }
  .primary-menu li:nth-child(5) { animation-delay: 0.3s; }
  .primary-menu li:nth-child(6) { animation-delay: 0.35s; }

  @keyframes fadeInItem {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .primary-menu a {
    display: block;
    padding: 1.25rem 1rem;
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
  }

  .primary-menu a::after {
    display: none;
  }

  .primary-menu a:hover,
  .primary-menu .current-menu-item > a {
    color: var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
  }

  /* WhatsApp Button Mobile */
  .btn-whatsapp__text {
    display: none;
  }

  .btn-whatsapp {
    padding: 0.75rem;
    width: 48px;
    height: 48px;
    justify-content: center;
  }

  /* Secciones */
  .section-padding {
    padding: 3rem 0;
  }

  /* Grids: 2 columnas centradas */
  .steps-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .steps-grid > *,
  .features-grid > * {
    max-width: 380px !important;
    justify-self: center !important;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Hero Section */
  .hero-section {
    min-height: 500px;
    padding: 4rem 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  /* CTA Section */
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

/* Mobile Grande (576px - 767px) */
/* Tablet Pequeña (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .header-content {
    gap: 1.25rem;
  }

  .btn-whatsapp {
    padding: 0.625rem 1.25rem;
  }
}

@media (max-width: 767px) {
  .container {
    max-width: 540px;
    padding: 0 1rem;
  }

  :root {
    font-size: 15px;
  }

  /* Tipografía Mobile */
  h1 { font-size: 2rem; line-height: 1.2; }
  h2 { font-size: 1.75rem; line-height: 1.3; }
  h3 { font-size: 1.4rem; line-height: 1.3; }
  h4 { font-size: 1.2rem; }
  h5 { font-size: 1.1rem; }

  /* Header Mobile */
  .header-content {
    padding: 0.75rem 0;
    gap: 0.75rem;
  }

  .site-title {
    font-size: 1.15rem;
  }

  .site-logo img,
  .custom-logo {
    height: 36px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 0.625rem;
  }

  .btn-whatsapp__text {
    display: none;
  }

  .btn-whatsapp {
    width: 44px;
    height: 44px;
    padding: 0.625rem;
    border-radius: 50%;
  }

  /* Navegación Mobile */
  .main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 5rem 2rem 2rem;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    z-index: 1000;
    overflow-y: auto;
  }

  .main-navigation.is-active {
    opacity: 1;
    visibility: visible;
  }

  .primary-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 400px;
    margin: auto;
  }

  .primary-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .primary-menu a {
    display: block;
    padding: 1.25rem 1rem;
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
  }

  .primary-menu a::after {
    display: none;
  }

  .primary-menu a:hover,
  .primary-menu .current-menu-item > a {
    color: var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
  }

  /* Espaciados Mobile */
  .section-padding {
    padding: 2.5rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  /* Cards */
  .step-card,
  .feature-card {
    padding: 1.5rem;
  }

  /* Botones */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* Hero Section */
  .hero-section {
    min-height: 450px;
    padding: 3rem 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Formularios */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px; /* Evita zoom en iOS */
  }
}

/* Mobile Pequeño (menos de 576px) */
@media (max-width: 575px) {
  .container {
    padding: 0 1rem;
  }

  :root {
    font-size: 14px;
    --spacing-xl: 2rem;
    --spacing-xxl: 2.5rem;
  }

  /* Tipografía Extra Small */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  /* Header Extra Small */
  .header-content {
    padding: 0.5rem 0;
    gap: 0.5rem;
  }

  .site-title {
    font-size: 1rem;
  }

  .site-logo img,
  .custom-logo {
    height: 32px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    padding: 0.5rem;
  }

  .menu-toggle__icon {
    width: 24px;
  }

  .btn-whatsapp {
    width: 42px;
    height: 42px;
    padding: 0.5rem;
  }

  /* Navegación Mobile Extra Small */
  .main-navigation {
    padding: 4rem 1.5rem 2rem;
  }

  .primary-menu {
    max-width: 350px;
  }

  .primary-menu a {
    padding: 1rem 0.75rem;
    font-size: 1rem;
  }

  /* Secciones */
  .section-padding {
    padding: 2rem 0;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  /* Hero */
  .hero-section {
    min-height: 400px;
    padding: 2.5rem 0;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  /* Cards */
  .step-card,
  .feature-card {
    padding: 1.25rem;
  }

  .step-card__number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  /* Botones */
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .btn-large {
    padding: 0.875rem 1.5rem;
  }

  /* CTA Section */
  .cta-section {
    padding: 2.5rem 0;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  /* Tablas responsivas */
  table {
    font-size: 0.875rem;
  }

  /* Scroll horizontal para tablas grandes */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
  }

  .main-navigation {
    padding: 3rem 2rem 2rem;
  }

  .primary-menu {
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }
}

/* Touch Devices - Mejoras de UX */
@media (hover: none) and (pointer: coarse) {
  /* Áreas de tap más grandes */
  .primary-menu a,
  .btn,
  button,
  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Eliminar hover en touch */
  .primary-menu a:hover::after {
    width: 0;
  }

  /* Mejores áreas táctiles */
  .menu-toggle {
    padding: 0.75rem;
  }
}

/* ==========================================================================
   Performance - Critical CSS Above
   ========================================================================== */

/* Lazy loading placeholder */
img[data-src] {
  background: var(--color-gray-200);
  min-height: 200px;
}

/* ==========================================================================
   Blog Section - Landing Page
   ========================================================================== */

.blog-section {
  background: var(--color-white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

/* Post Excerpt Card */
.post-excerpt {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-excerpt:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.post-excerpt__image {
  position: relative;
  width: 100%;
  padding-top: 60%; /* 5:3 aspect ratio */
  overflow: hidden;
  background: var(--color-gray-200);
}

.post-excerpt__image a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.post-excerpt__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-excerpt:hover .post-excerpt__image img {
  transform: scale(1.1);
}

.post-excerpt__content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-excerpt__title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.post-excerpt__title a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.post-excerpt__title a:hover {
  color: var(--color-primary);
}

.post-excerpt__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.post-excerpt__meta time {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.post-excerpt__meta time::before {
  content: '📅';
  font-size: 0.875rem;
}

.post-excerpt__text {
  color: var(--color-gray-700);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
}

.post-excerpt__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  align-self: flex-start;
}

.post-excerpt__link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.post-excerpt__link:hover {
  color: var(--color-secondary);
  gap: 0.75rem;
}

.post-excerpt__link:hover::after {
  transform: translateX(4px);
}

/* ==========================================================================
   Blog Archive Page
   ========================================================================== */


/* ==========================================================================
   Archive Pages (Category, Tag, Date) - DISEÑO MEJORADO
   ========================================================================== */

.blog-page,
.archive-page {
  padding: 2rem 0 4rem;
}

/* Archive Header Mejorado */
.page-header,
.archive-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.03) 0%, rgba(0, 168, 232, 0.03) 100%);
  border-radius: 20px;
  border: 2px solid rgba(0, 102, 204, 0.08);
  position: relative;
  overflow: hidden;
}

.archive-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.page-title,
.archive-title {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

/* Icono antes del título según tipo de archivo */
.category .archive-title::before {
  content: '📁 ';
  -webkit-text-fill-color: initial;
}

.tag .archive-title::before {
  content: '🏷️ ';
  -webkit-text-fill-color: initial;
}

.date .archive-title::before {
  content: '📅 ';
  -webkit-text-fill-color: initial;
}

.author .archive-title::before {
  content: '✍️ ';
  -webkit-text-fill-color: initial;
}

.page-description,
.archive-description {
  font-size: 1.2rem;
  color: var(--color-gray-700);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.archive-description p {
  margin: 0;
}

/* Post Count Badge */
.archive-header::after {
  content: attr(data-count) ' artículos';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
  z-index: 2;
}

/* Posts Grid Mejorado */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

/* Mejora visual de las cards en el grid */
.posts-grid .post-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 102, 204, 0.08);
}

.posts-grid .post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 102, 204, 0.15);
  border-color: rgba(0, 102, 204, 0.2);
}

/* Breadcrumbs mejorados para archive */
.archive-page .breadcrumbs-wrapper {
  margin-bottom: 2rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-gray-600);
  padding: 1rem 1.5rem;
  background: rgba(0, 102, 204, 0.03);
  border-radius: 10px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.breadcrumbs a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.breadcrumbs .separator {
  color: var(--color-gray-400);
  font-size: 0.8rem;
}

.breadcrumbs .current {
  color: var(--color-gray-700);
  font-weight: 600;
}

/* Tag Cloud en archive de tags */
.tag-archive-cloud {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.03) 0%, rgba(0, 168, 232, 0.03) 100%);
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 3rem;
  border: 2px solid rgba(0, 102, 204, 0.08);
}

.tag-archive-cloud h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.tag-archive-cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.tag-archive-cloud .tagcloud a {
  background: white;
  color: var(--color-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem !important;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 102, 204, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tag-archive-cloud .tagcloud a:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
  border-color: transparent;
}

/* Categorías relacionadas en archive de categorías */
.related-categories {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.03) 0%, rgba(0, 168, 232, 0.03) 100%);
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 3rem;
  border: 2px solid rgba(0, 102, 204, 0.08);
}

.related-categories h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.related-categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.related-categories li {
  margin: 0;
}

.related-categories a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-gray-800);
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 102, 204, 0.08);
}

.related-categories a::before {
  content: '📂';
  font-size: 1.25rem;
}

.related-categories a:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
  border-color: transparent;
}

/* Empty State mejorado */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.03) 0%, rgba(0, 168, 232, 0.03) 100%);
  border-radius: 20px;
  border: 2px dashed rgba(0, 102, 204, 0.2);
}

.no-results .page-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.no-results .page-title::before {
  content: '🔍 ';
  -webkit-text-fill-color: initial;
}

.no-results .page-content {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Responsive */
@media (max-width: 992px) {
  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
  }

  .page-title,
  .archive-title {
    font-size: 2.25rem;
  }

  .archive-header::after {
    position: static;
    display: block;
    margin-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .page-header,
  .archive-header {
    padding: 2rem 1.5rem;
    margin-bottom: 2.5rem;
  }

  .page-title,
  .archive-title {
    font-size: 1.875rem;
  }

  .page-description,
  .archive-description {
    font-size: 1rem;
  }

  .related-categories ul {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   OPTIMIZACIONES ESPECÍFICAS PARA CATEGORY Y TAG
   Solo afecta a las páginas de categoría y etiqueta
   ========================================================================== */

/* Breadcrumbs ocultos en category y tag */
.category .breadcrumbs,
.tag .breadcrumbs {
  display: none;
}

/* Post cards mejoradas SOLO en category y tag */
.category .archive-page .posts-grid .post-excerpt,
.tag .archive-page .posts-grid .post-excerpt {
  border: 1px solid rgba(0, 102, 204, 0.08);
  position: relative;
}

.category .archive-page .posts-grid .post-excerpt::before,
.tag .archive-page .posts-grid .post-excerpt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.category .archive-page .posts-grid .post-excerpt:hover::before,
.tag .archive-page .posts-grid .post-excerpt:hover::before {
  opacity: 1;
}

.category .archive-page .posts-grid .post-excerpt:hover,
.tag .archive-page .posts-grid .post-excerpt:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 102, 204, 0.15);
  border-color: rgba(0, 102, 204, 0.2);
}

/* Mejora del botón "Leer más" SOLO en category y tag */
.category .archive-page .posts-grid .post-excerpt__link,
.tag .archive-page .posts-grid .post-excerpt__link {
  color: white;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
  position: relative;
  overflow: hidden;
}

.category .archive-page .posts-grid .post-excerpt__link::before,
.tag .archive-page .posts-grid .post-excerpt__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.category .archive-page .posts-grid .post-excerpt__link:hover::before,
.tag .archive-page .posts-grid .post-excerpt__link:hover::before {
  left: 100%;
}

.category .archive-page .posts-grid .post-excerpt__link:hover,
.tag .archive-page .posts-grid .post-excerpt__link:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
}

/* Meta información mejorada SOLO en category y tag */
.category .archive-page .posts-grid .post-excerpt__meta time,
.tag .archive-page .posts-grid .post-excerpt__meta time {
  padding: 0.375rem 0.875rem;
  background: rgba(0, 102, 204, 0.05);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.category .archive-page .posts-grid .post-excerpt:hover .post-excerpt__meta time,
.tag .archive-page .posts-grid .post-excerpt:hover .post-excerpt__meta time {
  background: rgba(0, 102, 204, 0.1);
  transform: translateX(3px);
}

/* Títulos con gradient animado SOLO en category y tag */
.category .archive-page .posts-grid .post-excerpt__title a,
.tag .archive-page .posts-grid .post-excerpt__title a {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: all 0.3s ease;
}

.category .archive-page .posts-grid .post-excerpt__title a:hover,
.tag .archive-page .posts-grid .post-excerpt__title a:hover {
  background-position: 0 0;
}

/* ==========================================================================
   Single Post Page
   ========================================================================== */

.single-post-wrapper {
  background: var(--color-gray-100);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Single Post with Sidebar Layout */
.single-post-with-sidebar {
  display: flex;
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: flex-start;
}

.single-main-content {
  flex: 1;
  min-width: 0; /* Prevents overflow */
}

.single-post-with-sidebar .sidebar-column {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.single-post-with-sidebar .sidebar {
  /* Sidebar dentro de la columna derecha */
}

.single-post-with-sidebar .comments-wrapper {
  /* Comentarios dentro de la columna derecha */
}

/* Article container - solo este tiene padding interno */
article.single-post {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

/* Entry Header */
.entry-header {
  margin-bottom: 2.5rem;
}

.entry-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--color-gray-600);
  border-top: 1px solid var(--color-gray-300);
  border-bottom: 1px solid var(--color-gray-300);
}

.entry-meta > span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entry-meta .posted-on::before {
  content: '📅';
}

.entry-meta .byline::before {
  content: '✍️';
}

.entry-meta .cat-links::before {
  content: '📁';
}

.entry-meta .reading-time::before {
  content: '⏱️';
}

.entry-meta a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.entry-meta a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Featured Image */
.entry-featured-image {
  margin-bottom: 2.5rem;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.entry-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Entry Content */
.entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-gray-800);
}

.entry-content > * {
  margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--color-dark);
}

.entry-content h2 {
  font-size: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
}

.entry-content h3 {
  font-size: 1.5rem;
}

.entry-content h4 {
  font-size: 1.25rem;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.entry-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--color-primary);
  background: var(--color-gray-100);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  font-style: italic;
  color: var(--color-gray-700);
}

.entry-content img {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
}

.entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: all var(--transition-fast);
}

.entry-content a:hover {
  color: var(--color-secondary);
  text-decoration-thickness: 3px;
}

.entry-content code {
  background: var(--color-gray-200);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.entry-content pre {
  background: var(--color-gray-900);
  color: var(--color-gray-100);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  overflow-x: auto;
  margin: 2rem 0;
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Entry Footer */
.entry-footer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-gray-300);
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.tags-label {
  font-weight: 600;
  color: var(--color-dark);
}

.entry-tags a {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--color-gray-200);
  color: var(--color-gray-700);
  border-radius: var(--border-radius-md);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.entry-tags a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Social Share */
.social-share {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--color-gray-100);
  border-radius: var(--border-radius-lg);
  text-align: center;
}

.social-share h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--color-dark);
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  border-radius: var(--border-radius-md);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.share-button--facebook {
  background: #1877f2;
}

.share-button--facebook:hover {
  background: #0d65d9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.share-button--twitter {
  background: #1da1f2;
}

.share-button--twitter:hover {
  background: #0c90e0;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.share-button--whatsapp {
  background: #25d366;
}

.share-button--whatsapp:hover {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Post Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 2px solid var(--color-gray-300);
}

.nav-previous,
.nav-next {
  display: flex;
  flex-direction: column;
}

.nav-next {
  text-align: right;
}

.post-navigation a {
  padding: 1.5rem;
  background: var(--color-gray-100);
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  transition: all var(--transition-normal);
  display: block;
}

.post-navigation a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.nav-subtitle {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  color: var(--color-gray-600);
}

.post-navigation a:hover .nav-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.nav-title {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark);
}

.post-navigation a:hover .nav-title {
  color: var(--color-white);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  height: 45px;
  padding: 0.5rem 1rem;
  background: var(--color-white);
  color: var(--color-gray-700);
  border: 2px solid var(--color-gray-300);
  border-radius: var(--border-radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pagination .page-numbers.dots {
  border: none;
  background: transparent;
}

.pagination .page-numbers.dots:hover {
  transform: none;
  box-shadow: none;
}

/* No Posts Message */
.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--color-gray-100);
  border-radius: var(--border-radius-lg);
  margin: 2rem 0;
}

.no-posts h2 {
  font-size: 2rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.no-posts p {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  margin-bottom: 2rem;
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */

.sidebar {
  /* Sidebar normal sin sticky */
}

.widget {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-normal);
}

.widget:hover {
  box-shadow: var(--shadow-lg);
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--color-primary);
}

/* Widget Lists */
.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget ul li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-gray-200);
  transition: all var(--transition-fast);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li:hover {
  padding-left: 0.5rem;
  background: var(--color-gray-100);
}

.widget ul li a {
  color: var(--color-gray-700);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}

.widget ul li a:hover {
  color: var(--color-primary);
}

/* Post count badges */
.widget ul li .count,
.widget ul li .post-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 0.5rem;
  background: var(--color-gray-200);
  color: var(--color-gray-700);
  border-radius: var(--border-radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.widget ul li:hover .count,
.widget ul li:hover .post-count {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Widget Search */
.widget_search .search-form {
  display: flex;
  gap: 0.5rem;
}

.widget_search .search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-gray-300);
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.widget_search .search-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.widget_search .search-submit {
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.widget_search .search-submit:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Widget Categories */
.widget_categories ul li,
.widget_archive ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Widget Recent Posts */
.widget_recent_entries ul li {
  padding: 1rem 0;
}

.widget_recent_entries .post-date {
  display: block;
  font-size: 0.875rem;
  color: var(--color-gray-500);
  margin-top: 0.25rem;
}

/* Widget Tag Cloud */
.widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.widget_tag_cloud .tagcloud a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-gray-200);
  color: var(--color-gray-700);
  border-radius: var(--border-radius-md);
  text-decoration: none;
  font-size: 0.875rem !important;
  transition: all var(--transition-fast);
}

.widget_tag_cloud .tagcloud a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Widget Calendar */
.widget_calendar table {
  width: 100%;
  border-collapse: collapse;
}

.widget_calendar th,
.widget_calendar td {
  padding: 0.5rem;
  text-align: center;
  border: 1px solid var(--color-gray-200);
}

.widget_calendar th {
  background: var(--color-gray-100);
  font-weight: 600;
  color: var(--color-dark);
}

.widget_calendar td a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.widget_calendar td a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Widget Text */
.widget_text p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.widget_text p:last-child {
  margin-bottom: 0;
}

/* Widget RSS */
.widget_rss ul li {
  padding: 1rem 0;
}

.widget_rss .rss-date,
.widget_rss cite {
  display: block;
  font-size: 0.875rem;
  color: var(--color-gray-500);
  margin-top: 0.25rem;
}

/* Widget Meta */
.widget_meta ul li::before {
  content: '→ ';
  color: var(--color-primary);
  font-weight: 700;
}

/* ==========================================================================
   Comments Section
   ========================================================================== */

/* Wrapper para comentarios en ancho completo */
.comments-wrapper {
  margin-top: 3rem;
}

.comments-area {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.comments-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--color-primary);
}

.comments-title span {
  color: var(--color-primary);
}

/* Comment List */
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .comment {
  margin-bottom: 2rem;
  list-style: none;
}

.comment-body {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--color-gray-100);
  border-radius: var(--border-radius-lg);
  border-left: 4px solid var(--color-primary);
  transition: all var(--transition-normal);
}

.comment-body:hover {
  background: var(--color-gray-200);
  transform: translateX(4px);
}

.comment-author-avatar {
  flex-shrink: 0;
}

.comment-author-avatar img {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}

.comment-content-wrap {
  flex: 1;
  min-width: 0;
}

.comment-meta {
  margin-bottom: 1rem;
}

.comment-author {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.375rem;
}

.comment-author a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.comment-author a:hover {
  color: var(--color-primary);
}

.comment-metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

.comment-metadata a {
  color: var(--color-gray-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.comment-metadata a:hover {
  color: var(--color-primary);
}

.comment-reply a,
.comment-edit a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.comment-reply a:hover,
.comment-edit a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.comment-text {
  color: var(--color-gray-800);
  line-height: 1.7;
}

.comment-text p {
  margin-bottom: 0.875rem;
}

.comment-text p:last-child {
  margin-bottom: 0;
}

.comment-awaiting-moderation {
  padding: 0.75rem 1rem;
  background: var(--color-warning);
  color: var(--color-dark);
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Nested Comments */
.comment-list .children {
  list-style: none;
  margin: 1.5rem 0 0 0;
  padding-left: 2rem;
}

.comment-list .children .comment {
  margin-bottom: 1.5rem;
}

.comment-list .children .comment-body {
  background: var(--color-white);
  border-left-color: var(--color-secondary);
}

.comment-list .children .children .comment-body {
  border-left-color: var(--color-accent);
}

/* No Comments Message */
.no-comments {
  padding: 2rem;
  text-align: center;
  background: var(--color-gray-100);
  border-radius: var(--border-radius-md);
  color: var(--color-gray-600);
  font-style: italic;
  margin: 2rem 0;
}

/* Comment Navigation */
.comment-navigation {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
  margin: 2rem 0;
  border-top: 1px solid var(--color-gray-300);
  border-bottom: 1px solid var(--color-gray-300);
}

.comment-navigation a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
}

.comment-navigation a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Comment Form */
.comment-respond {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 3px solid var(--color-gray-300);
}

.comment-reply-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

.comment-reply-title small {
  font-size: 0.875rem;
  font-weight: 600;
  margin-left: 1rem;
}

.comment-reply-title small a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.comment-reply-title small a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.comment-form {
  display: grid;
  gap: 1.25rem;
}

.comment-notes,
.logged-in-as,
.must-log-in {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  margin-bottom: 1rem;
}

.logged-in-as a,
.must-log-in a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.logged-in-as a:hover,
.must-log-in a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.required {
  color: var(--color-danger);
  font-weight: 700;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
  margin-bottom: 0;
}

.comment-form label {
  display: block;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-gray-300);
  border-radius: var(--border-radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-dark);
  background: var(--color-white);
  transition: all var(--transition-fast);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.comment-form textarea {
  resize: vertical;
  min-height: 150px;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-gray-700);
}

.comment-form-cookies-consent input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.comment-form-cookies-consent label {
  font-weight: 400;
  margin-bottom: 0;
  cursor: pointer;
}

.form-submit {
  margin-top: 0.5rem;
}

.btn-submit-comment {
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   Blog Responsive Design
   ========================================================================== */

@media (max-width: 991px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Sidebar below content on tablets */
  .blog-page-with-sidebar,
  .single-post-with-sidebar {
    flex-direction: column;
    gap: 2rem;
  }

  .single-post-with-sidebar .sidebar-column {
    width: 100%;
    order: 2;
  }

  .single-post-with-sidebar .single-main-content {
    order: 1;
  }

  .sidebar {
    position: static;
    max-height: none;
  }

  article.single-post {
    padding: 2rem;
  }

  .entry-title {
    font-size: 2.25rem;
  }

  .entry-content {
    font-size: 1.0625rem;
  }

  .post-navigation {
    gap: 1.5rem;
  }

  .comments-area {
    padding: 2rem;
  }

  .comment-list .children {
    padding-left: 1rem;
  }
}

@media (max-width: 767px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-page,
  .archive-page {
    padding: 2rem 0;
  }

  .page-header,
  .archive-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .page-title,
  .archive-title {
    font-size: 2rem;
  }

  article.single-post {
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
  }

  .entry-header {
    margin-bottom: 2rem;
  }

  .entry-title {
    font-size: 1.875rem;
  }

  .entry-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .entry-content {
    font-size: 1rem;
  }

  .entry-content h2 {
    font-size: 1.625rem;
    margin-top: 2rem;
  }

  .entry-content h3 {
    font-size: 1.375rem;
  }

  .entry-content blockquote {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
  }

  .post-navigation {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nav-next {
    text-align: left;
  }

  .social-share {
    padding: 1.5rem 1rem;
  }

  .share-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    margin: 0.375rem;
  }

  .comments-area {
    padding: 1.5rem;
  }

  .comments-title {
    font-size: 1.625rem;
  }

  .comment-body {
    flex-direction: column;
    padding: 1.25rem;
  }

  .comment-author-avatar img {
    width: 50px;
    height: 50px;
  }

  .comment-list .children {
    padding-left: 0.5rem;
  }

  .comment-reply-title {
    font-size: 1.5rem;
  }

  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"],
  .comment-form textarea {
    font-size: 16px; /* Evita zoom en iOS */
  }
}

@media (max-width: 575px) {
  .page-title,
  .archive-title {
    font-size: 1.75rem;
  }

  article.single-post {
    padding: 1.25rem;
  }

  .entry-title {
    font-size: 1.625rem;
  }

  .entry-content {
    font-size: 0.9375rem;
  }

  .pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
  }

  .comments-area {
    padding: 1.25rem;
  }

  .comments-title {
    font-size: 1.5rem;
  }

  .comment-author-avatar img {
    width: 45px;
    height: 45px;
  }

  .btn-submit-comment {
    width: 100%;
  }
}
