/* ===== REGISTRO DE NEGOCIO - ESTILOS PRINCIPALES ===== */

/* Variables de color coherentes con el sistema */
:root {
    --primary-gold: #d4af37;
    --dark-gold: #b8962e;
    --bg-dark: #0b0b0f;
    --card-dark: #14141c;
    --border-dark: #1f1f2b;
    --text-light: #fff;
    --text-muted: #888;
    --success: #4ade80;
    --info: #3b82f6;
}

/* Reset y box-sizing para evitar problemas de overflow */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Layout principal para página de registro */
.registro-container {
    min-height: 100vh;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden; /* Evita scroll horizontal */
}

/* Fondo decorativo */
.registro-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, #0b0b0f 0%, #0f0f15 100%);
    z-index: 1;
}

/* Tarjeta principal del registro */
.registro-card {
    background: var(--card-dark);
    border-radius: 20px;
    border: 1px solid var(--border-dark);
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: cardEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header del registro */
.registro-header {
    padding: 40px 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(184, 150, 46, 0.05) 100%);
    border-bottom: 1px solid var(--border-dark);
}

/* Logo */
.logo-container {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.logo-img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

/* Títulos */
.registro-header h1 {
    color: var(--text-light);
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.registro-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
}

/* Cuerpo del formulario - Asegurar que no haya overflow */
.registro-body {
    padding: 30px 40px;
    overflow: visible; /* Cambiado de hidden a visible */
}

/* Grupos de formulario - Corregido para evitar overflow */
.form-group-registro {
    margin-bottom: 25px;
    position: relative;
    width: 100%; /* Asegurar ancho completo */
    max-width: 100%; /* Evitar que crezca más allá del contenedor */
}

.form-group-registro label {
    display: block;
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%; /* Asegurar que el label no cause overflow */
}

.form-group-registro label i {
    color: var(--primary-gold);
    font-size: 12px;
    width: 20px;
    text-align: center;
}

.required-star {
    color: #dc3545;
    margin-left: 4px;
}

/* Inputs con efectos especiales - ARREGLADO */
.input-registro {
    width: 100%; /* Forzar ancho completo */
    max-width: 100%; /* Evitar que se salga */
    padding: 16px 20px;
    background: rgba(11, 11, 15, 0.8);
    border: 2px solid var(--border-dark);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Importante para incluir padding en el ancho */
}

.input-registro:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 
        0 0 0 4px rgba(212, 175, 55, 0.15),
        inset 0 2px 5px rgba(0, 0, 0, 0.2);
    background: rgba(11, 11, 15, 0.9);
}

.input-registro:hover {
    border-color: rgba(212, 175, 55, 0.5);
}

/* Input con icono interno - ARREGLADO */
.input-with-icon {
    position: relative;
    width: 100%; /* Asegurar ancho completo */
    max-width: 100%; /* Evitar overflow */
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    z-index: 1;
}

.input-with-icon .input-registro {
    padding-left: 55px;
    width: 100%; /* Asegurar que herede el ancho */
}

/* Checkbox de términos */
.terminos-container {
    margin: 30px 0;
    padding: 20px;
    background: rgba(31, 31, 43, 0.3);
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    width: 100%; /* Asegurar ancho completo */
    max-width: 100%; /* Evitar overflow */
    box-sizing: border-box; /* Incluir padding en el ancho */
}

.checkbox-terminos {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%; /* Asegurar ancho completo */
}

.checkbox-terminos input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--primary-gold);
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0; /* Evitar que se encoja */
}

.checkbox-terminos label {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    flex: 1; /* Ocupar el espacio restante */
    word-wrap: break-word; /* Permitir que el texto se ajuste */
}

.terminos-link {
    color: var(--primary-gold);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px dotted transparent;
    white-space: nowrap; /* Mantener en una línea */
}

.terminos-link:hover {
    border-bottom-color: var(--primary-gold);
}

/* Botón de registro */
.btn-registro {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    border: none;
    border-radius: 12px;
    color: var(--bg-dark);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    box-sizing: border-box; /* Incluir padding en el ancho */
}

.btn-registro::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: 0.5s;
}

.btn-registro:hover::before {
    left: 100%;
}

.btn-registro:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.4);
}

