/* ---
Design Refresh: Conversion-Focused & Modern with AVSEC Logo Color
Consolidated CSS for all pages (Index, Curso, Contacto, FAQ, Blog)
--- */

/* --- 1. Global Styles & Variables --- */
:root {
    --avsec-green: #6CBE45;
    --avsec-green-dark: #579C3A;
    --blue-text: #2c3e50;
    --gray-text: #5d6d7e;
    --light-bg: #f8fcf9;
    --white: #ffffff;
    --border-light: #e0e6e8;
    --footer-bg: #1d2d35;
    --footer-text: #a0aec0;
    --footer-border: #3a4a53;
    --shadow-subtle: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Lexend', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--gray-text);
    background-color: var(--light-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Specific background override for certain pages if needed (e.g. FAQ originally had white) */
body.white-bg {
    background-color: var(--white);
}

body.nav-open {
    overflow: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 5rem 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--blue-text); font-weight: 800; letter-spacing: -0.03em; }
h1 { 
    font-size: 3.8rem; 
    line-height: 1.1; 
}
h2 { font-size: 2.8rem; line-height: 1.2; }
h3 { font-size: 1.8rem; line-height: 1.3; }
h4 { font-size: 1.2rem; line-height: 1.4; }


/* --- 2. Buttons & Interactive Elements --- */
.btn { text-decoration: none; padding: 16px 32px; border-radius: 8px; font-weight: 700; transition: all 0.3s ease-in-out; display: inline-block; border: none; cursor: pointer; box-shadow: 0 4px 10px var(--shadow-subtle); }
.btn-primary { background-color: var(--avsec-green); color: var(--white) !important; }
.btn-primary:hover { background-color: var(--avsec-green-dark); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(108, 190, 69, 0.3); }
.btn-secondary { background-color: transparent; color: var(--avsec-green); border: 2px solid var(--avsec-green); box-shadow: none; padding: 14px 30px; }
.btn-secondary:hover { background-color: var(--avsec-green); color: var(--white) !important; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(108, 190, 69, 0.3); }

.badge { display: inline-block; background: linear-gradient(45deg, var(--avsec-green) 0%, var(--avsec-green-dark) 100%); color: var(--white); padding: 8px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: 0.5px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.highlight { color: var(--avsec-green); }
.full-width { width: 100%; text-align: center; }
.subtitle-text { max-width: 700px; margin: 0 auto; color: var(--gray-text); font-size: 1.1rem; }

/* --- 3. Header & Navigation --- */
.main-header { background: var(--white); padding: 1.2rem 0; border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 50px; }
.main-nav ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 2.5rem; align-items: center;}
.main-nav a { text-decoration: none; color: var(--blue-text); font-weight: 500; position: relative; padding-bottom: 0.5rem; transition: color 0.3s ease; }
.main-nav a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background-color: var(--avsec-green); border-radius: 2px; transition: width 0.3s ease; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--avsec-green); }
.nav-button-mobile { display: none; }

/* --- 4. Hero Section (Index/Curso) --- */
.hero-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    padding-top: 4rem;
    padding-bottom: 8rem;
}
.hero-container { display: flex; align-items: center; gap: 4rem; }
.hero-text { flex: 1; text-align: left; }
.hero-text .subtitle { font-size: 1.3rem; color: var(--gray-text); margin-bottom: 2.5rem; max-width: 90%; }

/* Default Hero Features (Index) */
.hero-features { display: flex; gap: 1.5rem; margin-bottom: 3rem; font-weight: 600; font-size: 1.1rem; color: var(--blue-text); }
/* Specific Hero Features (Course Page) - Uses helper class .grid-layout */
.hero-features.grid-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 3rem; margin-bottom: 0; }


.hero-cta { display: flex; align-items: center; gap: 2.5rem; }
.price-info .price { font-size: 2.5rem; font-weight: 800; color: var(--blue-text); }
.price-info .tax { display: block; font-size: 0.9rem; color: var(--gray-text); }
.hero-image { flex: 1; text-align: center; }
.hero-image img { width: 100%; display: block; max-width: 450px; margin: auto; (0 20px 40px rgba(0,0,0,0.15)); transition: transform 0.3s ease; }
/* Specific Hero Image Size (Course Page) - Uses helper class .large-image */
.hero-image img.large-image { max-width: 650px; }

.hero-image img:hover { transform: translateY(-5px); }

/* --- 5. Logos Section (Carousel) --- */
.logos-section { 
    background: var(--white); 
    padding: 3rem 0; 
    border-top: 1px solid var(--border-light); 
    border-bottom: 1px solid var(--border-light);
}
.logo-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}
.logo-track {
    display: flex;
}
.logo-carousel-container:hover .logo-track {
    animation-play-state: paused;
}
.logo-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-slide img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.logo-slide img:hover {
    transform: scale(1.05);
}

/* --- ESTILOS ESPECÍFICOS: CARRUSEL SUPERIOR (OFICIAL) --- */
.official-logo-track {
    --logo-width: 220px;
    --logo-count: 4;
    --animation-duration: 25s;
    /* Width calculation assumes JS duplicates the content */
    width: calc(var(--logo-width) * var(--logo-count) * 2);
    animation: scroll-official var(--animation-duration) linear infinite;
}
.official-logo-track .logo-slide {
    width: var(--logo-width);
    padding: 0 20px;
}
.official-logo-track .logo-slide img {
     max-height: 100px;
}
@keyframes scroll-official {
    from { transform: translateX(0); }
    /* Translate by half the total width (since content is duplicated) */
    to { transform: translateX(calc(var(--logo-width) * var(--logo-count) * -1)); }
}

/* --- 6. Video Info Section & General Video Styles --- */
.info-section { background: var(--light-bg); }
.info-container { display: flex; align-items: center; gap: 4rem; }

/* Estilos generales para contenedores de video (Index y Curso) */
.info-video {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 15px 30px -10px var(--shadow-medium);
    position: relative;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}

/* Específico para el index donde el video tiene flex: 1.2 */
.info-container .info-video {
    flex: 1.2;
}

.info-video:hover { transform: translateY(-5px); }

