/* Variables de Diseño */
:root {
    --primary-color: #2F855A;
    /* Verde suave/profesional */
    --primary-dark: #22543D;
    --primary-light: #F0FFF4;
    --text-dark: #1A202C;
    --text-gray: #4A5568;
    --bg-white: #FFFFFF;
    --bg-light: #F7FAFC;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Lexend', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text-gray);
    line-height: 1.6;
}

/* Base background for all pages (Mobile) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)),
                url('../used_images/fondo_web_movil.jpeg') no-repeat center top;
    background-size: cover;
    pointer-events: none;
}

/* Home page specific mobile background */
body.home-page::before {
    background-image: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)),
                      url('../used_images/principal_movil.jpg');
}

/* Desktop overrides */
@media (min-width: 901px) {
    body::before {
        background-image: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)),
                          url('../used_images/fondo_web_pc.jpeg');
        background-attachment: fixed;
    }
    
    body.home-page::before {
        background-image: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)),
                          url('../used_images/web_prinpal.jpg');
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
}

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

img,
iframe {
    max-width: 100%;
    border-radius: 8px;
}

/* Clases Utilitarias */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.bg-light {
    background-color: transparent;
    backdrop-filter: none;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-5 {
    margin-bottom: 1.5rem;
}

.w-100 {
    width: 100%;
}

/* FAQ Lists in answers */
.faq-list {
    margin-left: 20px;
    margin-top: 10px;
    line-height: 1.6;
}

.faq-list li {
    margin-bottom: 8px;
}

/* Blog & CTA Utilities */
.article-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 0.5rem;
}

.cta-note {
    font-size: 0.85rem;
    margin-top: 0.75rem;
    opacity: 0.8;
}

.link-primary {
    color: var(--primary-color);
    font-weight: 600;
}

/* Vertical spacing utility for blog */
.mt-1-5 {
    margin-top: 1.5rem;
}

.mv-2 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Layout Utilities */
.pt-header {
    padding-top: 80px;
}

.relative {
    position: relative;
}

.max-w-800 {
    max-width: 800px;
}

.mx-auto {
    margin: 0 auto;
}

.overflow-hidden {
    overflow: hidden;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.radius-12 {
    border-radius: 12px;
}

.section-pt-sm {
    padding-top: 15px;
}

.badge-mb-sm {
    margin-bottom: 1.5rem;
}

/* Typography Utilities */
.text-box-centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.text-xl {
    font-size: 1.8rem;
}

.text-lg {
    font-size: 1.2rem;
}

.text-muted {
    color: var(--text-gray);
    opacity: 0.8;
}

.line-height-lg {
    line-height: 1.8;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(47, 133, 90, 0.4);
}

.btn-secondary {
    background-color: #1A202C; /* Navy-Charcoal matching the section stripes */
    color: white;
    font-weight: 700;
    padding: 12px 30px;
}

.btn-secondary:hover {
    background-color: #2D3748; /* Slightly lighter shade for hover effect */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 32, 44, 0.4);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.badge {
    display: block;
    position: relative;
    text-align: center;
    color: #68D391;
    /* Verde brillante del logo en el pie */
    font-family: var(--font-heading);
    font-size: 1.45rem;
    /* ~1.5x el tamaño anterior */
    font-weight: 800;
    padding: 18px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 3rem;
    z-index: 1;
}

/* Franja de fondo que ocupa toda la pantalla de forma continua */
.badge::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -5000px;
    right: -5000px;
    background-color: #1A202C;
    z-index: -1;
    border-top: 1px solid rgba(104, 211, 145, 0.15);
    border-bottom: 1px solid rgba(104, 211, 145, 0.15);
    pointer-events: none;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 10000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-bold {
    font-weight: 800;
    color: var(--primary-color);
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    margin: 0 15px;
    color: var(--text-gray);
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-dark);
}

/* Hero Section */
.hero {
    padding: 100px 0 30px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    background-color: transparent;
    overflow: hidden;
}

