/* ============================================================
   SUS AMIGOS — PREMIUM AUTOMOTIVE CSS
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
    --gold: #BFA125;
    --gold-light: #D9BA40;
    --gold-dark: #7A6510;
    --black: #050505;
    --white: #F2F2F2;
    --gray: #BAB7B1;
    --nav-height: 82px;
    --nav-height-scrolled: 82px;
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ============================================================
   NAVBAR – BASE
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;

    /* Estado inicial: transparente */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: 1px solid transparent;

    transition:
        background var(--transition),
        backdrop-filter var(--transition),
        height var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

/* Estado al hacer scroll */
.navbar--scrolled {
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    height: var(--nav-height-scrolled);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
    border-bottom-color: rgba(191, 161, 37, 0.15);
}

/* ── Inner container ──────────────────────────────────────── */
.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
}

/* ── Logo ─────────────────────────────────────────────────── */
.navbar-left {
    display: flex;
    align-items: center;
    margin-left: 10%;
}

.navbar-logo-link {
    display: inline-flex;
}

.navbar-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: height var(--transition);
}

.navbar--scrolled .navbar-logo {
    height: 70px;
}

/* ── Menú central ─────────────────────────────────────────── */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.6px;
    color: rgba(242, 242, 242, 0.88);
    background: none;
    border: none;
    transition: color var(--transition);
    white-space: nowrap;
}

/* Línea animada inferior */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 28px);
    height: 1.5px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--gold-light);
    outline: none;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: translateX(-50%) scaleX(1);
}

/* Flecha del dropdown */
.dropdown-arrow {
    transition: transform 250ms ease;
    flex-shrink: 0;
}

.nav-item--dropdown:hover .dropdown-arrow,
.nav-item--dropdown.is-open .dropdown-arrow {
    transform: rotate(180deg);
}

/* ── Dropdown ─────────────────────────────────────────────── */
.nav-item--dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 200px;
    background: #0a0a0a;
    border: 1px solid rgba(191, 161, 37, 0.18);
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 250ms ease, transform 250ms ease, visibility 250ms ease;
}

.nav-item--dropdown:hover .dropdown-menu,
.nav-item--dropdown.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 11px 22px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gray);
    letter-spacing: 0.4px;
    transition: color 200ms ease, padding-left 200ms ease;
}

.dropdown-item:hover {
    color: var(--gold-light);
    padding-left: 28px;
}

/* Separador sutil entre items */
.dropdown-menu li:not(:last-child) .dropdown-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Derecha: redes + CTA ─────────────────────────────────── */
.navbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* Iconos redes */
.nav-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 200ms ease, transform 200ms ease;
}

.nav-social-btn:hover {
    background: rgba(191, 161, 37, 0.12);
    transform: scale(1.1);
}

.nav-social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(68%) sepia(55%) saturate(500%) hue-rotate(5deg) brightness(90%);
    transition: filter 200ms ease;
}

.nav-social-btn:hover .nav-social-icon {
    filter: brightness(0) saturate(100%) invert(78%) sepia(55%) saturate(600%) hue-rotate(5deg) brightness(105%);
}

/* CTA Button */
.nav-cta {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 9px 22px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 6px;
    transition: background 250ms ease, transform 250ms ease, box-shadow 250ms ease;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--gold-light);
    transform: scale(1.04);
    box-shadow: 0 4px 20px rgba(191, 161, 37, 0.35);
}

/* ── Hamburguesa (oculta en desktop) ──────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 4px;
    border-radius: 6px;
    transition: background 200ms ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.06);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 300ms ease, opacity 300ms ease, width 300ms ease;
}

.hamburger.is-open .hamburger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

.hamburger.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   MENÚ MÓVIL
   ============================================================ */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 340px;
    height: 100%;
    background: #070707;
    border-left: 1px solid rgba(191, 161, 37, 0.15);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 28px 28px 40px;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    margin-bottom: 36px;
    transition: border-color 200ms ease, background 200ms ease;
}

