/* ============================================================
   The Stronger Monkey – Estilos Públicos
   ============================================================ */

/* ---- Variables ---- */
:root {
    --bg:          #080808;
    --bg2:         #101010;
    --bg3:         #161616;
    --card:        #1a1a1a;
    --card-hover:  #222222;
    --gold:        #f0a500;
    --gold-d:      #c98800;
    --red:         #e94560;
    --text:        #f0f0f0;
    --muted:       #aaa;
    --border:      #2a2a2a;
    --radius:      12px;
    --shadow:      0 8px 32px rgba(0,0,0,.6);
    --shadow-gold: 0 8px 32px rgba(240,165,0,.2);
    --trans:       .3s ease;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}
a { color: var(--gold); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--gold-d); }
img { max-width: 100%; display: block; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 { font-family: 'Montserrat', 'Segoe UI', sans-serif; font-weight: 700; line-height: 1.2; }
.text-gold { color: var(--gold) !important; }
.text-red  { color: var(--red) !important; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-main {
    background: rgba(8,8,8,.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1050;
    transition: var(--trans);
    will-change: transform;
    transform: translateZ(0);
}
.navbar-main.scrolled {
    background: rgba(8,8,8,1) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.8);
}
.navbar-brand-img {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.navbar-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(240,165,0,.35));
    transition: filter var(--trans), transform var(--trans);
}
.navbar-logo-img:hover {
    filter: drop-shadow(0 0 14px rgba(240,165,0,.65));
    transform: scale(1.05);
}
.navbar-main .nav-link {
    color: var(--muted) !important;
    font-weight: 500;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: .5rem 1rem !important;
    transition: var(--trans);
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active { color: var(--gold) !important; }
.navbar-main .nav-link.active { border-bottom: 2px solid var(--gold); }
.navbar-toggler { border-color: var(--border); }
.navbar-toggler-icon { filter: invert(1); }
.btn-nav-login {
    border: 1px solid var(--gold);
    color: var(--gold) !important;
    border-radius: 6px;
    padding: .4rem 1.2rem !important;
}
.btn-nav-login:hover {
    background: var(--gold);
    color: #000 !important;
}
.btn-nav-admin {
    background: var(--gold);
    color: #000 !important;
    border-radius: 6px;
    font-weight: 700;
    padding: .4rem 1.2rem !important;
}
.btn-nav-admin:hover { background: var(--gold-d); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 75vh;
    min-height: 75svh;
    padding-top: 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a00 50%, #0a0a0a 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    filter: brightness(0.4);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.62) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%23f0a500" opacity=".08"/><circle cx="80" cy="40" r="1.5" fill="%23f0a500" opacity=".05"/><circle cx="50" cy="80" r="1" fill="%23f0a500" opacity=".07"/></svg>');
    background-size: 200px 200px;
    animation: pulseGrid 8s ease-in-out infinite;
    z-index: 1;
}
@keyframes pulseGrid { 0%,100%{opacity:.5} 50%{opacity:1} }
.hero-content { position: relative; z-index: 2; }
.hero .container { position: relative; z-index: 2; }
.hero-badge {
    display: inline-block;
    background: rgba(240,165,0,.15);
    border: 1px solid rgba(240,165,0,.4);
    color: var(--gold);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: .35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-title .highlight {
    color: var(--gold);
    text-shadow: 0 0 40px rgba(240,165,0,.3);
}
.hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 2.5rem;
}
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.hero-stat-num { font-size: 2rem; font-weight: 900; color: var(--gold); line-height: 1; }
.hero-stat-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.hero-img-wrap {
    position: relative;
    text-align: center;
}
.hero-img-bg {
    width: 420px; height: 420px;
    max-width: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240,165,0,.12) 0%, transparent 70%);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    animation: floatHero 4s ease-in-out infinite;
}
@keyframes floatHero { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }
.hero-icon-big {
    font-size: 12rem;
    color: var(--gold);
    opacity: .12;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-gold {
    background: var(--gold);
    color: #000;
    font-weight: 700;
    border: none;
    padding: .75rem 2rem;
    border-radius: 8px;
    transition: var(--trans);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: .9rem;
}
.btn-gold:hover {
    background: var(--gold-d);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240,165,0,.35);
}
.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    font-weight: 700;
    padding: .7rem 2rem;
    border-radius: 8px;
    transition: var(--trans);
    text-transform: uppercase;
    font-size: .9rem;
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-2px);
}
.btn-red {
    background: var(--red);
    color: #fff;
    font-weight: 700;
    border: none;
    padding: .75rem 2rem;
    border-radius: 8px;
    transition: var(--trans);
}
.btn-red:hover { background: #c73448; color:#fff; transform:translateY(-2px); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 90px 0; }
.section-dark { background: var(--bg2); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
    display: inline-block;
    background: rgba(240,165,0,.12);
    color: var(--gold);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: .3rem .9rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 1px solid rgba(240,165,0,.25);
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: .75rem;
}
.section-sub { color: var(--muted); max-width: 600px; margin: 0 auto; }
.divider-gold {
    width: 60px; height: 4px;
    background: var(--gold);
    border-radius: 2px;
    margin: 1rem auto 0;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-dark {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--trans);
    overflow: hidden;
}
.card-dark:hover {
    background: var(--card-hover);
    border-color: rgba(240,165,0,.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}
.card-icon {
    width: 64px; height: 64px;
    border-radius: 14px;
    background: rgba(240,165,0,.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 1.25rem;
    transition: var(--trans);
}
.card-dark:hover .card-icon {
    background: var(--gold);
    color: #000;
}

/* ============================================================
   MEMBERSHIP CARDS
   ============================================================ */
.plan-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--trans);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex; flex-direction: column;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); }
.plan-card.popular {
    border-color: var(--gold);
    background: linear-gradient(145deg, #1e1600, var(--card));
}
.plan-badge {
    position: absolute;
    top: 1rem; right: -2rem;
    background: var(--gold);
    color: #000;
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: .3rem 3rem;
    transform: rotate(35deg);
}
.plan-name { font-size: 1.1rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: .5rem; }
.plan-price { font-size: 3rem; font-weight: 900; color: var(--text); line-height: 1; }
.plan-price sup { font-size: 1.2rem; vertical-align: top; margin-top: .5rem; color: var(--gold); }
.plan-period { color: var(--muted); font-size: .85rem; margin-bottom: 1.5rem; }
.plan-features { list-style: none; text-align: left; flex: 1; }
.plan-features li { padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.plan-features li:last-child { border: none; }
.plan-features li i { color: var(--gold); margin-right: .6rem; width: 16px; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--trans);
    height: 100%;
}
.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}
.service-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}
.service-card h5 { font-weight: 700; margin-bottom: .5rem; }
.service-price { color: var(--gold); font-size: 1.1rem; font-weight: 700; }