@media (min-width: 901px) {
    .hero {
        padding: 140px 0 60px;
        min-height: 80vh;
        text-align: center;
    }
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

@media (min-width: 901px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

.hero-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 1.5rem;
}

.hero-media {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-guarantee {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.video-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Trust Strip */
.trust-strip {
    background-color: rgba(240, 255, 244, 0.6);
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    backdrop-filter: blur(5px);
    padding: 15px 0;
    margin-top: 50px;
}

.trust-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px 30px;
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.trust-container .dot {
    color: #A0AEC0;
}

/* Page Header Images */
.page-header-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.page-header-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 500px;
    display: block;
}

/* Sections Global Padding */
section {
    padding: 30px 0;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 901px) {
    .about-container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 450px;
    /* <--- AJUSTA AQUÍ EL ANCHO MÁXIMO DE LA IMAGEN */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

/* Clickable video trigger wrapper */
.about-video-trigger {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    max-width: 450px;
    /* <--- AJUSTA AQUÍ TAMBIÉN PARA QUE COINCIDA */
    width: 100%;
}

.about-video-trigger:hover img {
    transform: scale(1.03);
    filter: brightness(0.75);
}

.about-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.about-play-overlay svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.about-video-trigger:hover .about-play-overlay svg {
    transform: scale(1.15);
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
}

/* Highlights (Los 3 Pilares) */
.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 640px) {
    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.highlight-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    transition: var(--transition);
}

.highlight-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--primary-dark);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.service-card {
    background: var(--bg-white);
    padding: 30px 15px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Methodology Steps */
.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 901px) {
    .steps-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 12px;
    position: relative;
    text-align: left;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(47, 133, 90, 0.3);
}

.step-card h3 {
    margin-top: 20px;
    margin-bottom: 1rem;
}

/* Testimonials Carousel */
/* Testimonials Carousel to Slider */
/* Testimonials Carousel to Slider */
.testimonials-carousel-wrapper {
    width: 100%;
    position: relative;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.testimonials-viewport {
    width: 100%;
    overflow: hidden;
    /* Hide scrollbar for transform control */
    border-radius: 12px;
}

.testimonials-viewport::-webkit-scrollbar {
    display: none;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    width: max-content;
    padding-bottom: 20px;
    /* Animation handled by script.js for better arrow control */
    transition: none;
}

.testimonials-track.no-animation {
    animation: none;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 15px));
    }
}

/* Arrow visibility handled by presence in HTML, removing the hide rule */

.testimonials-track img,
.testimonials-track .carousel-video {
    height: 300px;
    /* Maintain 9:16 aspect ratio roughly */
    width: 168.75px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, filter 0.4s ease;
    flex-shrink: 0;
    cursor: pointer;
    margin-bottom: 0;
}

@media (min-width: 901px) {
    .testimonials-track img,
    .testimonials-track .carousel-video {
        height: 400px;
        width: 225px;
    }
}

/* Explicit rule so the img inside video card fills the container */
.testimonials-track .carousel-video img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    box-shadow: none;
    /* Shadow already on the wrapper */
}

.testimonials-track:hover .carousel-video {
    filter: brightness(0.6) grayscale(0.2);
    transform: scale(0.98);
}

.testimonials-track .carousel-video:hover {
    filter: brightness(1) grayscale(0);
    transform: scale(1.05);
    z-index: 10;
    position: relative;
}

.testimonials-track img {
    width: auto;
    object-fit: cover;
}

.testimonials-track:hover img {
    filter: brightness(0.6) grayscale(0.2);
    transform: scale(0.98);
}

.testimonials-track img:hover {
    filter: brightness(1) grayscale(0);
    transform: scale(1.05);
    z-index: 10;
    position: relative;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-white);
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
}

@media (min-width: 901px) {
    .slider-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
}

.slider-nav-btn:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Adjust for desktop where we have more space */
@media (min-width: 901px) {
    .prev-btn {
        left: -20px;
    }
    .next-btn {
        right: -20px;
    }
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 20px auto;
}