.mobile-menu__close:hover {
    border-color: var(--gold);
    background: rgba(191, 161, 37, 0.08);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-link {
    display: block;
    padding: 13px 8px;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(242, 242, 242, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 200ms ease, padding-left 200ms ease;
    cursor: pointer;
}

.mobile-link:hover,
.mobile-link--parent {
    color: var(--white);
}

.mobile-link--parent {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gold);
    padding-top: 20px;
    border-bottom: none;
}

.mobile-submenu {
    display: flex;
    flex-direction: column;
    padding-left: 16px;
    border-left: 2px solid rgba(191, 161, 37, 0.3);
    margin-bottom: 8px;
}

.mobile-sublink {
    display: block;
    padding: 10px 8px;
    font-size: 0.9rem;
    color: var(--gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: color 200ms ease;
}

.mobile-sublink:hover {
    color: var(--gold-light);
}

.mobile-cta {
    display: block;
    margin-top: 28px;
    padding: 14px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    border-radius: 8px;
    transition: background 250ms ease;
}

.mobile-cta:hover {
    background: var(--gold-light);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-container {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: url('../images/FondoHero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
            rgba(5, 5, 5, 0.55) 0%,
            rgba(5, 5, 5, 0.30) 40%,
            rgba(5, 5, 5, 0.80) 100%);
    z-index: 1;
}

/* ── Hero Content Layout ──────────────────────────────────── */
.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    gap: 28px;
    max-width: 860px;
}

/* ── Eyebrow ──────────────────────────────────────────────── */
.hero-eyebrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: fadeUp 0.7s ease both;
    animation-delay: 0.1s;
}

.hero-eyebrow__brand {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-light);
}

.hero-eyebrow__sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(242, 242, 242, 0.65);
}

/* ── H1 ───────────────────────────────────────────────────── */
.hero-headline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -0.5px;
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.25s;
}

.hero-headline__accent {
    color: var(--gold-light);
    display: block;
}

/* ── Subtitle ─────────────────────────────────────────────── */
.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 400;
    line-height: 1.7;
    color: rgba(242, 242, 242, 0.72);
    max-width: 660px;
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.4s;
}

/* ── CTAs ─────────────────────────────────────────────────── */
.hero-ctas {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.55s;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 250ms ease;
    white-space: nowrap;
}

.hero-cta--primary {
    background: var(--gold);
    color: var(--black);
    border: 2px solid var(--gold);
}

.hero-cta--primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(191, 161, 37, 0.4);
}

.hero-cta--secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(242, 242, 242, 0.45);
}

.hero-cta--secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

/* ── Service Highlights ───────────────────────────────────── */
.hero-highlights {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.7s;
}

.hero-highlight {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(242, 242, 242, 0.6);
    transition: color 200ms ease;
}

.hero-highlight:hover {
    color: var(--gold-light);
}

.hero-highlight__dot {
    color: var(--gold);
    font-size: 0.6rem;
    opacity: 0.7;
}

/* ── Hero layout principal ────────────────────────────────── */
.hero-container {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background-image: url('../images/FondoHero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: var(--nav-height);
}

/* ── TOP: una columna ────────────────────────────────────── */
.hero-top {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: start;
    padding: 56px 80px 0 0;
    /* padding izquierdo en 0 */
    transform: translateX(-300px);
    /* Esto lo moverá forzosamente a la izquierda */
    flex: 1;
}

/* Columna izquierda – H1 */
.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-headline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: -1px;
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.1s;
}

.hero-headline__accent {
    color: var(--gold-light);
}

/* ── Rotator ──────────────────────────────────────────────── */
.hero-rotator {
    margin-top: 15px;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: var(--white);
    height: clamp(1.5rem, 3vw, 2.2rem);
    overflow: hidden;
    position: relative;
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.2s;
}

.rotator-window {
    height: 100%;
    overflow: hidden;
}