.btn-registro:active {
    transform: translateY(-1px);
}

/* Footer del registro */
.registro-footer {
    padding: 25px 40px;
    text-align: center;
    border-top: 1px solid var(--border-dark);
    background: rgba(31, 31, 43, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.login-link {
    color: var(--text-muted);
    font-size: 14px;
}

.login-link a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Efecto de carga */
.btn-registro.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-registro.loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 3px solid rgba(11, 11, 15, 0.3);
    border-top-color: var(--bg-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mensajes de validación */
.validation-message {
    font-size: 12px;
    margin-top: 6px;
    padding-left: 25px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    width: 100%; /* Asegurar ancho completo */
}

.validation-message.show {
    opacity: 1;
    transform: translateY(0);
}

.validation-message.error {
    color: #f87171;
}

.validation-message.success {
    color: var(--success);
}

.validation-message i {
    font-size: 10px;
}

/* Efectos de focus mejorados */
.form-group-registro {
    position: relative;
}

.form-group-registro::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-gold), var(--dark-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.form-group-registro:focus-within::after {
    transform: scaleX(1);
}

/* Efectos de partículas decorativas */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    z-index: 1;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Transiciones suaves para todos los elementos */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Responsive - MEJORADO */
@media (max-width: 768px) {
    .registro-container {
        padding: 15px;
    }
    
    .registro-card {
        max-width: 100%;
        margin: 0 10px; /* Agregar margen para no tocar los bordes */
    }
    
    .registro-header {
        padding: 30px 25px 25px;
    }
    
    .registro-body {
        padding: 25px 30px;
    }
    
    .registro-header h1 {
        font-size: 24px;
    }
    
    .logo-img {
        height: 70px;
    }
    
    .registro-footer {
        padding: 20px 30px;
    }
    
    .terminos-container {
        padding: 15px;
    }
    
    .checkbox-terminos label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .registro-header {
        padding: 25px 20px 20px;
    }
    
    .registro-body {
        padding: 20px;
    }
    
    .registro-header h1 {
        font-size: 22px;
    }
    
    .registro-subtitle {
        font-size: 14px;
    }
    
    .input-registro {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .input-with-icon .input-registro {
        padding-left: 50px;
    }
    
    .input-icon {
        left: 16px;
        font-size: 14px;
    }
    
    .btn-registro {
        padding: 16px;
        font-size: 15px;
    }
    
    .registro-footer {
        padding: 15px 20px;
    }
    
    .terminos-container {
        padding: 12px;
    }
    
    .checkbox-terminos {
        gap: 8px;
    }
    
    .checkbox-terminos label {
        font-size: 12px;
    }
}

/* Estilos para evitar desbordamiento en pantallas muy pequeñas */
@media (max-width: 350px) {
    .registro-container {
        padding: 10px;
    }
    
    .registro-card {
        margin: 0 5px;
    }
    
    .registro-body {
        padding: 15px;
    }
    
    .input-registro {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .input-with-icon .input-registro {
        padding-left: 45px;
    }
    
    .input-icon {
        left: 14px;
        font-size: 13px;
    }
    
    .btn-registro {
        padding: 14px;
        font-size: 14px;
    }
}

/* Asegurar que los elementos no excedan el ancho de la pantalla */
body {
    overflow-x: hidden;
    width: 100%;
}

/* ===== REGISTRO DE NEGOCIO - ESTILOS PRINCIPALES ===== */

/* Variables de color coherentes con el sistema */
:root {
    --primary-gold: #d4af37;
    --dark-gold: #b8962e;
    --bg-dark: #0b0b0f;
    --card-dark: #14141c;
    --border-dark: #1f1f2b;
    --text-light: #fff;
    --text-muted: #888;
    --success: #4ade80;
    --info: #3b82f6;
}

/* Reset y box-sizing para evitar problemas de overflow */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Layout principal para página de registro */
.registro-container {
    min-height: 100vh;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden; /* Evita scroll horizontal */
}

/* Fondo decorativo */
.registro-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, #0b0b0f 0%, #0f0f15 100%);
    z-index: 1;
}

/* Tarjeta principal del registro */
.registro-card {
    background: var(--card-dark);
    border-radius: 20px;
    border: 1px solid var(--border-dark);
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: cardEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header del registro */
.registro-header {
    padding: 40px 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(184, 150, 46, 0.05) 100%);
    border-bottom: 1px solid var(--border-dark);
}

/* Logo */
.logo-container {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.logo-img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

/* Títulos */
.registro-header h1 {
    color: var(--text-light);
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.registro-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
}

/* Cuerpo del formulario - Asegurar que no haya overflow */
.registro-body {
    padding: 30px 40px;
    overflow: visible; /* Cambiado de hidden a visible */
}

/* Grupos de formulario - Corregido para evitar overflow */
.form-group-registro {
    margin-bottom: 25px;
    position: relative;
    width: 100%; /* Asegurar ancho completo */
    max-width: 100%; /* Evitar que crezca más allá del contenedor */
}

.form-group-registro label {
    display: block;
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%; /* Asegurar que el label no cause overflow */
}

.form-group-registro label i {
    color: var(--primary-gold);
    font-size: 12px;
    width: 20px;
    text-align: center;
}

.required-star {
    color: #dc3545;
    margin-left: 4px;
}

/* Inputs con efectos especiales - ARREGLADO */
.input-registro {
    width: 100%; /* Forzar ancho completo */
    max-width: 100%; /* Evitar que se salga */
    padding: 16px 20px;
    background: rgba(11, 11, 15, 0.8);
    border: 2px solid var(--border-dark);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Importante para incluir padding en el ancho */
}

.input-registro:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 
        0 0 0 4px rgba(212, 175, 55, 0.15),
        inset 0 2px 5px rgba(0, 0, 0, 0.2);
    background: rgba(11, 11, 15, 0.9);
}

.input-registro:hover {
    border-color: rgba(212, 175, 55, 0.5);
}

/* Input con icono interno - ARREGLADO */
.input-with-icon {
    position: relative;
    width: 100%; /* Asegurar ancho completo */
    max-width: 100%; /* Evitar overflow */
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    z-index: 1;
}

.input-with-icon .input-registro {
    padding-left: 55px;
    width: 100%; /* Asegurar que herede el ancho */
}

/* Checkbox de términos */
.terminos-container {
    margin: 30px 0;
    padding: 20px;
    background: rgba(31, 31, 43, 0.3);
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    width: 100%; /* Asegurar ancho completo */
    max-width: 100%; /* Evitar overflow */
    box-sizing: border-box; /* Incluir padding en el ancho */
}

.checkbox-terminos {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%; /* Asegurar ancho completo */
}

.checkbox-terminos input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--primary-gold);
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0; /* Evitar que se encoja */
}

.checkbox-terminos label {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    flex: 1; /* Ocupar el espacio restante */
    word-wrap: break-word; /* Permitir que el texto se ajuste */
}

.terminos-link {
    color: var(--primary-gold);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px dotted transparent;
    white-space: nowrap; /* Mantener en una línea */
}

.terminos-link:hover {
    border-bottom-color: var(--primary-gold);
}

/* Botón de registro */
.btn-registro {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    border: none;
    border-radius: 12px;
    color: var(--bg-dark);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    box-sizing: border-box; /* Incluir padding en el ancho */
}

.btn-registro::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: 0.5s;
}

.btn-registro:hover::before {
    left: 100%;
}

.btn-registro:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.4);
}

