/* =========================
   VARIABLES Y BASE
   ========================= */

:root { --purple:#653593; --ink:#342444; --teal:#187d7b; --paper:#fffcf7; --muted:#6b6470; }

* { box-sizing:border-box; }

html { scroll-behavior:smooth; scroll-padding-top:24px; }

body { margin:0; background:var(--paper); color:var(--ink); font-family:'Segoe UI',Arial,sans-serif; font-size:16px; line-height:1.6; }

a { color:inherit; }

button, input, select, textarea { font:inherit; }

h1, h2, h3, p { margin-top:0; }


/* =========================
   BARRA DEMO
   ========================= */

.demo { text-align:center; padding:6px 16px; background:#eaf3ef; color:#365e58; font-size:12px; letter-spacing:.3px; }


/* =========================
   HEADER / NAVEGACIÓN
   ========================= */

header { max-width:1320px; margin:auto; display:flex; align-items:center; justify-content:space-between; padding:22px 5%; gap:25px; }

.brand { display:flex; align-items:center; gap:12px; text-decoration:none; line-height:1.2; color:var(--purple); }

.brand img { width:68px; height:68px; object-fit:contain; }

.brand span { font-size:18px; }

nav { display:flex; align-items:center; gap:30px; }

nav > a { text-decoration:none; font-size:14px; font-weight:600; }


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

.button { display:inline-flex; align-items:center; justify-content:center; gap:28px; background:var(--purple); color:white; border:0; border-radius:100px; padding:15px 25px; text-decoration:none; font-weight:600; cursor:pointer; box-shadow:0 5px 0 #e7dcef; }

.button:hover { background:#4f257b; }

.button.small { padding:11px 20px; font-size:13px; }

/* Botón secundario utilizado para acceder al inicio de sesión */
.login-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:9px 18px;
    border:1px solid var(--purple);
    border-radius:100px;
    color:var(--purple);
    background:white;
    text-decoration:none;
    font-size:13px;
    font-weight:650;
    transition:background .2s ease,color .2s ease;
}

/* Cambia el aspecto del botón cuando el usuario pasa el mouse encima */
.login-button:hover {
    background:var(--purple);
    color:white;
}

.secondary { background:white; border:1px solid var(--purple); color:var(--purple); border-radius:30px; padding:10px 20px; cursor:pointer; }


/* =========================
   HERO
   ========================= */

.hero { max-width:1320px; margin:auto; padding:52px 5% 70px; display:grid; grid-template-columns:1.1fr 1fr; align-items:center; gap:40px; }

.eyebrow { font-size:11px; letter-spacing:1.8px; font-weight:750; color:var(--teal); margin:0 0 20px; }

.dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#4aada8; margin-right:8px; }

h1 { font-size:clamp(40px,4.7vw,66px); line-height:1.12; letter-spacing:-2.4px; font-weight:750; margin-bottom:24px; }

h1 em { font-style:normal; color:var(--purple); }

.intro { font-size:17px; color:var(--muted); max-width:530px; line-height:1.8; }

.actions { display:flex; align-items:center; gap:24px; margin-top:30px; flex-wrap:wrap; }

.text-link { font-size:13px; font-weight:650; text-decoration:none; }

.hero-note { font-size:12px; color:var(--muted); margin:25px 0 0; }


/* =========================
   ARTE DEL HERO
   ========================= */

.hero-art { height:420px; position:relative; display:flex; justify-content:center; align-items:center; background:#e9f4ee; border-radius:48% 48% 42% 46%; isolation:isolate; }

.logo-orbit { width:310px; height:310px; background:white; border-radius:50%; padding:22px; box-shadow:0 18px 45px #447a6812; z-index:1; }

.logo-orbit img { width:100%; height:100%; object-fit:contain; }

.floating { position:absolute; background:white; padding:11px 18px; border-radius:15px; box-shadow:0 6px 18px #3424440c; z-index:2; font-size:14px; font-weight:650; }

.f1 { top:34px; left:-15px; transform:rotate(-7deg); color:var(--purple); }

.f2 { bottom:30px; right:-5px; transform:rotate(6deg); color:var(--teal); }

.spark { position:absolute; font-size:57px; color:#e8ae46; }

.s1 { right:4px; top:10px; }

.s2 { left:12px; bottom:17px; color:#bd8bc2; }


.rainbow { position:absolute; width:100px; height:100px; right:25px; bottom:30px; border:9px solid #e9a789; border-radius:50%; box-shadow:0 0 0 8px #eed890, 0 0 0 16px #c4b3dc; z-index:0; }


/* =========================
   FRASE / BELIEF
   ========================= */

.belief { background:#f1eafa; display:flex; align-items:center; justify-content:center; gap:35px; padding:27px 5%; color:var(--purple); }

.belief p { margin:0; font-size:20px; }

.belief > span { font-size:32px; }


/* =========================
   SECCIONES GENERALES
   ========================= */

.section { max-width:1320px; margin:auto; padding:76px 5%; }

.section-heading { display:flex; justify-content:space-between; gap:60px; align-items:end; margin-bottom:32px; }

.section-heading > p { max-width:320px; font-size:14px; color:var(--muted); }

h2 { font-size:35px; line-height:1.22; letter-spacing:-1px; margin-bottom:14px; }


/* =========================
   NIVELES
   ========================= */

.levels { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }

.level { border-radius:20px; padding:26px 22px; display:flex; flex-direction:column; align-items:start; }

.peach { background:#f9e9df; }

.mint { background:#e0f0e9; }

.lavender { background:#eee6f7; }

.yellow { background:#f8efcf; }

.level-icon { font-size:38px; line-height:1.2; margin-bottom:35px; color:var(--purple); }

.level small { font-size:9px; letter-spacing:.8px; font-weight:700; }

.level h3 { font-size:23px; margin:10px 0; }

.level p { font-size:14px; color:#62566a; }

.level a { font-size:11px; font-weight:700; margin-top:auto; text-underline-offset:5px; }


/* =========================
   SOBRE NOSOTROS
   ========================= */

.about { display:grid; grid-template-columns:1fr 1fr; gap:90px; border-top:1px solid #eae3ed; }

.pill { display:inline-block; padding:7px 12px; border:1px solid #e2d7e9; border-radius:30px; font-size:12px; margin-right:8px; margin-top:15px; }

.purpose article { padding:0 0 18px 23px; border-left:3px solid #bfa0d5; }

.purpose article + article { border-color:#88c4b9; }

.purpose h3 { font-size:21px; margin-bottom:7px; }

.purpose p { color:var(--muted); font-size:14px; margin-bottom:16px; }

.purpose > small { font-size:11px; color:var(--muted); }


/* =========================
   CONTACTO
   ========================= */

.contact { background:#ede7f5; border-radius:28px; display:grid; grid-template-columns:1fr 1fr; gap:60px; margin-bottom:70px; max-width:1188px; padding:48px; }

.contact p { max-width:440px; color:var(--muted); }

.contact-links a { display:block; text-decoration:none; padding:17px 0; border-bottom:1px solid #d9cbe4; }

.contact-links small { display:block; font-size:10px; letter-spacing:1px; color:var(--purple); }

.contact-links strong { font-size:18px; overflow-wrap:anywhere; }


/* =========================
   FOOTER
   ========================= */

footer { border-top:1px solid #e8dfed; display:flex; justify-content:space-between; align-items:center; gap:25px; padding:32px 5%; font-size:12px; color:var(--muted); }

footer p { margin:4px 0; }

footer strong { color:var(--purple); font-size:15px; }


/* =========================
   FORMULARIO
   ========================= */

.form-page { max-width:900px; padding:45px 24px 70px; margin:auto; }

.form-page h1 { font-size:48px; }

.notice { padding:18px 22px; background:#eaf3ef; border-radius:12px; font-size:14px; margin:25px 0; color:#375951; }

fieldset { border:1px solid #e4dae9; border-radius:16px; padding:25px; margin:32px 0; background:white; }

legend { font-size:21px; font-weight:650; padding:0 10px; }

legend span { color:var(--teal); font-size:14px; margin-right:8px; }

.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:23px; }

.field label { display:block; font-size:14px; font-weight:650; margin-bottom:7px; }

.field input, .field select, .field textarea { width:100%; border:1px solid #bdb3c5; border-radius:8px; padding:10px; background:#fff; color:var(--ink); }

.field small { display:block; font-size:12px; color:var(--muted); margin-top:6px; }

.field label span { color:var(--purple); }

:focus-visible { outline:3px solid #247e83; outline-offset:3px; }


/* =========================
   PERSONAS AUTORIZADAS
   ========================= */

.pickup-card { background:#faf8fc; padding:20px; border-radius:12px; margin:20px 0; }

.delete { font-size:13px; align-self:center; }


/* =========================
   ERRORES / PRIVACIDAD
   ========================= */

.error-summary { background:#fff0f0; border:1px solid #bb4545; padding:20px; border-radius:10px; }

.error-summary p { margin-bottom:0; }

.errorlist { font-size:13px; color:#ad2635; padding-left:18px; }

.privacy { font-size:13px; color:var(--muted); }


/* =========================
   PÁGINA DE ÉXITO
   ========================= */

.success { max-width:740px; margin:auto; padding:70px 25px; text-align:center; }

.success .intro { margin:auto; }

.success-icon { display:inline-block; color:var(--teal); font-size:40px; background:#deeee6; border-radius:50%; width:75px; height:75px; margin-bottom:25px; }


/* =========================
   ACCESIBILIDAD
   ========================= */

.skip { position:absolute; left:10px; top:-100px; }

.skip:focus { top:10px; background:white; z-index:10; padding:15px; }


/* =========================
   TABLET
   ========================= */

@media (max-width:1000px) {

    nav { gap:17px; }

    .hero { gap:20px; }

    .hero-art { height:350px; }

    .logo-orbit { width:260px; height:260px; }

    .levels { grid-template-columns:repeat(2,1fr); }

    .about { gap:35px; }

    .contact { margin-left:5%; margin-right:5%; gap:30px; }

}


/* =========================
   MÓVIL
   ========================= */

@media (max-width:700px) {

    header { flex-wrap:wrap; padding:18px 6%; }

    nav { width:100%; justify-content:space-between; gap:10px; }

    nav > a { font-size:12px; }

    .button.small { font-size:11px; padding:9px 13px; }

    .brand img { width:52px; height:52px; }

    .hero { grid-template-columns:1fr; padding:35px 7% 50px; gap:35px; }

    h1 { font-size:43px; }

    .hero-art { height:320px; max-width:400px; width:100%; margin:auto; }

    .logo-orbit { width:240px; height:240px; }

    .f1 { left:0; }

    .f2 { right:0; }

    .belief { gap:15px; }

    .belief p { font-size:16px; }

    .section { padding:48px 7%; }

    .section-heading { display:block; }

    .section-heading > p { max-width:none; }

    h2 { font-size:29px; }

    .levels { gap:12px; }

    .level { padding:22px 16px; }

    .level h3 { font-size:20px; }

    .level-icon { margin-bottom:20px; }

    .about,
    .contact { grid-template-columns:1fr; }

    .contact { padding:30px; margin-bottom:40px; }

    .contact-links strong { font-size:16px; }

    footer { flex-direction:column; align-items:start; padding:30px 7%; gap:14px; }

    .form-grid { grid-template-columns:1fr; }

    .form-page h1 { font-size:40px; }

    fieldset { padding:18px; }

    legend { font-size:18px; }

    .intro { font-size:16px; }

}


/* =========================
   MOVIMIENTO REDUCIDO
   ========================= */

@media (prefers-reduced-motion:reduce) {

    html { scroll-behavior:auto; }

}

/* =========================
   AUTENTICACIÓN
   ========================= */

.auth-page { min-height:calc(100vh - 150px); display:flex; align-items:center; justify-content:center; padding:60px 5%; background:linear-gradient(135deg,var(--paper) 0%,#f8f3fb 100%); }

.auth-shell { width:100%; max-width:1080px; display:grid; grid-template-columns:1fr 1fr; background:white; border:1px solid #ebe2ef; border-radius:30px; overflow:hidden; box-shadow:0 20px 60px #34244412; }

.auth-visual { position:relative; padding:65px 60px; display:flex; flex-direction:column; justify-content:center; background:#f1eafa; overflow:hidden; }

.auth-visual::before { content:""; position:absolute; width:260px; height:260px; border-radius:50%; background:#e0f0e9; top:-100px; right:-85px; }

.auth-visual::after { content:""; position:absolute; width:190px; height:190px; border-radius:50%; background:#f8efcf; bottom:-90px; left:-60px; }

.auth-visual > * { position:relative; z-index:1; }

.auth-visual h1 { font-size:clamp(42px,4vw,58px); }

.auth-message { display:flex; gap:14px; align-items:flex-start; margin-top:40px; padding:18px 20px; background:#ffffffa8; border-radius:18px; max-width:390px; }

.auth-message span { font-size:24px; color:var(--purple); }

.auth-message p { margin:0; color:var(--muted); font-size:14px; }

.auth-card { padding:55px 55px 50px; }

.auth-card-single { width:min(560px,100%); background:white; border:1px solid #ebe2ef; border-radius:28px; padding:55px; box-shadow:0 20px 60px #34244412; }

.auth-card-heading { margin-bottom:32px; }

.auth-card-heading h2 { margin-bottom:8px; }

.auth-card-heading p:not(.eyebrow) { color:var(--muted); font-size:14px; }

.auth-field { margin-bottom:21px; }

.auth-field label { display:block; font-size:14px; font-weight:650; margin-bottom:8px; }

.auth-field input { width:100%; min-height:48px; padding:11px 14px; border:1px solid #bdb3c5; border-radius:10px; background:#fff; color:var(--ink); transition:border-color .2s ease,box-shadow .2s ease; }

.auth-field input:focus { border-color:var(--teal); box-shadow:0 0 0 4px #187d7b12; outline:none; }

.auth-field small { display:block; margin-top:7px; color:var(--muted); font-size:12px; }

.auth-label-row { display:flex; justify-content:space-between; align-items:center; gap:20px; }

.auth-link { color:var(--purple); font-size:12px; font-weight:650; text-decoration:none; }

.auth-link:hover { text-decoration:underline; text-underline-offset:4px; }

.password-wrapper { position:relative; }

.password-wrapper input { padding-right:75px; }

.password-toggle { position:absolute; right:8px; top:50%; transform:translateY(-50%); border:0; background:transparent; color:var(--purple); font-size:12px; font-weight:700; cursor:pointer; padding:8px; }

.remember-option { display:flex; align-items:flex-start; gap:10px; margin:4px 0 24px; color:var(--muted); font-size:13px; cursor:pointer; }

.remember-option input { width:16px; height:16px; margin-top:2px; accent-color:var(--purple); }

.auth-submit { width:100%; }

.auth-divider { display:flex; align-items:center; gap:14px; margin:26px 0; color:#aaa1ad; font-size:12px; }

.auth-divider::before, .auth-divider::after { content:""; flex:1; height:1px; background:#e7dfea; }

.auth-register { text-align:center; margin:0; color:var(--muted); font-size:13px; }

.auth-register a { color:var(--purple); font-weight:700; text-decoration:none; }

.auth-register a:hover { text-decoration:underline; text-underline-offset:4px; }

.auth-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }


/* =========================
   AUTENTICACIÓN - TABLET
   ========================= */

@media (max-width:850px) {

    .auth-shell { grid-template-columns:1fr; max-width:620px; }

    .auth-visual { padding:45px; }

    .auth-card { padding:45px; }

}


/* =========================
   AUTENTICACIÓN - MÓVIL
   ========================= */

@media (max-width:600px) {

    .auth-page { padding:30px 5%; align-items:flex-start; }

    .auth-shell { border-radius:22px; }

    .auth-visual { padding:38px 28px; }

    .auth-visual h1 { font-size:40px; }

    .auth-message { margin-top:25px; }

    .auth-card, .auth-card-single { padding:35px 25px; }

    .auth-form-grid { grid-template-columns:1fr; gap:0; }

    .auth-label-row { align-items:flex-start; }

}

/* =========================
   CREAR CUENTA
   ========================= */

/* Contenedor general de la pantalla de registro */
.register-page { min-height:calc(100vh - 160px); display:flex; justify-content:center; align-items:center; padding:55px 5% 80px; background:linear-gradient(135deg,var(--paper),#f7f1fb); }

/* Tarjeta principal del formulario */
.register-card { width:min(650px,100%); background:#fff; border:1px solid #ebe2ef; border-radius:30px; padding:42px 52px 46px; box-shadow:0 20px 60px #34244412; position:relative; }

/* Contenedor de la ilustración superior */
.register-image { width:170px; height:170px; margin:-10px auto 18px; display:flex; align-items:center; justify-content:center; background:#f1eafa; border-radius:50%; padding:8px; }

/* Imagen del representante y niño */
.register-image img { width:100%; height:100%; object-fit:contain; }

/* Encabezado del formulario */
.register-heading { text-align:center; margin-bottom:32px; }

/* Título principal */
.register-heading h1 { font-size:44px; margin-bottom:10px; }

/* Texto secundario */
.register-heading p:not(.eyebrow) { max-width:470px; margin:0 auto; color:var(--muted); font-size:15px; }

/* Formulario */
.register-form { width:100%; }

/* Distribución de campos en dos columnas */
.register-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

/* Contenedor individual de cada campo */
.register-field { margin-bottom:18px; }

/* Etiqueta de cada campo */
.register-field label { display:block; margin-bottom:7px; font-size:13px; font-weight:650; color:var(--ink); }

/* Texto opcional de algunos campos */
.register-field .optional { color:var(--muted); font-size:11px; font-weight:400; margin-left:5px; }

/* Campos de entrada */
.register-field input { width:100%; min-height:48px; border:1px solid #c7bdce; border-radius:100px; padding:11px 17px; background:white; color:var(--ink); transition:border-color .2s ease,box-shadow .2s ease; }

/* Estado activo de los campos */
.register-field input:focus { outline:none; border-color:var(--teal); box-shadow:0 0 0 4px #187d7b12; }

/* Contenedor especial para contraseña */
.register-password { position:relative; }

/* Espacio para el botón Ver */
.register-password input { padding-right:75px; }

/* Botón para mostrar u ocultar contraseña */
.register-password-toggle { position:absolute; top:50%; right:10px; transform:translateY(-50%); border:0; background:transparent; color:var(--purple); font-size:12px; font-weight:700; cursor:pointer; padding:8px 10px; }

/* Términos y condiciones */
.register-terms { display:flex; align-items:flex-start; gap:10px; margin:8px 0 25px; color:var(--muted); font-size:13px; }

/* Checkbox */
.register-terms input { width:17px; height:17px; margin-top:2px; accent-color:var(--purple); }

/* Enlaces legales */
.register-terms a { color:var(--teal); font-weight:650; text-decoration:none; }

/* Efecto al pasar sobre los enlaces */
.register-terms a:hover { text-decoration:underline; }

/* Botón principal */
.register-submit { width:100%; }

/* Texto inferior para ir al login */
.register-login { text-align:center; margin:26px 0 0; color:var(--muted); font-size:13px; }

/* Enlace al login */
.register-login a { color:var(--purple); font-weight:700; text-decoration:none; }

/* Efecto del enlace al login */
.register-login a:hover { text-decoration:underline; text-underline-offset:4px; }


/* =========================
   CREAR CUENTA - MÓVIL
   ========================= */

@media (max-width:650px) {

    .register-page { padding:30px 5% 50px; }

    .register-card { padding:32px 24px 38px; border-radius:24px; }

    .register-image { width:140px; height:140px; }

    .register-heading h1 { font-size:38px; }

    .register-grid { grid-template-columns:1fr; gap:0; }

}

.usuario-menu {
    position: relative;
}


.avatar-boton {
    width: 42px;
    height: 42px;

    padding: 0;

    border: 2px solid #eee7ef;
    border-radius: 50%;

    background: white;

    overflow: hidden;

    cursor: pointer;
}


.avatar-imagen {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;
}


.avatar-iniciales {
    width: 100%;
    height: 100%;

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

    background: var(--purple);
    color: white;

    font-weight: 700;
    font-size: 14px;
}


.usuario-menu-panel {
    display: none;

    position: absolute;
    top: calc(100% + 12px);
    right: 0;

    width: 310px;

    padding: 18px;

    background: white;

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

    box-shadow:
        0 16px 40px rgba(52, 36, 68, 0.16);

    z-index: 1000;
}


.usuario-menu-panel.activo {
    display: block;
}


.usuario-menu-perfil {
    display: flex;
    align-items: center;

    gap: 14px;

    padding-bottom: 16px;
    margin-bottom: 10px;

    border-bottom: 1px solid #eee7ef;
}


.avatar-menu-grande {
    width: 58px;
    height: 58px;

    border-radius: 50%;

    object-fit: cover;
}


.avatar-sin-foto {
    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--purple);
    color: white;

    font-size: 18px;
    font-weight: 700;
}


.usuario-menu-perfil strong,
.usuario-menu-perfil span {
    display: block;
}


.usuario-menu-perfil span {
    margin-top: 3px;

    color: var(--muted);

    font-size: 13px;
}

/* Permite posicionar elementos dentro del encabezado. */
header {
    position: relative;
}


/* Coloca el avatar en la esquina superior derecha. */
.usuario-menu {
    position: absolute;

    top: 18px;
    right: 24px;

    z-index: 1200;
}


/* Botón circular del usuario. */
.avatar-boton {
    width: 42px;
    height: 42px;

    padding: 0;

    border: 2px solid #eee7ef;
    border-radius: 50%;

    background: white;

    overflow: hidden;

    cursor: pointer;
}


/* Foto dentro del avatar. */
.avatar-imagen {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;
}


/* Iniciales cuando no existe foto. */
.avatar-iniciales {
    width: 100%;
    height: 100%;

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

    background: var(--purple);
    color: white;

    font-size: 14px;
    font-weight: 700;
}


/* Reserva espacio para el avatar. */
nav {
    padding-right: 70px;
}

/* Aviso breve de documentos posteriores. */
.nota-documentos {
    margin-top: 20px;
    padding: 13px 16px;

    border-radius: 12px;

    background: #f6f1f9;

    color: var(--ink);

    font-size: 13px;
    line-height: 1.5;
}


/* Resalta el momento de entrega. */
.nota-documentos strong {
    color: var(--purple);
}


/* Advertencia de edad inválida. */
.advertencia-edad {
    margin-top: 8px;

    padding: 9px 12px;

    border-radius: 9px;

    background: #fff3e8;

    font-size: 13px;
    font-weight: 600;
}


/* Oculta campos condicionales. */
[hidden] {
    display: none !important;
}

/* Opciones del menú de usuario. */
.usuario-menu-opcion {
    display: flex;
    align-items: center;

    width: 100%;

    padding: 11px 12px;

    border-radius: 10px;

    color: var(--ink);

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

    text-decoration: none;

    box-sizing: border-box;
}


/* Resalta la opción al pasar el mouse. */
.usuario-menu-opcion:hover {
    background: #f5eef9;

    color: var(--purple);
}


/* Separa el cierre de sesión. */
.usuario-menu-form {
    margin-top: 8px;
    padding-top: 8px;

    border-top: 1px solid #eee7ef;
}


/* Botón de cerrar sesión. */
.usuario-menu-salir {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 10px 14px;

    border: 1px solid #e7dbea;
    border-radius: 10px;

    background: #fff;

    color: var(--purple);

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


/* Efecto del botón al pasar el mouse. */
.usuario-menu-salir:hover {
    background: var(--purple);

    border-color: var(--purple);

    color: #fff;
}