/* Página ¿Eres nuevo? - Registro */

/* Hero con título y capa semi-oscura */
.hero-nuevo {
    position: relative;
    min-height: 28vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-nuevo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../image/HeroRegistro01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-nuevo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.hero-nuevo-content {
    position: relative;
    z-index: 2;
    padding: 60px 24px;
    max-width: 800px;
}

.hero-nuevo-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Formulario en tarjeta centrada con espacio del hero */
.registro-section {
    padding: 48px 24px 64px;
    background: #f1f5f9;
}

.registro-form-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 48px 48px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

@media (max-width: 600px) {
    .registro-section {
        padding: 32px 16px 48px;
    }
    .registro-form-wrap {
        padding: 28px 24px 36px;
    }
}

.registro-intro {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e40af;
    background: #dbeafe;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.registro-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 32px;
}

.req {
    color: #dc2626;
}

/* Grid de campos en dos columnas */
.registro-form .registro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

@media (max-width: 600px) {
    .registro-form .registro-grid {
        grid-template-columns: 1fr;
    }
}

.registro-form .form-group {
    margin-bottom: 0;
}

.registro-form .form-group--full {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.registro-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 8px;
}

.registro-form input[type="text"],
.registro-form input[type="email"],
.registro-form input[type="tel"],
.registro-form select,
.registro-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.2s, background 0.2s;
}

.registro-form input:focus,
.registro-form select:focus,
.registro-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
}

.registro-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox términos */
.form-group--check .check-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 400;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-group--check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #2563eb;
}

/* Botón */
.btn-registro {
    width: 100%;
    max-width: 320px;
    margin-top: 24px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-registro:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.registro-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #dc2626;
}

/* ==================== MODAL MENSAJE ==================== */
#modal-mensaje.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#modal-mensaje.modal-overlay--open {
    display: flex;
    pointer-events: auto;
    opacity: 1;
}

.modal-mensaje {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay--open .modal-mensaje {
    transform: scale(1);
}

.modal-mensaje-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-mensaje-icon svg {
    width: 36px;
    height: 36px;
    color: #fff;
}

.modal-mensaje-icon--success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.4);
}

.modal-mensaje-icon--error {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.4);
}

.modal-mensaje-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.3;
}

.modal-mensaje-text {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 28px;
}

.modal-mensaje-btn {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.modal-mensaje-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}
