#modal-AgregarDirección {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.modal-content-AgregarDirección{
    background: #f4f4f7;
    margin: 5% auto;
    padding: 20px 30px;
    border-radius: 10px;
    width: 35vw; /* Mejor ancho en PC */
    height: auto;
    color: black;
    box-sizing: border-box;
    position: relative;
}

.Cont-Form-AgregarDireccion h2 { text-align: center; color: #8B0000; margin-bottom: 20px; }

.close {
    position: absolute;
    top: 15px;
    right: 15px; 
    font-size: 20px;
    cursor: pointer;
    background: linear-gradient(135deg, #dc3545 0%, #8b0000 100%);
    padding: 10px 14px;
    color: white;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.Label-AddDireccion{ font-size: 1.1rem; font-weight: bold; color: #333; }

.input-AddDireccion{
    margin: 0.3rem 0 1rem 0;
    padding: 0.6rem;
    width: 100%;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

textarea.input-AddDireccion { height: 80px; resize: none; }

/* === PASARELA === */
.indicador-pasos { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; }
.paso-dot-dir {
    width: 35px; height: 35px; border-radius: 50%; background-color: #ccc;
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: bold; transition: 0.3s;
}
.paso-dot-dir.active { background-color: #8B0000; }

.pasarela-step-dir { display: none; }
.pasarela-step-dir.active { display: block; animation: fadeIn 0.4s ease; }

.divButton-pasarela { display: flex; justify-content: space-between; gap: 10px; margin-top: 15px;}
.btn-pasarela { flex: 1; padding: 12px; border: none; border-radius: 8px; color: white; cursor: pointer; font-weight: bold;}
.btn-siguiente { background: #4C8F43; }
.btn-anterior { background: #666; }

.ButtonGuardar {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #8B0000 0%, #5c0000 100%);
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.swal2-container { z-index: 10000 !important; }

/* === RESPONSIVIDAD PARA CELULAR === */
@media screen and (max-width: 768px) {
    .modal-content-AgregarDirección {
        width: 90vw;
        margin: 10% auto;
        padding: 15px 20px;
        max-height: 85vh;
        overflow-y: auto;
    }
    .Cont-Form-AgregarDireccion h2 { font-size: 1.5rem; }
    .Label-AddDireccion { font-size: 1rem; }
    .input-AddDireccion { padding: 8px; font-size: 0.95rem; }
}