:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-surface: #1a1a1a;
    --gold: #c5a059;
    --gold-bright: #d4af37;
    --wood: #5d4037;
    --text-white: #f5f5f5;
    --text-muted: #888888;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --red-accent: #da291c;
    /* HarmonyOS 6 Tokens */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 100px;
    --shadow-soft: 0 4px 14px rgba(0,0,0,0.2);
    --shadow-elevated: 0 12px 30px rgba(0,0,0,0.4);
    --shadow-glow-gold: 0 0 20px rgba(197, 160, 89, 0.2);
    --shadow-glow-green: 0 0 20px rgba(37, 211, 102, 0.2);
}

/* --- Progressive Pulse System --- */
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4), var(--shadow-glow-gold); }
    70% { box-shadow: 0 0 0 10px rgba(197, 160, 89, 0), var(--shadow-glow-gold); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0), var(--shadow-glow-gold); }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4), var(--shadow-glow-green); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0), var(--shadow-glow-green); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), var(--shadow-glow-green); }
}

.text-gold {
    color: var(--gold) !important;
}

.max-width-700 {
    max-width: 700px;
}

.uppercase {
    text-transform: uppercase;
}

.sgi-pulse-gold {
    animation: pulse-gold 2s infinite;
}

.sgi-pulse-green {
    animation: pulse-green 2s infinite;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #8b8b8b var(--bg-dark);
    scrollbar-gutter: stable;
}

    html::-webkit-scrollbar-track {
        background-color: var(--bg-dark);
    }

html.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Global Spacing --- */
.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

section h2 {
    margin-bottom: 50px;
}

/* ── --- Hero Section --- ───────────────────────────── */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)), url('/images/barberia/hero.webp') center/cover;
    position: relative;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: var(--gold-bright);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ── --- Global Category Navigation (Sticky) --- ────── */
.category-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    padding: 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

    .category-nav-wrapper.nav-hidden {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }


.category-nav {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 16px;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 1px;
}

.category-nav a:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