.rotator-list {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.rotator-list li {
    height: clamp(1.5rem, 3vw, 2.2rem);
    line-height: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--gold-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── BOTTOM: hero-bottom ──────────────────────────────────── */
.hero-bottom {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0 140px 56px 80px;
    width: 100%;
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.55s;
}

/* Columna derecha – Eyebrow + subtítulo */
.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: justify;
    gap: 16px;
    max-width: 450px;
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.3s;
}

.hero-eyebrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 4px;
}

.hero-eyebrow__brand {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-light);
}

.hero-eyebrow__sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(242, 242, 242, 0.5);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.85rem, 1.4vw, 0.98rem);
    font-weight: 400;
    line-height: 1.75;
    color: rgba(242, 242, 242, 0.7);
    max-width: 400px;
}

/* ============================================================
   CAROUSEL 3D SERVICIOS
   ============================================================ */
.services-3d {
    position: relative;
    width: 100%;
    min-height: 80vh;
    background: url('../images/Fondo/fondo1.jpg') no-repeat center center / cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 140px 20px 80px;
}

.services-3d::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 15, 15, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

/* Cabecera del Carrusel */
.carousel-header {
    text-align: center;
    margin-bottom: 60px;
    z-index: 3;
    position: relative;
}

.carousel-header h2 {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 25px;
    line-height: 1.3;
    font-weight: 600;
}

.btn-pill {
    background: #ffffff;
    color: #111111;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, color 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-pill:hover {
    transform: scale(1.05);
    background: var(--gold);
    color: #fff;
}

/* Contenedor del Carrusel */
.carousel-container {
    perspective: 1200px;
    width: 100%;
    max-width: 1200px;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

/* Tarjetas (Láminas) - Landscape Layout */
.lamina {
    position: absolute;
    width: 900px;
    height: 600px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    text-align: left;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.5s ease-out, opacity 0.5s ease-out, box-shadow 0.5s;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.05);
    user-select: none;
    will-change: transform, opacity, filter;
    cursor: grab;
    overflow: hidden;
}

.lamina:active {
    cursor: grabbing;
}

.card-img-wrapper {
    width: 50%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-escuchar {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--gold);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s, background-color 0.2s;
    z-index: 10;
}

.btn-escuchar:hover {
    transform: scale(1.05);
    background-color: #ffd700;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-img-wrapper img.fallback-img {
    width: 50%;
    height: auto;
    object-fit: contain;
    opacity: 0.5;
}

.card-content {
    width: 50%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #0d0d0d;
}

.lamina h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--gold-light);
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lamina p {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Efectos 3D Flat (Controlados por JS) */
.lamina.active {
    transform: translateX(0) scale(1) translateZ(0);
    z-index: 5;
    opacity: 1;
    filter: blur(0);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.25);
}

.lamina.prev {
    transform: translateX(-55%) scale(0.85);
    z-index: 4;
    opacity: 0.6;
    filter: blur(4px);
}

.lamina.next {
    transform: translateX(55%) scale(0.85);
    z-index: 4;
    opacity: 0.6;
    filter: blur(4px);
}

.lamina.prev-far {
    transform: translateX(-95%) scale(0.7);
    z-index: 3;
    opacity: 0;
    pointer-events: none;
}

.lamina.next-far {
    transform: translateX(95%) scale(0.7);
    z-index: 3;
    opacity: 0;
    pointer-events: none;
}

.lamina.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Navegación Pill */
.carousel-nav-pill {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    z-index: 3;
    background: #ffffff;
    padding: 8px 24px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.nav-arrow {
    background: transparent;
    border: none;
    color: #111;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    padding: 0 5px;
}

.nav-arrow:hover {
    color: var(--gold-light);
    transform: scale(1.2);
}

.carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

/* ============================================================
   ABOUT US SECTION
   ============================================================ */
.about-section {
    position: relative;
    width: 100%;
    padding: 100px 20px 120px;
    background: #0a0a0a;
    /* Fondo sólido negro/gris oscuro */
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.about-section-title {
    font-family: 'Outfit', sans-serif;
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 50px;
    text-align: center;
}

.about-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-video-wrapper {
    width: 100%;
    position: relative;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-content h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--gold-light);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 5px;
    font-weight: 600;
}

.about-lead {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.6;
    border-left: 3px solid var(--gold);
    padding-left: 20px;
    margin-bottom: 5px;
}

.about-story p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-lead {
        border-left: none;
        padding-left: 0;
        border-bottom: 2px solid var(--gold);
        padding-bottom: 15px;
    }
}