.video-poster { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-thumbnail { width: 100%; height: 100%; display: block; object-fit: cover; }
.play-button {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 5rem;
    color: rgba(255, 255, 255, 0.9); background-color: rgba(0, 0, 0, 0.5); border-radius: 50%;
    width: 100px; height: 100px; display: flex; align-items: center; justify-content: center;
    transition: background-color 0.3s ease;
}
.info-video:hover .play-button { background-color: rgba(0, 0, 0, 0.7); }
.info-video.playing .video-poster { display: none; }
#youtube-player { width: 100%; height: 100%; border: none; }

.info-content { flex: 1; }
.info-content > p { font-size: 1.1rem; margin-bottom: 2rem; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2.5rem 0; text-align: center; }
.info-cards .card { background: var(--white); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border-light); transition: all 0.3s ease; }
.info-cards .card:hover { box-shadow: 0 8px 20px var(--shadow-subtle); transform: translateY(-5px); }
.info-cards h3 { margin: 0 0 0.5rem; font-size: 1.2rem; color: var(--blue-text); }
.info-cards p { margin: 0; font-size: 0.95rem; line-height: 1.4; }

/* --- 7. Features Grid Section --- */
.features-grid-section { background-color: var(--white); }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { margin: 0 auto 1rem; max-width: 700px; }
.title-underline { width: 80px; height: 4px; background: var(--avsec-green); margin: 0 auto; border-radius: 2px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.feature-card { background: var(--light-bg); padding: 2.5rem; border-radius: 16px; transition: all 0.3s ease; border: 1px solid var(--border-light); text-align: center; }
.feature-card:hover { transform: translateY(-8px); background: var(--white); box-shadow: 0 10px 30px var(--shadow-subtle); }
.feature-card h3 { margin-top: 1.5rem; margin-bottom: 0.8rem; font-size: 1.5rem; }
.feature-card p { font-size: 1rem; }
.feature-card i { font-size: 48px; color: var(--avsec-green); display: inline-block; }

/* --- 8. Corporate Plans --- */
.corporate-plans-section { background-color: var(--light-bg); }
.pricing-tiers { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.tier { 
    background: var(--white); padding: 2.5rem 2rem; border-radius: 16px; border: 2px solid var(--border-light); 
    text-align: center; display: flex; flex-direction: column; transition: all 0.3s ease; 
    text-decoration: none; color: inherit;
}
.tier:hover { transform: translateY(-10px); box-shadow: 0 15px 30px var(--shadow-subtle); border-color: var(--avsec-green); }
.tier h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; color: var(--blue-text); }
.tier-price { font-size: 2.5rem; font-weight: 800; color: var(--blue-text); margin-bottom: 0.5rem; }
.tier-price span { font-size: 1rem; font-weight: 500; color: var(--gray-text); }
.tier .btn { display: none; }

/* --- 9. Two Columns Sections (General) --- */
.two-cols-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

/* Estilos para las secciones con fondo blanco y sombra (Index y Curso) */
.course-necessity-section .two-cols-grid,
.course-content-section .two-cols-grid { 
    margin-bottom: 3rem; background: var(--white); padding: 4rem; border-radius: 24px; box-shadow: 0 10px 30px var(--shadow-subtle); 
}

.two-cols-grid:last-child { margin-bottom: 0; }
.two-cols-grid.reverse .col-text { order: 2; }
.two-cols-grid.reverse .col-image { order: 1; }
.col-text h2 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1.5rem; }
.col-text p, .col-text ul { font-size: 1.1rem; }
.col-image img { width: 100%; border-radius: 16px; box-shadow: 0 15px 30px var(--shadow-medium); display: block; }

/* Estilos específicos de la página del curso */
.personnel-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}
.personnel-tag {
    background-color: var(--avsec-green);
    color: var(--white);
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.personnel-tag:hover {
    background-color: var(--avsec-green-dark);
    transform: translateY(-2px);
}

/* Gestión de imágenes móviles/desktop (Página Curso) */
.col-image-mobile { display: none; }

/* Estilos para la lista de ventajas (Página Curso) */
.benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.benefits-list li {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    font-weight: 500;
    color: var(--blue-text);
}
.benefits-list li i {
    font-size: 1.5rem;
    color: var(--avsec-green);
    margin-right: 1rem;
}


/* --- 10. Final CTA Section --- */
.final-cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--avsec-green) 0%, var(--avsec-green-dark) 100%);
    color: var(--white);
}
.final-cta-section .two-cols-grid { box-shadow: none; padding: 0; background: none; }

/* Ajuste específico para la página del curso (Layout Text -> Image) - Uses helper class .course-layout */
.final-cta-section .two-cols-grid.course-layout {
    grid-template-areas: "text image";
}
.final-cta-section .two-cols-grid.course-layout .col-text { grid-area: text; }
.final-cta-section .two-cols-grid.course-layout .col-image { grid-area: image; }


