.modal-Cc, .modal-ra {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-ra { z-index: 10000; }

.modal-content-cc {
    background: #fff;
    margin: 5% auto;
    padding: 20px 30px;
    border-radius: 10px;
    width: 35vw; 
    height: auto;
    color: black;
    box-sizing: border-box;
    position: relative; 
}


.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: clamp(16px, 3vw, 20px);
    cursor: pointer;
    background: linear-gradient(135deg, #dc3545 0%, #8b0000 100%);
    padding: 8px 12px;
    color: white;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.close:hover { 
    background: linear-gradient(135deg, #c82333 0%, #6a0f0f 100%); 
}


.labelRegistrer { font-size: 1.2rem; font-weight: bold; color: #333; }
#CrearCuenta-text { margin: 1rem 0; text-align: center; font-size: 2rem; color: #8B0000; }

form { width: 100%; }

.input-register {
    background-color: #f5f5f5;
    padding: 0 10px; /* Ajuste el padding para centrar mejor el texto verticalmente */
    margin: 0.5rem 0 1rem 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    height: 45px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: inherit;
}

/* Contenedor relativo para poder posicionar el ojito encima del input */
.campo-password { 
    position: relative; 
    width: 100%;
}

/* === ESTILOS PARA LA PASARELA DE PASOS === */
.indicador-pasos {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.paso-dot-cc {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s;
}

.paso-dot-cc.active {
    background-color: #8B0000; /* Color vino activo */
    color: white;
}

.pasarela-step-cc { display: none; }
.pasarela-step-cc.active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.divButton-pasarela {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    gap: 10px;
}

.btn-pasarela {
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    flex: 1;
}

.btn-siguiente { background: linear-gradient(135deg, #4C8F43 0%, #3a6b34 100%); }
.btn-siguiente:hover { background: linear-gradient(135deg, #3a6b34 0%, #2d5528 100%); }
.btn-anterior { background: #6c757d; }
.btn-anterior:hover { background: #5a6268; }

#buttonCrearCuenta {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #8B0000 0%, #5c0000 100%);
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
#buttonCrearCuenta:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); 
}

/* === RESPONSIVIDAD PARA CELULARES === */
@media screen and (max-width: 768px) {
    .modal-content-cc {
        width: 90vw;
        margin: 10% auto;
        padding: 15px 20px;
        max-height: 85vh;
        overflow-y: auto;
    }
    #CrearCuenta-text { font-size: 1.6rem; }
    .labelRegistrer { font-size: 1rem; }
    .input-register { height: 40px; font-size: 0.95rem; }
    .btn-pasarela, #buttonCrearCuenta { padding: 10px; font-size: 1rem; }
}

.campo-password .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%; /* Centra verticalmente */
    transform: translateY(-50%); /* Ajuste fino del centrado */
    cursor: pointer;
    color: #666; /* Color sutil */
    border: none;
    background: transparent;
    padding: 0;
    margin-top: -4px; /* Ajuste fino para alinearlo visualmente con el input */
}

.campo-password .toggle-password:hover {
    color: #8B0000; /* Cambia al color vino de la marca al pasar el mouse */
}

/* =========================================
   CHECKBOXES (Términos y Privacidad)
   ========================================= */
.contenedor-legales {
    margin: 15px 0 25px 0;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Espacio entre los dos checkboxes */
}

.checkbox-legal {
    display: flex;
    align-items: flex-start; /* Alinea el texto arriba si es muy largo */
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #444;
}

.checkbox-legal input[type="checkbox"] {
    width: 18px; /* Un poco más grande para ser fácil de clicar */
    height: 18px;
    margin: 2px 0 0 0; /* Lo baja un poquito para alinearlo con la primera línea de texto */
    cursor: pointer;
    accent-color: #9f7200; /* El color dorado/café de la marca */
}

.checkbox-legal a {
    color: #9f7200;
    text-decoration: none;
    font-weight: 500;
    transition: text-decoration 0.2s;
}

.checkbox-legal a:hover {
    text-decoration: underline;
}