/* ============================================================
   PROMO CARDS
   ============================================================ */
.promo-card {
    background: linear-gradient(135deg, #1a1000, var(--card));
    border: 1px solid rgba(240,165,0,.25);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--trans);
    height: 100%;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.promo-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(240,165,0,.05) 0%, transparent 60%);
}
.promo-discount {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}
.promo-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .25rem .7rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.promo-code {
    display: inline-block;
    background: rgba(240,165,0,.12);
    border: 1px dashed var(--gold);
    color: var(--gold);
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    padding: .4rem 1rem;
    border-radius: 6px;
    letter-spacing: 2px;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--trans);
    height: 100%;
    display: flex; flex-direction: column;
}
.product-card:hover {
    border-color: rgba(240,165,0,.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}
.product-img {
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a, #111);
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
    color: var(--gold);
    position: relative;
    overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-category-tag {
    position: absolute; top: .75rem; left: .75rem;
    background: rgba(240,165,0,.15);
    color: var(--gold);
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .25rem .6rem;
    border-radius: 4px;
    border: 1px solid rgba(240,165,0,.3);
}
.product-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-name { font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.product-desc { color: var(--muted); font-size: .85rem; margin-bottom: .75rem; flex: 1; }
.product-price { font-size: 1.4rem; font-weight: 900; color: var(--gold); }
.product-brand { font-size: .75rem; color: var(--muted); }

/* ============================================================
   FOOD CARDS
   ============================================================ */
.food-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--trans);
    height: 100%;
}
.food-card:hover {
    border-color: rgba(240,165,0,.3);
    transform: translateY(-4px);
}
.food-macros {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin: .75rem 0;
}
.macro-badge {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    font-size: .7rem;
    padding: .2rem .5rem;
    border-radius: 4px;
    color: var(--muted);
}
.macro-badge b { color: var(--text); }

/* ============================================================
   BARBERSHOP
   ============================================================ */
.barber-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: var(--trans);
}
.barber-card:hover {
    border-color: rgba(240,165,0,.3);
    background: var(--card-hover);
}
.barber-icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    background: rgba(240,165,0,.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--gold);
    flex-shrink: 0;
}
.barber-duration { font-size: .78rem; color: var(--muted); }
.barber-price { font-size: 1.3rem; font-weight: 900; color: var(--gold); }

