
/* =========================
   BASE
========================= */
body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: #eeeeee;
    color: #1f2937;
}

/* =========================
   LAYOUT GENERAL
========================= */
.page-bg {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
        box-sizing: border-box;

}

.card-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    max-width: 1100px;
    width: 100%;
    margin-top: 8vh;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* =========================
   HEADERS
========================= */
.header-title {
    font-size: 20px;
    color: #008080;
    margin-bottom: 12px;
}

.header-text {
    color: #666;
    font-size: 15px;
    margin-bottom: 24px;
}

.section-title {
    background: #f0f0f0;
    padding: 10px 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* =========================
   PASOS
========================= */
.step-secondary,
.step-tertiary,
.step-quaternary {
    display: none;
}

/* =========================
   FORMULARIO
========================= */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
}

.form-field input,
.form-field select {
    height: 38px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #cfd6dc;
}

/* =========================
   FOOTER DE PASOS (BOTONES)
========================= */


.step-indicator {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 8px;
}

.step-indicator:empty {
    display: none;
}

.buttons-row {
    display: flex;
    gap: 12px;
}

.btn-next {
    padding: 10px 22px;
    font-size: 15px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;

    color: #fff;
    background-color: #008080;

    border: none;
    border-radius: 6px;

    cursor: pointer;
    user-select: none;

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;

    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

/* Hover */
.btn-next:hover {
    background-color: #007D7D;
    box-shadow: 0 5px 10px rgba(0,0,0,0.18);
}

/* Active (click) */
.btn-next:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

/* Focus (accesibilidad) */
.btn-next:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.3);
}





.btn-back {
    padding: 10px 22px;
    font-size: 15px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;

    color: #666666;
    background-color: #e0e0e0;

    border: none;
    border-radius: 6px;

    cursor: pointer;
    user-select: none;

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;

    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

/* Hover */
.btn-back:hover {
    color: #ffffff;
    background-color: #999999;
    box-shadow: 0 5px 10px rgba(0,0,0,0.18);
}

/* Active (click) */
.btn-back:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

/* Focus (accesibilidad) */
.btn-back:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.3);
}

.btn-back i,
.btn-next i {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Hover Siguiente */
.btn-next:hover i {
    animation: slide-right 0.8s ease-in-out infinite;
}

/* Hover Volver */
.btn-back:hover i {
    animation: slide-left 0.8s ease-in-out infinite;
}


/* =========================
   LOGO
========================= */
.logo-container {
    text-align: center;
    margin: 20px 0;
}

.logo-container img {
    max-width: 180px;
}

/* =========================
   TOAST
========================= */
.toast {
    position: fixed;
    bottom: 30px;
    right: 20px;
    min-width: 280px;
    padding: 14px 20px;
    color: #fff;
    border-radius: 6px;
    opacity: 0;
    transition: opacity .4s;
    z-index: 9999;
}

.toast.show { opacity: 1; }
.toast.error { background: #c62828; }
.toast.success { background: #2e7d32; }

/* =========================
   FOOTER SITIO
========================= */
.site-footer {
    margin-top: 15px;
    text-align: center;
    color: #6b7280;
}


/* =========================
   LINKS
========================= */
a:link {
    color: #008080;
    text-decoration: none;
    font-weight: bold;
}

a:visited {
    color: #6b7280;
}

a:hover {
    color: #005a5a;
    text-decoration: underline;
    cursor: pointer;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        margin-top: 30px;
        width: 100%;
    }
}

/* =========================
   LINK LOGIN
========================= */

.login-link {
    margin-right: auto; /* 👈 CLAVE */
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;

}

.login-link a {
    color: #008080;
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Empuja botones a la derecha */
.footer-nav {
    display: flex;
    align-items: center;
    margin-top: 30px;
    justify-content: space-between;
}

/* =========================
   ALINEACION CHECKBOX
========================= */
.declaracion-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 24px 0 10px 0;
    width: 100%;          /* ← clave */
}

.declaracion-container input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.declaracion-container label {
    line-height: 1.45;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
}


.declaracion-info {
    margin: 28px 0 10px 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #444;
}


/* Modal fondo */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

/* Contenido del modal */
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

/* Botón cerrar */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.modal h2 {
    margin-top: 0;
}

.modal hr {
    margin: 20px 0;
}

/* Modal con scroll vertical */
.modal-scroll {
    max-height: 70vh;        /* Altura máxima relativa a la pantalla */
    overflow-y: auto;        /* Scroll vertical */
}

/* Mejor experiencia en móviles */
@media (max-width: 480px) {
    .modal-scroll {
        max-height: 80vh;
    }
}

/* =========================
   ANIMACIONES ICONOS BOTONES
========================= */

@keyframes slide-right {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(6px);
        opacity: 0.7;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-left {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-6px);
        opacity: 0.7;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =========================
   INFO CONTRASEÑA
========================= */
.password-info {
    grid-column: 1 / -1;          /* Ocupa toda la fila del grid */
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 12px 14px;
    margin-top: 4px;

    background: transparent;      /* Sin fondo */
    border-left: 4px solid #008080;

    font-size: 0.9rem;
    color: #374151;
}

.password-info i {
    color: #008080;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Fecha inválida (menor de edad) */
.form-field input.input-error,
.form-field select.input-error {
    background-color: #fde2e2;
    border: 2px solid #f44336;
}



/* =========================
   AUTOCOMPLETE PAÍS
========================= */

.form-field.autocomplete {
    position: relative;
}

/* Input ya hereda el estilo general */
#filtro-pais {
    width: 100%;
    box-sizing: border-box;
}

/* Dropdown de países */
#select-pais {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;

    height: 114px;       /* fuerza altura visual */
    overflow-y: auto;

    background: #ffffff;
    border: 1px solid #cfd6dc;
    border-radius: 8px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    z-index: 1000;

    display: none;
}


/* Opciones */
#select-pais option {
    padding: 8px 12px;
    font-size: 14px;
    color: #1f2937;
    cursor: pointer;
}

/* Hover */
#select-pais option:hover {
    background-color: #f0fdfa;     /* verde muy suave */
}

/* Seleccionado */
#select-pais option:checked,
#select-pais option:focus {
    background-color: #008080;
    color: #ffffff;
}

/* Scroll bonito (WebKit) */
#select-pais::-webkit-scrollbar {
    width: 8px;
}

#select-pais::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 8px;
}

#select-pais::-webkit-scrollbar-thumb {
    background: #cfd6dc;
    border-radius: 8px;
}

#select-pais::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* =========================
   FIX intl-tel-input
========================= */

/* =========================
   FIX VISUAL intl-tel-input
========================= */

/* el contenedor del plugin */
.phone-field .iti {
    width: 100%;
}

/* el input real */
.phone-field .iti input {
    width: 100%;
    height: 38px;                 /* igual que los otros */
    box-sizing: border-box;
    padding-top: 6px;
    padding-bottom: 6px;
    border-radius: 6px;
}

/* alinear borde con otros inputs */
.phone-field .iti--separate-dial-code .iti__selected-flag {
    border-right: 1px solid #cfd6dc;
}
