:root {
    --bg: #ffffff; /* Fondo principal (azul claro muy suave) */
    --card: #e0e7ed; /* Fondo de tarjetas (gris azulado más claro) */
    --primary-light: #ffefe6; /* Color para fondos de tablas/destacados basado en el acento */
    --accent: #ff6f61; /* Color de acento vibrante (coral / salmón) */
    --accent-light: #ff9b67; /* Variante más clara del acento para degradados */
    --muted: #474c55; /* Texto secundario (gris medio) */
    --text-primary: #374151; /* Texto principal (gris oscuro) */
    --glass: rgba(255, 255, 255, 0.4); /* Efecto cristal para elementos sutiles */
    --maxw: 1100px;
    --radius: 14px;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    /* VARIABLE AÑADIDA para el encabezado de la tabla */
    --table-header: #AFEEEE; 
}

* {
    box-sizing: border-box; /* CLAVE: Incluye padding y border en el width/height */
}

html, body {
    height: 100%;
    overflow-x: hidden; /* CLAVE: Previene el scroll horizontal */
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.4;
}

header {
    padding: 28px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--maxw);
    margin: 0 auto;
}

.logo {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 44px;
    width: 44px;
    border-radius: 10px;
    object-fit: cover;
}

.logo h1 {
    font-size: 18px;
    margin: 0;
}

nav {
    display: flex;
    gap: 14px;
    align-items: center;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

/* Botón de acento superior, ahora más vibrante */
.cta-top {
    background: linear-gradient(90deg, var(--accent), #ff8c82);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 111, 97, 0.3);
    transition: all 0.3s ease;
}

.cta-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 111, 97, 0.4);
}

main {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 20px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr minmax(340px, 420px);
    gap: 28px;
    align-items: center;
    margin-top: 12px;
}