.faq-item {
    border-bottom: 1px solid #E2E8F0;
    padding: 15px 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Contact */
.contact-container {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-wrapper {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
}

.contact-form-wrapper h3 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #CBD5E0;
    border-radius: 6px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ============ FOOTER REDESIGN ============ */
.footer {
    background: linear-gradient(160deg, #0F1923 0%, #1A202C 60%, #1E2A38 100%);
    color: var(--bg-white);
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Decorative top accent bar */
.footer::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color), #68D391, var(--primary-color), var(--primary-dark));
    background-size: 200% 100%;
    animation: footer-bar-slide 4s linear infinite;
}

@keyframes footer-bar-slide {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

/* Subtle decorative ball */
.footer::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(47, 133, 90, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer-inner {
    padding: 55px 0 0;
}

/* 3-Column grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 541px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 901px) {
    .footer-grid {
        grid-template-columns: 1.6fr 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: auto;
    }
}

/* Brand column */

.footer-brand-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-brand-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.footer-brand-name .logo-bold {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: #68D391;
    letter-spacing: 0.5px;
}

.footer-tagline {
    color: #A0AEC0;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 300px;
}

.footer-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.footer-wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

.footer-wa-btn svg {
    flex-shrink: 0;
}

/* Nav / Resource columns */
.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.footer-col-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-list a {
    color: #CBD5E0;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.25s ease, gap 0.25s ease;
}

.footer-col-list a::before {
    content: '›';
    color: var(--primary-color);
    font-weight: 800;
    transition: color 0.25s ease;
}

.footer-col-list a:hover {
    color: #fff;
    gap: 9px;
}

/* Bottom bar */
.footer-bottom {
    padding: 18px 0;
    text-align: center;
    color: #718096;
    font-size: 0.82rem;
}

.footer-bottom a {
    color: #718096;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--primary-light);
}

/* Footer responsive */
/* Hide floating whatsapp on home page */
.home-page .floating-whatsapp {
    display: none;
}

@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-tagline {
        max-width: 100%;
    }
}

@media (max-width: 540px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 30px;
    }

    .footer-brand {
        grid-column: auto;
    }
}


/* Sticky Mobile CTA (Hidden on Desktop) */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    padding: 15px 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 9900;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* --- Video Testimonials --- */
.video-testimonials {
    padding: 80px 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-placeholder {
    width: 100%;
    background-color: #000;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.play-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent var(--primary-color);
    margin-left: 4px;
}

.video-card:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
}

.video-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    pointer-events: none;
}

.video-card-info h3 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: #fff;
}

.video-card-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 100000;
    width: 95%;
    max-width: 1000px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.modal-content.vertical-video {
    max-width: 450px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 1010;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: var(--transition);
    pointer-events: auto;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-video-wrapper video {
    display: block;
    max-width: 100%;
    max-height: 90vh;
}

/* Custom Controls Layer */
.video-controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1005;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.4s;
    pointer-events: none;
}

.video-controls-overlay.hide {
    opacity: 0;
}

.video-controls-top {
    display: flex;
    justify-content: flex-start;
    padding: 15px;
}

.video-controls-bottom {
    display: flex;
    justify-content: flex-end;
    padding: 15px 15px 25px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    pointer-events: auto;
    transition: var(--transition);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    /* Only scale if it doesn't have a crucial transform like translate-center */
    transform: scale(1.1);
}

.play-center-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.control-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.play-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    z-index: 1006;
}

.video-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    pointer-events: auto;
}

.video-progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
}



/* Responsive */
@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        width: 95%;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    /* Adjust slider buttons on mobile to not be completely outside */
    .prev-btn {
        left: -5px;
    }

    .next-btn {
        right: -5px;
    }

    .about-content {
        text-align: center;
    }

    /* Fixed background on mobile causes zoom issues on resize/accordion */
    body::before {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .trust-container {
        flex-direction: column;
        gap: 10px;
    }

    .trust-container .dot {
        display: none;
    }

    .mobile-sticky-cta {
        display: block;
    }

    /* Make sure pages don't get covered by the sticky bar */
    .footer {
        padding-bottom: 80px;
    }

    /* Move WhatsApp icon higher up so it does not collide with the sticky mobile CTA */
    .floating-whatsapp {
        bottom: 90px;
        right: 20px;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        /* Overlap with navbar to ensure no gap */
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-white);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        /* Add extra padding to compensate for overlap */
        transition: 0.4s;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        margin: 15px 0;
        font-size: 1.2rem;
    }

    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Back to Main Page with Curved Arrow */
.back-to-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 30px;
    background: rgba(46, 204, 113, 0.05);
}

