/* ==========================================================================
   1. Variables y Configuración Global
   ========================================================================== */

:root {
    --color-primary: #4CAF50;
    --color-primary-dark: #45a049;
    --color-secondary: #2A6F56;
    --color-secondary-dark: #1e5a43;
    --color-highlight: #90EE90;

    --color-text-base: #1a1a1a;
    --color-text-muted: #666;
    --color-white: #fff;
    --color-background-light: #f8f9fa;
    --color-border: #e1e5e9;

    --color-success: #4CAF50;
    --color-success-background: #f0fdf4;
    --color-success-border: #bbf7d0;

    --color-error: #ef4444;
    --color-error-background: #fef2f2;
    --color-error-border: #fecaca;
    
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   2. Reset Básico y Estilos Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--color-text-base);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* Clase para bloquear el scroll completamente (solo usada en casos especiales) */
body.no-scroll {
    overflow-y: hidden;
    position: fixed;
    width: 100%;
}

ul {
    list-style: none;
}

/* ==========================================================================
   3. Clases de Utilidad y Contenedor
   ========================================================================== */

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==========================================================================
   4. Header
   ========================================================================== */

.header {
    background: var(--color-text-base);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-secondary);
    text-decoration: none;
}

/* ==========================================================================
   5. Contenido Principal
   ========================================================================== */

.main-content {
    min-height: calc(100vh - 140px);
    padding: 0 0 150px 0; /* Removed top padding to eliminate white space */
}

/* --- Copyright --- */
.footer__copyright {
    text-align: center;
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid var(--color-border);
}

.footer__copyright p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* --- Sección de Bienvenida --- */
.welcome-section {
    text-align: center;
    background-color: #2a6f56;
    padding: 60px 0;
    margin: 0 0 60px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.welcome-section h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.welcome-section .highlight {
    color: var(--color-highlight);
}

.welcome-text {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    padding: 0 20px;
}

.welcome-subtitle {
    font-size: 1.3rem;
    color: var(--color-white);
    margin: 2rem 0 1.5rem 0;
    text-align: center;
    line-height: 1.5;
}

.welcome-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 1.5rem 0;
    text-align: center;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
    padding: 0;
}

.feature-card {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
    border-color: var(--color-primary);
}

.feature-icon {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-right: 0.5rem;
    display: inline;
    vertical-align: baseline;
}

.feature-card p {
    font-size: 1.1rem;
    color: var(--color-text-base);
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.welcome-testimonial {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 16px;
    margin: 2.5rem 0;
    text-align: center;
    border-left: 4px solid var(--color-highlight);
}

.welcome-testimonial h3 {
    color: var(--color-secondary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.welcome-final {
    font-size: 1.1rem;
    color: var(--color-text-base);
    line-height: 1.6;
    margin: 0;
}

/* --- Sección de Video --- */
.video-section {
    margin-bottom: 80px;
    text-align: center;
    min-height: 70vh;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-background-light);
    border-radius: 20px;
    margin: 0 0 80px 0;
}

/* --- Sección de Demo --- */
.demo-section {
    margin-bottom: 80px;
    text-align: center;
    padding: 40px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.demo-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-base);
    margin-bottom: 16px;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.demo-description {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin: 16px 0 32px;
    line-height: 1.6;
    text-align: center;
    width: 100%;
}

.demo-highlights {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.demo-highlight {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

/* Botón debajo del video */
.video-bottom-cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0 0 0;
    padding: 0;
    width: 100%;
}

/* Controles de video personalizados - Ocultos para YouTube iframe */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: none; /* Ocultar controles personalizados para YouTube */
    align-items: center;
    padding: 10px 15px;
    gap: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.video-wrapper:hover .video-controls,
.video-controls:focus-within {
    opacity: 1;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.control-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.progress-container {
    flex: 1;
    height: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: width 0.1s ease;
    width: 0%;
}

.time-display {
    color: white;
    font-size: 12px;
    min-width: 80px;
    text-align: center;
}

/* Video HTML5 styling */
#main-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    background: #000;
    display: block;
}

.video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-background-light);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    /* Fallback para navegadores antiguos */
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

/* Modern browsers con soporte para aspect-ratio */
@supports (aspect-ratio: 16/9) {
    .video-wrapper {
        height: auto;
        padding-bottom: 0;
        aspect-ratio: 16/9;
    }
}

.video-container h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.video-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.video-highlights {
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.video-highlight {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 600;
    margin: 0.8rem 0;
    line-height: 1.5;
    text-align: center;
}


#main-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    background: none;
    transform: scale(1.001);
    border: none; /* Para iframes de YouTube */
    pointer-events: auto; /* Permitir interacción con controles */
}

/* Deshabilitar menú contextual en el video */
#main-video iframe {
    pointer-events: auto;
}

.video-wrapper {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* --- Video Progress Bar --- */
.video-progress-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.video-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

/* --- Overlay de Video --- */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 8000;
    backdrop-filter: blur(8px);
}

.video-message {
    background: var(--color-white);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
    margin: 20px;
    animation: modalSlideIn 0.4s ease-out;
}

.video-message p {
    font-size: 1.125rem;
    margin-bottom: 20px;
    color: var(--color-text-base);
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-highlight));
    width: 0%;
    transition: width 0.3s ease;
}