.final-cta-section .col-text h2 { color: var(--white); font-size: 3rem; margin-bottom: 1.5rem; }
.final-cta-section .col-text p { color: rgba(255,255,255,0.9); font-size: 1.2rem; margin-bottom: 2.5rem; }
.final-cta-section .highlight-white { color: var(--white) !important; font-weight: bold; }
.final-cta-section .btn-primary { background-color: var(--white); color: var(--avsec-green) !important; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.final-cta-section .btn-primary:hover { background-color: #f0f0f0; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }


/* --- 11. Testimonial & Trusted Sections (Index) --- */
.testimonial-section { background-color: var(--light-bg); }
.testimonial-card { display: flex; background: var(--white); border-radius: 16px; overflow: hidden; align-items: center; border: 1px solid var(--border-light); box-shadow: 0 10px 30px var(--shadow-subtle); }
.testimonial-card img { width: 40%; object-fit: cover; align-self: stretch; }
.testimonial-content { padding: 3rem; }
.testimonial-content h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.testimonial-content blockquote { font-size: 1.4rem; margin: 0 0 1.5rem; border-left: 4px solid var(--avsec-green); padding-left: 1.5rem; font-style: italic; color: var(--blue-text); }
.testimonial-content cite { font-style: normal; font-size: 1.1rem; color: var(--gray-text); }

.trusted-by-section { padding-top: 6rem; background: var(--white); }
.trusted-by-section h2 { margin-bottom: 1rem; text-align: center; }
.trusted-by-section .subtitle-text { margin-bottom: 3rem; }

/* --- ESTILOS ESPECÍFICOS: CARRUSEL INFERIOR (EMPRESAS) --- */
.trusted-logo-track {
    --logo-width: 220px;
    --logo-count: 5;
    --animation-duration: 35s;
    width: calc(var(--logo-width) * var(--logo-count) * 2);
    animation: scroll-trusted var(--animation-duration) linear infinite;
}
.trusted-logo-track .logo-slide {
    width: var(--logo-width);
    padding: 0 25px;
}
.trusted-logo-track .logo-slide img {
     max-height: 120px;
}
@keyframes scroll-trusted {
    from { transform: translateX(0); }
    to { transform: translateX(calc(var(--logo-width) * var(--logo-count) * -1)); }
}

/* --- 12. Footer --- */
.main-footer { background-color: var(--footer-bg); color: var(--footer-text); padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-brand-text { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--white); text-decoration: none; margin-bottom: 1rem; display: inline-block; }
.footer-col h3 { margin-top: 0; font-size: 1.1rem; color: var(--white); font-weight: 700; margin-bottom: 1.5rem; }
.footer-col p, .footer-col a { color: var(--footer-text); text-decoration: none; margin-bottom: 0.75rem; display: block; transition: color 0.2s ease; font-size: 0.95rem; }
.footer-col a:hover { color: var(--white); }
.airports-section { border-top: 1px solid var(--footer-border); border-bottom: 1px solid var(--footer-border); padding: 2rem 0; margin-bottom: 3rem; text-align: center; }
.airports-section h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 1.5rem; }
.airports-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.airports-list a { color: var(--footer-text); text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; }
.airports-list a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--footer-text); }
.legal-links a { color: var(--footer-text); text-decoration: none; transition: color 0.2s ease; margin-left: 1.5rem; }
.legal-links a:hover { color: var(--white); }
.payment-logos { display: flex; align-items: center; gap: 1rem; }
.payment-logos img { height: 24px; }
.payment-logos img[alt="Bizum"] { height: 20px; }


/* --- 13. Responsive Design (General) --- */
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-tiers { grid-template-columns: 1fr; gap: 1.5rem; }
        /* Blog Layout: El featured post ocupa todo el ancho, los demás se reajustan */
    .blog-layout { 
        grid-template-columns: repeat(2, 1fr); /* 2 columnas para tarjetas en tablets */
        grid-auto-rows: minmax(200px, auto); /* Ajustar altura mínima */
    }
    .featured-post { 
        grid-column: 1 / -1; /* Ocupa de la primera a la última columna (todo el ancho) */
        grid-row: 1 / span 1; /* Ocupa solo 1 fila */
        flex-direction: row; /* La imagen y el contenido se ponen uno al lado del otro */
    }
    .featured-post-image { 
        width: 40%; 
        height: 100%; /* Asegura que la imagen ocupe bien el espacio vertical */
    }
    .featured-post-content { 
        width: 60%; 
        padding: 1.5rem 2rem; /* Reducir padding */
    }
    .featured-post-title {
        font-size: 1.6rem; /* Ajustar tamaño de título */
    }
}
@media (max-width: 992px) {
    .btn-desktop-only { display: none; }
    .nav-button-mobile { display: block; }
    .hero-container, .info-container { flex-direction: column; text-align: center; }
    
    .testimonial-card, .two-cols-grid { text-align: center; }
    .two-cols-grid { grid-template-columns: 1fr; gap: 3rem; }
    
    /* Resetear orden en Two Columns Grid */
    .two-cols-grid.reverse .col-text, 
    .two-cols-grid.reverse .col-image { order: 0; }

    /* Gestión de imágenes móviles/desktop (Página Curso) */
    .col-image-desktop { display: none; }
    .col-image-mobile { display: block; margin: 1.5rem auto; }

    /* Ajustes Info Container (Index) */
    .info-container .info-content { order: 1; }
    .info-container .info-video { order: 2; }
    .info-content .btn.full-width { width: auto; display: inline-block; }
    
    /* Ajustes Hero */
    .hero-features, .hero-cta { justify-content: center; }
    .hero-features.grid-layout { justify-items: center; }
    .hero-text { text-align: center; }
    .hero-text .subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
    
    /* Ajustes Testimonial */
    .testimonial-card { flex-direction: column-reverse; }
    .testimonial-card img { width: 100%; height: 250px; object-fit: cover; object-position: center top; }
    .testimonial-content blockquote { border-left: none; padding-left: 0; }
    
    /* Ajustes Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column-reverse; gap: 1.5rem; }

    /* Ajuste específico para el CTA final en la página del curso (Mobile) */
    .final-cta-section .two-cols-grid.course-layout {
        grid-template-areas: "image" "text";
        text-align: center;
    }
    /* Ajuste general para CTA final (FAQ, Index) donde la imagen va primero en móvil */
    .final-cta-section .two-cols-grid:not(.course-layout) .col-image {
        order: -1;
    }
    
    /* Contact page responsive */
     .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
        /* Blog Layout: Todo en una sola columna para móviles */
    .blog-layout { 
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 1.5rem; /* Ajustar el espacio entre elementos */
        padding: 2rem 0; /* Reducir padding de la sección */
    }
    .featured-post { 
        flex-direction: column; /* La imagen y el contenido se ponen uno encima del otro */
    }
    .featured-post-image { 
        width: 100%; 
        height: 250px; /* Ajustar altura para móvil */
    }
    .featured-post-content { 
        width: 100%; 
        padding: 1.5rem; /* Ajustar padding */
    }
    .featured-post-title {
        font-size: 1.8rem; /* Ajustar tamaño del título */
    }
    .featured-post-excerpt {
        font-size: 1rem; /* Ajustar tamaño del extracto */
    }
    section { padding: 3rem 0; }
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2.2rem !important; }
    h3 { font-size: 1.6rem !important; }
    .hero-cta { flex-direction: column; gap: 1.5rem; }
    .hero-cta .price-info { text-align: center; }
    .info-container { gap: 2rem; }
    .info-cards { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column-reverse; gap: 1rem; }
    
    /* Padding reducido en secciones Two Columns */
    .course-necessity-section .two-cols-grid,
    .course-content-section .two-cols-grid { padding: 2.5rem; }
    
    .final-cta-section { padding: 3rem 24px; }
    .final-cta-section .col-text h2 { font-size: 2.5rem; }
    .final-cta-section .col-text p { font-size: 1rem; }
    .payment-logos { justify-content: center; margin-top: 1rem; }
    
    /* Contact page responsive */
    .contact-info-area h2 { font-size: 2.2rem; text-align: center;}
    .contact-info-area .subtitle-text { text-align: center; margin: 0 auto 2.5rem auto; }
    
    /* FAQ page responsive */
    .faq-intro h1 { font-size: 2.2rem; }
    .faq-intro p { font-size: 1.1rem; }

    /* Blog page responsive */
    .article-container { margin: 0; border-radius: 0; }
    .article-header { padding: 2rem 1.5rem 1rem; }
    .article-title { font-size: 2rem; }
    .article-featured-image { height: 250px; }
    .article-content { padding: 1.5rem; font-size: 1rem; }
    .author-box { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.9rem !important; }
    .hero-section { padding-top: 4rem; padding-bottom: 4rem; }
    
    /* Padding aún más reducido en secciones Two Columns */
    .course-necessity-section .two-cols-grid,
    .course-content-section .two-cols-grid { padding: 2rem 1.5rem; }
    
    .final-cta-section { padding: 2.5rem 24px; }
    .final-cta-section .col-text h2 { font-size: 2rem !important; line-height: 1.2; }
}

