﻿/* ============================================
   MI CUENTA - BLACK & #FFE600 YELLOW STYLE
   ============================================ */

/* --- CSS Variables --- */
:root {
    --mc-cream: #ffffff;
    --mc-cream-dark: #f5f5f5;
    --mc-cream-light: #fafafa;
    --mc-white: #ffffff;
    --mc-red: #FFE600;
    --mc-red-hover: #CCBA00;
    --mc-red-light: #FFFDE7;
    --mc-red-glow: rgba(255, 230, 0, 0.25);
    --mc-coral: #FFE600;
    --mc-orange: #FFE600;
    --mc-pink: #CCBA00;
    --mc-text-dark: #111111;
    --mc-text-medium: #444444;
    --mc-text-light: #888888;
    --mc-border: #e0e0e0;
    --mc-border-light: #eeeeee;
    --mc-success: #28A745;
    --mc-error: #EF4444;
    --mc-font-primary: 'Poppins', sans-serif; /* body/ui text */
    --mc-font-display: 'Luckiest Guy', cursive; /* titles only */
    --mc-radius-sm: 8px;
    --mc-radius-md: 16px;
    --mc-radius-lg: 24px;
    --mc-radius-xl: 50px;
    --mc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --mc-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --mc-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
    --mc-shadow-glow: 0 8px 32px rgba(255, 230, 0, 0.35);
    --mc-transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --mc-transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --mc-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --mc-transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --mc-gradient-warm: linear-gradient(135deg, #FFE600 0%, #FFD000 50%, #CCBA00 100%);
    --mc-gradient-soft: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
}

/* --- Base Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

/* --- Base Container --- */
.productos_area.container {
    background-color: #ffffff;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 230, 0, 0.06) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(255, 230, 0, 0.04) 0%, transparent 50%);
    min-height: 100vh;
    padding: 60px 0 100px;
    position: relative;
    overflow: hidden;
}

    .productos_area.container::before,
    .productos_area.container::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
        opacity: 0.6;
    }

    .productos_area.container::before {
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(255, 230, 0, 0.12) 0%, transparent 70%);
        top: -100px;
        right: -100px;
        animation: float 8s ease-in-out infinite;
    }

    .productos_area.container::after {
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(255, 230, 0, 0.08) 0%, transparent 70%);
        bottom: 100px;
        left: -50px;
        animation: float 10s ease-in-out infinite reverse;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.container_row {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.container_cell.container_cell_col8 {
    width: 100%;
    max-width: 960px;
    padding: 0 24px;
}

.container_first_cell,
.container_last_cell {
    display: none;
}

/* --- Title Section --- */
.title-container {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--mc-border-light);
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.title-container-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* TITLE — Luckiest Guy */
.title-large {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    color: #111111;
    margin: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    letter-spacing: -0.02em;
}

.title-username {
    color: #FFE600;
}

/* --- Logout Button --- */
.btn_salir {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-align: center !important;
    color: #111111 !important;
    background: #ffffff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 50px !important;
    padding: 14px 32px !important;
    min-height: 48px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: var(--mc-shadow-sm) !important;
}

    .btn_salir::before {
        display: none !important;
        content: none !important;
    }

    .btn_salir:hover {
        color: #111111 !important;
        background: #FFE600 !important;
        border-color: #FFE600 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(255, 230, 0, 0.35) !important;
    }

/* --- Account Sections --- */
.account_section {
    margin-bottom: 16px;
}

/* --- Accordion Headers --- */
.account_row {
    background-color: #ffffff;
    border-radius: var(--mc-radius-md);
    padding: 24px 28px;
    cursor: pointer;
    transition: all var(--mc-transition-normal);
    box-shadow: var(--mc-shadow-sm);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

    .account_row::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: #FFE600;
        opacity: 0;
        transition: opacity var(--mc-transition-normal);
    }

    .account_row:hover {
        box-shadow: var(--mc-shadow-md);
        transform: translateY(-3px);
        border-color: var(--mc-border-light);
    }

        .account_row:hover::before {
            opacity: 1;
        }

/* TITLE — Luckiest Guy */
.account_tit2 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.125rem;
    font-weight: 400;
    color: #111111;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: -0.01em;
}

.account_plus {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFE600;
    border-radius: 50%;
    color: #111111;
    font-size: 0.875rem;
    transition: all var(--mc-transition-bounce);
}

.account_row:hover .account_plus {
    background: #111111;
    color: #FFE600;
    transform: rotate(180deg);
}