/* --- Scroll Blocker --- */
.scroll-blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    pointer-events: none;
    display: none;
}

.scroll-blocker.active {
    display: block;
    pointer-events: all;
}

/* ==========================================================================
   6. Formulario de Contacto
   ========================================================================== */

.contact-section {
    background: var(--primary-green)#2A6F56;
    border-radius: 20px;
    padding: 60px;
    margin: 60px 0 120px 0; /* Extra margin bottom for calendar space */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-header h3 {
    color: var(--color-text-base);
    font-size: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.form-header p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--color-text-base);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--color-white);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(76,175,80,0.1);
}

.form-submit {
    width: 100%;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 1rem;
}

.form-submit:hover:not(:disabled) {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* --- Checkbox Styling --- */
.checkbox-group {
    margin: 2rem 0 1.5rem 0;
    display: flex;
    flex-direction: row;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.checkbox-text {
    margin-left: 0.5rem;
    color: var(--color-text-base);
}

.form-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-link:hover {
    color: var(--color-primary-dark);
}

/* --- Estados del Formulario --- */
.form-status {
    margin-top: 1.5rem;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background: var(--color-success-background);
    color: var(--color-success);
    border: 1px solid var(--color-success-border);
}

.form-status.error {
    display: block;
    background: var(--color-error-background);
    color: var(--color-error);
    border: 1px solid var(--color-error-border);
}

/* --- Calendar Widget --- */
.calendar-widget {
    margin-top: 2rem;
    margin-bottom: 120px; /* Extra space for fixed footer */
    padding: 2rem;
    background: var(--color-white);
    border-radius: 16px;
    border: 2px solid var(--color-primary);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.1);
}

.calendar-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.calendar-header h4 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.calendar-header p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.calendar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px; /* Increased min-height for calendar */
    width: 100%;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */

.footer {
    background: var(--color-text-base);
    color: var(--color-white);
    padding: 25px 0 15px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 10px 20px 10px;
    font-size: 0.875rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}   

/* --- Partners Footer --- */
.partners-footer {
    margin-bottom: 15px;
}

.partners-footer__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.partners-footer__text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.partners-footer__logos {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.partners-footer__logo {
    height: 32px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partners-footer__logo:hover {
    opacity: 1;
}

/* ==========================================================================
   8. Responsive Design - Mobile First Approach
   ========================================================================== */

/* Base Mobile Styles (320px+) */
@media (max-width: 480px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .demo-section {
        padding: 20px 0;
        margin-bottom: 40px;
    }
    
    .demo-container {
        padding: 0 10px;
    }
    
    .demo-section h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .demo-description {
        font-size: 1rem;
        text-align: center;
    }
    
    .demo-highlight {
        font-size: 1rem;
        justify-content: center;
        text-align: center;
    }
    
    /* Video responsive en móviles - aspect-ratio se mantiene automáticamente */
    
    .main-content {
        padding: 0 0 120px 0;
    }
    
    /* Header */
    .header {
        padding: 10px 0;
    }
    
    .logo img {
        width: 90px;
        height: auto;
    }
    
    /* Welcome Section */
    .welcome-section {
        margin-bottom: 30px;
        text-align: center;
        padding: 30px 0;
        margin-top: 0;
    }
    
    .welcome-section h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        padding: 0 15px;
    }
    
    .welcome-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .welcome-content {
        text-align: center;
        padding: 0 15px;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    .welcome-description {
        font-size: 1rem;
        margin: 1rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .feature-card {
        padding: 1.2rem;
    }
    
    .feature-icon {
        font-size: 1.2rem;
        margin-right: 0.4rem;
    }
    
    .feature-card p {
        font-size: 1rem;
        line-height: 1.5;
        gap: 0.4rem;
    }
    
    .welcome-testimonial {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .welcome-testimonial h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .welcome-final {
        font-size: 1rem;
    }
    
    /* Video Section */
    .video-section {
        margin-bottom: 40px;
        padding: 20px 0;
        min-height: 50vh;
    }
    
    .video-container h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .video-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .video-highlights {
        margin-bottom: 1.5rem;
    }
    
    .video-highlight {
        font-size: 1rem;
        margin: 0.6rem 0;
        line-height: 1.4;
    }
    
    .video-wrapper {
        margin: 0 auto; /* Center the video */
        border-radius: 8px;
        max-width: 100%;
    }
    
    /* Video Message */
    .video-message {
        padding: 25px 15px;
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .video-message p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Form */
    .contact-section {
        padding: 25px 10px;
        margin: 30px -10px 100px -10px; /* Full width */
        border-radius: 12px;
    }
    
    .form-header h3 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .form-header p {
        font-size: 0.95rem;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .form-submit {
        padding: 16px;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
        gap: 10px;
    }
    
    .checkbox-custom {
        min-width: 18px;
        width: 18px;
        height: 18px;
    }
    
    /* Copyright */
    .footer__copyright {
        margin-top: 40px;
        padding: 20px 0;
    }
    
    .footer__copyright p {
        font-size: 0.85rem;
    }
    
    /* Footer */
    .footer {
        padding: 15px 0 8px 0;
        font-size: 0.8rem;
    }
    
    .partners-footer__content {
        flex-direction: column;
        gap: 8px;
    }
    
    .partners-footer__text {
        font-size: 0.75rem;
    }
    
    .partners-footer__logos {
        gap: 12px;
        justify-content: center;
    }
    
    .partners-footer__logo {
        height: 24px;
    }
}

/* Small Mobile Landscape & Large Mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Video responsive en tablets - aspect-ratio se mantiene automáticamente */
    
    .main-content {
        padding: 0 0 130px 0;
    }
    
    .logo img {
        width: 100px;
        height: auto;
    }
    
    .welcome-section {
        padding: 40px 0;
    }
    
    .welcome-section h1 {
        font-size: 2.2rem;
    }
    
    .welcome-text {
        font-size: 1.1rem;
    }
    
    .welcome-subtitle {
        font-size: 1.2rem;
        margin: 1.8rem 0 1.2rem 0;
    }
    
    .welcome-description {
        font-size: 1.05rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
        margin: 2rem 0;
    }
    
    .feature-card {
        padding: 1.4rem;
    }
    
    .feature-icon {
        font-size: 1.25rem;
        margin-right: 0.45rem;
    }
    
    .feature-card p {
        font-size: 1.05rem;
        line-height: 1.55;
        gap: 0.45rem;
    }
    
    .welcome-testimonial {
        padding: 1.8rem;
        margin: 2.2rem 0;
    }
    
    .welcome-testimonial h3 {
        font-size: 1.3rem;
    }
    
    .welcome-final {
        font-size: 1.05rem;
    }
    
    .video-container h2 {
        font-size: 1.8rem;
    }
    
    .video-wrapper {
        margin: 0 auto;
        max-width: 95%;
    }
    
    .video-description {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .video-highlights {
        margin-bottom: 2rem;
    }
    
    .video-highlight {
        font-size: 1.05rem;
        margin: 0.7rem 0;
    }
    
    .contact-section {
        padding: 35px 20px;
        margin: 40px 0 110px 0;
    }
    
    .form-header h3 {
        font-size: 1.6rem;
    }
    
    .video-message {
        padding: 35px 25px;
        margin: 15px;
    }
}

/* Tablet Portrait (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .main-content {
        padding: 0 0 140px 0;
    }
    
    .welcome-section {
        padding: 50px 0;
    }
    
    .welcome-section h1 {
        font-size: 2.5rem;
    }
    
    .welcome-text {
        font-size: 1.2rem;
    }
    
    .video-container h2 {
        font-size: 2rem;
    }
    
    .video-wrapper {
        margin: 0 auto;
        max-width: 90%;
    }
    
    .video-description {
        font-size: 1.1rem;
        margin-bottom: 1.4rem;
    }
    
    .video-highlights {
        margin-bottom: 2.2rem;
    }
    
    .video-highlight {
        font-size: 1.08rem;
        margin: 0.75rem 0;
    }
    
    .contact-section {
        padding: 50px 40px;
        margin: 60px 0 120px 0;
    }
    
    .form-header h3 {
        font-size: 1.8rem;
    }
    
    .video-message {
        padding: 40px 30px;
        margin: 20px;
        max-width: 500px;
    }
}

/* Tablet Landscape & Small Desktop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .content-wrapper {
        max-width: 800px;
    }
    
    .welcome-section h1 {
        font-size: 2.8rem;
    }
    
    .video-container h2 {
        font-size: 2.1rem;
    }
    
    .contact-section {
        padding: 55px 50px;
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .content-wrapper {
        max-width: 900px;
    }
    
    .welcome-section h1 {
        font-size: 3rem;
    }
    
    .video-container h2 {
        font-size: 2.25rem;
    }
    
    .contact-section {
        padding: 60px;
    }
}

/* Ultra Wide Screens (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
    
    .content-wrapper {
        max-width: 1000px;
    }
    
    .welcome-section h1 {
        font-size: 3.2rem;
    }
    
    .video-container h2 {
        font-size: 2.4rem;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .partners-footer__logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ==========================================================================
   9. Modal Styles
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    padding: 20px;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-container {
    background: var(--color-white);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
    touch-action: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

.modal-header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-content {
    padding: 0;
    height: 600px;
    overflow: hidden;
}

.modal-content .calendar-container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background-light);
}

.modal-content iframe {
    border: none;
    width: 100%;
    height: 100%;
    border-radius: 0 0 20px 20px;
    overflow: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    touch-action: auto;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

/* Text content modal styling */
.modal-content.text-content {
    height: auto;
    max-height: 70vh;
    overflow-y: auto;
    padding: 30px;
}

.legal-content {
    color: var(--color-text-base);
    line-height: 1.6;
}

.legal-content h2 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-content h3 {
    color: var(--color-secondary);
    font-size: 1.125rem;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--color-text-base);
}

.legal-content ul {
    margin: 0.75rem 0 1rem 1.5rem;
    padding-left: 0;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--color-text-base);
}

.legal-content strong {
    color: var(--color-primary);
}

/* ==========================================================================
   10. Animaciones
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.contact-section {
    animation: fadeIn 0.6s ease-out;
}

.video-overlay {
    animation: fadeIn 0.3s ease-out;
}

/* ==========================================================================
   11. Modal Responsive Design
   ========================================================================== */

/* Mobile First - Small Phones (320px - 480px) */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 2px;
    }
    
    .modal-container {
        border-radius: 8px;
        max-height: 96vh;
        width: calc(100vw - 4px);
        margin: 2px;
    }
    
    .modal-header {
        padding: 10px 12px;
        border-radius: 8px 8px 0 0;
    }
    
    .modal-header h3 {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .modal-content {
        height: calc(96vh - 50px);
        min-height: 400px;
        border-radius: 0 0 8px 8px;
    }
    
    .modal-content iframe {
        width: 100%;
        height: 100%;
        border-radius: 0 0 8px 8px;
        touch-action: auto !important;
        pointer-events: auto !important;
        -webkit-touch-callout: default;
        -webkit-user-select: auto;
        user-select: auto;
        position: relative;
        z-index: 2;
    }
    
    .modal-close {
        padding: 6px;
    }
    
    .modal-close svg {
        width: 16px;
        height: 16px;
    }
    
    /* Text content modals for mobile */
    .modal-content.text-content {
        height: auto;
        max-height: calc(96vh - 50px);
        padding: 15px;
        overflow-y: auto;
    }
    
    .legal-content h2 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .legal-content h3 {
        font-size: 1rem;
        margin: 1rem 0 0.5rem 0;
    }
    
    .legal-content p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
}

/* Large Mobile & Small Tablet (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .modal-overlay {
        padding: 8px;
    }
    
    .modal-container {
        border-radius: 12px;
        max-height: 92vh;
        width: 100%;
        max-width: 500px;
    }
    
    .modal-header {
        padding: 12px 16px;
    }
    
    .modal-header h3 {
        font-size: 1.15rem;
    }
    
    .modal-content {
        height: calc(92vh - 60px);
        min-height: 450px;
    }
    
    .modal-content iframe {
        border-radius: 0 0 12px 12px;
        touch-action: auto !important;
        pointer-events: auto !important;
    }
    
    .modal-close svg {
        width: 18px;
        height: 18px;
    }
    
    .modal-content.text-content {
        padding: 20px;
        max-height: calc(92vh - 60px);
    }
}

/* Tablet Portrait (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .modal-overlay {
        padding: 15px;
    }
    
    .modal-container {
        border-radius: 16px;
        max-height: 88vh;
        max-width: 700px;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-content {
        height: calc(88vh - 70px);
        min-height: 500px;
    }
    
    .modal-content iframe {
        border-radius: 0 0 16px 16px;
    }
    
    .modal-close svg {
        width: 20px;
        height: 20px;
    }
    
    .modal-content.text-content {
        padding: 25px;
        max-height: calc(88vh - 70px);
    }
}

/* Desktop & Large Tablet (1024px+) */
@media (min-width: 1024px) {
    .modal-overlay {
        padding: 20px;
    }
    
    .modal-container {
        border-radius: 20px;
        max-height: 85vh;
        max-width: 900px;
    }
    
    .modal-header {
        padding: 20px 25px;
    }
    
    .modal-header h3 {
        font-size: 1.5rem;
    }
    
    .modal-content {
        height: calc(85vh - 80px);
        min-height: 600px;
    }
    
    .modal-content iframe {
        border-radius: 0 0 20px 20px;
    }
    
    .modal-close svg {
        width: 24px;
        height: 24px;
    }
    
    .modal-content.text-content {
        padding: 30px;
        max-height: calc(85vh - 80px);
    }
}

/* Ultra Wide Desktop (1400px+) */
@media (min-width: 1400px) {
    .modal-container {
        max-width: 1000px;
    }
    
    .modal-content {
        min-height: 650px;
    }
    
    .modal-content.text-content {
        padding: 40px;
    }
}

/* Landscape Orientation Specific */
@media (orientation: landscape) and (max-height: 600px) {
    .modal-container {
        max-height: 95vh;
    }
    
    .modal-content {
        height: calc(95vh - 50px);
        min-height: auto;
    }
    
    .modal-content.text-content {
        max-height: calc(95vh - 50px);
        padding: 15px 25px;
    }
}

/* ==========================================================================
   12. Video CTA Button (Below Video)
   ========================================================================== */

.video-cta-container {
    text-align: center;
    margin: 40px 0 20px 0;
    opacity: 1;
    transition: all 0.5s ease;
}

.video-cta-container.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.video-cta-button {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    overflow: hidden;
    animation: videoPulse 3s ease-in-out infinite;
}

.video-cta-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.6);
}

.video-cta-button:active {
    transform: translateY(0) scale(0.98);
}

.video-cta-button:focus {
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4), 0 0 0 3px rgba(76, 175, 80, 0.3);
}

.video-cta-text {
    display: inline-block;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

/* Pulse animation for video CTA */
@keyframes videoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 10px 30px rgba(76, 175, 80, 0.5);
    }
}