/* Hero Left - ahora con un fondo más claro y sombra más suave */
.hero-left {
    padding: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    border-radius: var(--radius);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

/* ESTILO ORIGINAL DE IMAGEN EN ESCRITORIO */
.hero-left img {
    width: 40%; /* Se mantiene 40% para el diseño de escritorio */
    height: auto;
    display: block;
    margin: 15px auto 20px auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.kicker {
    display: inline-block;
    background: var(--glass);
    color: var(--accent);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 13px;
    border: 1px solid rgba(255, 111, 97, 0.2);
}

h2 {
    font-size: 28px;
    margin: 0 0 10px;
    color: var(--text-primary);
}

p.lead {
    color: var(--muted);
    margin-top: 6px;
}

ul.beneficios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 18px 0 22px;
    padding: 0;
    list-style: none;
}

ul.beneficios li {
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    color: #555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hero-cta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 111, 97, 0.3);
}
.btn-secondary {
    background: var(--bg);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(255, 111, 97, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 111, 97, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--accent);
}

/* Hero Right - Fondo más suave y armónico */
.hero-right {
    background: linear-gradient(180deg, #fefefe 0%, #fefefe 100%);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.offer {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}

.price {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    font-size: 13px;
    margin-top: 10px;
    color: var(--muted);
}

.features {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.feature {
    background: rgba(0, 0, 0, 0.03);
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    color: #555;
}

.testimonials {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Card - Fondo más claro y sombra suave */
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #444;
}

.meta {
    font-size: 13px;
    color: var(--muted);
}

section.articles {
    margin-top: 26px;
    display: grid;
    gap: 20px;
}



/* FOOTER */
footer {
    max-width: var(--maxw);
    margin: 34px auto;
    padding: 18px;
    color: var(--muted);
    font-size: 14px;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text-primary);
}

.faq p {
    margin: 8px 0 0;
    color: var(--muted);
}

.badge-small {
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
}

/* small UI niceties */
.pill {
    display: inline-block;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--muted);
    font-size: 13px;
}

.hero-img {
    border-radius: 12px;
    width: 100%;
    display: block;
}

.toc {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.toc a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.toc a:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-1px);
}

/* small animation */
.fade-up {
    transform: translateY(6px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
    will-change: transform, opacity;
}

.fade-up.in {
    transform: none;
    opacity: 1;
}

/* accessibility focus */
a:focus, button:focus {
    outline: 3px solid rgba(255, 111, 97, 0.3);
    outline-offset: 3px;
}

/* ======================================= */
/* ESTILOS: LEAD MAGNET CAPTURA */
/* ======================================= */

.lead-magnet-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.capture-box {
    max-width: 550px;
    width: 100%;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.capture-box h1 {
    font-size: 1.8rem;
    color: var(--muted);
}

.capture-box .lead {
    font-size: 1.1rem;
    color: var(--muted);
    margin-top: 10px;
}

.form-container input[type="email"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid var(--muted);
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
}

.form-container .btn-primary {
    width: 100%;
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.8em;
    color: var(--muted);
    text-align: center;
}

/* ======================================= */
/* ESTILOS: PRODUCTOS DE AFILIACIÓN */
/* ======================================= */

.affiliate-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* La cuadrícula: 4 columnas en escritorio, 2 en tableta, 1 en móvil */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width: 100%; 
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 200, 162, 0.4);
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-details {
    flex-grow: 1;
}

.product-details h4 {
    color: var(--text-primary);
    font-size: 16px;
    margin: 5px 0;
}

.product-description {
    color: var(--muted);
    font-size: 13px;
    margin: 5px 0 10px;
    flex-grow: 1;
}

.product-cta {
    display: block;
    text-align: center;
    background: var(--accent);
    color: #ffffff;
    padding: 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    margin-top: auto;
    transition: background 0.2s ease;
}

.product-cta:hover {
    background: var(--accent-light);
}

.affiliate-disclaimer {
    text-align: center;
    font-size: 12px;
    margin-top: 20px;
    color: #999;
}

/* ======================================= */
/* 2. ESTILOS DE ARTÍCULOS - CORREGIDOS */
/* ======================================= */

article {
    background: var(--card); /* CORREGIDO */
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

article h2 {
    color: var(--text-primary);
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 15px;
}

article h3, article h4 {
    color: var(--text-primary);
    margin-top: 25px;
    margin-bottom: 10px;
}

article p {
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 15px;
}

/* Texto de metadatos */
.article-meta {
    font-size: 13px;
    color: var(--muted); /* CORREGIDO: Usando --muted */
    margin-bottom: 15px;
}

/* Lista de consejos rápidos */
#quick-tips {
    list-style: disc;
    padding-left: 20px;
    margin-top: 15px;
    margin-bottom: 25px;
}



/* Estilos de la tabla */
.table-container {
    /* Contenedor principal que maneja el desplazamiento horizontal */
    overflow-x: auto; 
    margin-bottom: 20px;
 
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
    /* 1. Aplica esquinas redondeadas a la tabla */
    border-radius: 10px; 
    /* 2. Oculta el desbordamiento para que las esquinas redondeadas sean visibles */
    overflow: hidden; 
}

/* Estilo para los encabezados (Primera Fila - Verde Agua) */
.table-container th {
    background-color: var(--table-header); /* CORREGIDO: Usando --table-header */
    color: var(--text-primary); /* CORREGIDO: Usando --text-primary */
    padding: 10px;
    /* Opcional: Remueve el borde individual para mejorar el aspecto con border-collapse */
    border: 1px solid #ddd; 
    text-align: left;
}

/* Estilo para las celdas de datos (El resto - Blanco) */
.table-container td {
    background-color: #ffffff; /* Blanco */
    padding: 10px;
    border: 1px solid #ddd;
}

/* AJUSTES PARA REDONDEAR SOLO LAS ESQUINAS EXTERIORES DE LA TABLA */

/* Redondear la esquina superior izquierda del primer encabezado */
.table-container th:first-child {
    border-top-left-radius: 10px;
}

/* Redondear la esquina superior derecha del último encabezado */
.table-container th:last-child {
    border-top-right-radius: 10px;
}

/* Redondear la esquina inferior izquierda de la primera celda del pie (si existe) o de la última fila */
.table-container tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

/* Redondear la esquina inferior derecha de la última celda del pie (si existe) o de la última fila */
.table-container tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}


/* ======================================= */
/* 3. ARTÍCULOS RELACIONADOS (SECCIÓN INFERIOR) - CORREGIDOS */
/* ======================================= */

#related-articles {
    background-color: var(--bg); /* Un color muy suave basado en el acento, como el #ffefe6 */
    padding: 40px 20px;
    border-radius: var(--radius); /* Usando 14px */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); 
    text-align: center;
    margin-top: 40px;
    
    /* Asegura el ancho máximo si está fuera de un contenedor 'main' */
    max-width: var(--maxw);
    margin-left: auto;
    margin-right: auto;
}
#related-articles h2 {
    text-align: center;
    font-size: 26px;
    margin-top: 40px;
}
#lead-text {
    text-align: center;
    font-size: 16px;
    margin-bottom: 25px !important;
    color: var(--muted); /* CORREGIDO: Usando --muted */
}

