/* ═══════════════════════════════════════════════════════
   Depurarte – Mi Cuenta (WooCommerce My Account)
   ═══════════════════════════════════════════════════════ */

:root {
    --dp-violeta: #340E49;
    --dp-oro: #D0A761;
    --dp-oro-claro: #EAD095;
    --dp-marfil: #FCFAF4;
    --dp-beige: #F8F3E8;
    --dp-body: #2A1806;
    --dp-radius: 18px;
    --dp-radius-sm: 12px;
    --dp-font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --dp-font-body: 'Montserrat', sans-serif;
}

/* ── Page Container ── */
.depurarte-account-page {
    padding: 40px 0 80px;
    min-height: 60vh;
}

.depurarte-account-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Breadcrumbs ── */
.depurarte-account-breadcrumbs {
    font-family: var(--dp-font-body);
    font-size: 13px;
    margin-bottom: 32px;
    color: rgba(42, 24, 6, 0.5);
}

.depurarte-account-breadcrumbs a {
    color: rgba(42, 24, 6, 0.5);
    text-decoration: none;
    transition: color 0.16s ease;
}

.depurarte-account-breadcrumbs a:hover {
    color: var(--dp-oro);
}

.depurarte-account-crumb-sep {
    margin: 0 8px;
    opacity: 0.5;
}

/* ═══════════════════════════════════════════
   LOGIN / REGISTRO (Estado No Logueado)
   ═══════════════════════════════════════════ */

.depurarte-auth-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 0 60px;
}

.depurarte-auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--dp-marfil);
    border: 1px solid rgba(208, 167, 97, 0.28);
    border-radius: var(--dp-radius);
    box-shadow: 0 4px 24px rgba(18, 3, 27, 0.06);
    overflow: hidden;
}

/* Tabs */
.depurarte-auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(208, 167, 97, 0.2);
}

.depurarte-auth-tab {
    flex: 1;
    padding: 16px 12px;
    text-align: center;
    font-family: var(--dp-font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(42, 24, 6, 0.45);
    cursor: pointer;
    border: none;
    background: transparent;
    position: relative;
    transition: color 0.2s ease;
}

.depurarte-auth-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: transparent;
    border-radius: 2px;
    transition: background 0.2s ease, left 0.2s ease, right 0.2s ease;
}

.depurarte-auth-tab.is-active {
    color: var(--dp-violeta);
}

.depurarte-auth-tab.is-active::after {
    background: var(--dp-oro);
    left: 16%;
    right: 16%;
}

.depurarte-auth-tab:hover:not(.is-active) {
    color: rgba(42, 24, 6, 0.7);
}

/* Form Panels */
.depurarte-auth-panel {
    display: none;
    padding: 32px 32px 36px;
}

.depurarte-auth-panel.is-active {
    display: block;
}

.depurarte-auth-heading {
    font-family: var(--dp-font-serif);
    font-size: 26px;
    font-weight: 600;
    color: var(--dp-violeta);
    margin: 0 0 8px;
    line-height: 1.3;
}

.depurarte-auth-subtext {
    font-family: var(--dp-font-body);
    font-size: 13px;
    color: rgba(42, 24, 6, 0.5);
    margin: 0 0 28px;
    line-height: 1.6;
}

/* Form Elements */
.depurarte-form-group {
    margin-bottom: 20px;
}

.depurarte-form-label {
    display: block;
    font-family: var(--dp-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(42, 24, 6, 0.55);
    margin-bottom: 8px;
}

.depurarte-form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--dp-font-body);
    font-size: 14px;
    color: var(--dp-body);
    background: #FFFFFF;
    border: 1px solid rgba(208, 167, 97, 0.3);
    border-radius: var(--dp-radius-sm);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.depurarte-form-input:focus {
    border-color: var(--dp-oro);
    box-shadow: 0 0 0 3px rgba(208, 167, 97, 0.12);
}

.depurarte-form-input::placeholder {
    color: rgba(42, 24, 6, 0.3);
}

.depurarte-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Remember me + Forgot password */
.depurarte-form-extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-family: var(--dp-font-body);
    font-size: 13px;
}

.depurarte-remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(42, 24, 6, 0.6);
    cursor: pointer;
    user-select: none;
}

.depurarte-remember-label input[type="checkbox"] {
    accent-color: var(--dp-violeta);
    width: 15px;
    height: 15px;
}

.depurarte-forgot-link {
    color: var(--dp-oro);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.16s ease;
}

