/* ===================================
   NINNA - VARIABLES CORPORATIVAS
=================================== */

:root {

    --salmon: #D88E78;
    --salmon-oscuro: #A95743;
    --verde: #687D61;
    --verde-oscuro: #263D34;
    --salvia: #A7B89C;
    --crema: #FAF7F3;
    --texto: #292B29;
    --texto-secundario: #555555;
    --blanco: #FFFFFF;
    --borde: #E8E2DC;

}

/* ===================================
   CONFIGURACIÓN GENERAL
=================================== */

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;

}

body {

    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--crema);
    color: var(--texto);
    line-height: 1.6;

}

img {

    display: block;
    max-width: 100%;

}

button {

    font-family: inherit;

}

svg {

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

}

a:focus-visible,
button:focus-visible {

    outline: 3px solid var(--verde);
    outline-offset: 4px;

}

/* ===================================
   MENU PRINCIPAL
=================================== */

.header {

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    padding: 8px 5%;

    min-height: 86px;

    background-color: var(--crema);
    border-bottom: 1px solid var(--borde);

}

.logo {

    flex-shrink: 0;
    display: flex;
    align-items: center;

}

.logo img {

    width: 230px;
    height: auto;

}

.menu {

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;

}

.menu a {

    text-decoration: none;
    color: var(--texto);
    font-size: 17px;
    font-weight: 500;

    padding: 7px 16px;
    border-radius: 25px;

    transition: background-color 0.2s;

}

.menu a:hover {

    background-color: #F3E4DC;

}

.menu a.activo {

    background-color: #F3DACD;

}

/* ===================================
   BOTONES
=================================== */

.btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 14px 22px;

    border: 1px solid transparent;
    border-radius: 13px;

    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;

    cursor: pointer;

    transition: background-color 0.2s,
                transform 0.2s;

}

.btn svg {

    width: 25px;
    height: 25px;
    flex-shrink: 0;

}

.btn:not(:disabled):hover {

    transform: translateY(-2px);

}

.btn:disabled {

    cursor: not-allowed;

}

.btn-salmon {

    background-color: var(--salmon-oscuro);
    color: var(--blanco);

}

.btn-secundario {

    background-color: var(--crema);
    border-color: #C9C5BF;
    color: var(--texto);

}

.btn-secundario svg {

    color: var(--verde-oscuro);

}

.btn-verde {

    background-color: var(--verde);
    color: var(--blanco);

}

.btn-ingresar {

    border: 1px solid #D2CDC7;
    background-color: transparent;

    color: var(--verde-oscuro);

    padding: 10px 20px;
    border-radius: 25px;

    flex-shrink: 0;

}

/* ===================================
   PORTADA PRINCIPAL
=================================== */

.hero {

    position: relative;

    display: flex;
    align-items: center;

    min-height: 480px;

    background-color: var(--crema);

    overflow: hidden;

}

/* Contenido de la izquierda */

.hero-contenido {

    position: relative;
    z-index: 2;

    width: 50%;
    flex-shrink: 0;

    padding: 60px 3% 85px 5%;

}

.hero h1 {

    font-size: clamp(36px, 4.2vw, 70px);

    font-weight: 750;
    letter-spacing: -1.8px;
    line-height: 1.08;

    margin-bottom: 20px;

}

.hero p {

    font-size: clamp(18px, 1.5vw, 25px);

    color: var(--texto-secundario);

    line-height: 1.5;

}

.linea-decorativa {

    width: 90px;
    height: 4px;

    background-color: var(--salmon);

    border-radius: 5px;

    margin-top: 24px;
    margin-bottom: 32px;

}

.hero-botones {

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 14px;

}

/* Fotografía del lado derecho */

.hero-imagen {

    position: absolute;

    right: 0;
    top: 0;

    width: 55%;
    height: 100%;

    overflow: hidden;

    clip-path: ellipse(95% 120% at 100% 50%);

}

.hero-imagen img {

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

}

/* Decoración inferior */

.hero::after {

    content: "";

    position: absolute;

    left: -120px;
    bottom: -150px;

    width: 500px;
    height: 240px;

    background-color: #F1E4DA;

    border-radius: 50%;

    transform: rotate(14deg);

    pointer-events: none;

}

/* ===================================
   TARJETAS PRINCIPALES
=================================== */

.servicios {

    position: relative;
    z-index: 3;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 22px;

    padding: 0 4%;

    margin-top: -40px;
    margin-bottom: 35px;

}