/* --- Orders Section --- */
.account_item.account_pedidos_gral {
    background-color: #ffffff;
    border-radius: 0 0 var(--mc-radius-md) var(--mc-radius-md);
    margin-top: -8px;
    padding-top: 8px;
    box-shadow: var(--mc-shadow-sm);
    overflow: hidden;
    border: 1px solid var(--mc-border-light);
    border-top: none;
}

/* --- Orders Table --- */
.account_table_wrapper {
    overflow-x: auto;
}

.account_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .account_table thead tr {
        background: var(--mc-gradient-soft);
    }

    /* Table header labels — Poppins */
    .account_table th.account_tit,
    .account_table td.account_tit {
        font-family: 'Poppins', sans-serif;
        font-size: 0.6875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--mc-text-light);
        padding: 20px 24px;
        text-align: left;
    }

.account_table_row {
    transition: background-color var(--mc-transition-fast);
}

    .account_table_row:hover {
        background-color: #FFFDE7;
    }

/* Table cell text — Poppins */
.account_txt {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111111;
    padding: 20px 24px;
    border-bottom: 1px solid var(--mc-border-light);
    vertical-align: middle;
}

.account_txt_order {
    font-weight: 600;
}

.account_txt_total {
    font-weight: 700;
    color: #111111;
}

.account_table tbody tr:last-child .account_txt {
    border-bottom: none;
}

/* View Order Button — Poppins */
.account_ver {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111111;
    background: transparent;
    border: none;
    padding: 10px 16px;
    border-radius: var(--mc-radius-xl);
    cursor: pointer;
    transition: all var(--mc-transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .account_ver:hover {
        background-color: #FFE600;
    }

.account_ver_icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFE600;
    border-radius: 50%;
    transition: all var(--mc-transition-bounce);
}

.account_ver:hover .account_ver_icon {
    background: #111111;
    color: #FFE600;
    transform: scale(1.1);
}

/* --- Empty Orders State --- */
.account_empty_state {
    text-align: center;
    padding: 60px 24px;
}

.account_empty_icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

/* Poppins */
.no_hay {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--mc-text-medium);
    margin: 0 0 24px 0;
}

    .no_hay::before {
        display: none;
    }

/* "Seguir Comprando" button — Poppins */
.seguir {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111111;
    background: #FFE600;
    padding: 16px 40px;
    border-radius: var(--mc-radius-xl);
    border: none;
    cursor: pointer;
    transition: all var(--mc-transition-normal);
    box-shadow: 0 4px 20px rgba(255, 230, 0, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .seguir:hover {
        background: #FFD000;
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 10px 30px rgba(255, 230, 0, 0.50);
    }

/* --- User Info Section --- */
.account_info {
    background-color: #ffffff;
    border-radius: 0 0 var(--mc-radius-md) var(--mc-radius-md);
    margin-top: -8px;
    padding: 0;
    box-shadow: var(--mc-shadow-sm);
    border: 1px solid var(--mc-border-light);
    border-top: none;
    overflow: hidden;
}

.account_info_content {
    padding: 32px;
}

.account_info_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mc-border-light);
}

/* Poppins */
.account_info_subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mc-text-light);
}

/* --- Edit Button --- */
.account_editar {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C5C5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'%3E%3C/path%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid var(--mc-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--mc-transition-normal);
}

    .account_editar:hover {
        background-color: #FFE600;
        border-color: #FFE600;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'%3E%3C/path%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'%3E%3C/path%3E%3C/svg%3E");
        transform: rotate(15deg) scale(1.1);
        box-shadow: var(--mc-shadow-md);
    }

/* --- Form Grid --- */
.account_form_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.account_form_grid_single {
    grid-template-columns: 1fr;
    max-width: 400px;
}

.account_form_group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Poppins — form label */
.account_tit3 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mc-text-light);
}

/* --- Form Inputs --- */
.micuenta_direc_form {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111111;
    background-color: #f5f5f5;
    border: 2px solid transparent;
    padding: 14px 18px;
    border-radius: var(--mc-radius-sm);
    outline: none;
    transition: all var(--mc-transition-normal);
    width: 100%;
}

    .micuenta_direc_form:hover:not(:disabled) {
        background-color: #f0f0f0;
        border-color: #e0e0e0;
    }

    .micuenta_direc_form:focus {
        background-color: #ffffff;
        border-color: #FFE600;
        box-shadow: 0 0 0 4px rgba(255, 230, 0, 0.18);
    }

    .micuenta_direc_form:disabled {
        background-color: #f5f5f5;
        color: #111111;
        cursor: not-allowed;
        opacity: 0.8;
    }

    .micuenta_direc_form::placeholder {
        color: var(--mc-text-light);
        font-weight: 400;
    }

/* --- Select Dropdowns --- */
.micuenta_direc_select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23444444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

    .micuenta_direc_select:focus {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    }