.btn-registro:active {
    transform: translateY(-1px);
}

/* Footer del registro */
.registro-footer {
    padding: 25px 40px;
    text-align: center;
    border-top: 1px solid var(--border-dark);
    background: rgba(31, 31, 43, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.login-link {
    color: var(--text-muted);
    font-size: 14px;
}

.login-link a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Efecto de carga */
.btn-registro.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-registro.loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 3px solid rgba(11, 11, 15, 0.3);
    border-top-color: var(--bg-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mensajes de validación */
.validation-message {
    font-size: 12px;
    margin-top: 6px;
    padding-left: 25px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    width: 100%; /* Asegurar ancho completo */
}

.validation-message.show {
    opacity: 1;
    transform: translateY(0);
}

.validation-message.error {
    color: #f87171;
}

.validation-message.success {
    color: var(--success);
}

.validation-message i {
    font-size: 10px;
}

/* Efectos de focus mejorados */
.form-group-registro {
    position: relative;
}

.form-group-registro::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-gold), var(--dark-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.form-group-registro:focus-within::after {
    transform: scaleX(1);
}

/* Efectos de partículas decorativas */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    z-index: 1;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Transiciones suaves para todos los elementos */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* ===== MODAL DE ÉXITO - COHERENTE CON DISEÑO ===== */

/* Overlay del modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: modalFadeIn 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

/* Contenedor principal del modal */
.modal-success {
    background: var(--card-dark);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh; /* Limitar altura máxima */
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.4s ease;
    transform: translateY(20px);
    border: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
}

.modal-success.active {
    transform: translateY(0);
}

/* Header del modal - con gradiente dorado */
.modal-header {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    padding: 30px;
    text-align: center;
    color: var(--bg-dark);
    position: relative;
    flex-shrink: 0; /* Evitar que se encoja */
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent
    );
}

.modal-header .success-icon {
    font-size: 70px;
    margin-bottom: 20px;
    animation: iconBounce 1s ease;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
}

.modal-header h2 {
    font-size: 28px;
    margin: 0 0 8px 0;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-header p {
    opacity: 0.9;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* Botón de cerrar (X) adicional en esquina superior derecha */
.modal-close-top {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: var(--bg-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close-top:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: rotate(90deg);
}

/* Cuerpo del modal - con scroll si es necesario */
.modal-body {
    padding: 30px;
    overflow-y: auto; /* Permitir scroll vertical */
    flex: 1; /* Ocupar espacio disponible */
    max-height: 50vh; /* Limitar altura máxima del cuerpo */
}

/* Personalizar scrollbar */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(31, 31, 43, 0.3);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gold);
}

/* Tarjetas de información */
.info-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.info-card {
    background: rgba(31, 31, 43, 0.5);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary-gold);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.info-card:hover {
    background: rgba(31, 31, 43, 0.7);
    transform: translateX(5px);
}

.info-card i {
    color: var(--primary-gold);
    font-size: 22px;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-card-content h4 {
    margin: 0 0 8px 0;
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
}

.info-card-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Confirmación de email */
.email-confirmation {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 18px;
    margin: 20px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.email-confirmation i {
    color: var(--primary-gold);
    font-size: 20px;
    flex-shrink: 0;
}

.email-confirmation span {
    color: var(--text-light);
    font-weight: 500;
    font-size: 14px;
}

#userEmail {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 15px;
    word-break: break-word;
}

/* Advertencia de contraseña */
.password-warning {
    background: rgba(249, 115, 22, 0.1);
    border: 2px solid rgba(249, 115, 22, 0.3);
    border-radius: 12px;
    padding: 22px;
    margin: 20px 0;
    text-align: center;
    transition: all 0.3s ease;
}

.password-warning:hover {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.1);
}

.password-warning i {
    color: #f97316;
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.password-warning h4 {
    color: #fb923c;
    margin: 0 0 10px 0;
    font-size: 17px;
    font-weight: 700;
}

.password-warning p {
    color: #fdba74;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.password-warning strong {
    color: #fff;
    font-weight: 700;
}

/* Footer del modal */
.modal-footer {
    display: flex;
    gap: 15px;
    padding: 0 30px 30px 30px;
    flex-shrink: 0; /* Evitar que se encoja */
}

.btn-modal {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: 0.5s;
}

.btn-modal:hover::before {
    left: 100%;
}

.btn-modal-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--bg-dark);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-modal-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.4);
}

.btn-modal-primary:active {
    transform: translateY(-1px);
}

.btn-modal-secondary {
    background: rgba(31, 31, 43, 0.8);
    color: var(--text-light);
    border: 1px solid var(--border-dark);
}

.btn-modal-secondary:hover {
    background: rgba(31, 31, 43, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Animaciones del modal */
@keyframes modalFadeIn {
    from { 
        opacity: 0; 
        backdrop-filter: blur(0);
    }
    to { 
        opacity: 1; 
        backdrop-filter: blur(8px);
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-20px) scale(1.1);
    }
    60% {
        transform: translateY(-10px) scale(1.05);
    }
}

/* Efecto de cierre del modal */
.modal-success.closing {
    animation: modalSlideDown 0.3s ease forwards;
}

@keyframes modalSlideDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
}

/* Indicador visual de que el modal tiene scroll */
.modal-body.scrollable:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--card-dark));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ===== RESPONSIVE ===== */

