* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    z-index: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("img/patronbg.jpg");
    background-repeat: repeat;
    background-size: 300px;
    /* ajusta el tamaño del patrón */
    opacity: 0.08;
    /* aquí controlas la opacidad REAL */
    z-index: -1;
    pointer-events: none;
}


header {
    width: 100%;
    height: 100px;
    background-color: #1A4789;
    margin: 0;

    display: flex;
    /* ← activa flexbox */
    justify-content: space-between;
    /* ← reparte los 3 divs */
    align-items: center;
    /* ← centra verticalmente */
    padding: 0 20px;
    color: white;
    /* ← para que el texto se vea */
}

header>div {
    flex: 1;
    text-align: center;
}

.banner-header {
    max-width: 100%;
    height: auto;
    max-height: 170px;
    /* mantiene el tamaño que quieres */
    object-fit: contain;
}

h1 {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
    text-align: center;
    font-size: 100px;
    margin-bottom: 150px;
    cursor: pointer;
}

#textoProgreso {
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serifas;
    color: #1A4789;
    margin-bottom: 10px;
    text-align: center;
    background-color: white;
}

#textoProgreso span {
    margin-left: 45%;
}


#barraProgreso {
    justify-content: center;
    width: 60%;
    height: 10px;
    background: #d9d9d9;
    border-radius: 5px;
    overflow: hidden;
    margin: 20px auto;
}

#progreso {
    height: 100%;
    width: 0%;
    background: #F3CC2D;
    /* tu dorado */
    transition: width 0.4s ease;
}

footer {
    margin-top: 0px;
    font-family: Arial, Helvetica, sans-serif;
}

/*===============================================================================================*/

#contactoFooter {
    width: 100%;
    display: flex;
    justify-content: center;
    /* centra el conjunto */
    align-items: center;
    /* centra verticalmente ambos */
    gap: 250px;
    /* separación entre texto y mapa */
    padding: 50px 0;
    background-color: #F9F9F9;
    border: 1px solid rgba(0, 0, 0, 0.192);
    ;
}

/* Columna izquierda */
#texto {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* centra el contenido dentro de su columna */
}

/* Columna derecha (mapa) */
#mapa {
    width: 500px;
    height: 200px;
    background-color: #eee;
    /* solo para ver el espacio */
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    /* centra el mapa dentro del div */
}

/* Si usas iframe de Google Maps */
#mapa iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/*Vista para móviles del footer Texto + Mapa*/

/* ============================
   VISTA MÓVIL
   ============================ */
@media (max-width: 768px) {

  #contactoFooter {
    flex-direction: column;   /* uno debajo del otro */
    gap: 20px;                /* separación más pequeña */
    padding: 30px 10px;
  }

  #texto {
    text-align: center;       /* queda más bonito en móvil */
  }

  #mapa {
    width: 100%;              /* ocupa todo el ancho disponible */
    max-width: 350px;         /* límite para que no sea gigante */
    height: 200px;
  }
}


/*===============================================================================================*/



#plegalesFooter {
    height: 100px;
    display: flex;
    justify-content: center;
    /* centro horizontal */
    align-items: center;
    /* centro vertical */
    background-color: white;
    gap: 20px;
}


#plegalesFooter p:hover {
    color: #F3CC2D;
    cursor: pointer;
    transition: 0.2s;
}

header p {
    color: white;
    font-family: Arial;
}

header img {
    width: 35px;
    margin: 2px;
    transition: 0.3s;
    padding: 5px;
    cursor: pointer;
}

header img:hover {
    filter: drop-shadow(0 0 6px #F3CC2D);
}


#logoYt {
    width: 45px;
}

.pantalla {
    display: none;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    padding: 20px;
    padding-bottom: 50px;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px 20px 0px 0px;
}


.pantalla.activa {
    display: block;
}

form {
    margin: 0 auto;
}

.marcadeAgua {
    text-align: right;
}


h2 {
    margin-bottom: 10px;
}

p {
    margin-bottom: 25px;
    color: #555;
}

form {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    max-width: 900px;
    justify-content: center;
}

/* GRID DE ADJETIVOS */
.adjetivos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 30px;
}

/* CADA ADJETIVO */
.adjetivo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

input[type="checkbox"] {
    transform: scale(1.1);
    cursor: pointer;
}


.btn-inicio {
    margin: 30px 70px;
    padding: 12px 20px;
    background: #2b6cb0;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    /* si usas <a> */
    display: inline-block;
}

.btn-inicio:hover {
    background: #1e4e8c;
}

button {
    margin-top: 30px;
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background-color: #2b6cb0;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #1e4e8c;
}

pre {
    margin-top: 20px;
    background: #eef2f7;
    padding: 15px;
    border-radius: 6px;
}


.pregunta-bloque {
    background: #ffffff;
    padding: 15px;
    margin-bottom: 18px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.pregunta-bloque p {
    margin-bottom: 10px;
}

.pregunta-bloque label {
    display: block;
    margin-bottom: 6px;
    cursor: pointer;
}

/*Parte Final CSS code*/
/* =============================== */
/*   CONTENEDOR ESTILO APPLE      */
/* =============================== */

#resultadoFinal {
    max-width: 900px;
    margin: 60px auto;
    padding: 50px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    color: #1a1a1a;
}

/* =============================== */
/*            TÍTULOS             */
/* =============================== */

#resultadoFinal h2 {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 35px;
    color: #111;
    letter-spacing: -0.5px;
}

#resultadoFinal h3 {
    margin-top: 40px;
    font-size: 22px;
    font-weight: 600;
    color: #222;
    letter-spacing: -0.3px;
}

/* =============================== */
/*             TABLA              */
/* =============================== */

#resultadoFinal table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    margin-top: 25px;
    font-size: 16px;
}

#resultadoFinal th {
    background-color: #1A4789;
    color: white;
    font-weight: 400;
    padding-bottom: 10px;
    text-transform: none;
    font-size: 16px;
    border-bottom: 1px solid #e5e5e5;
}

#resultadoFinal td {
    background: #ffffff;
    padding: 18px 20px;
    text-align: center;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    color: #333;
}

/* =============================== */
/*        LISTA TOP 3             */
/* =============================== */

#resultadoFinal ul {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

#resultadoFinal ul li {
    background: #ffffff;
    padding: 18px 22px;
    margin-bottom: 12px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.03);

    /* acento dorado premium */
}

/* =============================== */
/*        CÓDIGO HOLLAND          */
/* =============================== */

#resultadoFinal .codigo-holland {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    text-align: center;
    font-size: 42px;
    color: #111;
    margin-top: 40px;
    letter-spacing: 8px;
    opacity: 0.9;
}


.grafico-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}



/* =============================== */
/*     BOTÓN DE REINICIAR         */
/* =============================== */

.btn-reiniciar {
    margin: 40px;
    padding: 14px 26px;
    background: #111;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

.btn-reiniciar:hover {
    background: #000;
    transform: translateY(-2px);
}


/*Botón de reiniciar*/

.btn-reiniciar {
    margin: 30px 100px;
    padding: 12px 20px;
    background: #2b6cb0;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-reiniciar:hover {
    background: #1a4f80;
}

/*Animaciones*/

.resultado-animado {
    opacity: 0;
    transform: translateY(-20px);
    animation: aparecerDesplegado 0.6s ease-out forwards;
    animation-delay: 0.4s;
    /* ⭐ espera 0.4 segundos antes de animar */
}

@keyframes aparecerDesplegado {
    0% {
        opacity: 0;
        transform: translateY(-20px) scaleY(0.9);
    }

    60% {
        opacity: 1;
        transform: translateY(0) scaleY(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}