.back-to-main:hover {
    color: var(--primary-dark);
    background: rgba(46, 204, 113, 0.1);
    transform: translateY(-2px);
}

.back-to-main svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.back-to-main.top-right {
    position: absolute;
    top: 120px;
    /* Below navbar */
    right: 5%;
    z-index: 10;
}

.back-to-main.bottom-center {
    display: flex;
    justify-content: center;
    margin: 40px auto;
    width: fit-content;
}

@media (max-width: 768px) {
    .back-to-main.top-right {
        position: static;
        display: flex;
        justify-content: center;
        margin: 20px auto;
    }
}

/* --- Premium Expert Improvements --- */

/* Pulse Animation for WhatsApp CTAs */
@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        transform: scale(1.03);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes pulse-primary {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(47, 133, 90, 0.4);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(47, 133, 90, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(47, 133, 90, 0);
    }
}

.floating-whatsapp {
    animation: pulse-whatsapp 2.5s infinite;
}

.nav-cta {
    animation: pulse-primary 3s infinite;
}

/* Scroll Reveal Effects */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Refined Card Hover */
.service-card,
.highlight-card,
.video-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    background: var(--bg-white);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Glassmorphism for Modal */
.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* =============================================
   BLOG INDEX PAGE
   ============================================= */

.blog-hero {
    padding: 60px 0 30px;
    text-align: center;
}

.blog-hero-title {
    font-size: 2.8rem;
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin: 0.5rem 0 1rem;
    line-height: 1.15;
}

.blog-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-gray);
    max-width: 620px;
    margin: 0 auto;
}