/* ── BOTTOM: stats bar ────────────────────────────────────── */
.hero-bottom__stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 80px;
    width: 100%;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    flex: 1;
}

.hero-stat__number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1;
}

.hero-stat__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.6px;
    color: rgba(242, 242, 242, 0.58);
    text-transform: uppercase;
}

.hero-stat svg {
    color: var(--gold-light);
    margin-bottom: 2px;
}

.hero-stat__sep {
    width: 1px;
    height: 40px;
    background: rgba(191, 161, 37, 0.18);
    flex-shrink: 0;
    margin: 0 32px;
}

/* ── Animaciones ──────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive hero ──────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-top {
        grid-template-columns: 1fr;
        padding: 40px 32px 0;
        gap: 24px;
    }

    .hero-bottom__stats {
        padding: 18px 32px;
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-stat {
        flex: 1 1 40%;
    }

    .hero-stat__sep {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-top {
        padding: 28px 20px 0;
    }

    .hero-headline {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .hero-bottom__stats {
        padding: 14px 20px;
    }

    .hero-stat {
        flex: 1 1 100%;
    }
}


/* ============================================================
   STATS BAR  —  separador debajo del hero
   ============================================================ */
.stats-bar {
    width: 100%;
    background: #0d0d0d;
    border-top: 1px solid rgba(191, 161, 37, 0.15);
    border-bottom: 1px solid rgba(191, 161, 37, 0.15);
}

.stats-bar__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    padding: 0 80px;
}

.stats-bar__stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 28px 0;
    flex: 1;
}

.stats-bar__number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1;
}

.stats-bar__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(242, 242, 242, 0.55);
}

.stats-bar__stat svg {
    color: var(--gold-light);
    margin-bottom: 4px;
}

.stats-bar__sep {
    width: 1px;
    background: rgba(191, 161, 37, 0.15);
    align-self: stretch;
    flex-shrink: 0;
    margin: 0 40px;
}

/* Responsive stats-bar */
@media (max-width: 900px) {
    .stats-bar__inner {
        padding: 0 32px;
        flex-wrap: wrap;
    }

    .stats-bar__stat {
        flex: 1 1 40%;
        padding: 20px 0;
    }

    .stats-bar__sep {
        display: none;
    }
}

@media (max-width: 480px) {
    .stats-bar__inner {
        padding: 0 20px;
    }

    .stats-bar__stat {
        flex: 1 1 100%;
        padding: 16px 0;
    }
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    text-decoration: none;
    cursor: pointer;
}