/* Responsive para registro */
@media (max-width: 768px) {
    .registro-container {
        padding: 15px;
    }
    
    .registro-card {
        max-width: 100%;
        margin: 0 10px; /* Agregar margen para no tocar los bordes */
    }
    
    .registro-header {
        padding: 30px 25px 25px;
    }
    
    .registro-body {
        padding: 25px 30px;
    }
    
    .registro-header h1 {
        font-size: 24px;
    }
    
    .logo-img {
        height: 70px;
    }
    
    .registro-footer {
        padding: 20px 30px;
    }
    
    .terminos-container {
        padding: 15px;
    }
    
    .checkbox-terminos label {
        font-size: 13px;
    }
}

/* Responsive para modal */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 15px;
    }
    
    .modal-success {
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 25px;
    }
    
    .modal-header .success-icon {
        font-size: 60px;
        margin-bottom: 15px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-header p {
        font-size: 15px;
    }
    
    .modal-body {
        padding: 25px;
        max-height: 45vh;
    }
    
    .modal-footer {
        padding: 0 25px 25px 25px;
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-modal {
        padding: 15px;
        font-size: 15px;
    }
    
    .info-card {
        padding: 18px;
    }
    
    .email-confirmation {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .password-warning {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    /* Registro */
    .registro-header {
        padding: 25px 20px 20px;
    }
    
    .registro-body {
        padding: 20px;
    }
    
    .registro-header h1 {
        font-size: 22px;
    }
    
    .registro-subtitle {
        font-size: 14px;
    }
    
    .input-registro {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .input-with-icon .input-registro {
        padding-left: 50px;
    }
    
    .input-icon {
        left: 16px;
        font-size: 14px;
    }
    
    .btn-registro {
        padding: 16px;
        font-size: 15px;
    }
    
    .registro-footer {
        padding: 15px 20px;
    }
    
    .terminos-container {
        padding: 12px;
    }
    
    .checkbox-terminos {
        gap: 8px;
    }
    
    .checkbox-terminos label {
        font-size: 12px;
    }
    
    /* Modal */
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: 40vh;
    }
    
    .modal-header .success-icon {
        font-size: 50px;
    }
    
    .modal-header h2 {
        font-size: 22px;
    }
    
    .modal-header p {
        font-size: 14px;
    }
    
    .info-card {
        padding: 15px;
        gap: 12px;
    }
    
    .info-card i {
        font-size: 20px;
    }
    
    .info-card-content h4 {
        font-size: 15px;
    }
    
    .info-card-content p {
        font-size: 13px;
    }
    
    .password-warning {
        padding: 18px;
    }
    
    .password-warning h4 {
        font-size: 16px;
    }
    
    .password-warning p {
        font-size: 13px;
    }
    
    .modal-footer {
        padding: 0 20px 20px 20px;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 350px) {
    .registro-container {
        padding: 10px;
    }
    
    .registro-card {
        margin: 0 5px;
    }
    
    .registro-body {
        padding: 15px;
    }
    
    .input-registro {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .input-with-icon .input-registro {
        padding-left: 45px;
    }
    
    .input-icon {
        left: 14px;
        font-size: 13px;
    }
    
    .btn-registro {
        padding: 14px;
        font-size: 14px;
    }
}

/* Para pantallas con altura reducida */
@media (max-height: 600px) {
    .modal-success {
        max-height: 95vh;
    }
    
    .modal-body {
        max-height: 55vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 0 20px 20px 20px;
    }
}

/* Asegurar que los elementos no excedan el ancho de la pantalla */
body {
    overflow-x: hidden;
    width: 100%;
}

/* Estilos para evitar desbordamiento en pantallas muy pequeñas */
@media (max-width: 350px) {
    .registro-container {
        padding: 10px;
    }
    
    .registro-card {
        margin: 0 5px;
    }
    
    .registro-body {
        padding: 15px;
    }
    
    .input-registro {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .input-with-icon .input-registro {
        padding-left: 45px;
    }
    
    .input-icon {
        left: 14px;
        font-size: 13px;
    }
    
    .btn-registro {
        padding: 14px;
        font-size: 14px;
    }
}

/* Agregar estilos para los campos de contraseña */
        .password-group {
            position: relative;
        }
        
        .password-toggle {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #d4af37;
            cursor: pointer;
            z-index: 10;
        }
        
        .password-strength {
            margin-top: 8px;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 5px;
            color: #fdfdfd;
        }
        
        .strength-bar {
            flex: 1;
            height: 4px;
            background: #333;
            border-radius: 2px;
            overflow: hidden;
        }
        
        .strength-fill {
            height: 100%;
            width: 0%;
            transition: width 0.3s, background 0.3s;
        }
        
        .strength-weak { background: #ef4444; }
        .strength-medium { background: #f59e0b; }
        .strength-strong { background: #10b981; }


         .notification-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    
    .notification-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .notification-modal {
        background: linear-gradient(135deg, #14141c 0%, #1a1a24 100%);
        border-radius: 20px;
        padding: 30px;
        max-width: 400px;
        width: 90%;
        border: 1px solid #d4af37;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        transform: translateY(-20px);
        transition: transform 0.3s;
        position: relative;
        overflow: hidden;
    }
    
    .notification-overlay.active .notification-modal {
        transform: translateY(0);
    }
    
    .notification-modal::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #d4af37, #ffd700);
    }
    
    .notification-icon {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #d4af37, #b8962e);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
    }
    
    .notification-icon i {
        font-size: 30px;
        color: #000;
    }
    
    .notification-title {
        text-align: center;
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 15px;
        color: #fff;
    }
    
    .notification-message {
        text-align: center;
        color: #9ca3af;
        line-height: 1.6;
        margin-bottom: 25px;
    }
    
    .notification-buttons {
        display: flex;
        gap: 15px;
        justify-content: center;
    }
    
    .notification-btn {
        padding: 12px 25px;
        border-radius: 12px;
        font-weight: 600;
        cursor: pointer;
        border: none;
        transition: all 0.3s;
        min-width: 120px;
    }
    
    .notification-btn-primary {
        background: linear-gradient(135deg, #d4af37, #b8962e);
        color: #000;
    }
    
    .notification-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    }
    
    .notification-btn-secondary {
        background: rgba(30, 30, 40, 0.8);
        color: #fff;
        border: 1px solid #333;
    }
    
    .notification-btn-secondary:hover {
        background: rgba(40, 40, 50, 0.9);
        border-color: #d4af37;
    }
    
    /* Toast notification */
    .toast-notification {
        position: fixed;
        top: 30px;
        right: 30px;
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: white;
        padding: 20px 25px;
        border-radius: 15px;
        box-shadow: 0 15px 35px rgba(239, 68, 68, 0.3);
        z-index: 10000;
        max-width: 400px;
        animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        display: flex;
        align-items: center;
        gap: 15px;
        border-left: 4px solid #dc2626;
    }
    
    .toast-success {
        background: linear-gradient(135deg, #10b981, #059669);
        border-left-color: #059669;
        box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3);
    }
    
    .toast-warning {
        background: linear-gradient(135deg, #f59e0b, #d97706);
        border-left-color: #d97706;
        box-shadow: 0 15px 35px rgba(245, 158, 11, 0.3);
    }
    
    .toast-icon {
        font-size: 24px;
        filter: drop-shadow(0 3px 5px rgba(0,0,0,0.2));
    }
    
    .toast-content {
        flex: 1;
    }
    
    .toast-title {
        font-weight: 600;
        margin-bottom: 5px;
        font-size: 16px;
    }
    
    .toast-message {
        font-size: 14px;
        opacity: 0.9;
    }
    
    .toast-close {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s;
    }
    
    .toast-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    @keyframes slideInRight {
        from { transform: translateX(100%); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }
    
    @keyframes slideOutRight {
        from { transform: translateX(0); opacity: 1; }
        to { transform: translateX(100%); opacity: 0; }
    }

    @keyframes loadingShine {
    0% { left: -100%; }
    100% { left: 100%; }
}