@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;700;800&display=swap');

:root {
    --bg-dark: #050505;
    --text-light: #ffffff;
    --text-muted: #a1a1aa;
    --gold-primary: #D4AF37;
    --gold-hover: #F3E5AB;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--text-light);
}

p {
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-muted);
}

.gold-accent {
    background: linear-gradient(45deg, #D4AF37, #F3E5AB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(5, 5, 5, 0.7);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-ig-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-ig-icon {
    width: 28px;
    height: 28px;
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 5px rgba(253, 89, 73, 0.3));
}

.nav-ig-link:hover .nav-ig-icon {
    opacity: 1;
    transform: scale(1.15) translateY(-2px);
    filter: drop-shadow(0 0 12px rgba(214, 36, 159, 0.6));
}

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

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, #b8860b, #D4AF37);
    color: #000 !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #D4AF37, #F3E5AB);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-large {
    padding: 16px 45px;
    font-size: 1.1rem;
}

/* Sections */
section {
    padding: 120px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 60px;
}

/* --- Estilos Menu Tabs (Cátalogo) --- */
.catalog-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 5px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 20px;
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: var(--text-light);
}

.tab-btn.active {
    color: var(--gold-primary);
    font-weight: 600;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--gold-primary);
    transition: width 0.3s ease;
    border-radius: 3px 3px 0 0;
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    display: none !important;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content.active-content {
    display: grid !important;
    /* El bento-grid usa grid */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* --- Estadísticas (Contadores) --- */
.stats-section {
    padding: 60px 20px;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.03), transparent);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.stat-item {
    flex: 1;
    min-width: 200px;
    padding: 20px;
}

.stat-number {
    font-size: 4rem;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(45deg, #D4AF37, #F3E5AB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.2));
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
}

/* Difuminado en Hero - Requerimiento del usuario */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 120px;
    padding-left: 6%;
    padding-right: 6%;
    max-width: 100%;
    margin: 0;
    gap: 40px;
    /* La imagen de fondo se puede cambiar acá */
    background: url('../assets/pista_bg.webp') no-repeat center center;
    background-size: cover;
    z-index: 1;
}

/* Parallax solo en navegadores que lo soporten bien (no Safari iOS) */
@supports (background-attachment: fixed) {
    .hero-section {
        background-attachment: fixed;
    }
}

/* Capa de desenfoque y oscurecimiento */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.40);
    /* Oscurecimiento más claro */
    backdrop-filter: blur(3px);
    /* Desenfoque más suave */
    -webkit-backdrop-filter: blur(3px);
    z-index: -1;
}

.hero-content {
    flex: 1;
    animation: fadeInUp 1s ease-out;
}

/* --- Servicios --- */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.servicio-card-container {
    perspective: 1000px;
    height: 380px;
}

.servicio-card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
}

.servicio-card-container:hover .servicio-card {
    transform: rotateY(180deg);
}

.servicio-front,
.servicio-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    /* Evita fugas visuales de imagen en los bordes curvos */
    background-clip: padding-box;
}

.servicio-front {
    background-size: cover;
    background-position: center;
    background-color: var(--glass-bg);
}

.servicio-back {
    background: var(--glass-bg);
    transform: rotateY(180deg);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.servicio-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.8));
}

.servicio-front h3 {
    font-size: 1.6rem;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);
}

.servicio-back h3 {
    font-size: 1.5rem;
    color: var(--gold-hover);
    margin-bottom: 15px;
}

.servicio-back p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #e4e4e7;
    max-width: 500px;
}

.hero-reels {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
    animation: fadeInRight 1s ease-out;
}

.hero-reels video {
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    background: #111;
    width: 280px;
    height: 480px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-auto-rows: 350px;
}

/* Packs: tarjetas verticales que muestran toda la imagen */
#bento-grid-packs {
    grid-auto-rows: auto;
}

#bento-grid-packs .bento-item {
    aspect-ratio: 3 / 5;
}

#bento-grid-packs .bento-item img {
    object-position: bottom;
}

.bento-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.bento-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.bento-item img,
.bento-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: middle;
    transition: opacity 0.3s;
}

.bento-item iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.bento-item:hover img,
.bento-item:hover video {
    opacity: 0.6;
}

.bento-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
}

.bento-info h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.bento-tag {
    font-size: 0.8rem;
    background: var(--gold-primary);
    color: #000;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 700;
}

/* Badge de metros cuadrados */
.bento-m2-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-hover);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
    pointer-events: none;
}

/* --- Catalog Search Bar --- */
.catalog-search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.catalog-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.catalog-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.catalog-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 12px 40px 12px 44px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    margin-bottom: 0;
}

.catalog-search-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.catalog-search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.catalog-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}

.catalog-search-clear:hover {
    color: var(--text-light);
}

/* --- Catalog Filter Dropdowns --- */
.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 180px;
    max-width: 260px;
}

.filter-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding-left: 4px;
    margin-bottom: 0;
}

.custom-select-wrapper {
    position: relative;
}

.custom-select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-muted);
    pointer-events: none;
    transition: border-color 0.3s;
}

.custom-select-wrapper:focus-within::after {
    border-top-color: var(--gold-primary);
}

.catalog-filter-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 11px 36px 11px 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    margin-bottom: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.catalog-filter-select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.catalog-filter-select:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.catalog-filter-select option {
    background-color: #0f0f0f;
    color: var(--text-light);
    padding: 10px;
}

/* --- Smooth Bento Item Animations --- */
.bento-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.35s ease,
                transform 0.35s ease;
}