/* ============================================================
   CATEGORY FILTER
   ============================================================ */
.filter-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-tab {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: .45rem 1.1rem;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--trans);
}
.filter-tab:hover,
.filter-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
    font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-main {
    background: #050505;
    border-top: 1px solid var(--border);
    padding: 70px 0 0;
}
.footer-brand { margin-bottom: .75rem; }
.footer-logo-img { height: 80px; width: auto; filter: drop-shadow(0 0 10px rgba(240,165,0,.45)); }
.footer-desc { color: var(--muted); font-size: .9rem; margin-top: .75rem; line-height: 1.7; }
.footer-title { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 1.2rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: var(--muted); font-size: .9rem; transition: var(--trans); }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; color: var(--muted); font-size: .9rem; }
.footer-contact-item i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.social-icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    font-size: 1rem;
    transition: var(--trans);
}
.social-icon:hover { background: var(--gold); color: #000; border-color: var(--gold); }
.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    padding: 1.25rem 0;
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
}

/* ============================================================
   PAGE HERO (subpages)
   ============================================================ */
.page-hero {
    padding: 140px 0 70px;
    background: linear-gradient(135deg, #0a0a0a 0%, #150a00 100%);
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); text-transform: uppercase; font-weight: 900; }
.breadcrumb { background: none; padding: 0; }
.breadcrumb-item a { color: var(--gold); }
.breadcrumb-item.active { color: var(--muted); }
.breadcrumb-item+.breadcrumb-item::before { color: var(--muted); }

/* ============================================================
   APPOINTMENT FORM
   ============================================================ */