.category-nav a.active {
    background: var(--gold);
    color: black;
    border-color: var(--gold);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

/* ── Desktop: center the nav ────────────────────────── */
@media (min-width: 769px) {
    .category-nav {
        justify-content: center;
    }
    .category-nav a {
        font-size: 0.8rem;
        padding: 8px 20px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }

    .hero {
        height: 75vh;
        align-items: flex-start;
        padding-top: 12vh;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: 1.5px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    /* --- Mobile App Components --- */
    .mobile-only {
        display: block !important;
    }

    /* DiDi Food Service Card Experience REFINED */
    .service-card {
        flex-direction: column !important;
        text-align: left !important;
        padding: 16px !important;
        gap: 0px !important;
        border-radius: var(--radius-md) !important;
        border-left: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: var(--bg-card);
        margin-bottom: 15px;
        box-shadow: var(--shadow-soft);
    }

    .service-content {
        display: flex;
        flex-direction: row;
        gap: 15px;
        width: 100%;
        margin-bottom: 15px;
    }

    .service-card:hover {
        transform: none !important;
        background: #1a1a1a;
    }

    .service-info {
        flex: 1;
    }

    .service-info h3 {
        font-size: 1.05rem;
        margin-bottom: 4px;
        letter-spacing: 0.5px;
    }

    .service-info p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .service-meta {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .service-meta .price {
        font-size: 1.1rem;
        color: var(--text-white);
    }

    .service-meta .duration {
        font-size: 0.75rem;
        font-weight: 500;
        opacity: 0.7;
    }

    .service-image-wrapper {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }

    .service-image {
        width: 100%;
        height: 100%;
        border-radius: 0;
        background-size: cover;
        background-position: center;
    }

    /* Reverting to button style */
    .btn-add-service {
        width: 100%;
        margin-top: 5px;
        padding: 12px !important;
        font-size: 0.85rem !important;
        border-radius: var(--radius-md) !important;
    }

    .appointment-sidebar {
        padding: 24px;
    }

    /* Additional Designer Refinements */
    .section-padding h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .lookbook-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .lookbook-item {
        height: 200px !important;
        border-radius: 8px;
    }

    .team-grid {
        gap: 25px !important;
    }

    .team-member img {
        height: 280px !important;
        border-radius: 12px;
    }

    .intro-section p {
        font-size: 0.95rem;
    }
}

/* --- Base Utilities for Service Card (All screens) --- */
.service-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.service-image-wrapper {
    flex-shrink: 0;
}

.service-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.mobile-only {
    display: none;
}

/* --- Desktop Service Card Layout --- */
@media (min-width: 769px) {
    .service-card {
        flex-direction: row;
        align-items: center;
        gap: 25px;
        padding: 20px 30px;
    }

    .service-content {
        flex: 1;
        flex-direction: row;
        align-items: center;
        gap: 25px;
        margin-bottom: 0;
    }

    .service-info {
        flex: 1;
    }

    .service-image-wrapper {
        width: 100px;
        height: 100px;
        border-radius: 6px;
        overflow: hidden;
    }

    .btn-add-service {
        width: auto;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

.hero-content p {
    font-size: 1.4rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto 50px;
    font-weight: 300;
}

/* --- Introduction Section --- */
.intro-section {
    background: #000;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}

.intro-item h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.intro-item p {
    color: var(--text-muted);
}

/* --- Lookbook Gallery Carousel --- */
.lookbook-carousel-wrapper {
    position: relative;
    padding: 0 40px;
}

.lookbook-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    scroll-behavior: smooth;
}

.lookbook-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.lookbook-item {
    flex: 0 0 calc(33.333% - 14px); /* Desktop: 3 items */
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    scroll-snap-align: start;
    border-radius: 4px;
    transition: var(--transition);
}

.lookbook-item:hover {
    transform: scale(1.02);
    border-color: var(--gold);
}

/* ── Nav Arrows ─────────────────────────────────────── */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--gold);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.carousel-nav:hover {
    background: var(--gold);
    color: black;
}

.carousel-nav.prev { left: 0; }
.carousel-nav.next { right: 0; }

@media (max-width: 992px) {
    .lookbook-item {
        flex: 0 0 calc(50% - 10px); /* Tablet: 2 items */
    }
}

@media (max-width: 768px) {
    .lookbook-carousel-wrapper {
        padding: 0;
    }
    .lookbook-grid {
        gap: 15px;
        padding-right: 40px; /* Peek at next item */
    }
    .lookbook-item {
        flex: 0 0 85%; /* Mobile: 1.15 items visible */
        height: 320px;
    }
    .carousel-nav {
        display: none; /* Hide arrows on mobile for native feel */
    }
}

/* --- Service Catalog (Core SGI) --- */
.catalog-section {
    background: #0a0a0a;
}

.category-title {
    color: var(--gold);
    border-bottom: 2px solid var(--wood);
    padding-bottom: 10px;
    margin: 60px 0 30px;
    font-size: 1.8rem;
}

.service-card {
    background: var(--bg-card);
    padding: 25px 30px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid transparent;
    transition: var(--transition);
}

.service-card:hover {
    border-left-color: var(--gold);
    background: #1a1a1a;
    transform: translateX(10px);
}

.service-info h3 {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 5px;
}

.service-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.service-info .duration {
    font-size: 0.8rem;
    color: var(--wood);
    font-weight: 700;
}

.service-action {
    display: flex;
    align-items: center;
    gap: 25px;
}

.price {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-white);
}

/* --- Smart SGI FAB System (Optimized) --- */
/* --- Floating Cita FAB & Tooltips --- */
.cart-floating-btn {
    position: fixed;
    bottom: 105px;
    right: 25px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold);
    color: black;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 4600; /* Higher than sgi-bottom-bar (4500) */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cart-floating-btn.footer-hide {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5) translateY(20px);
}

.cart-floating-btn:hover {
    transform: scale(1.05);
    background: var(--gold-bright);
}

.cart-floating-btn:active {
    transform: scale(0.95);
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    z-index: 10;
    border: 2px solid var(--bg-surface);
}

.cart-tooltip.footer-hide {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

/* Guidance Tooltips */
.cart-tooltip {
    position: fixed;
    bottom: 180px;
    right: 25px;
    background: var(--gold);
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: black;
    max-width: 200px;
    text-align: center;
    z-index: 4599;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), var(--shadow-glow-gold);
}

.cart-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.cart-tooltip::after {
    content: '';
    position: absolute;
    bottom: -7px;
    right: 22px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid var(--gold);
}

@media (max-width: 768px) {
    .cart-floating-btn {
        bottom: calc(100px + env(safe-area-inset-bottom, 0px));
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .cart-tooltip {
        bottom: calc(165px + env(safe-area-inset-bottom, 0px));
        right: 15px;
        font-size: 0.75rem;
        padding: 10px 14px;
    }
}

/* --- Cita Sidebar Overlay & Panel --- */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 5000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: var(--bg-card);
    z-index: 5001;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0,0,0,0.4);
    overscroll-behavior: contain;
    border-left: 1px solid rgba(0, 0, 0, 0.03);
    will-change: transform;
}

.cart-overlay.active .cart-sidebar {
    transform: translateX(0);
}

.cart-header {
    padding: 8px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .cart-header h3 {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--gold);
    }

.btn-clear-footer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
}