/* --- Form Actions --- */
.account_form_actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
}

/* --- Primary Form Button — Poppins */
.micuenta_direc_btn {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111111;
    background: #FFE600;
    padding: 14px 32px;
    border-radius: var(--mc-radius-xl);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--mc-transition-normal);
    box-shadow: 0 4px 16px rgba(255, 230, 0, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .micuenta_direc_btn:hover {
        background: #FFD000;
        transform: translateY(-3px);
        box-shadow: 0 10px 28px rgba(255, 230, 0, 0.50);
    }

.micuenta_direc_btn_secondary {
    background: transparent;
    color: #111111;
    box-shadow: none;
    border: 2px solid #111111;
}

    .micuenta_direc_btn_secondary:hover {
        background: #111111;
        color: #FFE600;
        box-shadow: none;
    }

/* Cancel button — Poppins */
.micuenta_direc_btn_cancel {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #444444;
    background-color: transparent;
    padding: 14px 32px;
    border-radius: var(--mc-radius-xl);
    border: 2px solid #e0e0e0;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--mc-transition-normal);
}

    .micuenta_direc_btn_cancel:hover {
        background-color: #f5f5f5;
        border-color: #111111;
        transform: translateY(-2px);
    }

/* Delete button — Poppins */
.micuenta_direc_btn_delete {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mc-error);
    background-color: transparent;
    padding: 14px 32px;
    border-radius: var(--mc-radius-xl);
    border: 2px solid var(--mc-error);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--mc-transition-normal);
}

    .micuenta_direc_btn_delete:hover {
        background-color: var(--mc-error);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(239, 68, 68, 0.25);
    }

/* --- Password Section --- */
.account_password_section {
    padding: 32px;
    border-top: 1px solid var(--mc-border-light);
    background: #fafafa;
}

/* --- Addresses Section --- */
.account_info.direcciones {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 28px;
    background: #ffffff;
}

.micuenta_direc {
    background-color: #ffffff;
    border-radius: var(--mc-radius-md);
    overflow: hidden;
    transition: all var(--mc-transition-normal);
    border: 1px solid var(--mc-border-light);
    position: relative;
}

    .micuenta_direc::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: #FFE600;
        opacity: 0;
        transition: opacity var(--mc-transition-normal);
    }

    .micuenta_direc:hover {
        box-shadow: var(--mc-shadow-md);
        transform: translateY(-4px);
        border-color: transparent;
    }

        .micuenta_direc:hover::before {
            opacity: 1;
        }

.micuenta_direccion_gral {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
}

.micuenta_direccion_desc {
    flex: 1;
}

/* Address title — Luckiest Guy */
.micuenta_direccion_tit {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.0625rem;
    font-weight: 400;
    color: #111111;
    display: block;
    margin-bottom: 12px;
    position: relative;
    padding-left: 14px;
}

    .micuenta_direccion_tit::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 18px;
        background: #FFE600;
        border-radius: 2px;
    }

/* Address detail — Poppins */
.micuenta_direccion_detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--mc-text-medium);
}

.detail_name {
    font-weight: 600;
    color: #111111;
}

.detail_contact {
    margin-top: 4px;
    font-size: 0.8125rem;
    color: var(--mc-text-light);
}

.micuenta_direccion_edit {
    flex-shrink: 0;
    cursor: pointer;
}

.micuenta_direccion_edit_icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23444444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'%3E%3C/path%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    border: 2px solid var(--mc-border-light);
    transition: all var(--mc-transition-bounce);
}

.micuenta_direccion_edit:hover .micuenta_direccion_edit_icon {
    background-color: #FFE600;
    border-color: #FFE600;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'%3E%3C/path%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'%3E%3C/path%3E%3C/svg%3E");
    transform: rotate(15deg) scale(1.1);
    box-shadow: var(--mc-shadow-md);
}

/* --- New Address Card --- */
.micuenta_direc_new {
    background: #fafafa;
    border: 2px dashed #e0e0e0;
    min-height: 160px;
}

    .micuenta_direc_new::before {
        display: none;
    }

    .micuenta_direc_new:hover {
        border-color: #FFE600;
        border-style: solid;
        background: #FFFDE7;
    }

    .micuenta_direc_new .micuenta_direccion_gral {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 100%;
        min-height: 160px;
        gap: 16px;
        cursor: pointer;
    }

    .micuenta_direc_new .micuenta_direccion_tit {
        padding-left: 0;
        margin-bottom: 0;
    }

        .micuenta_direc_new .micuenta_direccion_tit::before {
            display: none;
        }

.micuenta_direccion_new_icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    transition: all var(--mc-transition-bounce);
}

