﻿* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
}

.pagina-inicio {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-image: url('../img/inicio.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: auto 100vh;
}

.inicio-contenido {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.inicio-botones {
    position: absolute;
    top: 64.5%;
    right: 7%;
    width: 32%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.boton-imagen {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.boton-imagen img {
    display: block;
    width: 100%;
    height: auto;
}

.boton-imagen:hover {
    transform: scale(1.02);
}

.boton-imagen:active {
    transform: scale(0.98);
}

.panel-registro {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}

.panel-registro.activo {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.registro-contenido {
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    border-radius: 25px;
    background: #ffffff;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.registro-cerrar {
    position: absolute;
    top: 12px;
    right: 18px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #079da5;
    font-size: 32px;
    line-height: 40px;
    cursor: pointer;
}

.registro-contenido h1 {
    margin: 0 0 10px;
    color: #008fa0;
    font-size: 32px;
    text-align: center;
}

.registro-contenido p {
    margin: 0 0 25px;
    color: #555555;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.campo {
    margin-bottom: 18px;
}

.campo label {
    display: block;
    margin-bottom: 8px;
    color: #007f91;
    font-size: 16px;
    font-weight: 700;
}

.campo input {
    width: 100%;
    height: 38px;
    padding: 0 15px;
    border: 2px solid #c8e7eb;
    border-radius: 12px;
    outline: none;
    background: #f8fcfd;
    color: #333333;
    font-size: 16px;
}

.campo input:focus {
    border-color: #00a3ad;
}

.campo-consentimiento {
    margin-top: 18px;
}

.campo-consentimiento label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #333333;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
}

.campo-consentimiento input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.campo-consentimiento span {
    display: block;
}

.boton-enviar {
    width: 100%;
    min-height: 50px;
    margin: 30px auto 0;
    border: 0;
    border-radius: 25px;
    background: #00a0a8;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.boton-enviar:hover {
    background: #008f98;
}

.registro-errores {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 12px;
    background: #ffecec;
}

.registro-errores p {
    margin: 0;
    color: #b00020;
    font-size: 14px;
    text-align: left;
}

@media (max-width: 600px) {

    .pagina-inicio {
        background-size: auto 100vh;
        background-position: center top;
    }

    .inicio-botones {
        top: 64.5%;
        right: 6%;
        width: 38%;
        gap: 7px;
    }

    .panel-registro {
        align-items: flex-start;
        justify-content: center;
        padding: 15px 12px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .registro-contenido {
        width: 100%;
        max-width: 500px;
        max-height: calc(100dvh - 30px);
        margin: 0 auto;
        padding: 30px 20px 22px;
        border-radius: 20px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .registro-cerrar {
        top: 7px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 30px;
        line-height: 36px;
    }

    .registro-contenido h1 {
        margin: 0 0 6px;
        font-size: 27px;
    }

    .registro-contenido p {
        margin: 0 0 16px;
        font-size: 15px;
        line-height: 1.3;
    }

    .campo {
        margin-bottom: 11px;
    }

    .campo label {
        margin-bottom: 5px;
        font-size: 15px;
    }

    .campo input {
        height: 38px;
        padding: 0 12px;
        border-radius: 10px;
        font-size: 16px;
    }

    .campo-consentimiento {
        margin-top: 13px;
    }

    .campo-consentimiento label {
        gap: 8px;
        font-size: 14px;
        line-height: 1.3;
    }

    .campo-consentimiento input {
        width: 19px;
        height: 19px;
    }

    .boton-enviar {
        min-height: 46px;
        margin: 20px auto 0;
        border-radius: 23px;
        font-size: 17px;
    }

    .registro-errores {
        margin-bottom: 13px;
        padding: 9px 11px;
    }

    .registro-errores p {
        font-size: 13px;
        line-height: 1.3;
    }
}

/* GUIA.php */

.pagina-guia {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-image: url("../img/fondo instrucciones-juego-y-puntaje.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.guia {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.guia-contenido {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.guia-instrucciones {
    position: absolute;
    top: 28%;
    left: 50%;
    width: 460px;
    transform: translateX(-50%);
    z-index: 2;
}

.imagen-instrucciones {
    display: block;
    width: 70%;
    height: auto;
    margin: 0 auto;
}

.guia-accion {
    position: absolute;
    top: 74%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.boton-siguiente {
    width: 108px;
    height: 32px;
    padding: 0;
    border: none;
    outline: none;
    border-radius: 20px;
    background: #00a6a8;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.boton-siguiente:hover {
    transform: scale(1.05);
}

.boton-siguiente:active {
    transform: scale(0.96);
}

.boton-siguiente:disabled {
    opacity: 0.65;
    cursor: wait;
}