/* --- 14. Estilos del Menú Móvil (Hamburguesa) --- */
.nav-toggle { display: none; position: relative; z-index: 9999; background: transparent; border: 0; cursor: pointer; padding: 0.5rem; }
.hamburger { display: block; position: relative; width: 28px; height: 3px; background: var(--blue-text); border-radius: 2px; transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out; }
.hamburger::before,
.hamburger::after { content: ''; position: absolute; left: 0; width: 100%; height: 3px; background: var(--blue-text); border-radius: 2px; transition: transform 0.3s ease-in-out, top 0.3s ease-in-out; }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }
.nav-open .hamburger { background: transparent; }
.nav-open .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-open .hamburger::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 992px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; top: 0; right: 0; height: 100vh; width: 70%; max-width: 350px;
        background: var(--white); box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(100%); transition: transform 0.35s ease-in-out; z-index: 999;
    }
    .main-nav ul { flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; height: 100%; padding: 0; }
    .main-nav a { font-size: 1.2rem; }
    .nav-button-mobile .btn-secondary { color: var(--white) !important; background-color: var(--avsec-green); border-color: var(--avsec-green); padding: 1rem 2rem; width: 100%; }
    .nav-open .main-nav { transform: translateX(0); }
}

/* --- 15. Cookie Consent Banner (Versión Oscura) --- */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--footer-bg, #1d2d35); 
    z-index: 2000;
    padding: 24px;
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.2);
    display: none; /* Oculto por defecto, se mostrará con JS */
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: transform 0.5s ease-in-out;
}

.cookie-consent-banner p {
    margin: 0;
    color: var(--footer-text, #a0aec0);
    font-size: 0.95rem;
    flex-grow: 1;
    max-width: 600px;
}

.cookie-consent-banner p a {
    color: var(--white, #ffffff); 
    text-decoration: underline;
    font-weight: 500;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-buttons button {
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-body);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#cookie-accept-btn {
    background-color: var(--avsec-green, #6CBE45);
    color: var(--white, #ffffff);
}
#cookie-accept-btn:hover {
    background-color: var(--avsec-green-dark, #579C3A);
    transform: translateY(-2px);
}

#cookie-reject-btn,
#cookie-settings-btn {
    background-color: #3a4a53;
    color: var(--white, #ffffff);
}
#cookie-reject-btn:hover,
#cookie-settings-btn:hover {
    background-color: #4f646f;
}

/* Responsive (Cookies) */
@media (max-width: 992px) {
    .cookie-consent-banner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-buttons {
        margin-top: 16px;
        width: 100%;
        justify-content: center;
    }
    .cookie-buttons button {
        flex-grow: 1;
    }
}

/* --- 16. Estilos para la Página de Contacto (Consolidado) --- */
.contact-page-section { background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}
.contact-info-area h2 {
    margin-top: 0;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}
.contact-info-area .subtitle-text {
    margin: 0 0 2.5rem 0;
    text-align: left;
}

.contact-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 15px var(--shadow-subtle);
    border: 1px solid var(--border-light);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    text-decoration: none;
    color: var(--gray-text);
    transition: all 0.3s ease;
    position: relative;
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--avsec-green);
}
.contact-card .icon { 
    font-size: 2.5rem; 
    color: var(--avsec-green);
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}
.contact-card-content h4 { 
    margin: 0 0 0.25rem 0; 
    color: var(--blue-text);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.contact-card-content p { 
    margin: 0; 
    font-size: 0.95rem; 
    line-height: 1.5;
}

.badge-recommended {
    background-color: var(--avsec-green-dark);
    color: white;
    padding: 3px 8px;
    font-size: 0.7rem;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Styles */
.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.07);
}
.contact-form-wrapper h3 { 
    margin-top: 0; 
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { 
    display: block; 
    font-weight: 500; 
    color: var(--blue-text); 
    margin-bottom: 0.6rem; 
    font-size: 0.9rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: var(--light-bg);
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--avsec-green);
    box-shadow: 0 0 0 3px rgba(108, 190, 69, 0.2);
    background-color: var(--white);
}
.form-group textarea { 
    resize: vertical; 
    min-height: 120px; 
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.form-group-checkbox input[type="checkbox"] {
    margin-top: 5px;
    width: 1.1em;
    height: 1.1em;
    accent-color: var(--avsec-green);
}
.form-group-checkbox label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-text);
    font-weight: 400;
}
.form-group-checkbox label a {
    color: var(--avsec-green);
    text-decoration: none;
}
.form-group-checkbox label a:hover {
    text-decoration: underline;
}

/* Status Message Styles */
.form-success-message, .form-error-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: 500;
    border: 1px solid transparent;
    text-align: center;
}
.form-success-message {
    background-color: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}
