/* style.css - VERSIÓN OPTIMIZADA */

:root {
    --primary-color: #007bff;
    --primary-hover-color: #0056b3;
    --secondary-color: #6c757d;
    --light-gray-color: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #212529;
    --text-muted-color: #6c757d;
    --white-color: #fff;
    --danger-color: #dc3545;
    --font-family: 'Inter', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --sidebar-width-desktop: 280px;
    --header-height-mobile: 60px;
}

/* --- ESTILOS GENERALES Y DE ESCRITORIO --- */
body {
    margin: 0;
    font-family: var(--font-family);
    background-color: #eef1f5;
    color: var(--text-color);
    overflow-x: hidden;
}

.page-header {
    display: none;
}

.back-arrow {
    display: none;
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5em;
    cursor: pointer;
    z-index: 1004;
    transition: color 0.2s ease;
}

.back-arrow:hover {
    color: var(--primary-color);
}

.account-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin: 20px auto;
}

/* --- BARRA LATERAL (SIDEBAR) --- */
.account-sidebar {
    width: var(--sidebar-width-desktop);
    background-color: var(--light-gray-color);
    padding: 30px 20px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.3s ease-in-out;
    position: relative;
}

.sidebar-overlay {
    display: none;
}

.profile-picture-container {
    position: relative;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 120px;
    min-height: 120px;
    max-width: 120px;
    max-height: 120px;
}

/* Avatar por defecto cuando no hay imagen */
.profile-photo.default-avatar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 3em;
    font-weight: 300;
}

.close-sidebar-btn {
    display: none;
}

.user-name {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
    color: var(--text-color);
}

.user-email {
    font-size: 0.9em;
    color: var(--text-muted-color);
    margin-bottom: 30px;
    text-align: center;
}

.account-nav {
    width: 100%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.account-nav .nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: var(--border-radius);
    color: var(--text-muted-color);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    text-align: left;
}

.account-nav .nav-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.account-nav .nav-item:hover {
    background-color: #dde2e7;
    color: var(--text-color);
}

.account-nav .nav-item.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.account-nav .nav-item.active:hover {
    background-color: var(--primary-hover-color);
}