.depurarte-forgot-link:hover {
    color: var(--dp-violeta);
    text-decoration: underline;
}

/* CTA Buttons */
.depurarte-auth-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-family: var(--dp-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: var(--dp-violeta);
    border: none;
    border-radius: var(--dp-radius-sm);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.depurarte-auth-btn:hover {
    background: #4A1D65;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(52, 14, 73, 0.25);
}

.depurarte-auth-switch {
    text-align: center;
    margin-top: 20px;
    font-family: var(--dp-font-body);
    font-size: 13px;
    color: rgba(42, 24, 6, 0.5);
}

.depurarte-auth-switch a {
    color: var(--dp-oro);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.16s ease;
}

.depurarte-auth-switch a:hover {
    color: var(--dp-violeta);
}

/* WooCommerce form overrides */
.depurarte-auth-panel .woocommerce-notices-wrapper {
    margin-bottom: 16px;
}

.depurarte-auth-panel .woocommerce-error,
.depurarte-auth-panel .woocommerce-message {
    font-family: var(--dp-font-body);
    font-size: 13px;
    padding: 12px 16px;
    border-radius: var(--dp-radius-sm);
    margin: 0 0 16px;
    list-style: none;
}

.depurarte-auth-panel .woocommerce-error {
    background: #FFF0F0;
    border: 1px solid #E8A0A0;
    color: #8B2020;
}

.depurarte-auth-panel .woocommerce-message {
    background: #F0F8F0;
    border: 1px solid #A0C8A0;
    color: #1B401B;
}

/* ═══════════════════════════════════════════
   DASHBOARD (Estado Logueado)
   ═══════════════════════════════════════════ */

.depurarte-account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

/* ── Sidebar ── */
.depurarte-account-sidebar {
    background: var(--dp-marfil);
    border: 1px solid rgba(208, 167, 97, 0.22);
    border-radius: var(--dp-radius);
    padding: 28px 0;
    box-shadow: 0 2px 12px rgba(18, 3, 27, 0.04);
    position: sticky;
    top: 24px;
}

.depurarte-account-avatar-section {
    text-align: center;
    padding: 0 24px 20px;
    border-bottom: 1px solid rgba(208, 167, 97, 0.15);
    margin-bottom: 8px;
}

.depurarte-account-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dp-violeta), #7B3F9E);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--dp-oro-claro);
    font-family: var(--dp-font-serif);
    font-size: 24px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(52, 14, 73, 0.2);
}

.depurarte-account-user-name {
    font-family: var(--dp-font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--dp-violeta);
    margin: 0 0 4px;
}

.depurarte-account-user-email {
    font-family: var(--dp-font-body);
    font-size: 12px;
    color: rgba(42, 24, 6, 0.45);
}

/* Nav Items */
.depurarte-account-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.depurarte-account-nav-item {
    margin: 0;
}

.depurarte-account-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 24px;
    font-family: var(--dp-font-body);
    font-size: 14px;
    font-weight: 500;
    color: rgba(42, 24, 6, 0.65);
    text-decoration: none;
    transition: all 0.16s ease;
    border-left: 3px solid transparent;
}

.depurarte-account-nav-link:hover {
    color: var(--dp-violeta);
    background: rgba(208, 167, 97, 0.08);
}

.depurarte-account-nav-link.is-active {
    color: var(--dp-violeta);
    font-weight: 600;
    background: rgba(208, 167, 97, 0.12);
    border-left-color: var(--dp-oro);
}

.depurarte-account-nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.65;
}

.depurarte-account-nav-link.is-active .depurarte-account-nav-icon,
.depurarte-account-nav-link:hover .depurarte-account-nav-icon {
    opacity: 1;
}

.depurarte-account-nav-link.is-logout {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(208, 167, 97, 0.12);
    color: rgba(42, 24, 6, 0.4);
    font-size: 13px;
}

.depurarte-account-nav-link.is-logout:hover {
    color: #B03030;
    background: rgba(176, 48, 48, 0.06);
}

/* ── Content Area ── */
.depurarte-account-content {
    min-height: 400px;
}

.depurarte-account-content-title {
    font-family: var(--dp-font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--dp-violeta);
    margin: 0 0 8px;
    line-height: 1.3;
}

.depurarte-account-content-subtitle {
    font-family: var(--dp-font-body);
    font-size: 14px;
    color: rgba(42, 24, 6, 0.5);
    margin: 0 0 32px;
    line-height: 1.6;
}