/* Cuadrícula de 4 columnas */
#articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}
@media (max-width: 1200px) {
    #articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    #articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    #articles-grid {
        grid-template-columns: 1fr;
    }
}


/* Estilo de la tarjeta de artículo relacionado */
.related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--bg); /* CORREGIDO: Usando --card */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.related-card > div { /* Contenido de la tarjeta */
    padding: 15px;
    flex-grow: 1;
}

.related-card h4 {
    color: var(--text-primary); /* CORREGIDO: Usando --text-primary */
    font-size: 16px;
    margin: 8px 0;
}

.card-description {
    color: var(--muted); /* CORREGIDO: Usando --muted */
    font-size: 13px;
    margin: 5px 0 10px;
}

.tag-small {
    display: inline-block;
    background-color: var(--primary-light); /* CORREGIDO: Usando --primary-light */
    color: var(--text-primary); /* CORREGIDO: Usando --text-primary */
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.read-more {
    display: block;
    color: var(--accent); /* CORREGIDO: Usando --accent */
    font-size: 14px;
    font-weight: 600;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ======================================= */
/* 4. BARRA LATERAL (ASIDE) Y AFILIADOS - CORREGIDOS */
/* ======================================= */

aside {
    padding-top: 0;
}

/* Caja de beneficios (card-benefits) */
#beneficios {
    margin-top: 18px;
}

.card-benefits {
    background: var(--card); /* CORREGIDO: Usando --card */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card-benefits h3 {
    margin-top: 0;
    color: var(--accent); /* CORREGIDO: Usando --accent */
}

.clean-list {
    list-style: none;
    padding-left: 0;
}
.clean-list li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-primary); /* CORREGIDO: Usando --text-primary */
}
.clean-list li::before {
    content: "✔️";
    margin-right: 8px;
}


/* Caja de CTA pegajosa (Sidebar CTA) */
#sidebar-cta-box {
    background: var(--bg); /* CORREGIDO: Usando --bg */
    border: 1px solid var(--primary-light); /* CORREGIDO: Usando --primary-light */
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#sticky-cta-title {
    font-weight: 800;
    font-size: 16px;
    color: var(--text-primary); /* CORREGIDO: Usando --text-primary */
}

.img-center {
    text-align: center;
    padding: 10px 0;
}

.cta-link-wrapper {
    margin-top: 12px;
}

/* Badges / Píldoras */
.cta-pills {
    /* El contenedor Flex padre se encarga del centrado horizontal */
    margin-top: 12px;
    display: flex;
    gap: 8px;
    /* Para centrar las píldoras internamente, si no están al 100% de ancho */
    justify-content: center; 
}
.pill-badge {
    background: #E0E0E0;
    color: var(--text-primary); /* CORREGIDO: Usando --text-primary */
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 15px;
}

/* Tarjeta de Producto de Afiliación (Kit) - Se mantienen los estilos de arriba para este selector, pero se corrigen las variables */
.affiliate-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--card); /* CORREGIDO: Usando --card */
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width: 100%;
    margin-top: 15px;
}

.affiliate-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(255, 152, 0, 0.3); /* Sombra con toque naranja */
}

.affiliate-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 10px;
}