.logout-section {
    width: 100%;
    margin-top: 8px;  /* ✅ CAMBIAR de 20px a 8px */
    padding-top: 8px;  /* ✅ CAMBIAR de 20px a 8px */
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.logout-btn {
    width: 100%;
    padding: 10px 15px;
    background-color: transparent;
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn i {
    margin-right: 8px;
}

.logout-btn:hover {
    background-color: var(--danger-color);
    color: var(--white-color);
}

/* --- CONTENIDO PRINCIPAL --- */
.account-content {
    flex-grow: 1;
    padding: 30px 40px;
    overflow-y: auto;
}

.content-section {
    display: none;
}

.content-section.active-section {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin: 0;
}

.edit-button,
.add-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

.edit-button i,
.add-button i {
    margin-right: 6px;
}

.edit-button:hover,
.add-button:hover {
    background-color: var(--primary-hover-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.info-item {
    background-color: var(--light-gray-color);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid #e7eaf0;
}

.info-item label {
    display: block;
    font-size: 0.85em;
    color: var(--text-muted-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.info-item label i {
    margin-right: 6px;
    color: var(--primary-color);
}

.info-item p {
    font-size: 1em;
    color: var(--text-color);
    margin: 0;
    font-weight: 500;
    word-break: break-word;
}



/* --- FORMULARIOS DE EDICIÓN --- */
.edit-form {
    background-color: #fdfdff;
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-top: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-grid.two-columns {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

.form-group label {
    font-size: 0.9em;
    color: var(--text-muted-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95em;
    font-family: var(--font-family);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.save-button,
.cancel-button {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.save-button {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.cancel-button {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* --- MODAL DE CONFIRMACIÓN --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 90%;
    max-width: 450px;
    text-align: center;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-title {
    font-size: 1.5em;
    color: var(--danger-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title i {
    margin-right: 10px;
    font-size: 1.2em;
}

.modal-message {
    font-size: 1em;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-message strong {
    color: var(--primary-color);
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-direction: column;
}

.modal-button {
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.1s ease;
    width: 100%;
}

.modal-button:active {
    transform: translateY(1px);
}

.modal-button.cancel-button {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.modal-button.cancel-button:hover {
    background-color: #5a6268;
}

.modal-button.delete-button {
    background-color: var(--danger-color);
    color: var(--white-color);
}

.modal-button.delete-button:hover {
    background-color: #c82333;
}

/* =================================================================
   ESTILOS PARA VISTA TABLET Y MÓVIL
   ================================================================= */

@media (min-width: 600px) {
    .modal-actions {
        flex-direction: row;
    }
    
    .modal-button {
        width: auto;
    }
}

@media (max-width: 1023px) {
    .account-container {
        max-width: 95%;
        margin: 20px auto;
    }

    .account-sidebar {
        width: 240px;
    }

    .account-content {
        padding: 25px 30px;
    }
}

@media (max-width: 768px) {
    body {
        background-color: var(--white-color);
    }

    /* Botón de flecha de regreso - AHORA BOTÓN ESTILIZADO */
    .back-arrow {
        display: block;
        position: static; /* CAMBIO: de absolute a static */
        background: #3a9efb; /* NUEVO: Estilo degradado */
        border: none;
        color: var(--white-color);
        font-size: 0.9em;
        font-weight: 500;
        cursor: pointer;
        border-radius: 50px;
        padding: 10px 20px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .back-arrow:hover {
        color: var(--white-color); /* CAMBIO: Mantener color de texto */
        transform: translateY(-2px); /* NUEVO: Efecto hover */
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* NUEVO: Efecto hover */
    }

    /* Variables para menú hamburguesa */
    :root {
        --hamburger-color: #007bff;
        --hamburger-color-light: #3399ff;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        padding: 0;
        background: transparent;
        border: none;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: transform 0.2s ease;
        margin-left: 0; /* CAMBIO: Eliminado el margen */
    }

    .mobile-menu-toggle .bar {
        width: 28px;
        height: 4px;
        background-color: var(--hamburger-color);
        border-radius: 2px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
        transition: background-color 0.2s ease,
                    transform 0.3s ease,
                    opacity 0.2s ease;
    }

    .mobile-menu-toggle .bar + .bar {
        margin-top: 6px;
    }

    .mobile-menu-toggle:hover {
        transform: scale(1.1);
    }

    .mobile-menu-toggle:hover .bar {
        background-color: var(--hamburger-color-light);
    }

    .mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    .page-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 1rem;
        background-color: var(--white-color);
        color: var(--text-color);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    
        /* --- LÍNEAS IMPORTANTES --- */
        position: fixed;   /* Cambia la posición para que acepte z-index */
        top: 0;
        width: 100%;
        z-index: 1000;     /* Le da una capa inferior a la del menú */
        box-sizing: border-box; 
    }

    /* NUEVO: Contenedor para la sección izquierda del header */
    .header-left-section {
        display: flex;
        align-items: center;
    }

    .mobile-page-title {
        margin: 0 0 0 0.75rem;
        font-size: 1.25rem;
        line-height: 1;
    }

    .account-container {
        flex-direction: column;
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
    }

    /* Sidebar como menú deslizable */
    .account-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        max-width: 85%;
        height: 100vh;
        z-index: 1002;
        transform: translateX(-100%);
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
        padding-top: 40px;
    }

    .account-sidebar.open {
        transform: translateX(0);
    }

    .close-sidebar-btn {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 1.8em;
        background: none;
        border: none;
        color: var(--text-color);
        cursor: pointer;
        z-index: 1003;
    }

    /* Overlay para el fondo */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        display: none;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .account-content {
        padding: 20px 15px;
    }

    /* Ajustes de contenido móvil */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-header h2 {
        font-size: 1.5em;
    }

    .info-grid,
    .addresses-grid,
    .form-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .form-group.span-two-columns {
        grid-column: span 1;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions button {
        width: 100%;
    }

    .modal-content {
        margin: 0 20px;
        width: calc(100% - 40px);
    }
}




/* Badge de dirección principal */
.principal-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    /*margin-left: 8px;*/
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Botón de establecer como principal */
.set-principal-btn {
    background: transparent;
    border: 2px solid #fbbf24;
    color: #fbbf24;
    transition: all 0.3s ease;
}

.set-principal-btn:hover:not(:disabled) {
    background: #fbbf24;
    color: white;
    transform: scale(1.1);
}

.set-principal-btn.is-principal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    cursor: not-allowed;
}

.set-principal-btn:disabled {
    opacity: 0.6;
}

/* Animación de la estrella */
.set-principal-btn i {
    transition: transform 0.3s ease;
}

.set-principal-btn:hover:not(:disabled) i {
    transform: rotate(72deg);
}


/* ============================================
   LOADER DE CAMBIO DE DIRECCIÓN PRINCIPAL
============================================ */
.loader-overlay-principal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loader-overlay-principal.visible {
    opacity: 1;
}

.loader-container-principal {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.loader-spinner-principal {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text-principal {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}







/* ============================================
   TOAST ANIMADO (DESLIZA DE IZQUIERDA A DERECHA)
============================================ */
.toast-cambio-principal {
    position: fixed;
    top: 20px;
    left: -500px; /* ✅ Más lejos para asegurar que esté completamente oculto */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    font-size: 16px;
    font-weight: 600;
    z-index: 100000;
    min-width: 320px;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: left 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-cambio-principal.show {
    left: 20px; /* Se desliza hacia la derecha */
}

.toast-cambio-principal.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast-cambio-principal.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.toast-cambio-principal::before {
    content: '⭐';
    font-size: 24px;
    flex-shrink: 0; /* ✅ Evita que el ícono se comprima */
}

.toast-cambio-principal.success::before {
    content: '✅';
}

.toast-cambio-principal.error::before {
    content: '❌';
}

/* Responsive */
@media (max-width: 768px) {
    .toast-cambio-principal {
        left: -400px; /* ✅ Ajustado para móvil */
        min-width: 280px;
        font-size: 14px;
        padding: 12px 20px;
        top: 70px; /* ✅ Debajo del header en móvil */
    }
    
    .toast-cambio-principal.show {
        left: 10px; /* ✅ Menos margen en móvil */
    }
    
    .loader-container-principal {
        margin: 0 20px;
        padding: 30px 20px;
    }
}













/* ============================================
   TARJETAS DE DIRECCIONES - VISTA MEJORADA
============================================ */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.address-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.address-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

/* Header de la tarjeta */
.address-card-header {
    background: linear-gradient(135deg, #75839a 0%, #1a202c 100%);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 0;
}

.address-card-header h3 {
    font-size: 1.1em;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: white;
    font-weight: 600;
}

.address-card-header h3 i {
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    margin-left: 5px;
    margin-bottom: 7px;
}

/* Tipo de dirección */
.address-type {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.address-type.residential {
    background: rgba(72, 187, 120, 0.25);
    border-color: rgba(72, 187, 120, 0.4);
    color: #d1fae5;
}

.address-type.business {
    background: rgba(66, 153, 225, 0.25);
    border-color: rgba(66, 153, 225, 0.4);
    color: #bee3f8;
}

/* Botones de acción */
.address-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: white;
    cursor: pointer;
    padding: 8px 10px;
    font-size: 1em;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.action-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.action-btn:active:not(:disabled) {
    transform: scale(0.95);
}

/* Botón de establecer como principal */
.set-principal-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.set-principal-btn:hover:not(:disabled) {
    background: rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    transform: scale(1.1);
}

.set-principal-btn.is-principal {
    background: rgba(251, 191, 36, 0.95);
    border-color: rgba(251, 191, 36, 0.95);
    color: #1a202c;
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
}

.set-principal-btn.is-principal i {
    color: #1a202c;
}
.set-principal-btn:disabled {
    opacity: 1;
}

/* Animación de la estrella */
.set-principal-btn i {
    transition: transform 0.3s ease;
}

.set-principal-btn:hover:not(:disabled) i {
    transform: rotate(72deg);
}

/* Botón de editar */
.edit-address-btn {
    background: rgba(66, 153, 225, 0.25);
    border-color: rgba(66, 153, 225, 0.4);
    color: #63b3ed;
}

.edit-address-btn:hover {
    background: rgba(66, 153, 225, 0.4);
    border-color: rgba(66, 153, 225, 0.6);
    color: #90cdf4;
}

/* Botón de eliminar */
.delete-address-btn {
    background: rgba(245, 101, 101, 0.25);
    border-color: rgba(245, 101, 101, 0.4);
    color: #fc8181;
}

.delete-address-btn:hover {
    background: rgba(245, 101, 101, 0.4);
    border-color: rgba(245, 101, 101, 0.6);
    color: #feb2b2;
}

/* Contenido de la tarjeta */
.address-card-body {
    padding: 20px;
}

.address-card p {
    font-size: 0.95em;
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: var(--text-color);
    display: flex;
    align-items: flex-start;
}

.address-card p:last-child {
    margin-bottom: 0;
}

.address-card p i {
    margin-right: 10px;
    color: var(--primary-color);
    min-width: 18px;
    margin-top: 3px;
}

/* Instrucciones de entrega */
.address-card p.instructions {
    background: rgba(102, 126, 234, 0.08);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    margin-top: 12px;
    font-style: italic;
    color: var(--text-muted-color);
}

/* Badges de validación */
.validation-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    gap: 4px;
}

.validation-badge.warning {
    background: rgba(251, 191, 36, 0.25);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.validation-badge.info {
    background: rgba(66, 153, 225, 0.25);
    color: #90cdf4;
    border: 1px solid rgba(66, 153, 225, 0.4);
}

/* Badge principal */
.principal-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mensaje sin direcciones */
.no-addresses {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted-color);
    font-size: 1.1em;
    background: var(--light-gray-color);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

/* ============================================
   RESPONSIVE PARA MÓVIL
============================================ */
@media (max-width: 768px) {
    .addresses-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .address-card {
        border-radius: 10px;
    }

    .address-card-header {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .address-card-header h3 {
        font-size: 1em;
        width: 100%;
    }

    .address-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .action-btn {
        padding: 10px 12px;
        min-width: 42px;
        height: 42px;
        font-size: 1.1em;
    }

    .address-card-body {
        padding: 16px;
    }

    .address-card p {
        font-size: 0.9em;
        margin-bottom: 8px;
    }

    .principal-badge,
    .address-type {
        font-size: 0.7em;
        padding: 3px 10px;
    }

    .validation-badge {
        font-size: 0.65em;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .addresses-grid {
        gap: 12px;
    }

    .address-card-header h3 {
        font-size: 0.95em;
    }

    .action-btn {
        min-width: 38px;
        height: 38px;
        font-size: 1em;
    }
}



.mobile-nav-account-item i {
    margin-right: 7px; /* puedes ajustar el valor */
  }
  