.blog-articles {
    padding: 20px 0 60px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-card-hero {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.blog-card-hero--green {
    background: linear-gradient(135deg, #2F855A 0%, #38A169 50%, #68D391 100%);
}

.blog-card-hero--blue {
    background: linear-gradient(135deg, #2B6CB0 0%, #3182CE 50%, #63B3ED 100%);
}

.blog-card-hero--navy {
    background: linear-gradient(135deg, #1A365D 0%, #2C5282 50%, #4299E1 100%);
}

.blog-card-icon {
    font-size: 4rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.blog-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 18px;
}

.blog-card-cta {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    transition: var(--transition);
}

.blog-card:hover .blog-card-cta {
    color: var(--primary-dark);
    letter-spacing: 0.3px;
}

.blog-cta-section {
    padding: 20px 0 60px;
}

.blog-cta-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-radius: 20px;
    padding: 50px 40px;
    color: #fff;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.blog-cta-box h2 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.8rem;
    margin: 1rem 0 0.75rem;
}

.blog-cta-box p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.blog-cta-box .btn-primary {
    background: #fff;
    color: var(--primary-dark);
}

.blog-cta-box .btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* =============================================
   ARTICLE PAGES
   ============================================= */

.article-wrapper {
    padding-bottom: 60px;
}

.article-container {
    max-width: 780px;
}

.article-header {
    padding: 40px 0 0;
}

.article-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.article-breadcrumb:hover {
    color: var(--primary-dark);
    gap: 10px;
}

.article-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.article-category-tag {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
}

.article-category-tag--blue {
    background-color: #EBF8FF;
    color: #2B6CB0;
}

.article-category-tag--navy {
    background-color: #EBF4FF;
    color: #1A365D;
}

.article-h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.article-lead {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.75;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1.25rem;
}

.article-hero-banner {
    width: 100%;
    height: 160px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.article-hero-banner--green {
    background: linear-gradient(135deg, #2F855A 0%, #68D391 100%);
}

.article-hero-banner--blue {
    background: linear-gradient(135deg, #2B6CB0 0%, #63B3ED 100%);
}

.article-hero-banner--navy {
    background: linear-gradient(135deg, #1A365D 0%, #4299E1 100%);
}

/* Article Body Content */
.article-content {
    line-height: 1.8;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--primary-light);
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 1.8rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.1rem;
    color: var(--text-gray);
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

.article-list li {
    padding: 8px 0 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-gray);
    line-height: 1.6;
}

.article-list li:last-child {
    border-bottom: none;
}

/* Highlight Box */
.article-highlight-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.article-highlight-box--warning {
    background: #FFFBEB;
    border-left-color: #D69E2E;
}

/* Author Box */
.article-author-box {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 24px;
    margin: 2.5rem 0;
    border: 1px solid #e2e8f0;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.article-author-img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-author-info div {
    display: flex;
    flex-direction: column;
}

.article-author-info strong {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 1rem;
}

.article-author-info span {
    font-size: 0.82rem;
    color: var(--text-gray);
}

.article-author-box>p {
    font-size: 0.92rem;
    font-style: italic;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

/* CTA Box inside article */
.article-cta-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    margin: 2.5rem 0;
    color: #fff;
}

.article-cta-box h2 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    border: none;
    padding: 0;
}

.article-cta-box p {
    opacity: 0.9;
    margin-bottom: 1.25rem;
    color: #fff;
}

.article-cta-box .btn-primary {
    background: #fff;
    color: var(--primary-dark);
    font-weight: 700;
}

.article-cta-box .btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Related Articles */
.article-related {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--primary-light);
}

.article-related h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.related-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.related-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
    transition: var(--transition);
    text-decoration: none;
}

.related-card:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.related-card span:first-child {
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Exercise Cards */
.exercise-card {
    background: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin: 1.5rem 0;
    position: relative;
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
}

.exercise-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.exercise-card--advanced {
    border-left-color: #2B6CB0;
}

.exercise-number {
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 0 0 8px 8px;
    letter-spacing: 1px;
}

.exercise-card--advanced .exercise-number {
    background: #2B6CB0;
}

.exercise-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.exercise-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.exercise-details span {
    font-size: 0.82rem;
    font-family: var(--font-heading);
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 3px 10px;
    border-radius: 20px;
}

.exercise-card--advanced .exercise-details span {
    background: #EBF8FF;
    color: #2B6CB0;
}

.exercise-card p {
    font-size: 0.92rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    line-height: 1.65;
}

/* Timeline Component */
.timeline-container {
    margin: 1.5rem 0 2rem;
    position: relative;
    padding-left: 20px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), #4299E1);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding: 16px 16px 16px 28px;
    margin-bottom: 12px;
    background: var(--bg-white);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 22px;
    width: 14px;
    height: 14px;
    background: #4299E1;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #4299E1;
}

.timeline-item--green::before {
    background: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-item--gold::before {
    background: #D69E2E;
    box-shadow: 0 0 0 2px #D69E2E;
}

.timeline-period {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.timeline-item--gold .timeline-period {
    color: #D69E2E;
}

.timeline-content strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.88rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.55;
}

/* Factor List */
.factor-list {
    margin: 1.5rem 0;
}

.factor-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid #e2e8f0;
}

.factor-item:last-child {
    border-bottom: none;
}

.factor-number {
    width: 38px;
    height: 38px;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.factor-content strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.factor-content p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

/* =============================================
   BLOG RESPONSIVE — MOBILE FIRST
   ============================================= */

@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 2rem;
    }

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

    .blog-cta-box {
        padding: 35px 22px;
    }

    .blog-cta-box h2 {
        font-size: 1.45rem;
    }

    .article-h1 {
        font-size: 1.75rem;
    }

    .article-lead {
        font-size: 1.05rem;
    }

    .article-content h2 {
        font-size: 1.4rem;
    }

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

    .article-cta-box {
        padding: 30px 20px;
    }

    .article-cta-box h2 {
        font-size: 1.25rem;
    }

    .timeline-container {
        padding-left: 16px;
    }

    .timeline-item {
        padding-left: 20px;
    }

    .factor-item {
        gap: 12px;
    }
}

/* =============================================
   LEGAL PAGES (Privacidad & Cookies)
   ============================================= */

.legal-page {
    padding: 40px 0 70px;
}

.legal-container {
    max-width: 820px;
}

.legal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.legal-h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0.6rem 0 0.4rem;
    line-height: 1.15;
}

.legal-updated {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
}

/* Intro highlighted box */
.legal-intro-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    margin-bottom: 2rem;
    font-size: 0.97rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Content typography */
.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2.5rem 0 0.9rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--primary-light);
}

.legal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 1.6rem 0 0.6rem;
}

.legal-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 0.97rem;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1.5rem;
}

.legal-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-gray);
    line-height: 1.65;
    font-size: 0.95rem;
}

