:root {
    /* Paleta de colores "Abbey Tavern" */
    --abbey-green: #0f2b1d;
    --abbey-dark: #050a07;
    --abbey-gold: #c5a059;
    --abbey-gold-light: #e5c079;
    --abbey-cream: #f4e4bc;

    /* Efectos de Cristal (Glassmorphism) */
    --glass-bg: rgba(12, 24, 18, 0.85);
    --glass-border: rgba(197, 160, 89, 0.3);
}

/* =========================================
   1. CONFIGURACIÓN GLOBAL
   ========================================= */
body {
    font-family: 'Lato', sans-serif;
    color: var(--abbey-cream);
    background-color: var(--abbey-dark);
    overflow-x: hidden;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--abbey-green);
}

::-webkit-scrollbar-thumb {
    background: var(--abbey-gold);
    border-radius: 5px;
    border: 2px solid var(--abbey-green);
}

::selection {
    background: var(--abbey-gold);
    color: black;
}

/* =========================================
   2. PRELOADER
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050a07;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

/* =========================================
   3. FONDO
   ========================================= */
.bg-church {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('../img/img1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: contrast(1.1) brightness(0.5);
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 43, 29, 0.5) 0%, rgba(0, 0, 0, 0.95) 100%);
    z-index: -1;
}

/* =========================================
   4. TIPOGRAFÍA
   ========================================= */
h1,
h2,
h3,
h4,
.navbar-brand,
.section-title,
.menu-category-title,
.daily-price-tag,
.menu-price,
.btn-gold {
    font-family: 'Cinzel', serif;
    color: var(--abbey-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 3rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0px;
    height: 3px;
    background: var(--abbey-gold);
    box-shadow: 0 0 10px var(--abbey-gold);
    transition: width 1s ease-out;
}

.section-title.visible::after {
    width: 80px;
}

.text-gold {
    color: var(--abbey-gold) !important;
}

/* =========================================
   5. NAVBAR
   ========================================= */
.navbar {
    background: rgba(0, 0, 0, 0.9) !important;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding-top: 5px;
    padding-bottom: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
}

.nav-link {
    color: var(--abbey-cream) !important;
    font-size: 0.95rem;
    margin-left: 15px;
    position: relative;
    transition: color 0.3s;
}

.nav-link.active,
.nav-link:hover {
    color: var(--abbey-gold) !important;
}

/* =========================================
   6. TARJETAS (Glassmorphism)
   ========================================= */
.card-abbey {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    height: 100%;
}

.card-abbey:hover {
    transform: translateY(-10px);
    border-color: var(--abbey-gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(197, 160, 89, 0.2);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.6s ease;
}

.card-abbey:hover .card-img-top {
    transform: scale(1.1);
}

.team-img {
    height: 380px;
    object-position: top center;
}

.event-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border: 1px solid var(--abbey-gold);
    transition: all 0.5s;
}

.event-img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* =========================================
   7. MENÚ / CARTA (ACTUALIZADO: STICKY MENU)
   ========================================= */
.nav-pills .nav-link {
    color: var(--abbey-cream) !important;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--abbey-gold);
    margin: 5px;
    font-family: 'Cinzel', serif;
    white-space: nowrap;
    /* Evita que el texto se rompa en dos líneas */
}

.nav-pills .nav-link.active {
    background-color: var(--abbey-gold);
    color: black !important;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.5);
}

/* --- NUEVO BLOQUE: NAVEGACIÓN PEGAJOSA --- */
#pills-tab {
    /* Pegajoso */
    position: -webkit-sticky;
    position: sticky;
    top: 76px;
    /* Ajuste para quedar bajo la navbar */
    z-index: 990;

    /* Fondo y bordes */
    background-color: var(--abbey-dark);
    border-bottom: 2px solid var(--abbey-gold);
    padding: 15px 0;

    /* Scroll Horizontal en Móvil */
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;

    /* Ajuste de márgenes para móvil (borde a borde) */
    margin: 0 -12px 30px -12px !important;
}

/* Ocultar barra de scroll (Chrome/Safari/Opera) */
#pills-tab::-webkit-scrollbar {
    display: none;
}

/* Items individuales del menú */
#pills-tab .nav-item {
    flex: 0 0 auto;
    margin: 0 5px;
}

/* Espaciado extra inicio y fin */
#pills-tab .nav-item:first-child {
    margin-left: 15px;
}

#pills-tab .nav-item:last-child {
    margin-right: 15px;
}

/* Media Query: Pantallas Grandes (PC/Tablet) */
@media (min-width: 992px) {
    #pills-tab {
        justify-content: center;
        top: 80px;
        margin: 0 0 40px 0 !important;
    }
}

/* --- FIN NUEVO BLOQUE --- */

