/*
PALETA:
VERDE: #026937
VERDE CLARO: #8dc63f
CELESTE: #3ebdac
AQUA: #0e7774
AMARILLO: #f9a12c
ROJO: #ef434d
VIOLETA: #70205b
*/
body {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    font-family: 'Nunito Sans', sans-serif;
    overflow-x: hidden;
}

#mensaje_final {
    display: none;
    font-size: clamp(1.8rem, 5vw, 3rem);
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100vw;
    min-height: 100vh;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    opacity: 1;
    pointer-events: none;
}

.main-wrapper {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 70px;
    box-sizing: border-box;
}

.titulo-arriba {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    z-index: 10;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.titulo-arriba h1 {
    width: 92vw;
    max-width: 800px;
    font-size: clamp(1.1rem, 3.8vw, 1.8rem);
    font-weight: 800;
    color: #1d2d1a;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 1.8rem;
    padding: 1.2rem 1.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    letter-spacing: 0.01em;
    border: 2px solid #b6e2b3;
    line-height: 1.3;
    animation: neon-border 12s linear infinite;
    box-sizing: border-box;
}

.titulo-arriba.expand {
    transition: min-height 0.7s cubic-bezier(0.4, 0, 0.2, 1), padding 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 60vh !important;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    justify-content: center !important;
}

ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

ul li {
    margin-top: 0.6em;
}

.contenido_slide.massive {
    transition: font-size 0.7s cubic-bezier(0.4, 0, 0.2, 1), line-height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: clamp(1.6rem, 5.5vw, 3.4rem) !important;
    line-height: 1.2;
    font-weight: 900;
    width: 90vw;
    max-width: 850px;
    text-align: center;
}

.incremento {
    animation: growText 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes growText {
    0% {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
        letter-spacing: 0.01em;
    }
    100% {
        font-size: clamp(1.6rem, 5.5vw, 3.4rem);
        letter-spacing: 0.01em;
    }
}

.contenedor_iniciador {
    position: relative;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    width: auto;
    max-width: 95vw;
    z-index: 12;
    justify-content: center;
    align-items: center;
    display: flex;
}

.iniciador_central {
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn_iniciador {
    font-size: clamp(1rem, 3.2vw, 1.3rem);
    padding: 0.8rem 1.8rem;
    border-radius: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn_iniciador:hover, .btn_iniciador:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.mute, .audible {
    height: 2.2rem;
    width: auto;
    object-fit: contain;
}

/* Indicador de grabación flotante no invasivo */
.indicador_grabacion {
    position: fixed;
    top: 15px;
    right: 15px;
    bottom: auto;
    left: auto;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-radius: 2rem;
    padding: 6px 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

.icono_grabacion {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.indicador_grabacion.fade-in {
    display: flex !important;
    opacity: 1;
    animation: fadeIn 0.5s;
}

.recording_badge {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Barra de progreso */
.contenedor_progreso {
    background: rgba(15, 25, 15, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Fade out */
.fade-out {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Pie de página ecolab */
.footprint_ecolab {
    bottom: 0;
    left: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    padding: 0.4rem 0;
    text-align: center;
    font-size: 1rem;
    color: #2e4d2c;
    letter-spacing: 0.05em;
}

.footprint_ecolab h2 {
    font-size: 1.2rem;
    margin-bottom: 0.1rem;
}

@keyframes neon-border {
    0% {
        box-shadow: 0 0 10px 2px #8dc63f, 0 0 20px 3px #026937;
        border-color: #f9a12c;
    }
    25% {
        box-shadow: 0 0 14px 3px #0e7774, 0 0 24px 5px #3ebdac;
        border-color: #8dc63f;
    }
    50% {
        box-shadow: 0 0 18px 4px #f9a12c, 0 0 30px 8px #0e7774;
        border-color: #026937;
    }
    75% {
        box-shadow: 0 0 14px 3px #3ebdac, 0 0 24px 5px #f9a12c;
        border-color: #8dc63f;
    }
    100% {
        box-shadow: 0 0 10px 2px #8dc63f, 0 0 20px 3px #0e7774;
        border-color: #f9a12c;
    }
}

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

/* Media Queries para teléfonos móviles */
@media (max-width: 768px) {
    .titulo-arriba {
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }

    .titulo-arriba h1 {
        padding: 1rem 1.2rem;
        border-radius: 1.4rem;
    }

    .titulo-arriba.expand {
        min-height: 55vh !important;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .contenedor_iniciador {
        gap: 0.75rem;
    }

    .btn_iniciador {
        padding: 0.65rem 1.2rem;
    }

    .footprint_ecolab {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }

    .footprint_ecolab h2 {
        font-size: 1rem;
    }

    .indicador_grabacion {
        top: 50px;
        right: 10px;
        padding: 4px 10px;
    }

    .icono_grabacion {
        width: 22px;
        height: 22px;
    }

    .recording_badge {
        font-size: 0.65rem;
    }
}


