/* ==========================================================================
   ESTILOS UNIFICADOS PARA MI CUENTA WOOCOMMERCE - ENDPOINT DE CITAS
   ========================================================================== */

/* ===== RESET Y TIPOGRAFÍA ===== */
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content,
.citas-content,
.woocommerce-Addresses,
.woocommerce-EditAccountForm {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* ===== HEADINGS HOMOGÉNEOS ===== */
.woocommerce-MyAccount-content h2,
.woocommerce-Address-title h2,
.woocommerce-EditAccountForm h2,
.citas-content h2,
.titulo-reserva,
.titulo-citas {
    font-size: 32px !important;
    font-weight: 600 !important;
    margin: 0 0 20px 0 !important;
    color: #333 !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #F2AF59 !important;
    line-height: 1.3 !important;
    text-align: center;
    display: block;
}

/* Headings más pequeños para elementos internos */
.woocommerce-Address-title h2,
.cita-item h3 {
    font-size: 24px !important;
    margin-bottom: 15px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    text-align: left;
}

/* ===== MENÚ LATERAL ===== */
.woocommerce-MyAccount-navigation {
    background: #fff;
    padding: 0;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 14px 20px;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation a:hover {
    background: #f8f9fa;
    color: #000;
}

.woocommerce-MyAccount-navigation .is-active a {
    background: #f8f9fa;
    color: #0097a7;
    font-weight: 500;
    border-left: 3px solid #0097a7;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.woocommerce-MyAccount-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* ===== SECCIÓN DE CREAR CITA ===== */
.seccion-reserva {
    background: #f1f1f1;
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.6s ease-out;
}

.titulo-reserva {
    border-bottom: none !important;
    color: #2d3748 !important;
    margin-bottom: 2rem !important;
}

.formulario-reserva {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ===== SECCIÓN DE MIS CITAS ===== */
.citas-content {
    padding: 0;
}

.titulo-citas {
    border-bottom: 3px solid #4299e1 !important;
    color: #2d3748 !important;
    margin-bottom: 1.5rem !important;
}

.lista-citas {
    display: grid;
    gap: 16px;
}

.cita-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 18px;
    transition: all 0.2s ease;
    border-left: 3px solid #0097a7;
    position: relative;
    overflow: hidden;
}

.cita-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cita-item p {
    margin: 6px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.cita-item strong {
    color: #333;
    font-weight: 500;
}

/* ===== ESTADOS DE CITAS ===== */
.cita-item[data-estado="confirmed"] {
    border-left-color: #0097a7 !important;
}

.cita-item[data-estado="pending"] {
    border-left-color: #F2AF59 !important;
}

.cita-item[data-estado="cancelled"] {
    border-left-color: #e74c3c !important;
}

/* ===== DIRECCIONES ===== */
.woocommerce-Addresses.col2-set {
    display: block !important;
}

.woocommerce-Addresses .u-column1,
.woocommerce-Addresses .u-column2 {
    width: 100% !important;
    float: none !important;
    margin-bottom: 25px;
}

.woocommerce-Address {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    flex-direction: column;
}

.woocommerce-Address-title .edit {
    color: #0097a7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.woocommerce-Address-title .edit:hover {
    color: #F2AF59;
}

.woocommerce-Address address {
    font-style: normal;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* ===== FORMULARIO EDITAR CUENTA ===== */
.woocommerce-EditAccountForm .form-row {
    margin-bottom: 20px;
}

.woocommerce-EditAccountForm label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.woocommerce-EditAccountForm button {
    background: #0097a7;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.woocommerce-EditAccountForm button:hover {
    background: #007d8a;
}

/* ===== PRECIOS WOOCOMMERCE ===== */
.woocommerce-Price-amount {
    color: #0097a7 !important;
    font-weight: 600 !important;
}

.woocommerce-Price-currencySymbol {
    color: #0097a7 !important;
}

/* ===== DESCARGAS ===== */
.woocommerce-table__table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-table__table th,
.woocommerce-table__table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.woocommerce-table__table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.seccion-reserva {
    animation: fadeIn 0.6s ease-out;
}

.seccion-citas-existente {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

/* ===== UTILIDADES ===== */
.cita-item.loading {
    opacity: 0.7;
    pointer-events: none;
}

.lista-citas:empty::before {
    content: "No tienes citas programadas";
    display: block;
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .woocommerce-MyAccount-navigation {
        margin-bottom: 20px;
    }
    
    .woocommerce-MyAccount-content {
        padding: 20px;
    }
    
    .seccion-reserva {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .titulo-reserva,
    .titulo-citas,
    .woocommerce-MyAccount-content h2 {
        font-size: 24px !important;
    }
    
    .formulario-reserva {
        padding: 1.5rem;
    }
    
    .woocommerce-Address-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .woocommerce-Address {
        padding: 16px;
    }
    
    .cita-item {
        padding: 16px;
    }
    
    .woocommerce-MyAccount-navigation a {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .woocommerce-MyAccount-content {
        padding: 15px;
    }
    
    .seccion-reserva {
        padding: 1rem;
    }
    
    .formulario-reserva {
        padding: 1rem;
    }
    
    .cita-item {
        padding: 14px;
    }
    
    .lista-citas {
        gap: 12px;
    }
    
    .woocommerce-Address {
        padding: 14px;
    }
    
    .titulo-reserva,
    .titulo-citas,
    .woocommerce-MyAccount-content h2 {
        font-size: 20px !important;
    }
}




/* ===== BADGES DE ESTADO ===== */
.badge-estado {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-estado.estado-confirmed {
    background: #c6f6d5;
    color: #22543d;
}

.badge-estado.estado-pending {
    background: #fed7d7;
    color: #742a2a;
}

.badge-estado.estado-paid {
    background: #bee3f8;
    color: #1a365d;
}

.badge-estado.estado-cancelled {
    background: #e2e8f0;
    color: #2d3748;
}

.badge-estado.estado-abandoned {
    background: #faf089;
    color: #744210;
}

.badge-estado.estado-late {
    background: #fbd38d;
    color: #744210;
}

.badge-estado.estado-draft {
    background: #edf2f7;
    color: #4a5568;
}

/* ===== COLORES DE BORDE SEGÚN ESTADO ===== */
.cita-item.estado-confirmed {
    border-left-color: #48bb78 !important;
}

.cita-item.estado-pending {
    border-left-color: #ed8936 !important;
}

.cita-item.estado-paid {
    border-left-color: #4299e1 !important;
}

.cita-item.estado-cancelled {
    border-left-color: #a0aec0 !important;
}

.cita-item.estado-abandoned {
    border-left-color: #ecc94b !important;
}

.cita-item.estado-late {
    border-left-color: #ed8936 !important;
}

.cita-item.estado-draft {
    border-left-color: #cbd5e0 !important;
}
