﻿* {
    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-registro {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-image: url("../img/registro.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.registro {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.registro-formulario {
    position: absolute;
    top: 35%;
    left: 50%;
    width: 360px;
    transform: translateX(-50%);
}

.registro-formulario h1 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.registro-descripcion {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
}

.campo {
    width: 100%;
    margin-bottom: 8px;
}

.campo label {
    display: block;
    margin-bottom: 5px;
    color: #007f91;
    font-size: 15px;
    font-weight: 700;
}

.campo input {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 2px solid #c8e7eb;
    border-radius: 9px;
    outline: none;
    background: #f8fcfd;
    color: #333333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.campo input:focus {
    border-color: #00a3ad;
    background: #ffffff;
}

.campo-consentimiento {
    width: 100%;
    margin-top: 12px;
}

.campo-consentimiento label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #222222;
    font-size: 13px;
    line-height: 1.35;
    cursor: pointer;
}

.campo-consentimiento input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.campo-consentimiento span {
    display: block;
}

.boton-enviar {
    display: block;
    width: 100%;
    height: 44px;
    margin: 18px 0 0;
    padding: 0;
    border: 0;
    border-radius: 25px;
    outline: none;
    background: #00a3ad;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.boton-enviar:hover {
    background: #008f98;
    transform: scale(1.02);
}

.boton-enviar:active {
    transform: scale(0.98);
}

.registro-errores {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 236, 236, 0.95);
}

.registro-errores p {
    margin: 0 0 5px;
    color: #b00020;
    font-size: 13px;
    line-height: 1.3;
}

.registro-errores p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {

    .pagina-registro {
        min-height: 100svh;
        background-position: center top;
        background-size: cover;
    }

    .registro {
        min-height: 100svh;
    }

    .registro-formulario {
        top: 34%;
        left: 50%;
        width: calc(100% - 70px);
        max-width: 360px;
        transform: translateX(-50%);
    }

    .registro-formulario h1 {
        margin-bottom: 12px;
        font-size: 30px;
    }

    .registro-descripcion {
        margin-bottom: 15px;
        font-size: 13px;
    }

    .campo {
        margin-bottom: 7px;
    }

    .campo label {
        margin-bottom: 4px;
        font-size: 13px;
    }

    .campo input {
        height: 34px;
        padding: 0 10px;
        border-radius: 8px;
        font-size: 13px;
    }

    .campo-consentimiento {
        margin-top: 10px;
    }

    .campo-consentimiento label {
        gap: 7px;
        font-size: 12px;
        line-height: 1.3;
    }

    .campo-consentimiento input {
        width: 16px;
        height: 16px;
    }

    .boton-enviar {
        height: 42px;
        margin-top: 15px;
        font-size: 15px;
    }

    .registro-errores {
        margin-bottom: 10px;
        padding: 8px 10px;
    }

    .registro-errores p {
        font-size: 11px;
    }
}

@media (max-width: 600px) and (max-height: 700px) {

    .registro-formulario {
        top: 32%;
        width: calc(100% - 60px);
        max-width: 340px;
    }

    .registro-formulario h1 {
        margin-bottom: 8px;
        font-size: 27px;
    }

    .registro-descripcion {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .campo {
        margin-bottom: 5px;
    }

    .campo label {
        margin-bottom: 3px;
        font-size: 12px;
    }

    .campo input {
        height: 31px;
        font-size: 12px;
    }

    .campo-consentimiento {
        margin-top: 8px;
    }

    .campo-consentimiento label {
        font-size: 11px;
    }

    .boton-enviar {
        height: 38px;
        margin-top: 11px;
        font-size: 14px;
    }
}