.affiliate-details {
    flex-grow: 1;
}

.affiliate-details h4 {
    color: var(--text-primary); /* CORREGIDO: Usando --text-primary */
    font-size: 15px;
    margin: 5px 0;
}

.affiliate-description {
    color: var(--muted); /* CORREGIDO: Usando --muted */
    font-size: 12px;
    margin: 5px 0 10px;
    flex-grow: 1;
}

.affiliate-cta {
    display: block;
    text-align: center;
    background: var(--accent); /* CORREGIDO: Usando --accent */
    color: #ffffff;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    margin-top: auto;
    transition: background 0.2s ease;
}

.affiliate-cta:hover {
    background: var(--accent-light); /* CORREGIDO: Usando --accent-light */
}

/* --- Estilos para la Tarjeta de CTA Principal (Curso hotmart) --- */
.main-cta-card {
    /* Color de fondo llamativo (un amarillo/naranja suave) */
    background-color: #ffefc4; 
    border: 2px solid #ffc107; /* Borde de color de alerta */
    padding: 20px;
    border-radius: 12px;
    /* Sombra para que "flote" */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); 
    text-align: center;
    margin-bottom: 20px;
}
.main-cta-card img {
    /* 1. Establece un tamaño máximo adecuado (ej. 40%) */
    max-width: 40%; 
    height: auto; 
    
    /* 2. CLAVE: Asegura que sea un bloque para que los márgenes automáticos funcionen */
    display: block;
    
    /* 3. CLAVE: Centra el elemento de bloque horizontalmente */
    margin: 0 auto;
}
/* --- Estilos para la Tarjeta de Afiliado (Producto) --- */

.affiliate-product-card {
    /* Contenedor principal para la tarjeta de afiliado */
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    /* Sombra sutil */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); 
    transition: box-shadow 0.3s;
}

.affiliate-product-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.affiliate-card {
    display: flex;
    text-decoration: none;
    color: inherit;
    gap: 10px;
    align-items: center;
}

.affiliate-card img {
    /* Ajusta el tamaño de la imagen del producto */
    width: 80px; 
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0; /* Evita que la imagen se encoja */
}

.affiliate-details {
    text-align: left;
    flex-grow: 1;
}

.affiliate-details h4 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1em;
    color: #333;
}

.affiliate-description {
    display: none; /* Ocultamos la descripción larga para mantenerlo limpio */
}


/* ===================== */
/* === AJUSTES POR DEFECTO / ESCRITORIO (> 980px) == */
/* ================================================= */

/* Ocultar el botón de menú por defecto en escritorio */
.menu-toggle {
    display: none;
}
/* Por defecto, oculta el botón de cierre en escritorio */
.menu-close {
    display: none;
}

/* ================================================= */
/* ================= MEDIA QUERIES UNIFICADAS ================= */
/* ================================================= */