.whatsapp-label {
    background-color: #25D366;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 7px 14px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.whatsapp-widget:hover .whatsapp-label {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.whatsapp-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 16px rgba(37, 211, 102, 0.55));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.whatsapp-widget:hover .whatsapp-icon {
    transform: scale(1.08);
    filter: drop-shadow(0 6px 22px rgba(37, 211, 102, 0.85));
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .navbar-inner {
        padding: 0 24px;
        gap: 20px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .nav-cta {
        padding: 8px 16px;
        margin-left: 6px;
    }
}

@media (max-width: 768px) {

    .navbar-menu,
    .nav-social-btn,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navbar-inner {
        grid-template-columns: 1fr auto;
        padding: 0 20px;
    }
}

/* Bloque temporal para scroll */
.scroll-block {
    height: 100vh;
    background-color: #050505;
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9000;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: rgba(10, 10, 10, 0.82);
    border: 1px solid rgba(191, 161, 37, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 220ms ease;
    white-space: nowrap;
}

.lang-btn:hover {
    border-color: rgba(191, 161, 37, 0.65);
    background: rgba(20, 20, 20, 0.92);
}

.lang-btn__flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-btn__chevron {
    transition: transform 220ms ease;
    opacity: 0.65;
    flex-shrink: 0;
}

.lang-switcher.open .lang-btn__chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.lang-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    min-width: 140px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(191, 161, 37, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

    /* Estado cerrado */
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    background: none;
    border: none;
    color: rgba(242, 242, 242, 0.75);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 180ms ease;
    text-align: left;
}

.lang-option:hover {
    background: rgba(191, 161, 37, 0.1);
    color: var(--gold-light);
}

.lang-option--active {
    color: var(--gold-light);
    font-weight: 600;
    background: rgba(191, 161, 37, 0.06);
}

/* ============================================================
   BUBBLE CURSOR
   ============================================================ */
.bubble-canvas {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background-color: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    /* Crucial para el efecto 3D tipo moneda */
    animation: preloaderFadeOut 0.5s ease 2.8s forwards;
    overflow: hidden;
}

.preloader-logo {
    width: 250px;
    height: auto;
    transform-style: preserve-3d;
    animation: coinSpin 3s ease-in-out forwards;
}

/* Keyframes */
@keyframes coinSpin {
    0% {
        transform: scale(0.7) rotateY(0deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    50% {
        transform: scale(1.1) rotateY(360deg);
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: scale(0.7) rotateY(720deg);
        opacity: 0;
    }
}

@keyframes preloaderFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ============================================================
   SUCURSAL / UBICACIÓN SECTION (ZOOM ANIMATION)
   ============================================================ */
.sucursal-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    background: #050505;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.zoom-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #020202;
}

.tierra-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transform-origin: 30% 45%;
    /* Coordenadas estimadas Costa Rica */
    transition: transform 3s cubic-bezier(0.3, 0, 0, 1), opacity 1s ease 3s;
    opacity: 0.85;
}

.sucursal-section.animating .tierra-img {
    transform: scale(8);
    opacity: 0;
    /* Desvanece después del zoom */
}

/* Textos Secuenciales */
.zoom-label {
    position: absolute;
    font-family: 'Outfit', sans-serif;
    color: var(--gold-light);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.sucursal-section.animating .label-1 {
    animation: labelFade 1.2s ease 0.2s forwards;
}

.sucursal-section.animating .label-2 {
    animation: labelFade 1.2s ease 1.2s forwards;
}

.sucursal-section.animating .label-3 {
    animation: labelFade 1.2s ease 2.2s forwards;
}

@keyframes labelFade {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    20% {
        opacity: 1;
        transform: scale(1);
    }

    80% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

/* Marcador (Pin dorado) */
.pin-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.pin {
    width: 50px;
    height: 50px;
    position: relative;
    z-index: 21;
}

.pin svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.8));
}

.pin-pulse {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(212, 175, 55, 0.7);
    border-radius: 50%;
    z-index: 20;
}

/* Animaciones del Pin */
.sucursal-section.animating .pin-container {
    animation: dropPin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) 3.5s forwards;
}

.sucursal-section.animating .pin-pulse {
    animation: sonarPulse 2s infinite 4.2s;
}

@keyframes dropPin {
    0% {
        opacity: 0;
        transform: translate(-50%, -150px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes sonarPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(8);
        opacity: 0;
    }
}

/* Contenedor Revelado (Tarjeta + Iframe) */
.sucursal-reveal-content {
    position: relative;
    z-index: 30;
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    opacity: 0;
    transform: translateY(60px);
    margin-top: 250px;
    /* Offset para no tapar el pin */
    padding: 0 20px;
}

.sucursal-section.animating .sucursal-reveal-content {
    animation: fadeUpCard 0.8s ease 4s forwards;
}

@keyframes fadeUpCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tarjeta de Información */
.info-card {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 35px 45px;
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Contenedor del Mapa Real */
.real-map-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    background: #111;
}

@media (max-width: 900px) {
    .sucursal-reveal-content {
        grid-template-columns: 1fr;
        margin-top: 300px;
    }
}

.info-card h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 10px;
}