/* ── Dashboard Quick Cards ── */
.depurarte-dash-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.depurarte-dash-card {
    background: #FFFFFF;
    border: 1px solid rgba(208, 167, 97, 0.18);
    border-radius: var(--dp-radius);
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.depurarte-dash-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(18, 3, 27, 0.08);
}

.depurarte-dash-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: rgba(208, 167, 97, 0.12);
    color: var(--dp-oro);
}

.depurarte-dash-card-label {
    font-family: var(--dp-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(42, 24, 6, 0.45);
    margin-bottom: 6px;
}

.depurarte-dash-card-value {
    font-family: var(--dp-font-serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--dp-body);
    line-height: 1.4;
}

.depurarte-dash-card-link {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--dp-font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--dp-oro);
    text-decoration: none;
    transition: color 0.16s ease;
}

.depurarte-dash-card-link:hover {
    color: var(--dp-violeta);
}

/* ── Orders Table ── */
.depurarte-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--dp-font-body);
    font-size: 14px;
}

.depurarte-orders-table thead th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(42, 24, 6, 0.45);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(208, 167, 97, 0.2);
}

.depurarte-orders-table tbody td {
    padding: 16px;
    color: var(--dp-body);
    border-bottom: 1px solid rgba(208, 167, 97, 0.1);
    vertical-align: middle;
}

.depurarte-orders-table tbody tr:hover {
    background: rgba(208, 167, 97, 0.04);
}

.depurarte-order-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.depurarte-order-status.status-completed,
.depurarte-order-status.status-wc-completed {
    background: #D5E5D5;
    color: #1B401B;
}

.depurarte-order-status.status-processing,
.depurarte-order-status.status-wc-processing {
    background: rgba(208, 167, 97, 0.2);
    color: #8B6914;
}

.depurarte-order-status.status-on-hold,
.depurarte-order-status.status-wc-on-hold {
    background: #FFF3E0;
    color: #B06A00;
}

.depurarte-order-status.status-cancelled,
.depurarte-order-status.status-wc-cancelled,
.depurarte-order-status.status-failed,
.depurarte-order-status.status-wc-failed {
    background: #F0E0E0;
    color: #8B2020;
}

.depurarte-order-status.status-pending,
.depurarte-order-status.status-wc-pending {
    background: #E8E8E8;
    color: #555555;
}

.depurarte-order-view-btn {
    font-family: var(--dp-font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--dp-oro);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid rgba(208, 167, 97, 0.35);
    border-radius: 999px;
    transition: all 0.16s ease;
}

.depurarte-order-view-btn:hover {
    background: var(--dp-violeta);
    color: #FFFFFF;
    border-color: var(--dp-violeta);
}

/* Empty orders */
.depurarte-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.depurarte-empty-state-icon {
    margin-bottom: 20px;
    opacity: 0.5;
}

.depurarte-empty-state-text {
    font-family: var(--dp-font-body);
    font-size: 14px;
    color: rgba(42, 24, 6, 0.5);
    margin-bottom: 20px;
}

.depurarte-empty-state-btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--dp-font-body);
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--dp-violeta);
    border-radius: var(--dp-radius-sm);
    text-decoration: none;
    transition: background 0.2s ease;
}

.depurarte-empty-state-btn:hover {
    background: #4A1D65;
}

/* ── Address Cards ── */
.depurarte-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.depurarte-address-card {
    background: #FFFFFF;
    border: 1px solid rgba(208, 167, 97, 0.2);
    border-radius: var(--dp-radius);
    padding: 24px;
}

.depurarte-address-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.depurarte-address-card-title {
    font-family: var(--dp-font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--dp-violeta);
    margin: 0;
}

.depurarte-address-edit-btn {
    font-family: var(--dp-font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--dp-oro);
    text-decoration: none;
    padding: 5px 14px;
    border: 1px solid rgba(208, 167, 97, 0.3);
    border-radius: 999px;
    transition: all 0.16s ease;
}

.depurarte-address-edit-btn:hover {
    background: var(--dp-violeta);
    color: #FFFFFF;
    border-color: var(--dp-violeta);
}

.depurarte-address-body {
    font-family: var(--dp-font-body);
    font-size: 14px;
    color: rgba(42, 24, 6, 0.7);
    line-height: 1.7;
}

.depurarte-address-body address {
    font-style: normal;
}

/* ── Account Details Form ── */
.depurarte-account-form {
    max-width: 560px;
}

.depurarte-account-form .depurarte-form-group {
    margin-bottom: 22px;
}

.depurarte-password-section {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(208, 167, 97, 0.18);
}