.micuenta_direc_new:hover .micuenta_direccion_new_icon {
    background-color: #FFE600;
    border-color: #FFE600;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 24px rgba(255, 230, 0, 0.35);
}

/* --- Address Form --- */
.micuenta_direccion_form {
    background: #fafafa;
    padding: 28px;
    border-top: 1px solid var(--mc-border-light);
}

.form_row {
    margin-bottom: 14px;
}

    .form_row:last-of-type {
        margin-bottom: 0;
    }

.form_row_half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form_row_third {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

/* Error — Poppins */
.form_error {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mc-error);
    padding: 12px 16px;
    background-color: rgba(239, 68, 68, 0.06);
    border-radius: var(--mc-radius-sm);
    border-left: 3px solid var(--mc-error);
    margin-top: 14px;
}

    .form_error:empty {
        display: none;
    }

.form_actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--mc-border-light);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .productos_area.container {
        padding: 40px 0 80px;
    }

        .productos_area.container::before,
        .productos_area.container::after {
            display: none;
        }

    .title-container-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .title-large {
        font-size: 1.875rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .btn_salir {
        width: 100%;
        text-align: center;
    }

    .account_row {
        padding: 20px 22px;
    }

    .account_info_content, .account_password_section {
        padding: 24px;
    }

    .account_form_grid {
        grid-template-columns: 1fr;
    }

    .account_info.direcciones {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
    }

    .form_row_half, .form_row_third {
        grid-template-columns: 1fr;
    }

    .form_actions {
        flex-direction: column-reverse;
    }

        .form_actions a, .form_actions button,
        .form_actions input[type="button"] {
            width: 100%;
        }

    .account_table th.account_tit, .account_txt {
        padding: 16px;
    }

    .account_table thead {
        display: none;
    }

    .account_table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .account_table_row {
        display: flex;
        flex-direction: column;
        background: #FFFDE7;
        border-radius: var(--mc-radius-sm);
        padding: 16px;
        gap: 8px;
    }

    .account_txt {
        padding: 0;
        border-bottom: none;
    }

    .account_txt_order {
        font-size: 1rem;
    }

    .account_txt_action {
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px dashed var(--mc-border-light);
    }

    .account_ver {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .productos_area.container {
        padding: 28px 0 60px;
    }

    .container_cell.container_cell_col8 {
        padding: 0 16px;
    }

    .title-large {
        font-size: 1.5rem;
    }

    .account_tit2 {
        font-size: 1rem;
    }

    .account_info_content, .account_password_section, .micuenta_direccion_form {
        padding: 20px;
    }

    .micuenta_direccion_gral {
        padding: 20px;
    }

    .micuenta_direc_form {
        padding: 12px 14px;
        font-size: 0.875rem;
    }

    .micuenta_direc_btn, .micuenta_direc_btn_cancel, .micuenta_direc_btn_delete {
        padding: 12px 24px;
        font-size: 0.8125rem;
    }
}

/* --- Animations --- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.account_section {
    opacity: 0;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

    .account_section:nth-child(1) {
        animation-delay: 0.1s;
    }

    .account_section:nth-child(2) {
        animation-delay: 0.2s;
    }

    .account_section:nth-child(3) {
        animation-delay: 0.3s;
    }

.micuenta_direc {
    opacity: 0;
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

    .micuenta_direc:nth-child(1) {
        animation-delay: 0.10s;
    }

    .micuenta_direc:nth-child(2) {
        animation-delay: 0.15s;
    }

    .micuenta_direc:nth-child(3) {
        animation-delay: 0.20s;
    }

    .micuenta_direc:nth-child(4) {
        animation-delay: 0.25s;
    }

/* --- Focus States --- */
.btn_salir:focus-visible,
.micuenta_direc_btn:focus-visible,
.micuenta_direc_btn_cancel:focus-visible,
.micuenta_direc_btn_delete:focus-visible,
.account_editar:focus-visible,
.micuenta_direc_form:focus-visible,
.account_ver:focus-visible {
    outline: 3px solid #FFE600;
    outline-offset: 2px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Print --- */
@media print {
    .productos_area.container {
        background-color: white;
        background-image: none;
        padding: 0;
    }

        .productos_area.container::before,
        .productos_area.container::after {
            display: none;
        }

    .btn_salir, .account_editar, .micuenta_direccion_edit,
    .micuenta_direc_btn, .micuenta_direc_btn_cancel,
    .micuenta_direc_btn_delete, .micuenta_direc_new,
    .account_ver {
        display: none !important;
    }

    .account_row, .account_info, .micuenta_direc {
        box-shadow: none;
        break-inside: avoid;
        border: 1px solid #ddd;
    }
}
