/* --- Reset y Estilos Globales --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; 
}
body { 
    font-family: 'Manrope', sans-serif; 
    margin: 0; 
    background-color: #ffffff; 
    color: #1a1a1a; 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale; 
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
.hidden { display: none !important; }

/* ================================================================== */
/* --- 1. CABECERA Y NAVEGAClÓN --- */
/* ================================================================== */

.main-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 60px; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
.logo { display: flex; align-items: center; font-weight: 700; font-size: 18px; gap: 8px; }
.logo-link { text-decoration: none; }

.logo-image {
    height: 26px;
    width: auto;
    transition: filter 0.4s ease;
}

.logo-cam-text, .main-nav a {
    color: #ffffff;
    transition: color 0.4s ease;
}
.logo-separator { font-weight: 400; color: rgba(255, 255, 255, 0.6); margin-right: 4px; }
.main-nav ul { display: flex; gap: 40px; }
.main-nav a { font-size: 16px; font-weight: 500; }

.btn-demo { 
    background-color: #ffffff; 
    color: #1a1a1a; 
    padding: 12px 24px; border-radius: 8px; 
    font-weight: 250; font-size: 13px; 
    transition: all 0.3s ease; 
    cursor: pointer;
}
.btn-demo:hover { background-color: #f0f0f0; }

/* --- ESTADO DE LA CABECERA AL HACER SCROLL (.scrolled) --- */
.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f0f0f0;
}
.main-header.scrolled .logo-cam-text,
.main-header.scrolled .main-nav a {
    color: #333;
}
.main-header.scrolled .logo-image {
    filter: invert(1);
}
.site-footer .logo-image {
    filter: invert(1);
}
.main-header.scrolled .logo-separator { color: #cccccc; }
.main-header.scrolled .btn-demo {
    background-color: #1a1a1a;
    color: #ffffff;
}
.main-header.scrolled .btn-demo:hover { background-color: #333; }

/* ================================================================== */
/* --- 2. SECCIÓN HERO --- */
/* ================================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 60px 60px 60px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Video de fondo */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Overlay oscuro para mejorar legibilidad del texto */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 0%;
    background-color: rgba(9, 15, 22, 0.6); /* Overlay oscuro semitransparente */
    z-index: -1;
}

.hero-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1400px; 
    margin: 0 auto; 
    gap: 80px; 
}
.content-left { flex-basis: 50%; z-index: 2; }
.content-right { 
    flex-basis: 50%; 
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title { 
    font-size: 2rem;
    font-weight: 150; 
    line-height: 1; 
    margin: 0 0 30px 0; 
    color: #ffffff; 
}
.hero-title strong { font-weight: 800; }
.intro-text-part1 p { 
    font-size: 1rem; 
    line-height: 1.6; 
    color: #e0e7ff; 
    margin: 0 0 20px 0; 
}
.intro-text-part1 p strong { color: #ffffff; }
.info-card { 
    background-color: rgba(9, 15, 22, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px; 
    padding: 30px; 
    margin-top: 40px; 
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2); 
}
.info-card p, .questions-list li { font-size: 0.7rem; color: #f0f0f0; }
.info-card strong { color: #ffffff; }
.questions-list { margin: 20px 0; padding-left: 4px; }
.questions-list li { margin-bottom: 12px; padding-left: 18px; position: relative; }
.questions-list li::before { content: '•'; color: #ffffff; font-weight: bold; position: absolute; left: 0; top: 0; }

/* --- ESTILOS PARA EL COMPARADOR DE IMÁGENES --- */
.image-comparison-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: auto;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.comparison-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    pointer-events: none;
}

.comparison-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
}

.after-image {
    height: 100%;
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-handle {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-handle svg {
    width: 18px;
    height: 18px;
}

/* ================================================================== */
/* --- SECCIÓN DE VIDEO (NUEVA) --- */
/* ================================================================== */

.video-section {
    padding: 80px 40px 0px 40px; /* Espaciado superior para separarlo del Hero */
    background-color: #ffffff;
    display: flex;
    justify-content: center;
}

.video-container {
    max-width: 550px;
    width: 100%;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
    border-radius: 24px;
    overflow: hidden;
    line-height: 0;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* ================================================================== */
/* --- SECCIÓN 2: Introducción --- */
/* ================================================================== */
.intro-section { text-align: center; padding: 90px 30px; max-width: 720px; margin: 0 auto; }
.intro-section h2 { font-size: 2.1rem; font-weight: 400; line-height: 1.2; margin: 0 0 30px 0; }
.intro-section h2 strong { font-weight: 250; }
.intro-section .subtitle { font-size: 0.8rem; color: #555; line-height: 1.6; margin: 0 0 15px 0; }
.intro-section .subtitle strong { font-weight: 600; color: #333; }

/* --- SECCIÓN 3: Q&A --- */
.qa-section { 
    background-color: #f8f9fa; 
    padding: 80px 60px; 
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.qa-left {
    flex-basis: 40%;
    display: flex;
    justify-content: center;
}

.qa-video-container {
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    overflow: hidden;
    line-height: 0;
}

.qa-video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.qa-right {
    flex-basis: 60%;
}

.qa-title { 
    text-align: center; 
    font-size: 1.3rem; 
    font-weight: 700; 
    margin-bottom: 40px; 
}

.qa-container { 
    max-width: 700px; 
    margin: 0 auto; 
}

.qa-card { 
    background-color: #090f16;
    background-image: linear-gradient(160deg, #040a0a 0%, #048a84 100%);
    border-radius: 20px; 
    padding: 25px 35px; 
    margin-bottom: 25px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 20px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}



.btn-secondary { 
    background-color: #ffffff; 
    border: 1px solid #cccccc; 
    padding: 14px 28px; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 16px; 
    display: inline-block; 
    transition: all 0.3s ease; 
    cursor: pointer;
    font-family: 'Manrope', sans-serif; /* Asegurar que use la misma fuente */
}

.btn-secondary:hover { 
    background-color: #f0f3f5; 
    border-color: #1a1a1a; 
}

.qa-text .question { font-weight: 600; font-size: 1rem; margin: 0 0 10px 0; color: #ffffff; }
.qa-text .answer { font-size: 1rem; color: #e0e7ff; line-height: 1.5; }
.qa-text .answer strong { color: #ffffff; }
.qa-metric { background-color: rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 20px; text-align: center; min-width: 100px; }
.qa-metric .metric-value { font-size: 2rem; font-weight: 800; display: block; }
.qa-metric .metric-icon { font-size: 1rem; line-height: 1; }
.metric-decrease { color: #ffffff; } 
.metric-warning { color: #ffffff; } 
.metric-increase { color: #ffffff; }
.section-cta { text-align: center; margin-top: 60px; }

/* Responsive para Q&A */
@media (max-width: 1024px) {
    .qa-section {
        flex-direction: column;
        gap: 40px;
        padding: 60px 20px;
    }
    
    .qa-left, .qa-right {
        flex-basis: 100%;
    }
    
    .qa-title {
        text-align: center;
    }
}

/* --- SECCIÓN 4: FEATURES (MODIFICADA) --- */
/* ===== INICIO DE CAMBIOS ===== */
.features-section { 
    padding: 100px 60px;
    background-color: #090f16;
    background-image: linear-gradient(160deg, #048a84 0%, #040a0a 100%);
}
.features-title { 
    font-size: 2.4rem; 
    text-align: center; 
    font-weight: 700; 
    margin-bottom: 60px; 
    color: #ffffff; 
}
/* ===== FIN DE CAMBIOS ===== */



.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }
.feature-card { background-color: #ffffff; border-radius: 20px; padding: 30px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; }
.feature-card h3 { font-size: 2rem; margin: 20px 0; }
.feature-card ul { list-style: disc; padding-left: 20px; color: #555; flex-grow: 1; }
.feature-card li { margin-bottom: 15px; line-height: 1.5; }
.feature-icon-wrapper { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; }
.feature-icon-wrapper svg { width: 32px; height: 32px; color: #1a1a1a; }
.color-showroom { background-color: #e0e7ff; } .color-concesionario { background-color: #046964; } .color-retail { background-color: #f3e8ff; }
.card-footer { border-top: 1px solid #f0f0f0; padding-top: 20px; margin-top: 20px; }
.efficiency-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 0.9rem; color: #555; }
.efficiency-value { font-weight: 700; color: #1a1a1a; }
.efficiency-bar { background-color: #e0e0e0; border-radius: 5px; height: 8px; width: 100%; }
.efficiency-fill { height: 100%; background-color: #1a1a1a; border-radius: 5px; }
.btn-dark { background-color: #1a1a1a; color: #ffffff; padding: 14px 28px; border-radius: 8px; font-weight: 700; font-size: 16px; display: inline-block; transition: background-color 0.3s ease; }
.btn-dark:hover { background-color: #333; }

/* --- SECCIÓN 5: COMPARACIÓN DE PRECIOS --- */
.pricing-comparison-section { padding: 100px 60px; }
.pricing-intro { text-align: center; max-width: 800px; margin: 0 auto 60px auto; }
.pricing-intro h2 { font-size: 2.4rem; font-weight: 400; margin-bottom: 30px; }
.pricing-intro h2 strong { font-weight: 800; }
.pricing-intro p { font-size: 1.125rem; color: #555; line-height: 1.6; }
.pricing-intro .highlight { font-weight: 700; font-size: 1.25rem; color: #1a1a1a; margin-top: 20px; }
.comparison-container { display: flex; justify-content: center; align-items: center; gap: 20px; max-width: 900px; margin: 0 auto; }
.competitor-column, .datactar-column { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.competitor-column h4, .datactar-column h4 { text-align: center; font-size: 1.1rem; margin-bottom: 10px; }
.vs-circle { background-color: #f0f0f0; color: #888; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.price-box, .feature-box { border-radius: 12px; padding: 20px; text-align: center; }
.price-box { display: flex; flex-direction: column; }
.price-box .price-value { font-size: 2rem; font-weight: 800; }
.price-box .price-desc { font-size: 0.9rem; margin-top: 5px; }
.red-box { background-color: #fee2e2; color: #dc2626; }
.red-outline-box { background-color: #fff1f2; color: #be123c; border: 1px solid #fecaca; }
.green-box { background-color: #dcfce7; color: #16a34a; }
.green-outline-box { background-color: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.final-price-card { 
    max-width: 900px; 
    margin: 80px auto 0 auto; 
    background-color: #090f16;

    
    background-image: linear-gradient(160deg, #040a0a 0%, #048a84 100%);
    color: #ffffff;
    border-radius: 20px; 
    padding: 40px; 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1); 
    text-align: center; 
}

.final-price-card h3 { font-size: 1rem; margin: 0 0 20px 0; color: #ffffff; }
.price-display { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 30px; }
.main-price { font-size: 1.8rem; font-weight: 300; }
.price-period { text-align: left; color: #e0e7ff; line-height: 1.5; }
.final-features-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; max-width: 600px; margin: 0 auto; color: #e0e7ff; }
.btn-outline { background-color: #ffffff; color: #1a1a1a; border: 1px solid #cccccc; padding: 14px 28px; border-radius: 8px; font-weight: 700; font-size: 16px; display: inline-block; transition: all 0.3s ease; }
.btn-outline:hover { background-color: #f8f9fa; border-color: #1a1a1a; }

/* --- SECCIÓN 6: CTA FINAL --- */
.final-cta-section { padding: 100px 40px; background-color: #ffffff; background-image: radial-gradient(#e5e7eb 1px, transparent 1px); background-size: 30px 30px; }
.cta-intro { text-align: center; margin-bottom: 40px; }
.cta-intro h2 { font-size: 2.4rem; font-weight: 400; line-height: 1.2; margin-bottom: 20px; }
.cta-intro h2 strong { font-weight: 800; }
.cta-intro p { font-size: 1.1rem; color: #555; max-width: 600px; margin: 10px auto; }
.cta-intro p strong { color: #1a1a1a; }
.cta-card { 
    background-color: #090f16;
    background-image: linear-gradient(160deg, #040a0a 0%, #048a84 100%);
    max-width: 950px; 
    margin: 0 auto; 
    border-radius: 24px; 
    padding: 50px; 
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.1); 
    text-align: center; 
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.cta-features { display: flex; justify-content: space-around; gap: 30px; margin-bottom: 50px; }
.cta-feature-item { flex: 1; }
.icon-wrapper { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 20px auto; }
.icon-wrapper svg { width: 32px; height: 32px; }
.color-blue { background-color: #e0e7ff; color: #4f46e5; } .color-green { background-color: #041a1e; color: #047576; } .color-purple { background-color: #f3e8ff; color: #9333ea; }
.cta-feature-item h4 { font-size: 1.2rem; margin: 0 0 10px 0; color: #ffffff; }
.cta-feature-item p { color: #e0e7ff; margin: 0; }
.btn-cta-final { 
    background-color: #ffffff; 
    color: #1a1a1a; 
    padding: 16px 32px; 
    border-radius: 12px; 
    font-weight: 700; 
    font-size: 1.1rem; 
    display: inline-block; 
    transition: background-color 0.3s ease; 
}
.btn-cta-final:hover { background-color: #f0f0f0; }
.cta-subtext { margin-top: 20px; color: #cccccc; }
.info-strip { 
    display: flex; 
    justify-content: center; 
    gap: 40px; 
    max-width: 500px; 
    margin: 40px auto 0 auto; 
    background-color: #090f16;
    background-image: linear-gradient(160deg, #048a84  0%, #040a0a 100%);
    color: #ffffff;
    padding: 20px; 
    border-radius: 16px; 
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.info-item { text-align: center; }
.info-item strong { font-size: 1.5rem; font-weight: 800; display: block; color: #ffffff; }
.info-item span { font-size: 0.9rem; color: #e0e7ff; }


/* --- Pie de Página --- */
.site-footer { background-color: #f8f9fa; padding: 60px 40px; border-top: 1px solid #e5e7eb; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; }
.footer-brand { flex: 2; }
.footer-brand p { margin-top: 15px; color: #555; max-width: 250px; }
.footer-links { flex: 1; display: flex; flex-direction: column; }
.footer-links h4 { margin: 0 0 15px 0; font-size: 1rem; }
.footer-links a, .footer-links span { color: #555; margin-bottom: 10px; }
.footer-links a:hover { color: #1a1a1a; }

/* ================================================================== */
/* --- FORMULARIO DE DEMO --- */
/* ================================================================== */

#demo-form-content {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    box-sizing: border-box;
}
.form-container {
    width: 100%;
    max-width: 700px;
}
.form-header {
    text-align: center;
    margin-bottom: 40px;
}
.back-link {
    display: inline-block;
    color: #555;
    margin-bottom: 30px;
    font-weight: 500;
    transition: color 0.3s;
}
.back-link:hover {
    color: #1a1a1a;
}
.form-header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0 0 15px 0;
}
.form-header h1 strong {
    font-weight: 800;
}
.form-header-p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}
.form-card {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}
.form-group {
    margin-bottom: 35px;
}
.form-group label, .form-group .form-group-title {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 1rem;
}
.label-description {
    font-size: 0.9rem;
    color: #888;
    font-weight: 400;
    margin: -8px 0 12px 0;
}
.optional {
    color: #888;
    font-weight: 400;
}
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}
textarea {
    resize: vertical;
    min-height: 100px;
}
.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
}
.radio-option input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: border-color 0.3s;
}
.radio-option input[type="radio"]:checked {
    border-color: #1a1a1a;
}
.radio-option input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: #1a1a1a;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.radio-option label {
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
}
.email-label {
    display: flex;
    align-items: center;
    gap: 8px;
}
.submit-button {
    width: 100%;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}
.submit-button:hover {
    background-color: #333;
}
.form-footer-note {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 0.9rem;
}


/* --- Diseño Responsivo General--- */
@media (max-width: 1024px) {
    .main-header { padding: 20px; }
    .hero-section, .qa-section, .features-section, .pricing-comparison-section, .final-cta-section { padding-left: 20px; padding-right: 20px; }
    .hero-content { flex-direction: column-reverse; gap: 40px; text-align: center; }
    .content-right { padding-top: 0; }
    .features-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .video-section { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 768px) {
    .main-header { flex-direction: row; justify-content: space-between; gap: 20px; padding: 15px 20px; }
    .hero-title { font-size: 2.5rem; }
    .info-card { text-align: left; }
    .intro-section h2, .features-title, .pricing-intro h2, .cta-intro h2 { font-size: 2rem; }
    .intro-section { padding: 60px 20px; }
    .qa-card { flex-direction: column; text-align: center; }
    .comparison-container { flex-direction: column; }
    .final-price-card { padding: 30px; }
    .final-features-list { grid-template-columns: 1fr; }
    .cta-features { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-brand p { margin: 15px auto 0; }
    .logo-cam-text { display: none; }
    .form-card { padding: 30px 20px; }
    .form-header h1 { font-size: 2rem; }
}

/* Contenedor para la cámara animada */
.animated-camera-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#camera-canvas {
    background-color: transparent;
}

/* Ajustar el gap del logo para dar espacio a la cámara */
.logo {
    gap: 15px; /* Aumentado de 8px a 15px */
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}


/* ================================================================== */
/* --- SECCIÓN DE MÓDULOS (NUEVA) --- */
/* ================================================================== */

.modules-section {
    padding: 80px 60px;
    background-color: #ffffff;
}

.modules-intro {
    text-align: center;
    margin-bottom: 60px;
}

.modules-intro h2 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.modules-intro p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.modules-category {
    max-width: 1400px;
    margin: 0 auto 80px auto;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #1a1a1a;
    padding: 20px;
    background: linear-gradient(135deg, #048a84 0%, #040a0a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 3px solid;
    border-image: linear-gradient(135deg, #048a84 0%, #040a0a 100%) 1;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.module-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.module-media {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-media video,
.module-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.module-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Efecto especial para cards con video */
.module-card.with-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(102, 126, 234, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.module-card.with-video:hover::before {
    opacity: 1;
}

.modules-footer {
    text-align: center;
    max-width: 700px;
    margin: 60px auto 0 auto;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    border: 1px solid #e5e7eb;
}

.modules-footer p {
    font-size: 1.1rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.modules-footer strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* Responsive para módulos */
@media (max-width: 1200px) {
    .modules-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .modules-section {
        padding: 60px 20px;
    }
    
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .module-media {
        height: 100px;
    }
    
    .module-card h4 {
        font-size: 0.9rem;
    }
    
    .modules-intro h2 {
        font-size: 1.8rem;
    }
    
    .category-title {
        font-size: 1.4rem;
    }
    
    .modules-footer {
        padding: 30px 20px;
    }
}

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