.depurarte-password-heading {
    font-family: var(--dp-font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--dp-violeta);
    margin: 0 0 20px;
}

.depurarte-save-btn {
    display: inline-block;
    padding: 14px 40px;
    font-family: var(--dp-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: var(--dp-violeta);
    border: none;
    border-radius: var(--dp-radius-sm);
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.depurarte-save-btn:hover {
    background: #4A1D65;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(52, 14, 73, 0.25);
}

/* ── WooCommerce Form Overrides ── */
.depurarte-account-content .woocommerce-notices-wrapper {
    margin-bottom: 16px;
}

.depurarte-account-content .woocommerce-error,
.depurarte-account-content .woocommerce-message,
.depurarte-account-content .woocommerce-info {
    font-family: var(--dp-font-body);
    font-size: 13px;
    padding: 14px 18px;
    border-radius: var(--dp-radius-sm);
    margin: 0 0 20px;
    list-style: none;
}

.depurarte-account-content .woocommerce form.woocommerce-EditAccountForm input[type="text"],
.depurarte-account-content .woocommerce form.woocommerce-EditAccountForm input[type="email"],
.depurarte-account-content .woocommerce form.woocommerce-EditAccountForm input[type="password"],
.depurarte-account-content .woocommerce form.woocommerce-address-fields input[type="text"],
.depurarte-account-content .woocommerce form.woocommerce-address-fields select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--dp-font-body);
    font-size: 14px;
    color: var(--dp-body);
    background: #FFFFFF;
    border: 1px solid rgba(208, 167, 97, 0.3);
    border-radius: var(--dp-radius-sm);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.depurarte-account-content .woocommerce form input:focus,
.depurarte-account-content .woocommerce form select:focus {
    border-color: var(--dp-oro);
    box-shadow: 0 0 0 3px rgba(208, 167, 97, 0.12);
}

.depurarte-account-content .woocommerce form label {
    font-family: var(--dp-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(42, 24, 6, 0.55);
    margin-bottom: 8px;
    display: block;
}

.depurarte-account-content .woocommerce form button[type="submit"],
.depurarte-account-content .woocommerce form input[type="submit"] {
    display: inline-block;
    padding: 14px 40px;
    font-family: var(--dp-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: var(--dp-violeta);
    border: none;
    border-radius: var(--dp-radius-sm);
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.depurarte-account-content .woocommerce form button[type="submit"]:hover,
.depurarte-account-content .woocommerce form input[type="submit"]:hover {
    background: #4A1D65;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .depurarte-account-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .depurarte-account-sidebar {
        position: static;
        border-radius: var(--dp-radius);
        margin-bottom: 28px;
        padding: 0;
        overflow: hidden;
    }

    .depurarte-account-avatar-section {
        display: none;
    }

    .depurarte-account-nav {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0;
    }

    .depurarte-account-nav::-webkit-scrollbar {
        display: none;
    }

    .depurarte-account-nav-item {
        flex-shrink: 0;
    }

    .depurarte-account-nav-link {
        padding: 14px 18px;
        gap: 8px;
        font-size: 13px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .depurarte-account-nav-link.is-active {
        border-left-color: transparent;
        border-bottom-color: var(--dp-oro);
    }

    .depurarte-account-nav-link.is-logout {
        margin-top: 0;
        padding-top: 14px;
        border-top: none;
    }

    .depurarte-account-nav-icon {
        width: 16px;
        height: 16px;
    }

    .depurarte-dash-cards {
        grid-template-columns: 1fr;
    }

    .depurarte-address-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .depurarte-account-page {
        padding: 24px 0 60px;
    }

    .depurarte-account-container {
        padding: 0 16px;
    }

    .depurarte-auth-panel {
        padding: 24px 20px 28px;
    }

    .depurarte-auth-heading {
        font-size: 22px;
    }

    .depurarte-form-row {
        grid-template-columns: 1fr;
    }

    .depurarte-account-content-title {
        font-size: 24px;
    }

    /* Orders table → card layout on mobile */
    .depurarte-orders-table thead {
        display: none;
    }

    .depurarte-orders-table tbody tr {
        display: block;
        background: #FFFFFF;
        border: 1px solid rgba(208, 167, 97, 0.18);
        border-radius: var(--dp-radius);
        padding: 16px;
        margin-bottom: 12px;
    }

    .depurarte-orders-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border-bottom: none;
        font-size: 13px;
    }

    .depurarte-orders-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 11px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(42, 24, 6, 0.45);
    }
}