.bento-item.filtering-out {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
}

.bento-item.filtering-in {
    animation: chipFilterIn 0.4s ease forwards;
}

/* --- Skeleton Loading --- */
.bento-item.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.2s infinite linear;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes chipFilterIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Lightbox CTA Button --- */
.lightbox-bottom-bar {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.lightbox-bottom-bar .lightbox-overlay-text {
    position: static;
    text-align: left;
    font-size: 1.1rem;
    flex: 1;
}

.lightbox-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    flex-shrink: 0;
}

.lightbox-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #2be076, #25d366);
}

.lightbox-cta-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Empty tab message */
.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-primary);
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-download-pdf:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.1));
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-download-pdf svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.catalog-header-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

/* Empty tab message */
.empty-tab-msg {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: var(--glass-bg);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.empty-tab-msg p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.15);
}

.lightbox-content iframe {
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.15);
}

/* Vertical YouTube videos (9:16 Shorts/Reels) */
.lightbox-content iframe.yt-vertical {
    width: min(360px, 90vw);
    height: min(640px, 80vh);
    aspect-ratio: 9 / 16;
}

/* Horizontal YouTube videos (16:9) */
.lightbox-content iframe.yt-horizontal {
    width: min(900px, 90vw);
    height: min(506px, 80vh);
    aspect-ratio: 16 / 9;
}

.lightbox-overlay-text {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--gold-primary);
}

/* Botones de navegación del lightbox (flechas) */
.lightbox-nav {
    display: none; /* Ocultos por defecto, JS los muestra */
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1100;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-prev { left: 20px; }
.lightbox-nav-next { right: 20px; }

@media (max-width: 868px) {
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 2rem;
        background: rgba(10, 10, 10, 0.85);
    }
    .lightbox-nav-prev { left: 10px; }
    .lightbox-nav-next { right: 10px; }
}



/* Contact Form */
.contacto-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

input,
select,
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 14px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.1);
}

select option {
    background-color: #111111;
    color: var(--text-light);
    padding: 10px;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* WhatsApp Multi-Contact Widget */
.wa-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.wa-btn-float {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-btn-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

.wa-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-popup-header {
    background: linear-gradient(135deg, #128c7e, #075e54);
    padding: 20px;
    color: white;
    position: relative;
}

.wa-popup-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.wa-popup-intro {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.3;
}

.wa-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.wa-popup-close:hover {
    opacity: 1;
}

.wa-popup-content {
    padding: 20px;
}

.wa-popup-notice {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-align: center;
}

.wa-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wa-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wa-contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(37, 211, 102, 0.4);
    transform: translateX(5px);
}

.wa-contact-avatar {
    position: relative;
}

.wa-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--glass-border);
}

.wa-avatar-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.wa-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #25d366;
    border: 2px solid #222;
    border-radius: 50%;
}

.wa-contact-info {
    flex: 1;
}

.wa-contact-name {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.wa-contact-duty {
    color: var(--text-muted);
    font-size: 0.8rem;
}

footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--glass-border);
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

/* Responsive (Mobile view) - Ajustes clave */
@media (max-width: 868px) {
    .nav-container {
        padding: 15px 20px;
    }

    #nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-top: 1px solid var(--glass-border);
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.4s ease;
        z-index: -1;
    }

    #nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        z-index: 99;
    }

    #nav-menu a {
        margin: 15px 0;
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
    }

    .btn-primary {
        padding: 8px 16px;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 160px;
        background-attachment: scroll !important;
        /* iOS Safari fix */
        background-position: center;
    }

    .hero-section::before {
        background: rgba(5, 5, 5, 0.60);
        /* Oscurecimiento mayor para móviles */
    }

    .hero-reels {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-title {
        font-size: 3rem;
    }

    section {
        padding: 80px 20px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    /* Tabs scrolleables en mobile */
    .catalog-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-left: 10px;
        padding-right: 10px;
    }

    .catalog-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.95rem;
        padding: 8px 15px;
    }

    /* Mobile: 2 columns */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 280px;
    }

    #bento-grid-packs {
        grid-auto-rows: auto;
    }

    #bento-grid-packs .bento-item {
        aspect-ratio: 3 / 5;
    }

    .catalog-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 0 10px;
        gap: 10px;
    }

    .filter-dropdown-group {
        max-width: unset;
        min-width: 0;
    }
    
    .filter-dropdown-group:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .lightbox-bottom-bar {
        flex-direction: column;
        bottom: -70px;
        gap: 8px;
    }

    .lightbox-bottom-bar .lightbox-overlay-text {
        text-align: center;
        font-size: 0.95rem;
    }

    .lightbox-cta-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

/* --- Footer & HevStack Watermark --- */
footer {
    text-align: center;
    padding: 40px 20px 20px;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(to top, rgba(5, 5, 5, 1), rgba(5, 5, 5, 0.85));
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-watermark {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-watermark p {
    font-size: 0.78rem;
    color: rgba(161, 161, 170, 0.5);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.hevstack-icon {
    vertical-align: middle;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.hevstack-link {
    color: rgba(161, 161, 170, 0.7);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.hevstack-link:hover {
    color: var(--gold-primary);
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.hevstack-link:hover .hevstack-icon {
    opacity: 1;
    stroke: var(--gold-primary);
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
}

.hevstack-cta {
    color: rgba(212, 175, 55, 0.45);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hevstack-cta:hover {
    color: var(--gold-hover);
    text-decoration: underline;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}