/* Ripple effect on click */
.video-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.video-cta-button.clicked::before {
    width: 300px;
    height: 300px;
}

/* Mobile styles for video CTA button */
@media (max-width: 768px) {
    .video-cta-container {
        margin: 30px 0 15px 0;
    }
    
    .video-cta-button {
        padding: 16px 32px;
        font-size: 1.1rem;
        border-radius: 40px;
    }
}

@media (max-width: 480px) {
    .video-cta-container {
        margin: 25px 0 10px 0;
    }
    
    .video-cta-button {
        padding: 14px 28px;
        font-size: 1rem;
        border-radius: 35px;
    }
    
    .video-cta-text {
        font-size: 1rem;
    }
}

/* ==========================================================================
   13. Audio Activation Message
   ========================================================================== */

.audio-activation-message {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 15;
    animation: slideInFromRight 0.5s ease-out;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.audio-message-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: var(--color-text-base);
    min-width: 280px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.audio-message-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 14px;
}

.audio-icon {
    font-size: 18px;
    animation: pulse 2s infinite;
}

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

.audio-activation-btn {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.audio-activation-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.audio-close-btn {
    position: absolute;
    top: 4px;
    right: 8px;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.audio-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--color-text-base);
}

@media (max-width: 768px) {
    .audio-activation-message {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .audio-message-content {
        min-width: auto;
        padding: 12px 16px;
    }
    
    .audio-message-text {
        font-size: 13px;
    }
}