.legal-list li::before {
    content: '›';
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.legal-list li:last-child {
    border-bottom: none;
}

/* Data table block */
.legal-data-table {
    background: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin: 1rem 0 1.5rem;
}

.legal-data-row {
    display: flex;
    padding: 12px 18px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.93rem;
    gap: 16px;
}

.legal-data-row:last-child {
    border-bottom: none;
}

.legal-data-label {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    min-width: 110px;
    flex-shrink: 0;
}

/* Rights grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 1.2rem 0 1.5rem;
}

.right-card {
    background: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    transition: var(--transition);
}

.right-card:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.right-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 8px;
}

.right-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.right-card p {
    font-size: 0.82rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

/* Legal CTA row */
.legal-cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* Highlight box inside legal pages */
.legal-highlight-box {
    background: #F0FFF4;
    border: 1.5px solid var(--primary-color);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Cookie type cards */
.cookie-type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 1rem 0 1.5rem;
}

.cookie-type-card {
    background: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    border-top: 4px solid #e2e8f0;
}

.cookie-type-card--technical {
    border-top-color: var(--primary-color);
}

.cookie-type-card--analytics {
    border-top-color: #A0AEC0;
}

.cookie-type-card--marketing {
    border-top-color: #A0AEC0;
}

.cookie-type-card--social {
    border-top-color: #D69E2E;
}

.cookie-type-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.cookie-type-header strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    flex: 1;
}

.cookie-type-header span:first-child {
    font-size: 1.3rem;
}

.cookie-type-card p {
    font-size: 0.87rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

.cookie-badge {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.cookie-badge--green {
    background: #C6F6D5;
    color: #22543D;
}

.cookie-badge--gray {
    background: #EDF2F7;
    color: #718096;
}

.cookie-badge--yellow {
    background: #FEFCBF;
    color: #744210;
}

/* Cookie inventory table */
.cookie-table-wrapper {
    overflow-x: auto;
    margin: 1rem 0 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    background: var(--bg-white);
}

.cookie-table th {
    background: var(--text-dark);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 14px;
    text-align: left;
    white-space: nowrap;
}

.cookie-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-gray);
    vertical-align: top;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-table tr:nth-child(even) {
    background: var(--bg-light);
}

.cookie-table code {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: monospace;
}

/* Browser guide cards */
.browser-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 1rem 0 1.5rem;
}

.browser-guide-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 10px;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
}

.browser-guide-card:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
}

.browser-guide-card span:first-child {
    font-size: 2rem;
}

.browser-guide-card strong {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

.browser-guide-link {
    font-size: 0.78rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Legal pages — Responsive */
@media (max-width: 768px) {
    .legal-h1 {
        font-size: 1.9rem;
    }

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

    .cookie-type-cards {
        grid-template-columns: 1fr;
    }

    .browser-guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .legal-data-row {
        flex-direction: column;
        gap: 4px;
    }

    .legal-data-label {
        min-width: unset;
    }

    .legal-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .legal-cta-row .btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .rights-grid {
        grid-template-columns: 1fr;
    }

    .browser-guide-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    /* Hidden by default - active transition below */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 580px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 22px 28px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transition: bottom 0.7s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
}

.cookie-banner.active {
    bottom: 30px;
    opacity: 1;
    pointer-events: all;
}

.cookie-banner-text {
    font-size: 0.92rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-btns {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-banner-btn {
    padding: 11px 24px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    letter-spacing: 0.3px;
}

.cookie-banner-btn--accept {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(47, 133, 90, 0.2);
}

.cookie-banner-btn--accept:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 133, 90, 0.3);
}

.cookie-banner-btn--decline {
    background: #f1f5f9;
    color: #64748b;
}

.cookie-banner-btn--decline:hover {
    background: #e2e8f0;
    color: #475569;
}

@media (max-width: 580px) {
    .cookie-banner {
        width: 100%;
        bottom: -200px;
        left: 0;
        transform: none;
        border-radius: 20px 20px 0 0;
        padding: 20px 20px 35px;
    }

    .cookie-banner.active {
        bottom: 0;
    }

    .cookie-banner-btns {
        flex-direction: column;
    }

    .cookie-banner-btn {
        width: 100%;
        padding: 13px;
        font-size: 0.9rem;
    }
}