.form-error-message {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

/* Responsive Contacto */
@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .contact-info-area h2 { font-size: 2.2rem; text-align: center;}
    .contact-info-area .subtitle-text { text-align: center; margin: 0 auto 2.5rem auto; }
}

/* --- 17. Estilos para FAQ (Consolidado) --- */
.faq-section { background-color: var(--light-bg); padding-top: 3rem; padding-bottom: 5rem;}
.faq-intro { text-align: center; margin-bottom: 4rem; }
.faq-intro h1 { font-size: 3rem; }
.faq-intro p { font-size: 1.2rem; max-width: 800px; margin: 1rem auto 0; }
.faq-container { max-width: 900px; margin: 0 auto; }
.faq-container h2 { margin-top: 3rem; margin-bottom: 2rem; }

details {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}
details:hover {
    box-shadow: 0 4px 15px var(--shadow-subtle);
}
details[open] {
     border-color: var(--avsec-green);
}
summary {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--blue-text);
    padding: 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--avsec-green);
    transition: transform 0.2s ease-in-out;
}
details[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}
details > div {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--border-light);
    line-height: 1.7;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-intro h1 { font-size: 2.2rem; }
    .faq-intro p { font-size: 1.1rem; }
}

/* --- ESTILOS PARA BLOG (PÁGINA PRINCIPAL) --- */
.blog-header { text-align: center; padding: 4rem 0; background-color: var(--white); }
.blog-header h1 { font-size: 3.2rem; margin: 0 0 1rem; color: var(--blue-text); }
.blog-header p { font-size: 1.2rem; max-width: 650px; margin: 0 auto; color: var(--gray-text); }

.blog-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 2rem;
    padding: 4rem 0;
}

.featured-post {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 30px var(--shadow-medium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--gray-text);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.featured-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
}
.featured-post-image { width: 100%; height: 280px; object-fit: cover; }
.featured-post-content { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.featured-post-date { font-size: 0.9rem; color: var(--avsec-green); font-weight: 700; margin-bottom: 0.75rem; text-transform: uppercase; }
.featured-post-title { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--blue-text); line-height: 1.25; margin: 0 0 1rem; }
.featured-post-excerpt { font-size: 1.05rem; line-height: 1.7; flex-grow: 1; }
.featured-post-readmore { color: var(--avsec-green-dark); font-weight: 700; margin-top: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }

.blog-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 3px 10px var(--shadow-subtle); text-decoration: none; color: var(--gray-text); display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px var(--shadow-medium); }
.blog-card-image { width: 100%; height: 160px; object-fit: cover; }
.blog-card-content { padding: 1.25rem; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card-date { font-size: 0.8rem; color: var(--avsec-green); font-weight: 700; margin-bottom: 0.4rem; }
.blog-card-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--blue-text); line-height: 1.3; margin: 0 0 0.6rem; }
.blog-card-excerpt { font-size: 0.9rem; line-height: 1.5; flex-grow: 1; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-readmore { color: var(--avsec-green-dark); font-weight: 700; margin-top: auto; display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }

.pagination { display: flex; justify-content: center; gap: 1rem; padding: 3rem 0; }
.pagination a { text-decoration: none; color: var(--avsec-green); border: 2px solid var(--avsec-green); padding: 10px 18px; border-radius: 8px; font-weight: 700; transition: all 0.3s ease; }
.pagination a:hover, .pagination a.active { background-color: var(--avsec-green); color: var(--white); }
.pagination a.disabled { color: var(--gray-text); border-color: var(--border-light); cursor: not-allowed; opacity: 0.6; background-color: transparent; }


/* --- ESTILOS PARA BLOG (ARTÍCULO INDIVIDUAL) --- */
.article-container { max-width: 850px; margin: 4rem auto; background-color: var(--white); box-shadow: 0 10px 40px var(--shadow-subtle); border-radius: 16px; overflow: hidden; }
.article-header { padding: 3rem 3rem 2rem; text-align: center; }
.article-title { font-size: 2.8rem; line-height: 1.2; margin: 0 0 1rem; }
.article-meta { color: var(--gray-text); font-weight: 500; }
.article-featured-image { width: 100%; height: 400px; object-fit: cover; }
.article-content { padding: 2.5rem 3rem 3rem; font-size: 1.1rem; line-height: 1.8; }
.article-content h3 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.article-content h4 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 0.5rem; color: var(--blue-text); }
.article-content a { color: var(--avsec-green-dark); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--avsec-green); transition: all 0.2s ease; }
.article-content a:hover { background-color: #f0fdf4; border-bottom-color: var(--avsec-green-dark); }
.article-content ul { list-style: none; padding-left: 0; }
.article-content ul li { padding-left: 1.5rem; position: relative; margin-bottom: 0.75rem; }
.article-content ul li::before { content: '✓'; color: var(--avsec-green); position: absolute; left: 0; font-weight: 700; }
.promo-box { background-color: var(--light-bg); border-left: 4px solid var(--avsec-green); border-radius: 8px; padding: 1.5rem 2rem; margin: 2rem 0; }
.promo-box h4 { font-size: 1.4rem; margin: 0 0 0.5rem; color: var(--blue-text); }
.promo-box p { margin: 0 0 1rem; font-size: 1rem; }
.promo-box .btn { text-decoration: none; padding: 12px 28px; border-radius: 8px; font-weight: 700; display: inline-block; background-color: var(--avsec-green); color: var(--white) !important; border-bottom: none; }
.promo-box .btn:hover { background-color: var(--avsec-green-dark); }
.author-box { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-light); display: flex; align-items: center; gap: 1.5rem; }
.author-avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-name { font-family: var(--font-heading); font-weight: 700; color: var(--blue-text); font-size: 1.1rem; margin: 0; }
.author-title { font-size: 0.95rem; color: var(--gray-text); margin: 0.25rem 0 0; }
.back-to-blog { display: inline-block; margin-top: 3rem; font-weight: 700; color: var(--avsec-green-dark); text-decoration: none; }
.back-to-blog:hover { text-decoration: underline; }