/* 💻 Media Query: Ajuste intermedio para productos (max-width: 1100px) */
@media (max-width: 1100px) {
    .product-grid {
        /* Pasa la cuadrícula de 4 columnas a 2 columnas */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 📱 Media Query: Tabletas y Móviles Grandes (max-width: 980px) */
@media (max-width: 980px) {
    /* Layout principal */
    .hero {
        grid-template-columns: 1fr;
        gap: 20px;
        box-sizing: border-box;
    }

    /* **CORRECCIÓN CLAVE 1: ANCHO DE BLOQUES HERO** */
    .hero-left, .hero-right {
        width: 100%; /* Ocupa el 100% de la columna */
        /* box-sizing: border-box; ya está en el reset global */
    }

    /* **CORRECCIÓN CLAVE 2: IMAGEN PRINCIPAL EN MÓVIL** */
    .hero-left img {
        width: 100%; /* La imagen debe ocupar el 100% en móvil para no desbordar */
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .testimonials {
        grid-template-columns: repeat(1, 1fr);
    }

    /* Contenedores de ancho completo */
    header, main {
        max-width: 100%;
        padding: 20px;
        width: 100%; /* Añadir width: 100% como seguridad */
        
    }
    aside {
        width: 100%;
        overflow-x: hidden;
    }
    .sticky-cta {
        position: relative;
        top: 0;
        margin-top: 20px;
        width: 100%;
    }

    /* Cuadrículas de contenido */
    .articles-big-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
    .related-articles-section {
        width: 100%;
        box-sizing: border-box;
    }
}

img {
        max-width: 100%; /* Asegura que la imagen no desborde su contenedor */
        height: auto; /* Mantiene la proporción original de la imagen */
        display: block; /* Opcional, pero ayuda a eliminar espacios indeseados bajo las imágenes */
    }

/* 📞 Media Query: Móvil Estándar (max-width: 768px) */
@media (max-width: 768px) {
    /* Navegación y Header */
    header {
        padding: 15px 10px;
    }
    .menu-toggle {
        display: block;
    }
    /* Menú lateral deslizable (sin cambios) */
    nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background-color: white;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 20px 20px;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    nav.nav-visible {
        transform: translateX(0);
    }
    nav a {
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid #eee;
        font-size: 16px;
        text-align: left;
    }
    .menu-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 30px;
        color: var(--muted);
        cursor: pointer;
        line-height: 1;
        padding: 5px;
        transition: color 0.2s ease;
    }
    .menu-close:hover {
        color: var(--accent);
    }
    ul.beneficios {
        grid-template-columns: 1fr;
    }
    img {
        max-width: 100%; /* Asegura que la imagen no desborde su contenedor */
        height: auto; /* Mantiene la proporción original de la imagen */
        display: block; /* Opcional, pero ayuda a eliminar espacios indeseados bajo las imágenes */
    }
   

    /* Mobile CTA Footer (sin cambios) */
    #fixed-cta-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }
    #fixed-cta-footer .cta-text {
        text-align: center;
        margin-bottom: 5px;
        font-size: 15px;
    }
    #fixed-cta-footer .btn-primary {
        width: 100%;
    }
}

/* 🤏 Media Query: Móvil Extremo (max-width: 600px) */
@media (max-width: 600px) {
    /* Cuadrículas específicas: Pasan a 1 columna */
    .articles-big-grid,
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }
    .related-article-card img {
        height: 150px;
        width: 100%;
    }
}

/* 📐 Media Query: Tipografía (max-width: 520px) */
@media (max-width: 520px) {
    h2 {
        font-size: 22px;
    }
    .price {
        font-size: 22px;
    }
    ul.beneficios {
        grid-template-columns: 1fr;
    }
    .hero {
        gap: 14px;
    }
}

  /* AJUSTE DE Cookies */
  /* --- ESTILOS DEL BANNER DE COOKIES --- */

#cookie-banner {
    /* Posicionamiento y visibilidad */
    position: fixed; 
    bottom: 0; 
    left: 0;
    width: 100%;
    
    /* Estética */
    background-color: rgba(0, 0, 0, 0.9); 
    color: white; 
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5); 
    z-index: 9999; 
    
    /* Animación: Inicialmente oculto fuera de la pantalla */
    transition: transform 0.4s ease-in-out; 
    transform: translateY(100%); 
}

#cookie-banner.visible {
    /* Muestra el banner deslizando hacia arriba */
    transform: translateY(0); 
}

#cookie-banner p {
    margin-bottom: 10px;
    font-size: 15px;
}

/* Estilos de botones y enlaces */
.cookie-buttons button, .cookie-buttons a {
    margin: 5px;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: background-color 0.2s;
}

#accept-cookies {
    background-color: #4CAF50; /* Verde para Aceptar */
    color: white;
}

#accept-cookies:hover {
    background-color: #45a049;
}

#reject-cookies {
    background-color: #f44336; /* Rojo para Rechazar */
    color: white;
}

#reject-cookies:hover {
    background-color: #da342c;
}

.cookie-buttons a {
    background: none;
    color: #00bcd4; /* Azul para el enlace */
    border: 1px solid #00bcd4;
    padding: 9px 17px; /* Ajuste para coincidir con el alto del botón */
}

.cookie-buttons a:hover {
    background-color: #00bcd4;
    color: white;
}