:root {
    /* Colores Primarios - Verde Elegante y Moderno */
    --primary-dark: #0d3928;
    --primary-700: #236b50;
    --primary-600: #2d7a5c;
    --primary-500: #449d92;
    --primary-400: #6db8a6;
    --primary-200: #c1e1d5;
    --primary-50: #f0f7f4;

    /* Colores Secundarios - Tonos Neutros Suaves */
    --secondary-dark: #3c2c2e;
    --secondary-700: #6e5965;
    --secondary-600: #8d7581;
    --secondary-500: #a9979a;
    --secondary-200: #ebe7e1;
    --secondary-100: #f5f3f0;
    --secondary-50: #faf9f7;

    /* Colores de Acento - Rosa Coral Suave */
    --accent-600: #e85555;
    --accent-500: #f17b7b;
    --accent-400: #f59595;
    --accent-100: #fdebeb;
    --accent-50: #fef5f5;

    /* Colores Funcionales */
    --white: #ffffff;
    --success: #2d7a5c;
    --error: #e85555;
    --warning: #f59595;

    /* Tonos Neutrales */
    --text-primary: #1a5240;
    --text-secondary: #6e5965;
    --text-light: #a9979a;
    --text-muted: #c5bab3;
    --border-light: rgba(45, 122, 92, 0.12);
    --border-medium: rgba(45, 122, 92, 0.24);
    --bg-subtle: #f0f7f4;
    --bg-light: #faf9f7;
}

* {
    letter-spacing: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Tipografía - Jerarquía Clara */
h1,
h2,
h3,
.site-navbar__brand-name,
.section-heading__title,
.perfume-eyebrow {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

/* Enlaces */
a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-primary);
}

/* Botones */
.btn {
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary,
.btn-dark,
.btn-warning {
    background: var(--primary-600);
    color: #fff;
    border-color: var(--primary-600);
}

.btn-primary:hover,
.btn-dark:hover,
.btn-warning:hover {
    background: var(--primary-500);
    border-color: var(--primary-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 123, 198, 0.25);
}

.btn-accent {
    background: var(--accent-600);
    color: #fff;
    border-color: var(--accent-600);
}

.btn-accent:hover {
    background: var(--accent-500);
    border-color: var(--accent-500);
}

.btn-outline-primary,
.btn-outline-dark {
    border-color: var(--primary-600);
    color: var(--text-primary);
}

.btn-outline-primary:hover,
.btn-outline-dark:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: #fff;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Layout Principal */
.site-shell {
    background: #ffffff;
    min-height: 100vh;
}

/* Encabezado y Navegación */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-navbar {
    padding: 0.95rem 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(18px);
    transition: all 0.3s ease;
}

.site-header.is-scrolled .site-navbar {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(45, 122, 92, 0.08);
}

.site-navbar__brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-navbar__logo-frame {
    display: inline-grid;
    place-items: center;
    width: 120px;
    height: 120px;
    flex: 0 0 120px;
    border: 2px solid var(--primary-200);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(45, 122, 92, 0.12);
    transition: all 0.3s ease;
}

.site-navbar__logo-frame:hover {
    box-shadow: 0 12px 32px rgba(45, 122, 92, 0.16);
    border-color: var(--primary-400);
}

.site-navbar__logo {
    width: 114px;
    height: 114px;
    object-fit: contain;
    border-radius: 50%;
}

.site-navbar__brand-name {
    color: var(--primary-700);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin: 0;
}

.site-navbar__tagline {
    color: var(--text-light);
    font-size: 0.92rem;
    margin: 0;
}

.site-navbar .nav-link {
    color: var(--text-secondary);
    font-weight: 700;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--primary-600) !important;
}