.menu-category-title {
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
}

.menu-item-name {
    font-weight: 700;
    color: var(--abbey-cream);
    padding-right: 10px;
    background-color: var(--glass-bg);
    position: relative;
    z-index: 1;
}

.menu-dots {
    flex-grow: 1;
    border-bottom: 1px dotted var(--abbey-gold);
    margin-bottom: 5px;
    opacity: 0.5;
}

.menu-price {
    font-weight: bold;
    color: var(--abbey-gold);
    padding-left: 10px;
}

.daily-menu-box {
    border: 2px solid var(--abbey-gold);
    padding: 20px;
    border-radius: 10px;
    background: rgba(197, 160, 89, 0.1);
    text-align: center;
}

.daily-price-tag {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* =========================================
   8. NUEVOS ELEMENTOS: CARRUSEL, TESTIMONIOS, FAQ
   ========================================= */

/* Carrusel (Slider) */
.gallery-slider-img {
    height: 500px;
    object-fit: cover;
    filter: brightness(0.9);
}

@media (max-width: 768px) {
    .gallery-slider-img {
        height: 300px;
    }
}

/* Testimonios */
.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    height: 100%;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--abbey-gold);
}

/* Acordeón FAQ (Transparente) */
.accordion-button {
    font-family: 'Cinzel', serif;
    font-weight: bold;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(197, 160, 89, 0.2);
    color: var(--abbey-gold);
}

.accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.accordion-body {
    background-color: rgba(0, 0, 0, 0.3);
}

/* =========================================
   9. OTROS ELEMENTOS (TIENDA, MODAL, BOTONES)
   ========================================= */
.merch-card {
    background: linear-gradient(135deg, rgba(15, 43, 29, 0.8), rgba(0, 0, 0, 0.8));
    border: 2px solid var(--abbey-gold);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.15);
}

.merch-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}

.border-gold {
    border: 2px solid var(--abbey-gold) !important;
}

.bg-gold {
    background-color: var(--abbey-gold);
}

/* Botones */
.btn-gold {
    background: linear-gradient(45deg, var(--abbey-gold), var(--abbey-gold-light));
    color: #050a07;
    border: none;
    padding: 12px 35px;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-gold:hover {
    transform: scale(1.05);
    color: black;
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.8);
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.btn-gold:hover::before {
    animation: shine 1.5s infinite;
}

/* Botón WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
}

/* Modal Oscuro */
.modal-content {
    background-color: #0f2b1d;
    border: 2px solid var(--abbey-gold);
    color: var(--abbey-cream);
}

.modal-header {
    border-bottom: 1px solid var(--abbey-gold);
}

.form-control,
.form-select {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--abbey-gold);
    color: white;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(0, 0, 0, 0.7);
    border-color: var(--abbey-gold-light);
    color: white;
    box-shadow: none;
}

.btn-close-white {
    filter: invert(1);
}

/* =========================================
   10. ANIMACIONES
   ========================================= */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes zoomInHero {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-animate {
    animation: zoomInHero 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.separator {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), var(--abbey-gold), rgba(0, 0, 0, 0));
    margin: 80px 0;
    opacity: 0.5;
}

#promoCarousel .carousel-item img {
    max-height: 600px;
    object-fit: contain;
    background-color: #000;
}

.event-poster-container img {
    transition: transform 0.3s ease;
}

.event-poster-container:hover img {
    transform: scale(1.02);
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.bg-church {
    animation: kenBurns 20s infinite alternate ease-in-out;
}

/* ESTILOS PARA LAS RESEÑAS REALES */
.review-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--abbey-gold);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--abbey-gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.reviewer-name {
    color: #fff;
    font-weight: bold;
    display: block;
    line-height: 1.2;
}

.review-source {
    font-size: 0.8rem;
    color: #aaa;
}

.review-stars {
    color: #f1c40f;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.review-text {
    color: #ddd;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.5;
}

.google-icon {
    background: white;
    padding: 5px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   BOTONES FLOTANTES (FACEBOOK E INSTAGRAM)
   ========================================= */
.social-float-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    background-color: #000;
    border: 2px solid var(--abbey-gold);
    color: var(--abbey-gold);
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: var(--abbey-gold);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(197, 164, 126, 0.4);
}

/* --- EFECTO HOVER TIENDA --- */
.product-hover-container img {
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.img-main {
    z-index: 10;
    position: relative !important;
}

.img-model-1,
.img-model-2 {
    z-index: 5;
    opacity: 1;
}

.product-hover-container:hover .img-main {
    opacity: 0;
}

.product-hover-container:hover .img-model-2 {
    animation: switchModel 4s infinite;
}

@keyframes switchModel {
    0% {
        opacity: 0;
    }

    45% {
        opacity: 0;
    }

    55% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}