.tarjeta {

    display: flex;
    align-items: center;

    gap: 20px;

    background-color: var(--blanco);

    border: 1px solid #EBE6E0;
    border-radius: 18px;

    padding: 25px;

    min-height: 155px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.035);

}

.tarjeta-contenido {

    flex: 1;
    min-width: 0;

}

.tarjeta h2 {

    font-size: clamp(19px, 1.65vw, 26px);

    line-height: 1.2;

    letter-spacing: -0.5px;

    margin-bottom: 10px;

}

.tarjeta p {

    font-size: 15px;
    line-height: 1.5;

    color: var(--texto-secundario);

}

/* ===================================
   ICONOS DE LAS TARJETAS
=================================== */

.icono {

    width: 84px;
    height: 84px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

}

.icono svg {

    width: 45px;
    height: 45px;

    stroke-width: 2.7;

}

.icono-verde {

    background-color: #F1F0E7;
    color: var(--verde);

}

.icono-azul {

    background-color: #EDF1F3;
    color: #718B98;

}

.icono-salmon {

    background-color: #F8EAE4;
    color: var(--salmon);

}

/* ===================================
   BLOQUE DE EMERGENCIAS
=================================== */

.emergencia {

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    margin: 0 4% 30px;
    padding: 25px 30px;

    border-radius: 22px;
    border: 1px solid var(--borde);

    background: linear-gradient(
        120deg,
        #F6E8E0,
        #FAF7F3 45%
    );

}

.emergencia-icono {

    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 90px;

    padding-right: 20px;

    color: var(--salmon);

    border-right: 1px solid #D9D1CA;

}

.emergencia-icono svg {

    width: 60px;
    height: 60px;

    stroke-width: 3;

}

.emergencia-texto {

    flex: 1;

}

.emergencia h2 {

    font-size: 29px;
    line-height: 1.2;

    letter-spacing: -0.6px;

    margin-bottom: 8px;

}

.emergencia p {

    font-size: 15px;
    line-height: 1.5;

    color: var(--texto-secundario);

}

.aviso-emergencia {

    margin-top: 5px;

}

.emergencia .btn {

    flex-shrink: 0;

}

/* Mensaje de privacidad */

.privacidad {

    display: flex;
    align-items: center;

    gap: 15px;

    max-width: 320px;

    padding-left: 25px;

    border-left: 1px solid #D9D1CA;

}

.privacidad svg {

    width: 30px;
    height: 30px;

    color: var(--verde);

    flex-shrink: 0;

}

.privacidad strong {

    font-size: 14px;
    font-weight: 600;

}

.privacidad p {

    font-size: 13px;
    margin-top: 4px;

}

/* ===================================
   PIE DE PÁGINA
=================================== */

.footer {

    text-align: center;

    padding: 18px;

    color: #777777;

    border-top: 1px solid var(--borde);

    font-size: 13px;

}

/* ===================================
   ADAPTACIÓN A TABLETS
=================================== */

@media (max-width: 1200px) {

    .menu {

        gap: 5px;

    }

    .menu a {

        padding: 7px 10px;
        font-size: 15px;

    }

    .logo img {

        width: 190px;

    }

    .tarjeta {

        gap: 14px;
        padding: 20px;

    }

    .icono {

        width: 65px;
        height: 65px;

    }

    .icono svg {

        width: 35px;
        height: 35px;

    }

    .emergencia {

        flex-wrap: wrap;

    }

    .privacidad {

        max-width: none;
        width: 100%;

        border-left: none;
        border-top: 1px solid var(--borde);

        padding: 15px 0 0;

    }

}

/* ===================================
   ADAPTACIÓN A CELULARES
=================================== */

@media (max-width: 900px) {

    .header {

        flex-wrap: wrap;

        padding: 12px 5%;

        gap: 10px;

    }

    .logo img {

        width: 180px;

    }

    .menu {

        order: 3;

        width: 100%;

        justify-content: center;

        gap: 4px;

    }

    .menu a {

        font-size: 14px;

    }

    .hero {

        flex-direction: column;

        min-height: auto;

    }

    .hero-contenido {

        width: 100%;

        padding: 40px 6%;

    }

    .hero h1 {

        font-size: clamp(36px, 7vw, 52px);

        letter-spacing: -1px;

    }

    .hero p {

        font-size: 19px;

    }

    .hero-imagen {

        position: relative;

        width: 100%;
        height: 340px;

        clip-path: none;

    }

    .hero::after {

        display: none;

    }

    .servicios {

        grid-template-columns: 1fr;

        margin-top: 20px;

        gap: 15px;

    }

    .tarjeta {

        min-height: auto;
        padding: 22px;

    }

    .tarjeta h2 {

        font-size: 23px;

    }

    .emergencia {

        flex-direction: column;

        text-align: center;

        padding: 25px;

    }

    .emergencia-icono {

        border-right: none;

        padding: 0;

    }

    .privacidad {

        text-align: left;

    }

}