.form-dark .form-control,
.form-dark .form-select {
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
}
.form-dark .form-control:focus,
.form-dark .form-select:focus {
    background: var(--bg3);
    border-color: var(--gold);
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(240,165,0,.15);
}
.form-dark .form-label { color: var(--muted); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.form-dark .form-select option { background: #1a1a1a; }

/* ============================================================
   ALERT / TOAST
   ============================================================ */
.alert-gold { background: rgba(240,165,0,.12); border: 1px solid rgba(240,165,0,.3); color: var(--gold); }
.alert-info-dark { background: rgba(40,80,120,.2); border-color: rgba(100,160,240,.2); color: #8ec5fc; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--trans);
}
.contact-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.contact-card .icon-wrap {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(240,165,0,.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: var(--gold);
    margin: 0 auto 1.25rem;
}

/* ============================================================
   MISC
   ============================================================ */
.badge-gold { background: var(--gold); color: #000; font-weight: 700; }
.badge-red  { background: var(--red); color: #fff; }
.top-spacer { margin-top: 80px; }

.ribbon {
    position: absolute; top: 0; right: 0;
    background: var(--gold);
    color: #000;
    font-size: .65rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: .3rem .8rem;
    border-radius: 0 var(--radius) 0 8px;
}
.ribbon-red { background: var(--red); color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    /* Navbar */
    .navbar-main {
        padding: 0.4rem 0;
        /* position:fixed ya hace de bloque contenedor para el collapse absoluto */
    }
    /* SIN position:relative en el container → el collapse se posiciona
       relativo al .navbar-main (fixed, ancho 100vw) y queda siempre
       alineado con el borde del viewport, igual que el contenido de las secciones */
    .navbar-main > .container { flex-wrap: wrap; align-items: center; }
    .navbar-brand-img { flex-shrink: 0; max-width: calc(100% - 56px); }
    .navbar-logo-img { height: 46px; max-width: 180px; }
    .navbar-toggler { flex-shrink: 0; margin-left: auto; padding: .35rem .6rem; }
    .navbar-main .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(8,8,8,.98);
        border-top: 1px solid var(--border);
        z-index: 1060;
        box-shadow: 0 8px 24px rgba(0,0,0,.7);
        padding: 0.5rem 0 1rem;
    }
    /* El nav y los botones usan padding horizontal = mismo que .container en móvil */
    .navbar-main .navbar-nav { gap: 0; width: 100%; padding: 0 1rem 0 0; }
    .navbar-main .nav-link { padding: .6rem .5rem !important; }
    .navbar-main .navbar-collapse > .d-flex.gap-2 {
        flex-direction: column;
        gap: .5rem !important;
        width: 100%;
        padding: 0.5rem 1rem 0 0;
    }
    .btn-nav-login, .btn-nav-admin { text-align: center; }
    /* Hero */
    .hero { padding-top: 70px; }
    .hero-stats { gap: 1.5rem; }
    .hero-img-bg { width: 260px; height: 260px; }
    .hero-icon-big { font-size: 8rem; }
    /* Footer */
    .footer-social { flex-wrap: wrap; gap: .6rem; }
    .footer-main { padding: 50px 0 0; }
    .footer-logo-img { height: 60px; }
}
@media (max-width: 576px) {
    /* Navbar */
    .navbar-logo-img { height: 42px; max-width: 160px; }
    .navbar-toggler { padding: .25rem .5rem; }
    /* Sections */
    .section { padding: 60px 0; }
    .plan-card { padding: 1.75rem 1.25rem; }
    .promo-discount { font-size: 2.5rem; }
    /* Hero */
    .hero { padding-top: 65px; min-height: 60vh; }
    .hero-title { font-size: clamp(1.8rem, 9vw, 3rem); }
    .hero-sub { font-size: .95rem; }
    .hero-stats { gap: 1rem; }
    .hero-stat-num { font-size: 1.5rem; }
    /* Footer */
    .footer-main { padding: 40px 0 0; }
    .footer-logo-img { height: 48px; }
    .footer-social { flex-wrap: wrap; gap: .5rem; }
    .social-icon { width: 38px; height: 38px; font-size: .95rem; }
    .footer-contact-item { font-size: .82rem; }
    .footer-links a { font-size: .85rem; }
    /* General overflow fix */
    body { overflow-x: hidden; }
    .container { padding-left: 16px; padding-right: 16px; }
}

/* ============================================================
   AOS overrides for dark bg
   ============================================================ */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    background: #25d366;
    color: #fff;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 24px rgba(37,211,102,.45);
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 32px rgba(37,211,102,.65);
    color: #fff;
}
/* Pulse ring */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37,211,102,.4);
    animation: wa-pulse 2s ease-out infinite;
}
@keyframes wa-pulse {
    0%   { transform: scale(1);   opacity: .8; }
    100% { transform: scale(1.9); opacity: 0; }
}
/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 74px;
    background: #111;
    color: #fff;
    font-size: .8rem;
    white-space: nowrap;
    padding: .35rem .75rem;
    border-radius: 20px;
    border: 1px solid #25d366;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}
@media (max-width: 576px) {
    .whatsapp-float { bottom: 18px; right: 18px; width: 54px; height: 54px; font-size: 1.7rem; }
    .whatsapp-tooltip { display: none; }
}

/* ═══════════════════════════════════════════════════
   CHECKOUT / PAYMENTS
═══════════════════════════════════════════════════ */
.checkout-card {
    background: #161616;
    border: 1px solid #232323;
    border-radius: 14px;
    overflow: hidden;
}
.checkout-card-header {
    padding: .85rem 1.25rem;
    background: #1c1c1c;
    border-bottom: 1px solid #232323;
    font-weight: 700;
    font-size: .95rem;
    color: #ddd;
}
.checkout-card-body { padding: 1.25rem; }

/* Payment method grid */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}
@media (max-width: 640px) {
    .payment-methods-grid { grid-template-columns: repeat(2, 1fr); }
}
.pay-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: 1rem .5rem;
    border: 2px solid #252525;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .15s;
    text-align: center;
    background: #111;
    position: relative;
}
.pay-method-card:hover { border-color: #383838; background: #181818; transform: translateY(-2px); }
.pay-method-card.selected { border-color: #f0a500; background: rgba(240,165,0,.06); }
.pay-method-radio { position: absolute; opacity: 0; width: 0; height: 0; }
.pay-method-icon { font-size: 1.9rem; line-height: 1; }
.pay-method-name { font-weight: 700; font-size: .85rem; color: #ddd; }
.pay-method-sub  { font-size: .7rem; color: #666; }
.pay-method-brands { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: center; min-height: 20px; }

/* Checkout form elements */
.checkout-label {
    display: block;
    font-size: .78rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .4rem;
    font-weight: 600;
}
.checkout-input {
    width: 100%;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #ddd;
    padding: .65rem 1rem;
    font-size: .92rem;
    transition: border-color .2s;
}
.checkout-input:focus { outline: none; border-color: #f0a500; background: #141414; }
.checkout-input::placeholder { color: #444; }

/* Stripe element wrapper */
.checkout-stripe-element {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: .75rem 1rem;
    transition: border-color .2s;
}
.checkout-stripe-element.StripeElement--focus { border-color: #f0a500; }
.stripe-error { color: #e94560; font-size: .82rem; min-height: 1.2em; }

/* Pay button */
.btn-checkout-pay {
    width: 100%;
    padding: .85rem;
    background: linear-gradient(135deg, #f0a500, #e09400);
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .15s, filter .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    letter-spacing: .02em;
}
.btn-checkout-pay:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.btn-checkout-pay:disabled { opacity: .5; cursor: not-allowed; }

/* Bank data box */
.bank-data-box {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}
.bank-data-title { font-weight: 700; color: #28c76f; font-size: .88rem; margin-bottom: .5rem; }
.bank-data-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 0;
    border-bottom: 1px solid #1a1a1a;
    flex-wrap: wrap;
}
.bank-data-row:last-child { border-bottom: none; }
.bank-data-label { color: #555; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; min-width: 80px; }
.bank-data-value { color: #ddd; font-family: monospace; font-size: .9rem; flex: 1; word-break: break-all; }
.btn-copy {
    background: rgba(255,255,255,.06);
    border: 1px solid #2a2a2a;
    color: #888;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: .75rem;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    flex-shrink: 0;
}
.btn-copy:hover { color: #f0a500; border-color: #f0a500; }

/* Info alert */
.checkout-alert-info {
    background: rgba(99,91,255,.07);
    border: 1px solid rgba(99,91,255,.25);
    border-radius: 8px;
    padding: .85rem 1rem;
    font-size: .85rem;
    color: #bbb;
    line-height: 1.5;
}

/* Steps box */
.steps-box {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}
.steps-title { font-weight: 700; color: #ff9f43; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.step-item { display: flex; align-items: center; gap: .75rem; padding: .4rem 0; font-size: .87rem; color: #bbb; }
.step-num {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(240,165,0,.15);
    border: 1px solid rgba(240,165,0,.35);
    color: #f0a500;
    font-size: .72rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* Receipt rows (payment_success) */
.receipt-row { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-bottom: 1px solid #1e1e1e; }
.receipt-row:last-child { border-bottom: none; }
.receipt-label { color: #666; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.receipt-value { color: #ddd; font-size: .9rem; }

/* Panel transition */
.checkout-panel { animation: fadeInUp .3s ease; }

/* ═══════════════════════════════════════════════════
   GALLERY PAGE
═══════════════════════════════════════════════════ */

/* ── Tab nav profesional ─────────────────────────── */
.gtab-section {
    background: #0d0d0d;
    border-top: 1px solid #1e1e1e;
    border-bottom: 1px solid #1e1e1e;
    padding: 0;
}
.gtab-nav {
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.gtab-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2.5rem;
    border: none;
    background: transparent;
    color: #bbb;
    font-family: var(--font-body);
    cursor: pointer;
    transition: color .25s ease, background .25s ease;
    white-space: nowrap;
    flex: 1;
    max-width: 240px;
    justify-content: center;
}
.gtab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background .25s ease;
}
.gtab-btn:hover {
    color: #fff;
    background: rgba(255,255,255,.03);
}
.gtab-btn.active {
    color: var(--gold);
    background: rgba(240,165,0,.06);
}
.gtab-btn.active::after {
    background: var(--gold);
    box-shadow: 0 0 12px rgba(240,165,0,.5);
}
.gtab-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.gtab-btn.active .gtab-icon-wrap {
    background: rgba(240,165,0,.15);
    border-color: rgba(240,165,0,.4);
    color: var(--gold);
}
.gtab-texts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .1rem;
}
.gtab-title {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
}
.gtab-sub {
    font-size: .75rem;
    color: #777;
    font-weight: 400;
    transition: color .25s ease;
}
.gtab-btn.active .gtab-sub {
    color: rgba(240,165,0,.7);
}
.gtab-divider {
    width: 1px;
    background: #1e1e1e;
    margin: .75rem 0;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .gtab-btn {
        padding: 1.1rem 1rem;
        gap: .6rem;
        max-width: none;
    }
    .gtab-icon-wrap {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .gtab-title { font-size: .85rem; }
    .gtab-sub   { display: none; }
}
/* ── fin tab nav ─────────────────────────────────── */

/* Legado (por si se usa en otro lugar) */
.gallery-tab-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: .6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: var(--trans);
    display: flex;
    align-items: center;
    gap: .25rem;
}
.gallery-tab-btn:hover,
.gallery-tab-btn.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}
.gallery-tab-btn .badge-count {
    background: rgba(255,255,255,.15);
    border-radius: 50px;
    padding: .1rem .5rem;
    font-size: .75rem;
    margin-left: .3rem;
}
.gallery-tab-btn.active .badge-count {
    background: rgba(0,0,0,.2);
}

/* Masonry-style grid */
.gallery-grid {
    columns: 4 240px;
    column-gap: 12px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    width: 100%;
    aspect-ratio: 1 / 1;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}
.gallery-item:hover img {
    transform: scale(1.06);
}
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: background .3s ease;
}
.gallery-item-overlay i {
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .3s ease, transform .3s ease;
}
.gallery-item-overlay .gallery-item-title {
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
    padding: 0 .5rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
    text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.gallery-item:hover .gallery-item-overlay {
    background: rgba(0,0,0,.45);
}
.gallery-item:hover .gallery-item-overlay i,
.gallery-item:hover .gallery-item-overlay .gallery-item-title {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Video cards */
.video-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 0;
    transition: transform var(--trans), box-shadow var(--trans);
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.video-embed-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}
.video-info {
    padding: .75rem 1rem 1rem;
}
.video-link-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: #111;
    color: var(--red);
    text-decoration: none;
    transition: var(--trans);
}
.video-link-placeholder:hover { background: #181818; }

/* Facebook embed wrapper */
.fb-page-wrapper {
    overflow: hidden;
    border-radius: var(--radius);
}

/* Social big buttons */
.social-big-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: var(--trans);
}
.facebook-btn  { background: #1877f2; color: #fff; }
.facebook-btn:hover { background: #1565d8; color: #fff; }
.whatsapp-btn  { background: #25d366; color: #fff; }
.whatsapp-btn:hover { background: #1ebe59; color: #fff; }

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.95);
    align-items: center;
    justify-content: center;
}
.gallery-lightbox.active {
    display: flex;
}
.lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.lightbox-img-wrap img {
    max-width: 88vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0,0,0,.8);
    transition: opacity .2s ease;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: background .2s;
    position: absolute;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--gold); color: #000; }
.lightbox-close { top: -50px; right: 0; }
.lightbox-prev  { left: -56px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: -56px; top: 50%; transform: translateY(-50%); }
.lightbox-caption {
    color: #ccc;
    font-size: .85rem;
    text-align: center;
    margin-top: .75rem;
    max-width: 500px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .gallery-grid { columns: 2 140px; gap: 8px; }
    .lightbox-prev { left: -44px; }
    .lightbox-next { right: -44px; }
    .lightbox-img-wrap img { max-width: 94vw; max-height: 70vh; }
}
@media (max-width: 480px) {
    .gallery-grid { columns: 2 100px; gap: 6px; }
    .lightbox-prev, .lightbox-next { display: none; }
}