.info-card p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
}

.info-card-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.btn-whatsapp,
.btn-mapa {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border: 2px solid #25D366;
}

.btn-whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-mapa {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-mapa:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* ============================================================
   SUCURSAL / LOCATION
   ============================================================ */
.location-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    padding: 100px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../images/Ubicacion/fondoUbicacion.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.location-lamina {
    position: relative;
    width: 98%;
    max-width: 1600px;
    min-height: 650px;
    /* Fondo oscuro sólido con un poco de transparencia y blur */
    background-color: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(191, 161, 37, 0.2);
    /* Borde dorado tenue */
    /* Sombra fuerte para despegarla del fondo, combinada con un glow dorado */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(191, 161, 37, 0.05);
    padding: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.location-placeholder {
    font-family: 'Outfit', sans-serif;
    color: rgba(242, 242, 242, 0.2);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* ── Layout de la lámina (Grid) ── */
.location-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
    height: 100%;
    align-items: center;
}

/* ── Lado Izquierdo (Texto) ── */
.location-text-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.text-gold {
    color: var(--gold);
}

.location-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: rgba(242, 242, 242, 0.85);
    line-height: 1.7;
    margin-bottom: 28px;
}

.location-description strong {
    color: var(--white);
    font-weight: 600;
}

.location-perks {
    list-style: none;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-perks li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: var(--gray);
}

.gold-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(191, 161, 37, 0.6);
}

.location-btn {
    align-self: flex-start;
}