/* ===================================
   CELULARES PEQUEÑOS
=================================== */

@media (max-width: 480px) {

    .logo img {

        width: 150px;

    }

    .btn-ingresar {

        padding: 8px 13px;
        font-size: 14px;

    }

    .hero-botones {

        flex-direction: column;

        align-items: stretch;

    }

    .hero-botones .btn {

        width: 100%;

    }

    .hero-imagen {

        height: 240px;

    }

    .tarjeta {

        padding: 18px;

    }

    .tarjeta h2 {

        font-size: 20px;

    }

    .tarjeta p {

        font-size: 14px;

    }

    .emergencia .btn {

        width: 100%;

    }

}

/* ===================================
   NINNA - INICIO DE SESIÓN
=================================== */

.pagina-login {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Volver al inicio */

.volver-inicio {
    text-decoration: none;
    color: var(--verde-oscuro);
    font-size: 16px;
    font-weight: 500;
}

.volver-inicio:hover {
    color: var(--salmon-oscuro);
}

/* Contenedor principal */

.login-contenedor {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 45px 20px;
    background: linear-gradient(
        135deg,
        #FAF7F3,
        #F3E7DF,
        #E8EDE2
    );
}

/* Tarjeta de inicio de sesión */

.login-tarjeta {
    background-color: var(--blanco);
    width: 100%;
    max-width: 460px;
    padding: 38px;
    border-radius: 24px;
    border: 1px solid var(--borde);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
}

/* Icono superior */

.login-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    background-color: #E9EEDF;
    border-radius: 50%;
    color: var(--verde);
}

.login-icono svg {
    width: 35px;
    height: 35px;
}

/* Títulos */

.login-tarjeta h1 {
    text-align: center;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 10px;
}

.login-subtitulo {
    text-align: center;
    color: var(--texto-secundario);
    font-size: 16px;
    margin-bottom: 30px;
}

/* Formulario */

.login-formulario {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.campo label {
    font-size: 14px;
    font-weight: 600;
}

.campo-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #DCD8D2;
    border-radius: 12px;
    background-color: #FCFBF9;
}

.campo-input svg {
    width: 21px;
    height: 21px;
    color: var(--verde);
    flex-shrink: 0;
}

.campo-input input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: var(--texto);
}

.campo-input:focus-within {
    border-color: var(--verde);
    box-shadow: 0 0 0 3px #E8EDE2;
}

/* Recuperación de contraseña */

.recuperar-password {
    background: none;
    border: none;
    color: var(--verde-oscuro);
    font-size: 14px;
    text-align: right;
    cursor: not-allowed;
}

/* Botón iniciar sesión */

.btn-login {
    width: 100%;
    padding: 15px;
    font-size: 17px;
}

/* Registro de usuarios */

.login-registro {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--borde);
    text-align: center;
}

.login-registro p {
    font-size: 15px;
    margin-bottom: 15px;
}

.btn-registro {
    width: 100%;
    background: transparent;
    border: 1px solid var(--salmon);
    color: var(--salmon-oscuro);
}

.login-registro small {
    display: block;
    font-size: 12px;
    color: #777777;
    margin-top: 15px;
}

/* Aviso de prototipo */

.login-demo {
    text-align: center;
    color: #666666;
    font-size: 12px;
    margin-top: 20px;
}

/* Privacidad */

.login-privacidad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    color: var(--verde-oscuro);
    font-size: 13px;
}

.login-privacidad svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Adaptación a celulares */

@media (max-width: 480px) {

    .login-contenedor {
        padding: 25px 15px;
    }

    .login-tarjeta {
        padding: 25px;
    }

    .login-tarjeta h1 {
        font-size: 25px;
    }

    .volver-inicio {
        font-size: 13px;
    }

}

/* ===================================
   NINNA - REGISTRO DE USUARIOS
=================================== */

.registro-tarjeta {

    width: 100%;
    max-width: 760px;

    background-color: var(--blanco);

    padding: 40px;

    border: 1px solid var(--borde);
    border-radius: 24px;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);

}