/* --- SECCIÓN PODCAST --- */
.podcast-section { background: var(--white); border-top: 1px solid var(--border-light); padding: 4rem 0; }
.podcast-title { font-size: 2rem; margin: 0 0 0.75rem 0; }
.podcast-subtitle { font-size: 1.05rem; color: var(--gray-text); margin: 0 0 2rem 0; max-width: 700px; }
.podcast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.platform-card { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; color: var(--blue-text); background: var(--light-bg); border: 1px solid var(--border-light); border-radius: 12px; padding: 1rem 1.25rem; box-shadow: 0 4px 10px var(--shadow-subtle); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.platform-card i { font-size: 1.5rem; line-height: 1; color: var(--avsec-green-dark); }
.platform-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px var(--shadow-medium); border-color: var(--avsec-green); }

}

/* === Inline styles migrated on 2025-09-12 13:35 === */

/* From blog/index.php */
/* --- ESTILOS GENERALES --- */
        :root {
            --avsec-green: #6CBE45;
            --avsec-green-dark: #579C3A;
            --blue-text: #2c3e50;
            --gray-text: #5d6d7e;
            --light-bg: #f8fcf9;
            --white: #ffffff;
            --border-light: #e0e6e8;
            --footer-bg: #1d2d35;
            --footer-text: #a0aec0;
            --footer-border: #3a4a53;
            --shadow-subtle: rgba(0, 0, 0, 0.05);
            --shadow-medium: rgba(0, 0, 0, 0.1);
            --font-heading: 'Plus Jakarta Sans', sans-serif;
            --font-body: 'Lexend', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }
        *, *::before, *::after { box-sizing: border-box; }
        body { margin: 0; font-family: var(--font-body); color: var(--gray-text); background-color: var(--light-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
        body.nav-open { overflow: hidden; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
        h1, h2, h3 { font-family: var(--font-heading); color: var(--blue-text); font-weight: 800; letter-spacing: -0.03em; }
        .btn { text-decoration: none; padding: 16px 32px; border-radius: 8px; font-weight: 700; transition: all 0.3s ease-in-out; display: inline-block; border: none; cursor: pointer; box-shadow: 0 4px 10px var(--shadow-subtle); text-align:center; }
        .btn-primary { background-color: var(--avsec-green); color: var(--white) !important; }
        .btn-primary:hover { background-color: var(--avsec-green-dark); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(108, 190, 69, 0.3); }
        .btn-secondary { background-color: transparent; color: var(--avsec-green); border: 2px solid var(--avsec-green); box-shadow: none; padding: 14px 30px; }
        .btn-secondary:hover { background-color: var(--avsec-green); color: var(--white) !important; }
        
        /* --- HEADER --- */
        .main-header { background: var(--white); padding: 1.2rem 0; border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
        .main-header .container { display: flex; justify-content: space-between; align-items: center; }
        .logo img { height: 50px; }
        .main-nav ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 2.5rem; align-items: center;}
        .main-nav a { text-decoration: none; color: var(--blue-text); font-weight: 500; position: relative; padding-bottom: 0.5rem; transition: color 0.3s ease; }
        .main-nav a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background-color: var(--avsec-green); border-radius: 2px; transition: width 0.3s ease; }
        .main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
        .main-nav a.active { color: var(--avsec-green); }
        .nav-button-mobile { display: none; }

        /* --- ESTILOS DEL BLOG REDISEÑADO --- */
        .blog-hero { background-color: var(--white); text-align: center; padding: 3rem 0; border-bottom: 1px solid var(--border-light); }
        .blog-hero h1 { font-size: 2.8rem; margin-bottom: 0.5rem; }
        .blog-hero p { font-size: 1.1rem; color: var(--gray-text); max-width: 600px; margin: 0 auto; }
        .blog-main-container { padding: 3rem 24px; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
        .post-card { background: var(--white); border-radius: 16px; box-shadow: 0 4px 15px var(--shadow-subtle); text-decoration: none; color: var(--gray-text); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
        .post-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px var(--shadow-medium); }
        .card-image-container { width: 100%; aspect-ratio: 16 / 9; background-color: var(--light-bg); }
        .card-image { width: 100%; height: 100%; object-fit: cover; }
        .card-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
        .card-date { font-size: 0.8rem; color: var(--avsec-green); font-weight: 700; margin-bottom: 0.5rem; text-transform: uppercase; }
        .card-title { font-family: var(--font-heading); color: var(--blue-text); line-height: 1.3; margin: 0 0 0.75rem 0; font-size: 1.4rem; }
        .card-excerpt { font-size: 0.95rem; flex-grow: 1; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
        .card-readmore { color: var(--avsec-green-dark); font-weight: 700; margin-top: auto; display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
        .featured-card { margin-bottom: 1rem; }
        .featured-card .card-title { font-size: 2rem; }
        .featured-card .card-excerpt { -webkit-line-clamp: 4; }
        .posts-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
        .blog-sidebar { position: sticky; top: 120px; align-self: start; }
        .sidebar-widget { background: var(--white); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 4px 15px var(--shadow-subtle); }
        .widget-title { font-size: 1.2rem; color: var(--blue-text); margin: 0 0 1rem 0; padding-bottom: 0.75rem; border-bottom: 2px solid var(--avsec-green); }
        .cta-widget { background: linear-gradient(135deg, var(--blue-text), var(--footer-bg)); color: var(--white); text-align: center; }
        .cta-widget h4 { color: var(--white); }
        .cta-widget p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 1.5rem; }
        .cta-widget .btn { width: 100%; }

        /* --- SECCIÓN PODCAST --- */
        .podcast-section { background: var(--white); border-top: 1px solid var(--border-light); padding: 4rem 0; }
        .podcast-title { font-size: 2rem; margin: 0 0 0.75rem 0; text-align: center; }
        .podcast-subtitle { font-size: 1.05rem; color: var(--gray-text); margin: 0 auto 2.5rem auto; max-width: 700px; text-align: center;}
        .podcast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 800px; margin: 0 auto; }
        .platform-card { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; color: var(--blue-text); background: var(--light-bg); border: 1px solid var(--border-light); border-radius: 12px; padding: 1rem 1.25rem; box-shadow: 0 4px 10px var(--shadow-subtle); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
        .platform-card i { font-size: 1.5rem; line-height: 1; color: var(--avsec-green-dark); }
        .platform-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px var(--shadow-medium); border-color: var(--avsec-green); }

        /* --- FOOTER --- */
        .main-footer { background-color: var(--footer-bg); color: var(--footer-text); padding: 5rem 0 2rem; }
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
        .footer-brand-text { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--white); text-decoration: none; margin-bottom: 1rem; display: inline-block; }
        .footer-col h3 { margin-top: 0; font-size: 1.1rem; color: var(--white); font-weight: 700; margin-bottom: 1.5rem; }
        .footer-col p, .footer-col a { color: var(--footer-text); text-decoration: none; margin-bottom: 0.75rem; display: block; transition: color 0.2s ease; font-size: 0.95rem; }
        .footer-col a:hover { color: var(--white); }
        .airports-section { border-top: 1px solid var(--footer-border); border-bottom: 1px solid var(--footer-border); padding: 2rem 0; margin-bottom: 3rem; text-align: center; }
        .airports-section h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 1.5rem; }
        .airports-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
        .airports-list a { color: var(--footer-text); text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; }
        .airports-list a:hover { color: var(--white); }
        .footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--footer-text); }
        .legal-links a { color: var(--footer-text); text-decoration: none; transition: color 0.2s ease; margin-left: 1.5rem; }
        .legal-links a:hover { color: var(--white); }
        .payment-logos { display: flex; align-items: center; gap: 1rem; }
        .payment-logos img { height: 24px; }
        .payment-logos img[alt="Bizum"] { height: 20px; }

        /* --- MENÚ MÓVIL --- */
        .nav-toggle { display: none; position: relative; z-index: 9999; background: transparent; border: 0; cursor: pointer; padding: 0.5rem; }
        .hamburger { display: block; position: relative; width: 28px; height: 3px; background: var(--blue-text); border-radius: 2px; transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out; }
        .hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; width: 100%; height: 3px; background: var(--blue-text); border-radius: 2px; transition: transform 0.3s ease-in-out, top 0.3s ease-in-out; }
        .hamburger::before { top: -8px; }
        .hamburger::after { top: 8px; }
        .nav-open .hamburger { background: transparent; }
        .nav-open .hamburger::before { top: 0; transform: rotate(45deg); }
        .nav-open .hamburger::after { top: 0; transform: rotate(-45deg); }
        
        /* --- RESPONSIVE --- */
        @media (min-width: 768px) {
            .blog-main-container { grid-template-columns: 2fr 1fr; gap: 2rem; }
            .posts-grid { grid-template-columns: 1fr 1fr; }
            .featured-card { grid-column: 1 / -1; }
        }
        @media (min-width: 1024px) {
            .blog-main-container { grid-template-columns: 2.5fr 1fr; gap: 2.5rem; }
            .featured-card .card-content { padding: 2rem; }
        }
        @media (max-width: 992px) {
            .btn-desktop-only { display: none; }
            .nav-button-mobile { display: block; }
            .nav-toggle { display: block; }
            .main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: 70%; max-width: 350px; background: var(--white); box-shadow: -5px 0 15px rgba(0,0,0,0.1); transform: translateX(100%); transition: transform 0.35s ease-in-out; z-index: 999; }
            .main-nav ul { flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; height: 100%; padding: 0; }
            .main-nav a { font-size: 1.2rem; }
            .nav-button-mobile .btn-secondary { color: var(--white) !important; background-color: var(--avsec-green); border-color: var(--avsec-green); padding: 1rem 2rem; width: 100%; }
            .nav-open .main-nav { transform: translateX(0); }
            .footer-grid { grid-template-columns: 1fr 1fr; }
            .footer-bottom { flex-direction: column-reverse; gap: 1.5rem; }
            .podcast-grid { grid-template-columns: 1fr 1fr; }
        }
        @media (max-width: 767px) {
            .blog-sidebar { position: static; top: auto; }
            .footer-grid { grid-template-columns: 1fr; text-align: center; }
            .payment-logos { justify-content: center; margin-top: 1rem; }
        }
         @media (max-width: 600px) {
            .podcast-grid { grid-template-columns: 1fr; }
        }