.btn-clear-footer:hover {
    background: rgba(217, 83, 79, 0.1);
    border-color: #d9534f;
    color: #d9534f;
}

.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 24px;
    overscroll-behavior: contain;
}

.cart-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 0.88rem;
}

.appointment-item {
    padding: 20px 0;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.btn-remove {
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove:hover {
    color: #d9534f;
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid #333;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.duration-row {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.btn-whatsapp {
    width: 100%;
    max-width: 420px;
    padding: 14px;
    border-radius: var(--radius-pill);
    border: none;
    background: #25d366;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
    display: inline-flex;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}

    .btn-whatsapp:hover {
        background: #20b858;
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(37, 211, 102, 0.3);
    }

    .btn-whatsapp:active {
        transform: scale(0.96);
    }

    .btn-whatsapp:disabled {
        background: var(--text-dim);
        cursor: not-allowed;
        transform: none;
    }

/* --- Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: grayscale(1);
    transition: var(--transition);
    border-radius: var(--radius-md);
}

.team-member:hover img {
    filter: grayscale(0);
}

.btn-secondary-flat {
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border-radius: var(--radius-md);
}

/* Action/Guide Button Modifier */
.btn-pill {
    border-radius: 50px !important;
}

.btn-secondary-flat:active {
    transform: scale(0.96);
}

.btn-secondary-flat:hover {
    color: var(--gold);
}

.btn-secondary-flat.selected {
    background: var(--gold);
    color: black;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
}

.btn-secondary-flat.selected::after {
    content: "✓";
    font-weight: 900;
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .service-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cart-sidebar {
        max-width: 100% !important;
        height: 88vh !important;
        top: auto !important;
        bottom: 0;
        right: 0 !important;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
        transform: translateY(100%) !important;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.03);
    }
    
    .cart-overlay.active .cart-sidebar {
        transform: translateY(0) !important;
    }

    .drag-handle {
        display: block !important;
        width: 100% !important;
        height: 24px !important;
        cursor: grab;
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    .drag-handle-body {
        width: 36px;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 100px;
        margin: 8px auto 8px auto;
     }
}

@keyframes pulseError {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(218, 41, 28, 0.7);
        border-color: rgba(218, 41, 28, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(218, 41, 28, 0);
        border-color: rgba(218, 41, 28, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(218, 41, 28, 0);
        border-color: rgba(218, 41, 28, 0);
    }
}

.pulse-error {
    animation: pulseError 0.5s ease-in-out;
    border-color: var(--red-accent) !important;
    color: var(--red-accent) !important;
}

/* ── --- Modales Estandarizados (Smart Bridge & Confirmación) --- ───── */
.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal {
    background: var(--bg-card);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 450px;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow-gold);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    overflow: hidden;
    padding: 0;
    will-change: transform;
}

.custom-modal-overlay.active .custom-modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
    margin: 0;
}

.modal-close-x {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-left: 12px;
    flex-shrink: 0;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.modal-close-x:hover {
    color: var(--gold);
}

.custom-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 24px 24px 24px;
    scrollbar-width: thin;
    scrollbar-color: #8b8b8b var(--bg-card);
    position: relative;
    overscroll-behavior: contain;
}

.modal-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    margin-top: 0;
}

/* --- Form Fields --- */
.custom-field {
    margin-bottom: 20px;
}

