@import url("https://use.typekit.net/rgz4njt.css");

:root {
    --color-front: #000;
    --color-back: #ebff07;
    --color-primary: #0C0;
    --color-secondary: #070;
    --color-third: #050;
    --color-black:#000;
    --color-white:#fff;
    --color-dark:#033;
    --color-clear: #9ff59c;
}

* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    text-decoration: none; 
    list-style: none;  
}

body {
    margin:0;
    font-family: "citrine-variable", sans-serif;
    font-variation-settings: "wght" 400;
    overflow-x: hidden;
    height: 100vh;
}

section {
    width: 100vw;
    height: 100vh;
    padding: 7vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ------------------ TIPOGRAFÍA ------------------ */
h1 {
    font-family: "citrine-variable", sans-serif;
    font-size: 7vw;
    font-weight: 700;
    font-variation-settings: 'wght' 700;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--color-front);    
}
h1 a {
    color: var(--color-front);
}  

p {
    font-size: 1.7vw;
    font-weight: 600;
    line-height: 1.5;
}

em {
    font-style: normal;
    padding: .3rem;
}

a {
    text-decoration: none;
}

h2 {
    font-size:3rem;
    color: var(--color-primary);
}

/* ------------------ NAV ------------------ */
.nav {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 28rem;
    height: 2.5rem;
    z-index: 110;
    display: flex;
    flex-direction: row-reverse;   
    justify-content: space-between;
    align-items: center;
}

/* ------------------ FORM ------------------ */
.auth-email {
    display: block;
    background: var(--color-white);
    color: var(--color-black);
    border: 3px solid black;
    width: 17rem;
    height: 2.5rem;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 1.5rem;
    padding-left: 1rem;
    font-size: 1rem;
}

.form-wrapper {
    display: block;
    position: relative;
    width: 17rem;
    height: 2.7rem;
}
.form-wrapper img {
    height: 1.7rem;
    margin: .4rem;
}

.form-button {
    background: none;
    border: none;
    position: absolute;
    right: 0;
}
.clear {
    position: absolute;
    top: 3rem;
}


/* ------------------ SOUND ------------------ */
.sound-controls {
    position: fixed;
    top:0;
    left: 0;
    width: 11rem;
    height: auto;
    padding: 1rem;
    z-index: 109;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.audio {
    width: auto;
    height: 2.1rem;
}

.boton-audio {
    height: 2.1rem;
    width: auto;
    cursor: pointer;
}
.boton-audio img {
    height: 100%;
}

#audioIcon {
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s ease;
  pointer-events: none;
}
#audioIcon.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ------------------ IDIOMA ------------------ */
.language {
    width: 6rem ;
    height: 2.1rem;
    background: url(https://www.thehappinesswage.com/img/lang.svg) no-repeat;
    display: flex;
    flex-direction: row;
}

.english,
.spanish {
    width: 3rem;
    height: auto;
    cursor: pointer;
    opacity: 0.5;
}

.disabled {
    pointer-events: none;
    opacity: 1;
}

/* ------------------ NAV MAIN ------------------ */
.nav__main {
    display: flex;
    flex-direction: row-reverse;
    min-width: 11rem;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
}
.nav__main li {
    height: 2.3rem;
    width: auto;
    background: var(--color-back);
    border-radius: 1.5rem;
}
.nav__main li img {
    height: 2.3rem;
}

/* ------------------ HEADER ------------------ */
.header {
    width: 100vw;
    top: 27vh;
    position: fixed;
    text-align: center;
    z-index: 100;
}

.loader {
    display: none;
}

/* ------------------ SCROLL HORIZONTAL ------------------ */
.horizontal-wrapper {
    height: 100vh;
    overflow: hidden;
}

/* ✅ Cambio importante: no ancho fijo */
.sections {
    display: flex;
    flex-direction: row;
    width: auto;          /* se ajusta al contenido */
    min-width: 400vw;     /* asegura siempre scroll horizontal */
}

/* ✅ Cada sección ocupa 100vw */
.section {
    flex: 0 0 100vw;
    height: 100vh;
}

.panel1 {
    background-image: url(https://www.thehappinesswage.com/img/bg-panel_1_h.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 45vh;
}
.panel1 p {
    color: var(--color-front);
}
.panel1 p em {
    color: var(--color-white);
    background: var(--color-black);
}

.panel3 {
    background-image: url(https://www.thehappinesswage.com/img/bg-panel_3_h.webp);
    background-position: top right;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 45vh;
}
.panel3 p {
    color: var(--color-white);
}
.panel3 p em {
    color: var(--color-black);
    background: var(--color-back);
}

/* ------------------ VIDEO ------------------ */
.video-bg {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.video-bg .myvideo {
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%,-50%);
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
}

/* ------------------ RESPONSIVE ------------------ */
@media (max-aspect-ratio: 1/1) {
    h1 {
        font-size: 12vw;
        text-align: left; 
        padding: 0 10vw;      
    }
    p {
        font-size: 2.7vw;
        padding: 4vw;
    }

    .panel1 {
        background-image: url(https://www.thehappinesswage.com/img/bg-panel_1_v.webp);
        background-position: top right ;
        padding-top: 52vh;
    }
    .panel3 {
        padding-top: 52vh;
    }
}




@media (max-width: 767px) {
    .nav {
        top: 1.8rem;
        flex-direction: column-reverse;
        align-items: end;
        width: 100vw;
    }
    .nav__main {
        justify-content: flex-start;
        gap: .5rem;
    }

    .auth-email {
        width: 90vw;
    }

    .sound-controls {
        position: fixed;
        top:.6rem;
        z-index: 200;
    }

    .form-wrapper {
        width: 90vw;
        margin-top: .6rem;
    }

    /* ✅ fallback: scroll vertical en móviles chicos */
    .horizontal-wrapper {
        overflow-y: auto;
    }
}