.registro-tarjeta h1 {

    text-align: center;

    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -0.8px;

    margin-bottom: 10px;

}

/* Formulario principal */

.registro-formulario {

    display: flex;
    flex-direction: column;

    gap: 20px;

}

.registro-titulo {

    font-size: 19px;
    font-weight: 600;

    color: var(--verde-oscuro);

    padding-bottom: 12px;

    border-bottom: 1px solid var(--borde);

    margin-top: 12px;

}

.registro-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;

}

/* Campos del formulario */

.registro-formulario .campo input,
.registro-formulario .campo select {

    width: 100%;
    min-width: 0;

    padding: 14px;

    border: 1px solid #DCD8D2;
    border-radius: 12px;

    background-color: #FCFBF9;

    font-family: inherit;
    font-size: 15px;

    color: var(--texto);

    outline: none;

}

.registro-formulario .campo input:focus,
.registro-formulario .campo select:focus {

    border-color: var(--verde);

    box-shadow: 0 0 0 3px #E8EDE2;

}

/* Tipo de organización */

.tipo-organizacion {

    border: none;

    min-width: 0;

}

.tipo-organizacion legend {

    font-size: 14px;
    font-weight: 600;

    margin-bottom: 12px;

}

.organizacion-opciones {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 15px;

}

.organizacion-opcion {

    position: relative;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 22px 12px;

    background-color: #FCFBF9;

    border: 1px solid #DCD8D2;
    border-radius: 14px;

    font-size: 15px;
    font-weight: 600;

    text-align: center;

    cursor: pointer;

    transition: background-color 0.2s;

}

.organizacion-opcion input {

    position: absolute;

    top: 10px;
    right: 10px;

    accent-color: var(--verde);

}

.organizacion-opcion svg {

    width: 38px;
    height: 38px;

    color: var(--verde);

}

.organizacion-opcion:has(input:checked) {

    background-color: #E9EEDF;

    border-color: var(--verde);

}

.organizacion-opcion:focus-within {

    outline: 2px solid var(--verde);

    outline-offset: 3px;

}

/* Términos y condiciones */

.registro-condiciones {

    display: flex;
    flex-direction: column;

    gap: 12px;

}

.check-condicion {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 14px;

}

.check-condicion input {

    width: 18px;
    height: 18px;

    flex-shrink: 0;

    accent-color: var(--verde);

}

/* Aviso de aprobación */

.registro-aviso {

    display: flex;

    align-items: flex-start;

    gap: 15px;

    padding: 20px;

    background-color: #F5E8DF;

    border: 1px solid #EBD9CC;

    border-radius: 14px;

}

.registro-aviso svg {

    width: 30px;
    height: 30px;

    color: var(--salmon-oscuro);

    flex-shrink: 0;

}

.registro-aviso strong {

    display: block;

    font-size: 16px;

    margin-bottom: 5px;

}

.registro-aviso p {

    font-size: 14px;

    color: var(--texto-secundario);

}

.registro-nota {

    color: var(--texto-secundario);

    font-size: 13px;

}

/* Adaptación a celulares */

@media (max-width: 600px) {

    .registro-tarjeta {

        padding: 25px;

    }

    .registro-tarjeta h1 {

        font-size: 28px;

    }

    .registro-grid {

        grid-template-columns: 1fr;

        gap: 15px;

    }

    .organizacion-opcion {

        padding: 25px 8px;

        font-size: 13px;

    }

    .registro-aviso {

        padding: 15px;

    }

}

/* ===================================
   NINNA - ESTILOS DE VALIDACION
=================================== */

.mensaje-error {

    color: #B83C3C;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;

}

.mensaje-error:empty {

    display: none;

}

/* CAMPO CORRECTO */

.registro-formulario .campo .campo-valido {

    border-color: #687D61;
    background-color: #F5FAF2;

}

/* CAMPO INCORRECTO */

.registro-formulario .campo .campo-invalido {

    border-color: #C95151;
    background-color: #FFF5F5;

}

/* TELEFONO */

.campo-telefono {

    display: flex;
    align-items: center;
    gap: 10px;

}

.prefijo-telefono {

    padding: 14px;

    border: 1px solid #DCD8D2;
    border-radius: 12px;

    background-color: #F2F0EA;
    color: var(--texto);

    font-size: 15px;
    font-weight: 600;

}

.campo-telefono input {

    flex: 1;
    min-width: 0;

}

#verificar-formulario[hidden], #aviso-token[hidden] { display: none; }