/* From blog/avsec-en-una-frase-....php */
/* --- ESTILOS GENERALES Y DE HEADER/FOOTER --- */
        :root {
            --avsec-green: #6CBE45;
            --avsec-green-dark: #579C3A;
            --blue-text: #2c3e50;
            --gray-text: #5d6d7e;
            --light-bg: #f8fcf9;
            --white: #ffffff;
            --border-light: #e0e6e8;
            --footer-bg: #1d2d35;
            --footer-text: #a0aec0;
            --footer-border: #3a4a53;
            --shadow-subtle: rgba(0, 0, 0, 0.05);
            --shadow-medium: rgba(0, 0, 0, 0.1);
            --font-heading: 'Plus Jakarta Sans', sans-serif;
            --font-body: 'Lexend', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }
        *, *::before, *::after { box-sizing: border-box; }
        body { margin: 0; font-family: var(--font-body); color: var(--gray-text); background-color: var(--light-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
        body.nav-open { overflow: hidden; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
        h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--blue-text); font-weight: 800; letter-spacing: -0.02em; }
        .btn { text-decoration: none; padding: 16px 32px; border-radius: 8px; font-weight: 700; transition: all 0.3s ease-in-out; display: inline-block; border: none; cursor: pointer; box-shadow: 0 4px 10px var(--shadow-subtle); }
        .btn-secondary { background-color: transparent; color: var(--avsec-green); border: 2px solid var(--avsec-green); box-shadow: none; padding: 14px 30px; }
        .btn-secondary:hover { background-color: var(--avsec-green); color: var(--white) !important; transform: translateY(-3px); }
        
        /* --- HEADER --- */
        .main-header { background: var(--white); padding: 1.2rem 0; border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
        .main-header .container { display: flex; justify-content: space-between; align-items: center; }
        .logo img { height: 50px; }
        .main-nav ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 2.5rem; align-items: center;}
        .main-nav a { text-decoration: none; color: var(--blue-text); font-weight: 500; position: relative; padding-bottom: 0.5rem; transition: color 0.3s ease; }
        .main-nav a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background-color: var(--avsec-green); border-radius: 2px; transition: width 0.3s ease; }
        .main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
        .main-nav a.active { color: var(--avsec-green); }
        .nav-button-mobile { display: none; }

        /* --- FOOTER --- */
        .main-footer { background-color: var(--footer-bg); color: var(--footer-text); padding: 5rem 0 2rem; }
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
        .footer-brand-text { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--white); text-decoration: none; margin-bottom: 1rem; display: inline-block; }
        .footer-col h3 { margin-top: 0; font-size: 1.1rem; color: var(--white); font-weight: 700; margin-bottom: 1.5rem; }
        .footer-col p, .footer-col a { color: var(--footer-text); text-decoration: none; margin-bottom: 0.75rem; display: block; transition: color 0.2s ease; font-size: 0.95rem; }
        .footer-col a:hover { color: var(--white); }
        .airports-section { border-top: 1px solid var(--footer-border); border-bottom: 1px solid var(--footer-border); padding: 2rem 0; margin-bottom: 3rem; text-align: center; }
        .airports-section h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 1.5rem; }
        .airports-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
        .airports-list a { color: var(--footer-text); text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; }
        .airports-list a:hover { color: var(--white); }
        .footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--footer-text); }
        .legal-links a { color: var(--footer-text); text-decoration: none; transition: color 0.2s ease; margin-left: 1.5rem; }
        .legal-links a:hover { color: var(--white); }
        .payment-logos { display: flex; align-items: center; gap: 1rem; }
        .payment-logos img { height: 24px; }
        .payment-logos img[alt="Bizum"] { height: 20px; }

        /* --- MENÚ MÓVIL --- */
        .nav-toggle { display: none; position: relative; z-index: 9999; background: transparent; border: 0; cursor: pointer; padding: 0.5rem; }
        .hamburger { display: block; position: relative; width: 28px; height: 3px; background: var(--blue-text); border-radius: 2px; transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out; }
        .hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; width: 100%; height: 3px; background: var(--blue-text); border-radius: 2px; transition: transform 0.3s ease-in-out, top 0.3s ease-in-out; }
        .hamburger::before { top: -8px; }
        .hamburger::after { top: 8px; }
        .nav-open .hamburger { background: transparent; }
        .nav-open .hamburger::before { top: 0; transform: rotate(45deg); }
        .nav-open .hamburger::after { top: 0; transform: rotate(-45deg); }
        
        /* --- RESPONSIVE GENERAL --- */
        @media (max-width: 992px) {
            .btn-desktop-only { display: none; }
            .nav-button-mobile { display: block; }
            .nav-toggle { display: block; }
            .main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: 70%; max-width: 350px; background: var(--white); box-shadow: -5px 0 15px rgba(0,0,0,0.1); transform: translateX(100%); transition: transform 0.35s ease-in-out; z-index: 999; }
            .main-nav ul { flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; height: 100%; padding: 0; }
            .main-nav a { font-size: 1.2rem; }
            .nav-button-mobile .btn-secondary { color: var(--white) !important; background-color: var(--avsec-green); border-color: var(--avsec-green); padding: 1rem 2rem; width: 100%; }
            .nav-open .main-nav { transform: translateX(0); }
            .footer-grid { grid-template-columns: 1fr 1fr; }
            .footer-bottom { flex-direction: column-reverse; gap: 1.5rem; }
        }
        @media (max-width: 768px) {
            .footer-grid { grid-template-columns: 1fr; text-align: center; }
            .payment-logos { justify-content: center; margin-top: 1rem; }
        }

        /* --- ESTILOS PARA LA PÁGINA DE ARTÍCULO INDIVIDUAL --- */
        .article-container { max-width: 850px; margin: 4rem auto; background-color: var(--white); box-shadow: 0 10px 40px var(--shadow-subtle); border-radius: 16px; overflow: hidden; }
        .article-header { padding: 3rem 3rem 2rem; text-align: center; }
        .article-title { font-size: 2.8rem; line-height: 1.2; margin: 0 0 1rem; }
        .article-meta { color: var(--gray-text); font-weight: 500; }
        .article-featured-image { width: 100%; height: 400px; object-fit: cover; }
        .article-content { padding: 2.5rem 3rem 3rem; font-size: 1.1rem; line-height: 1.8; }
        .article-content h3 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 1rem; }
        .article-content h4 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 0.5rem; color: var(--blue-text); }
        .article-content a { color: var(--avsec-green-dark); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--avsec-green); transition: all 0.2s ease; }
        .article-content a:hover { background-color: #f0fdf4; border-bottom-color: var(--avsec-green-dark); }
        .article-content ul { list-style: none; padding-left: 0; }
        .article-content ul li { padding-left: 1.5rem; position: relative; margin-bottom: 0.75rem; }
        .article-content ul li::before { content: '✓'; color: var(--avsec-green); position: absolute; left: 0; font-weight: 700; }
        .promo-box { background-color: var(--light-bg); border-left: 4px solid var(--avsec-green); border-radius: 8px; padding: 1.5rem 2rem; margin: 2rem 0; }
        .promo-box h4 { font-size: 1.4rem; margin: 0 0 0.5rem; color: var(--blue-text); }
        .promo-box p { margin: 0 0 1rem; font-size: 1rem; }
        .promo-box .btn { text-decoration: none; padding: 12px 28px; border-radius: 8px; font-weight: 700; display: inline-block; background-color: var(--avsec-green); color: var(--white) !important; border-bottom: none; }
        .promo-box .btn:hover { background-color: var(--avsec-green-dark); }
        .author-box { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-light); display: flex; align-items: center; gap: 1.5rem; }
        .author-avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
        .author-name { font-family: var(--font-heading); font-weight: 700; color: var(--blue-text); font-size: 1.1rem; margin: 0; }
        .author-title { font-size: 0.95rem; color: var(--gray-text); margin: 0.25rem 0 0; }
        .back-to-blog { display: inline-block; margin-top: 3rem; font-weight: 700; color: var(--avsec-green-dark); text-decoration: none; }
        .back-to-blog:hover { text-decoration: underline; }
        
        @media (max-width: 768px) {
            .article-container { margin: 0; border-radius: 0; }
            .article-header { padding: 2rem 1.5rem 1rem; }
            .article-title { font-size: 2rem; }
            .article-featured-image { height: 250px; }
            .article-content { padding: 1.5rem; font-size: 1rem; }
            .author-box { flex-direction: column; text-align: center; }
        }
        .col-image img {
    box-shadow: none;
}
