:root {
    --bg: #05070a;
    --surface: #4a667b;
    --accent: #99cccc;
    --accent-glow: #4a667b;
    --text-main: #ffffff;
    --text-dim: #99cccc;
    --gradient: linear-gradient(135deg, #acb9c2 0%, #99cccc 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fondo decorativo */
.glow-bg {
    position: fixed;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
}

.layout {
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px;
}

/* HEADER */
.header {
    text-align: center;
    margin-bottom: 50px;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 15px;
    display: inline-block;
}

.header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* VIDEO SECTION */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 20px 50px rgba(0,0,0,0.5);
    cursor: pointer;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* OVERLAY MODERNO */
.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 2;
}

.video-wrapper:not(.paused) .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    box-shadow: 0 0 30px var(--accent-glow);
    transition: transform 0.3s ease;
}

.video-wrapper:hover .play-button {
    transform: scale(1.1);
}

/* PROGRESO */
.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
}

.progress-container {
    height: 6px;
    background: rgba(255,255,255,0.1);
}

.progress-bar {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.1s linear;
}

/* CTA CARD */
.actions {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.cta-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    width: 100%;
    max-width: 750px;
}

.cta-card h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.contact-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 28px 80px;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    box-shadow: 0 10px 25px var(--accent-glow);
    transform: translateY(-3px);
}

.sub-text {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-dim);
}



/* --- OPTIMIZACIÓN RESPONSIVE --- */

/* Ajustes para Tablets (Menos de 1024px) */
@media (max-width: 1024px) {
    .layout {
        padding: 40px 20px;
    }
    
    .cta-card {
        max-width: 90%;
    }
}

/* Ajustes para Móviles (Menos de 768px) */
@media (max-width: 768px) {
    .header {
        margin-bottom: 30px;
    }

    .header h1 {
        font-size: 2.2rem; /* Título más pequeño en móvil */
        line-height: 1.1;
    }

    .header p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .video-wrapper {
        border-radius: 16px; /* Bordes menos redondeados en pantallas pequeñas */
    }

    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .video-overlay p {
        font-size: 0.9rem;
    }

    /* Ajuste del botón CTA para que no se desborde */
    .cta-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .contact-btn {
        width: 100%; /* Botón a todo lo ancho en móvil */
        padding: 20px 20px;
        font-size: 1.1rem;
        justify-content: center;
    }

    .glow-bg {
        width: 300px; /* Reducir el resplandor de fondo */
        height: 200px;
    }
}

/* Ajustes para móviles muy pequeños (Menos de 480px) */
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .video-wrapper {
        aspect-ratio: 16 / 9; /* Forzar proporción */
    }
}