.custom-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-field input[type="text"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.custom-field input[type="text"]:focus {
    border-color: var(--gold-bright);
    box-shadow: var(--shadow-glow-gold);
}

.custom-field input.error {
    border-color: #ff3b30 !important;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.2) !important;
}

/* ── --- Modal Footer Actions & Buttons --- ─────────── */
.modal-footer-actions {
    display: flex;
    gap: 10px;
    padding: 16px 24px 24px 24px;
    flex-shrink: 0;
}

.modal-footer-actions.flex-column {
    flex-direction: column;
    gap: 8px;
}

.custom-modal-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.custom-modal-qr {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.qr-modal-img {
    display: none;
    width: 200px;
    height: 200px;
}

.custom-modal-note {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.btn-cancel-confirm {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-cancel-confirm:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border-color: var(--gold);
}

.btn-ok-confirm {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-pill);
    border: none;
    background: #c92a2a;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-transform: uppercase;
}

.btn-ok-confirm:hover {
    background: #b02525;
    transform: translateY(-1px);
}

.btn-modal-back {
    display: block;
    width: 100%;
    margin-top: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.83rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.btn-modal-back:hover {
    color: var(--text-white);
}

@media (max-width: 768px) {
    .custom-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .custom-modal {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: 0;
        border-bottom: none;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        max-width: 100%;
        height: auto;
        max-height: 85vh;
    }

    .custom-modal-overlay.active .custom-modal {
        transform: translateY(0);
    }

    .cart-tooltip::after {
        right: 18px;
    }

    .btn-send-wa {
        padding: 12px;
    }
}

.badge-sgi {
    background: var(--gold);
    color: black;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.qr-container {
    background: white;
    padding: 15px;
    width: 220px;
    height: 220px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.qr-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-wa-web {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    border-radius: var(--radius-pill);
}

.btn-wa-web:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
    color: var(--gold);
}

/* ── --- Location Section Hours & Footer Hours --- ───── */
#biz-hours {
    font-size: 0.95rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    border-left: 3px solid var(--gold);
    padding: 12px 18px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-top: 10px !important;
    display: inline-block;
    line-height: 1.6;
    border: 1px solid rgba(197, 160, 89, 0.1);
    border-left: 3px solid var(--gold);
    box-shadow: var(--shadow-soft);
}

#footer-biz-hours {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 15px;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── --- Main Footer --- ────────────────────────────── */
.footer {
    background-color: #000;
    color: var(--text-white);
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    margin-top: 100px;
    padding: 100px 0 80px;
}

.footer-logo {
    font-size: 2.2rem;
    color: var(--gold);
    letter-spacing: 5px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icon {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.border-top-dark {
    border-top: 1px solid #1a1a1a;
}

/* --- SGI Sidebar Adjustments --- */
.btn-clear-sgi {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 6px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-clear-sgi:hover {
    background: rgba(217, 83, 79, 0.1);
    border-color: #d9534f;
    color: #d9534f;
}

/* --- Progressive Disclosure --- */
.sgi-step-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
}

/* Ensure revealed state overrides HIDDEN state */
.sgi-step-hidden.sgi-step-revealed {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    max-height: 2000px;
    margin-top: initial !important;
    margin-bottom: initial !important;
}

/* Specific for chips and buttons to ensure they show up correctly */
.btn-select-barber.sgi-step-hidden {
    display: none;
    /* Initially gone */
}

.btn-select-barber.sgi-step-revealed {
    display: inline-block !important;
    /* Forces visibility */
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* --- Interaction Feedback --- */
.btn-success-flash {
    background: var(--gold) !important;
    color: black !important;
    border-color: var(--gold) !important;
    animation: successPulse 0.4s ease forwards;
    z-index: 10;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 25px var(--gold);
    }

    100% {
        transform: scale(1);
    }
}

/* ── --- Hero Specific Guidance --- ─────────────────── */
.hero-cta-wrapper {
    position: relative;
    display: inline-block;
}

.margin-0 {
    margin: 0px !important;
}

/* --- SGI Bottom Bar (Floating Pill Style) --- */
.sgi-bottom-bar {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    height: 56px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 4500;
    padding: 0 15px;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
    box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(197, 160, 89, 0.1);
}

.sgi-bottom-bar.footer-hide {
    transform: translateX(-50%) translateY(150%);
    opacity: 0;
    pointer-events: none;
}

.sgi-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 40px;
}

.sgi-step i {
    font-size: 1.2rem;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.sgi-step.sgi-pulse-gold {
    animation: pulse-gold 2s infinite;
}

.sgi-step.active {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

    .sgi-step.completed {
        color: #28a745;
    }

.sgi-step.completed i::after {
    content: "✓";
    font-size: 0.7rem;
    position: absolute;
}

@media (max-width: 768px) {
    .sgi-bottom-bar {
        height: 56px;
    }
}

/* ── Normalización de Modal de Confirmación ─────────── */
#confirm-modal .bridge-content {
    max-width: 380px;
    padding: 32px 24px;
}