.navbar-toggler-icon {
    background-image: var(--bs-navbar-toggler-icon-bg, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2845, 122, 92, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"));
}

.dropdown-menu {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(45, 122, 92, 0.12);
}

.dropdown-item:hover {
    background: var(--primary-50);
    color: var(--text-primary);
}

.site-navbar__cta {
    white-space: nowrap;
}

/* Secciones y Encabezados */
.perfume-eyebrow,
.section-heading__eyebrow {
    display: inline-flex;
    margin-bottom: 0.8rem;
    color: var(--accent-600);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading__title {
    color: var(--text-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.section-heading__text {
    max-width: 680px;
    margin-inline: auto;
    color: var(--text-light);
    font-size: 1rem;
}

/* Tarjetas */
.card,
.admin-table-card,
.admin-form-card,
.perfume-card {
    border-radius: 12px !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 8px 24px rgba(15, 31, 64, 0.08) !important;
    background: var(--white) !important;
    transition: all 0.3s ease;
}

.card:hover,
.perfume-card:hover {
    box-shadow: 0 12px 32px rgba(15, 31, 64, 0.12) !important;
    transform: translateY(-4px);
}

/* Tabla */
.table thead th {
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    background: var(--secondary-50);
}

.table tbody td {
    color: var(--text-secondary);
    vertical-align: middle;
}

/* Formularios */
.form-control,
.form-select {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    background: var(--white);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 0.2rem rgba(68, 157, 146, 0.18);
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Pie de Página */
.site-footer {
    padding: 4rem 0 2rem;
    background: var(--primary-700);
    color: #fff;
}

.site-footer__panel {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.site-footer__brand {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.site-footer__logo-frame {
    display: inline-grid;
    place-items: center;
    width: 140px;
    height: 140px;
    flex: 0 0 140px;
    border: 2px solid var(--primary-200);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.site-footer__logo {
    width: 134px;
    height: 134px;
    object-fit: contain;
    border-radius: 50%;
}

.site-footer__eyebrow {
    color: var(--accent-500);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.site-footer h2,
.site-footer h3 {
    color: #fff;
    font-weight: 800;
}

.site-footer p,
.site-footer a,
.site-footer span {
    color: rgba(255, 255, 255, 0.76);
}

.site-footer__links,
.site-footer__contact-list {
    display: grid;
    gap: 0.8rem;
}

.site-footer__links a,
.site-footer__contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer__links a:hover,
.site-footer__contact-item:hover,
.site-footer__bottom a:hover {
    color: var(--accent-500);
}

.site-footer__contact-item i {
    color: var(--accent-500);
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, 0.64);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Acción Flotante */
/* Footer premium */
.site-footer {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 6vw, 5rem) 0 2rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(199, 154, 91, 0.18), transparent 30%),
        linear-gradient(135deg, #211b18 0%, #35251f 52%, #191412 100%);
    color: #fffaf5;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 250, 245, 0.04), transparent 42%);
    pointer-events: none;
}

.site-footer__panel {
    position: relative;
    z-index: 1;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border: 1px solid rgba(199, 154, 91, 0.24);
    border-radius: 8px;
    background: rgba(255, 250, 245, 0.07);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

.site-footer__brand {
    gap: 1.35rem;
    align-items: center;
}

.site-footer__logo-frame {
    width: 132px;
    height: 132px;
    flex: 0 0 132px;
    border: 1px solid rgba(199, 154, 91, 0.42);
    background: rgba(255, 250, 245, 0.94);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.site-footer__logo-frame:hover {
    border-color: rgba(199, 154, 91, 0.72);
    transform: translateY(-2px);
}

.site-footer__logo {
    width: 124px;
    height: 124px;
}

.site-footer__eyebrow {
    display: inline-flex;
    margin-bottom: 0.55rem;
    color: #c79a5b;
    letter-spacing: 0.14em;
}

.site-footer h2,
.site-footer h3 {
    color: #fffaf5;
    font-weight: 900;
}

.site-footer h2 {
    margin: 0 0 0.65rem;
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
}

.site-footer h3 {
    margin-bottom: 1rem;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer p,
.site-footer a,
.site-footer span {
    color: rgba(255, 250, 245, 0.76);
}

.site-footer p {
    max-width: 360px;
    margin: 0;
    line-height: 1.75;
}

.site-footer__links,
.site-footer__contact-list {
    gap: 0.72rem;
}

.site-footer__links a,
.site-footer__contact-item {
    gap: 0.68rem;
    font-weight: 700;
    transition: color 0.22s ease, transform 0.22s ease;
}

.site-footer__links a:hover,
.site-footer__contact-item:hover,
.site-footer__bottom a:hover {
    color: #c79a5b;
    transform: translateX(3px);
}

.site-footer__contact-item i {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(199, 154, 91, 0.22);
    border-radius: 50%;
    background: rgba(255, 250, 245, 0.08);
    color: #c79a5b;
}

.site-footer__social {
    margin-top: 1.35rem;
}

.site-footer__social h4 {
    margin: 0 0 0.75rem;
    color: #fffaf5;
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__social-links {
    display: flex;
    gap: 0.65rem;
}

.site-footer__social-links a {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(199, 154, 91, 0.28);
    border-radius: 50%;
    background: rgba(255, 250, 245, 0.08);
    color: #fffaf5;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.site-footer__social-links a:hover {
    border-color: rgba(199, 154, 91, 0.7);
    background: #c79a5b;
    color: #211b18;
    transform: translateY(-3px);
}

.site-footer__bottom {
    position: relative;
    z-index: 1;
    align-items: center;
    padding-top: 1.4rem;
    margin-top: 1.2rem;
    color: rgba(255, 250, 245, 0.62);
    border-top: 1px solid rgba(199, 154, 91, 0.14);
}

.site-footer__bottom p {
    max-width: none;
    color: rgba(255, 250, 245, 0.62);
}

.site-footer__bottom a {
    color: #c79a5b;
    font-weight: 900;
    text-decoration: none;
}

.site-float-action {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
    z-index: 1040;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.site-float-action:hover {
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

/* Etiquetas de Precios */
.admin-price-main {
    color: var(--text-primary);
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 900;
}

.admin-price-old {
    color: var(--text-light);
    font-weight: 700;
    text-decoration: line-through;
}

/* Estados de Pedidos */
.order-status {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 900;
}

.order-status--orange {
    background: #fff0d8;
    color: #b35b00;
}

.order-status--blue {
    background: #e4f0ff;
    color: #1d5fa8;
}

.order-status--purple {
    background: #efe7ff;
    color: #6841a4;
}

.order-status--green {
    background: #e3f6e8;
    color: #267242;
}

.order-status--red {
    background: #ffe1df;
    color: #aa2f28;
}

.order-status--gray {
    background: #ece7e2;
    color: #5f5650;
}

/* Menú de Campana de Pedidos */
.order-bell-menu {
    min-width: 290px;
}

.order-bell-menu .dropdown-item {
    display: grid;
    gap: 0.15rem;
}

.order-bell-menu small {
    color: var(--accent-600);
    font-weight: 800;
}

/* Timeline de Pedidos */
.order-timeline {
    position: relative;
    display: grid;
    gap: 0.65rem;
    max-width: 780px;
    margin-inline: auto;
}

.order-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    min-height: 68px;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(6, 63, 70, 0.12);
    border-radius: 6px;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-timeline__item:hover {
    border-color: rgba(6, 63, 70, 0.3);
    box-shadow: 0 5px 16px rgba(11, 17, 19, 0.07);
}

.order-timeline__marker {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff4e5;
    color: #c46b16;
    font-weight: 700;
}

.order-timeline__item:not(:last-child)::after {
    position: absolute;
    top: 42px;
    bottom: -11px;
    left: 1.9rem;
    width: 1px;
    content: '';
    background: rgba(196, 107, 22, 0.28);
}

.order-timeline__item strong,
.order-timeline__item span,
.order-timeline__item small {
    display: block;
}

.order-timeline__item strong {
    color: var(--brand-dark, #0b1113);
    font-weight: 700;
}

.order-timeline__item span,
.order-timeline__item small {
    color: var(--text-secondary, #6f6a61);
    font-size: 0.85rem;
}

.order-timeline__item.is-done .order-timeline__marker {
    background: #2f6f55;
    color: #fff;
}

.order-timeline__item.is-done:not(:last-child)::after {
    background: rgba(47, 111, 85, 0.45);
}

.order-timeline__item.is-pending .order-timeline__marker {
    background: #fff4e5;
    color: #c46b16;
}

.order-timeline__item.is-current {
    border-color: #2f6f55;
    box-shadow: 0 7px 20px rgba(47, 111, 85, 0.12);
}

.order-timeline__item.is-cancelled .order-timeline__marker {
    background: #ffe1df;
    color: var(--error);
}

/* Historial de compras del cliente */
.customer-orders-page {
    min-height: 70vh;
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    background: var(--surface, #f7f3ea);
}

.customer-orders-heading {
    margin-bottom: 2rem;
}

.customer-orders-heading h1 {
    margin: 0 0 .45rem;
    color: var(--brand-dark, #0b1113);
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1;
}

.customer-orders-heading p {
    margin: 0;
    color: var(--text-secondary, #6f6a61);
}

.customer-orders-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.customer-order-card,
.customer-detail-panel,
.customer-orders-empty {
    border: 1px solid rgba(6, 63, 70, .14);
    background: #fff;
}

.customer-order-card {
    padding: 1.25rem;
}

.customer-order-card__header,
.customer-order-card__summary,
.customer-order-card__payment,
.customer-detail-panel__heading,
.customer-detail-total__amount {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.customer-order-card__header {
    align-items: flex-start;
    padding-bottom: .9rem;
    border-bottom: 1px solid rgba(6, 63, 70, .12);
}

.customer-order-card__eyebrow {
    color: var(--brand-gold, #c9a15a);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.customer-order-card h2 {
    margin: .2rem 0 0;
    color: var(--brand-dark, #0b1113);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.7rem;
}

.customer-order-card__summary {
    align-items: baseline;
    padding: 1rem 0 .6rem;
    color: var(--text-secondary, #6f6a61);
}

.customer-order-card__summary strong {
    color: var(--brand-petrol, #063f46);
}

.customer-order-card__payment {
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-secondary, #6f6a61);
    font-size: .85rem;
}

.customer-order-card__pending {
    color: #c46b16;
    font-weight: 800;
    text-transform: capitalize;
}

.customer-order-card__action {
    width: 100%;
}

.customer-orders-empty {
    max-width: 650px;
    margin: 2rem auto;
    padding: 4rem 1.5rem;
    text-align: center;
}

.customer-orders-empty > i {
    display: block;
    margin-bottom: 1rem;
    color: var(--brand-gold, #c9a15a);
    font-size: 3rem;
}

.customer-orders-empty h2,
.customer-detail-panel h2 {
    color: var(--brand-dark, #0b1113);
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.customer-orders-empty p {
    color: var(--text-secondary, #6f6a61);
}

.customer-orders-pagination {
    margin-top: 1.5rem;
}

.customer-order-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--brand-petrol, #063f46);
    font-weight: 700;
}

.customer-order-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr);
    gap: 1rem;
    align-items: start;
}

.customer-order-detail-grid > div {
    display: grid;
    gap: 1rem;
}

.customer-detail-panel {
    padding: clamp(1.15rem, 3vw, 1.75rem);
}

.customer-detail-panel__heading {
    align-items: baseline;
    margin-bottom: 1rem;
}

.customer-detail-panel h2 {
    margin: 0 0 1rem;
    font-size: 1.8rem;
}

.customer-detail-panel__heading h2 {
    margin: 0;
}

.customer-detail-panel__heading span {
    color: var(--text-secondary, #6f6a61);
    font-size: .85rem;
}

.customer-detail-products {
    display: grid;
}

.customer-detail-product {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: .9rem;
    align-items: center;
    padding: .85rem 0;
    border-top: 1px solid rgba(6, 63, 70, .12);
}

.customer-detail-product img {
    width: 72px;
    height: 72px;
    object-fit: cover;
}

.customer-detail-product span {
    color: var(--brand-gold, #c9a15a);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.customer-detail-product h3 {
    margin: .2rem 0;
    color: var(--brand-dark, #0b1113);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
}

.customer-detail-product p {
    margin: 0;
    color: var(--text-secondary, #6f6a61);
    font-size: .82rem;
}

.customer-detail-product > strong {
    color: var(--brand-petrol, #063f46);
    text-align: right;
}

.customer-detail-delivery dl,
.customer-detail-total dl {
    display: grid;
    gap: .65rem;
    margin: 0;
}

.customer-detail-delivery dl div,
.customer-detail-total dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(6, 63, 70, .09);
    padding-bottom: .55rem;
}

.customer-detail-delivery dt,
.customer-detail-total dt {
    color: var(--text-secondary, #6f6a61);
}

.customer-detail-delivery dd,
.customer-detail-total dd {
    margin: 0;
    color: var(--brand-dark, #0b1113);
    text-align: right;
}

.customer-detail-payment {
    display: grid;
    gap: .25rem;
    margin: 1.25rem 0;
    padding: .9rem;
    background: #fcfaf5;
}

.customer-detail-payment span,
.customer-detail-payment small {
    color: var(--text-secondary, #6f6a61);
}

.customer-detail-payment strong {
    color: var(--brand-petrol, #063f46);
}

.customer-detail-total__amount {
    align-items: baseline;
    margin: 1rem 0 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(6, 63, 70, .2);
    color: var(--brand-dark, #0b1113);
}

.customer-detail-total__amount strong {
    color: var(--brand-petrol, #063f46);
    font-size: 1.45rem;
}

/* Analítica administrativa */
.analytics-page {
    min-height: 75vh;
    padding: clamp(2rem, 5vw, 4rem) 0;
    background: var(--surface, #f7f3ea);
}

.analytics-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(6, 63, 70, .14);
    background: #fff;
}

.analytics-toolbar__label,
.analytics-eyebrow {
    display: block;
    color: var(--brand-gold, #c9a15a);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.analytics-toolbar strong {
    color: var(--brand-dark, #0b1113);
}

.analytics-toolbar__note {
    color: var(--text-secondary, #6f6a61);
    font-size: .85rem;
}

.analytics-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.analytics-kpis article,
.analytics-panel,
.analytics-ai-note {
    border: 1px solid rgba(6, 63, 70, .14);
    background: #fff;
}

.analytics-kpis article {
    display: grid;
    gap: .45rem;
    padding: 1.2rem;
}

.analytics-kpis span {
    color: var(--text-secondary, #6f6a61);
    font-size: .82rem;
    font-weight: 700;
}

.analytics-kpis span i {
    margin-right: .4rem;
    color: var(--brand-gold, #c9a15a);
}

.analytics-kpis strong {
    overflow: hidden;
    color: var(--brand-petrol, #063f46);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-kpis small,
.analytics-panel__hint,
.analytics-method,
.analytics-empty {
    color: var(--text-secondary, #6f6a61);
    font-size: .78rem;
}

.analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
    gap: 1rem;
}

.analytics-panel {
    min-width: 0;
    padding: clamp(1.15rem, 3vw, 1.6rem);
}

.analytics-panel--trend {
    grid-row: span 2;
}

.analytics-panel__heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.analytics-panel h2 {
    margin: .2rem 0 0;
    color: var(--brand-dark, #0b1113);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
}

.analytics-panel__hint {
    margin-top: 1rem;
}

.analytics-panel__icon {
    color: var(--brand-petrol, #063f46);
    font-size: 1.4rem;
}

.analytics-chart {
    display: flex;
    align-items: end;
    gap: clamp(2px, .5vw, 7px);
    height: 235px;
    padding: 1rem .4rem 0;
    border-bottom: 1px solid rgba(6, 63, 70, .18);
}

.analytics-chart__bar-wrap {
    display: flex;
    min-width: 0;
    height: 100%;
    flex: 1;
    align-items: end;
    flex-direction: column;
    justify-content: end;
}

.analytics-chart__bar {
    width: 100%;
    min-height: 3px;
    background: linear-gradient(180deg, var(--brand-gold-light, #e0c27a), var(--brand-petrol, #063f46));
    transition: height .4s ease;
}

.analytics-chart__bar-wrap small {
    margin-top: .4rem;
    color: var(--text-secondary, #6f6a61);
    font-size: .62rem;
    white-space: nowrap;
}

.analytics-projection {
    display: grid;
    gap: .2rem;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #fcfaf5;
}

.analytics-projection strong {
    color: var(--brand-petrol, #063f46);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.3rem;
}

.analytics-projection span {
    color: var(--text-secondary, #6f6a61);
}

.analytics-method {
    margin: 0;
    line-height: 1.55;
}

.analytics-product,
.analytics-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .7rem;
    align-items: center;
    padding: .7rem 0;
    border-top: 1px solid rgba(6, 63, 70, .1);
}

.analytics-product > span {
    color: var(--brand-gold, #c9a15a);
    font-weight: 800;
}

.analytics-product strong,
.analytics-status span {
    overflow: hidden;
    color: var(--brand-dark, #0b1113);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-product small,
.analytics-status strong {
    color: var(--brand-petrol, #063f46);
    font-size: .78rem;
    font-weight: 800;
}

.analytics-status {
    grid-template-columns: minmax(0, 1fr) auto;
}

.analytics-ai-note {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1rem;
    padding: 1.1rem 1.25rem;
    background: #f0f7f4;
}

.analytics-ai-note > i {
    color: var(--brand-gold, #c9a15a);
    font-size: 1.4rem;
}

.analytics-ai-note strong {
    color: var(--brand-petrol, #063f46);
}

.analytics-ai-note p {
    margin: .25rem 0 0;
    color: var(--text-secondary, #6f6a61);
    font-size: .82rem;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .analytics-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .analytics-panel--trend {
        grid-row: auto;
    }
}

@media (max-width: 575.98px) {
    .analytics-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .analytics-kpis {
        gap: .65rem;
    }

    .analytics-kpis article {
        padding: .9rem;
    }

    .analytics-kpis strong {
        font-size: 1.25rem;
    }

    .analytics-chart {
        height: 190px;
    }
}

@media (max-width: 767.98px) {
    .customer-orders-list,
    .customer-order-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .customer-order-card__header,
    .customer-order-card__payment {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-detail-product {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .customer-detail-product img {
        width: 60px;
        height: 60px;
    }

    .customer-detail-product > strong {
        grid-column: 2;
        text-align: left;
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .site-navbar__logo-frame {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
    }

    .site-navbar__logo {
        width: 72px;
        height: 72px;
    }

    .site-navbar__brand-name {
        font-size: 1.65rem;
    }

    .site-navbar__collapse {
        padding: 1rem 0;
    }

    .site-navbar__actions {
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .site-navbar__brand-name {
        font-size: 1.35rem;
    }

    .site-navbar__logo-frame {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .site-navbar__logo {
        width: 60px;
        height: 60px;
    }

    .site-navbar__tagline {
        display: none;
    }

    .site-footer__brand,
    .site-footer__bottom {
        flex-direction: column;
    }

    .site-float-action {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}
