/* TIPOGRAFÍAS */

@font-face {
    font-family: 'Kepler';
    src: url('../fonts/KeplerStdBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kepler';
    src: url('../fonts/KeplerStdRegular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SourceSans-Bold';
    src: url('../fonts/SourceSans3-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SourceSans-Regular';
    src: url('../fonts/SourceSans3-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

body {
    background-color: #FFFAEA;
    font-family: 'SourceSans-Regular', sans-serif;
    height: 100dvh;
    
}

#app-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 4vh 8vw;
}

.screen.active {
    display: flex;
}

/* LOGOS Y TÍTULOS GENERALES */

.logo {
    width: 40vw;
    height: 40vw;
    max-width: 180px;;
    background-image: url('../img/logo-panot.svg');
    background-size: cover;
    margin-top: 5vh;
}

.logo-small {
    width: 40vw;
    height: 40vw;
    background-image: url('../img/logo-panot.svg');
    background-size: cover;
    margin-top: 5vh;
    border-radius: 25px;
}

.main-title {
    font-size: 16vw;
    max-font-size: 62px;
    color: #EC001B;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Kepler';
    margin-top: 2vh;
    text-align: center;
}

.subtitle {
    font-size: 5.3vw;
    color: #630100;
    font-weight: 300;
    font-family: 'SourceSans-Regular', sans-serif;
    text-align: center;
    margin-top: 4vh;
    line-height: 1.2;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.form-title-serif {
    font-family: 'Kepler';
    font-weight: bold;
    font-size: clamp(32px, 8vw + 1rem, 58px);
    color: #000;
    text-align: center;
    line-height: 0.9;
    text-transform: uppercase;
}

/*  FORMULARIOS */

.custom-form {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.input-group {
    width: 100%;
    margin-bottom: 10px;
}


.input-group label {
    font-family: 'SourceSans-Regular', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    display: block;
    margin-left: 5px;
}


.input-group input {
    width: 100%;
    height: 45px;
    border-radius: 20px;
    border: 1px solid #EAEAEA;
    background-color: #FFFFFF;
    box-shadow: inset 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
    outline: none;
}


/* BOTONES GENERALES */


.btn {
    background-color: #F5C143;
    color: #FFFFFF;
    font-size: 26px;
    font-family: 'SourceSans-Bold', sans-serif;
    border: none;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    height: 7.1vh;
    min-height: 55px;
    transition: transform 0.2s;
}


.button-group {
    display: flex;
    flex-direction: column;
    gap: 2.5vh;
    margin-top: auto;
    margin-bottom: 6vh;
    align-items: center;
    width: 100%;
}


.button-group .btn {
    width: 270px;
}


.btn-full {
    width: 100%;
    margin-top: auto;
    margin-bottom: 40px;
}

/* 1. INICI DE SESSIÓ (#step-2) */

#step-2 .form-title-serif {
    margin-top: clamp(20px, 5vw, 40px);;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#step-2 .custom-form { margin-top: 90px; }
#step-2 .input-group input { height: 74px; }
#step-2 .input-group { margin-bottom: 25px; }
#step-2 .forgot-password { margin-top: -10px; margin-bottom: 10px; text-align: center; color: #B19146; font-size: 13px; }
#step-2 .btn-full { height: 65px; }

/* 2. REGISTRA'T (#step-3) */

#step-3 .large-title {
    font-size: 40px;
    text-align: left;
    margin-top: 60px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
#step-3 .custom-form { margin-top: 45px; }
#step-3 .input-group input { height: 42px; }
#step-3 .input-group { margin-bottom: 35px; }
#step-3 .btn-full { height: 55px; }


/* PAGINAS AMB PANOT (4, 5, 6, 7 y 8) */


#step-4, #step-5, #step-6, #step-7, #step-8 {
    padding-bottom: 0;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.logo-faded {
    opacity: 0.35;
    margin-top: 1vh;
}

.speech-container {
    width: 100%;
    max-width: 380px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 230px;
    z-index: 10;
}

#step-4 .speech-bubble,
#step-5 .speech-bubble,
#step-6 .speech-bubble,
#step-7 .speech-bubble,
#step-8 .speech-bubble {
    background-image: url('../img/nube-sessio.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 250px;
    padding: 55px 35px 105px 76px;
    position: relative;
    display: flex;
    flex-direction: column;
}

#step-4 .speech-bubble p,
#step-5 .speech-bubble p,
#step-6 .speech-bubble p,
#step-7 .speech-bubble p,
#step-8 .speech-bubble p {
    font-family: 'SourceSans-Regular', sans-serif;
    font-size: 19px;
    color: #000;
    line-height: 1.5;
    text-align: left;
    margin-left: -24px;
}

#step-4 .speech-bubble strong,
#step-5 .speech-bubble strong,
#step-6 .speech-bubble strong,
#step-7 .speech-bubble strong,
#step-8 .speech-bubble strong {
    font-size: 23px;
    font-weight: bold;
    font-family: 'Kepler';
}

/* Flechas (Pag 4, 7, 8) */

#step-4 .btn-next-arrow,
#step-7 .btn-next-arrow,
#step-8 .btn-next-arrow {
    position: absolute;
    right: 34px;
    bottom: 54px;
    width: 50px;
    height: 50px;
    background-color: #F5C143;
    border-radius: 50%;
    border: none;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-next-arrow img { width: 30px; }

/* Grupos de botones generales */


.role-button-group, .level-button-group {
    position: absolute;
    bottom: 54px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 0 20px;
}


.btn-role {
    background-color: #F5C143;
    color: #FFFFFF;
    font-family: 'SourceSans-Bold', sans-serif;
    font-weight: bold;
    border: none;
    border-radius: 15px;
    padding: 10px 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    min-width: 100px;
    font-size: 14px;
}

/* AJUSTE ESPECÍFICO PÁGINA 6: BOTONES Y ESPACIADO CORREGIDO */

#step-6 .level-button-group {
    bottom: 55px; /* Subido para que quede bien centrado en el área blanca */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 90%;
    padding: 0;
}

#step-6 .level-button-group .btn-role {
    min-width: 40px;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 12px;
    flex: 1;
    max-width: 100px;
}

/* PERSONAJE */

.character-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    line-height: 0;
}

.character-img {
    width: 125%;
    max-width: 500px;
    height: auto;
    margin-bottom: -15px;
}

/* PANTALLA DE CARGA */

#pantalla_carga_container {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #FFFAEA;
    height: 100dvh;
    width: 100vw;
    margin: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.icona {
    background-image: url('../img/icono_apple_carga.png');
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
    width: 7.5vh;
    height: 10vh;
    margin: auto;
    animation: rotacio 2s linear infinite;
}

.contenidor_icona {
    transform: translateY(800px);
    animation: subida 4s cubic-bezier(.25,.8,.25,1) forwards,
               ampliar 4s ease-in 5s forwards;
}

@keyframes rotacio {
    from { transform: rotateZ(0deg); }
    to { transform: rotateZ(360deg); }
}

@keyframes subida {
  from { opacity: 0; transform: translateY(800px); }
  to { opacity: 1; transform: translateY(0px); } /* Ajustado a 0px para centrar */
}

@keyframes ampliar {
  from { transform: translateY(0px) scale(1); opacity: 1; }
  to { transform: translateY(0px) scale(30); opacity: 0; }
}