/* ── Lado Derecho (Mapa) ── */
.location-map-side {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(191, 161, 37, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: #000;
}

.location-map-side iframe {
    transition: filter 0.3s ease;
}

.location-map-side:hover iframe {
    filter: brightness(1.1);
}

/* ── Responsividad ── */
@media (max-width: 1000px) {
    .location-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .location-text-side {
        text-align: center;
        align-items: center;
    }

    .location-btn {
        align-self: center;
    }

    .location-perks li {
        justify-content: center;
    }
    
    .location-map-side {
        min-height: 350px;
    }
}

/* ============================================================
   HORARIO SECTION
   ============================================================ */
.horario-section {
    position: relative;
    width: 100%;
    padding: 100px 20px;
    background-color: var(--black); /* Fondo sólido */
    border-top: 1px solid rgba(191, 161, 37, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.horario-container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    color: var(--gold);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.horario-content {
    margin-top: 40px;
    width: 100%;
    max-width: 950px; /* Aumentado para que quepan dos columnas */
    margin-left: auto;
    margin-right: auto;
}

.horario-columns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    margin-bottom: 40px;
}

/* ── Marcador Electrónico (Scoreboard) ── */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

.scoreboard-container {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.scoreboard {
    background-color: #2b2b2b;
    border: 4px solid #1a1a1a;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8), inset 0 2px 5px rgba(255,255,255,0.1);
    position: relative;
}

/* Efecto de las patas del marcador */
.scoreboard::before, .scoreboard::after {
    content: '';
    position: absolute;
    bottom: -20px;
    width: 14px;
    height: 20px;
    background: linear-gradient(90deg, #666, #ccc, #444);
    border-radius: 2px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    z-index: -1;
}

.scoreboard::before {
    left: 15%;
}

.scoreboard::after {
    right: 15%;
}

.scoreboard-inner {
    border: 2px solid #f2f2f2;
    padding: 12px 25px;
    border-radius: 6px;
    background-color: #111;
    text-align: center;
    box-shadow: inset 0 0 15px rgba(0,0,0,1);
}

.scoreboard-header {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.scoreboard-time {
    font-family: 'VT323', monospace;
    font-size: 3.5rem;
    line-height: 1;
    letter-spacing: 4px;
}

.scoreboard-time.red-led {
    color: #ff3333;
    text-shadow: 0 0 8px #ff3333, 0 0 15px #ff3333, 0 0 30px #ff3333;
}

.scoreboard-time.green-led {
    color: #33ff33;
    text-shadow: 0 0 8px #33ff33, 0 0 15px #33ff33, 0 0 30px #33ff33;
}

/* ── Grilla del horario ── */
.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
    flex-grow: 1; /* Ocupa el espacio restante */
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
}

.schedule-row-closed {
    opacity: 0.6;
}

.schedule-day {
    color: var(--white);
    font-weight: 600;
}

.schedule-hours {
    color: var(--gold);
}

.schedule-row-closed .schedule-hours {
    color: #f87171;
}

/* ── Nota final ── */
.schedule-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: rgba(242, 242, 242, 0.6);
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.schedule-note a {
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Responsividad del Horario ── */
@media (max-width: 850px) {
    .horario-columns {
        flex-direction: column;
        gap: 30px;
    }
}

/* ── Contenedor de Fondo (Galería y Footer) ── */
.bottom-bg-container {
    background-image: url('../images/Fondo/fondo2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    width: 100%;
}

/* ── Galería ── */
.gallery-section {
    padding: 100px 0 20px 0;
    width: 100%;
    margin: 0;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.gallery-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--white);
    margin-bottom: 12px;
}

.gallery-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 320px; /* Filas un poco más altas para el tamaño completo */
    gap: 10px;
    width: 100%;
    padding: 0 10px; /* Padding ligero para igualar el gap de las orillas */
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #151515;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Icono placeholder por si no hay imagen aún */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="1.5"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(212,175,55,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.item-wide {
    grid-column: span 2;
}

.item-tall {
    grid-row: span 2;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }
    .item-tall {
        grid-row: span 1;
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    .item-wide {
        grid-column: span 1;
    }
}

/* ── Footer ── */
.site-footer {
    background-color: rgba(10, 10, 10, 0.4); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 80px 0 0; /* Padding ajustado para barra inferior */
    margin-top: 50px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    font-family: 'Inter', sans-serif;
    color: #ccc;
    text-align: center;
}

.footer-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 30px;
    padding: 0 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    flex: 0 0 auto;
}

.footer-logo {
    max-height: 200px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
}

.footer-grid {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
    flex: 1;
    gap: 8px;
    font-size: 0.9rem;
}

.footer-icon-link {
    color: var(--gold);
    display: inline-block;
    margin-bottom: 12px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-icon-link:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

.footer-col strong {
    color: #fff;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.footer-col span {
    color: rgba(255,255,255,0.6);
}

.footer-slogan-bar {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    margin: 0 auto 30px;
    max-width: 800px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-slogan {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    background-color: #080808; /* Fondo sólido oscuro */
    width: 100%;
    padding: 30px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

@media (max-width: 900px) {
    .footer-grid {
        flex-direction: column;
        gap: 50px;
    }
}

/* ============================================================
   APPOINTMENT MODAL
   ============================================================ */
.appointment-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.appointment-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.appointment-modal {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 40px;
    max-width: 900px;
    width: 90%;
    text-align: center;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.appointment-overlay.is-open .appointment-modal {
    transform: translateY(0);
}

.appointment-close {
    position: absolute;
    top: 20px; right: 20px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
}
.appointment-close:hover {
    color: var(--gold);
}

.appointment-modal h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 30px;
}

.appointment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media(max-width: 768px) {
    .appointment-options {
        grid-template-columns: 1fr;
    }
}

.appointment-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.appointment-card-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.appointment-card:hover .appointment-card-bg {
    opacity: 0.4;
    transform: scale(1.05);
}

.appointment-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    pointer-events: none;
}

.appointment-card:hover {
    background: #222;
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.1);
}

.appointment-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: var(--gold-light);
    margin-bottom: 5px;
}

.appointment-card-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    line-height: 1.3;
    font-weight: 300;
    max-width: 95%;
    margin: 0 auto;
}