/* ============================================
   O Largo da Costa — Styles
   ============================================ */

:root {
    --primary-dark: #0b1d1a;
    --primary-green: #1a3c34;
    --accent-gold: #d4af37;
    --accent-gold-light: #f3e5b1;
    --text-light: #f9f9f9;
    --text-dark: #222;
    --light-bg: #f4f4f4;
    --text-muted: #5a5a5a;
    --text-muted-dark: #aaa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: 'Montserrat', sans-serif; background-color: var(--light-bg); color: var(--text-dark); line-height: 1.6; }
body.loading { overflow: hidden; }

/* --- PRELOADER --- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--primary-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hide {
    opacity: 0;
    visibility: hidden;
}
.preloader-logo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--accent-gold);
    opacity: 0;
    animation: preloaderFadeIn 1s ease 0.2s forwards;
}
.preloader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin-top: 25px;
    border-radius: 2px;
    overflow: hidden;
}
.preloader-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent-gold);
    animation: preloaderBar 1.2s ease 0.4s forwards;
}
@keyframes preloaderFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes preloaderBar {
    to { width: 100%; }
}

/* --- SCROLL PROGRESS BAR --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
    z-index: 9998;
    width: 0%;
    transition: width 0.1s linear;
}

/* --- OPEN/CLOSED BADGE --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 15px;
    animation: fadeIn 0.5s ease;
}
.status-badge.open {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}
.status-badge.closed {
    background: rgba(255, 80, 80, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 80, 80, 0.3);
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}
.status-badge.open .status-dot {
    background: #25d366;
    animation: pulse-dot 2s infinite;
}
.status-badge.closed .status-dot {
    background: #ff6b6b;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}
a, button, input, select, textarea { touch-action: manipulation; }
input, select, textarea { font-size: 16px; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

/* --- SKIP LINK --- */
.skip-link { position: absolute; top: -40px; left: 12px; background: var(--accent-gold); color: var(--primary-dark); padding: 8px 12px; z-index: 4000; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* --- FOCUS VISIBLE --- */
:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* --- BANNER NOTICIAS --- */
.news-bar { background: var(--primary-green); color: var(--accent-gold); padding: 10px 0; overflow: hidden; position: fixed; top: 0; width: 100%; z-index: 1001; max-height: 40px; transition: max-height 0.4s ease, padding 0.4s ease; }
.news-bar.hide { max-height: 0; padding: 0; }
.news-marquee { display: flex; white-space: nowrap; align-items: center; }
.news-marquee span { font-size: 0.9rem; font-weight: 600; padding-right: 50px; display: inline-block; animation: scroll-left 25s linear infinite; }
@keyframes scroll-left { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* --- NAVBAR --- */
nav { position: fixed; width: 100%; top: 40px; z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 25px 50px; transition: all 0.4s ease; }
nav.scrolled { background: rgba(11, 29, 26, 0.95); backdrop-filter: blur(10px); padding: 15px 50px; top: 0; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
nav .logo-wrap { display: flex; align-items: center; text-decoration: none; }
nav .logo { color: var(--accent-gold); font-size: 1.8rem; font-weight: 700; text-decoration: none; }
nav ul { list-style: none; display: flex; gap: 30px; align-items: center; }
nav ul a { color: var(--text-light); text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; transition: color 0.3s; position: relative; }
nav ul a:hover { color: var(--accent-gold); }
nav ul a.active-link { color: var(--accent-gold); }
nav ul a.active-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 1px;
}
.lang-switch { display: flex; gap: 10px; margin-left: 20px; border-left: 1px solid rgba(255,255,255,0.3); padding-left: 20px; }
.lang-btn { background: none; border: none; color: var(--text-light); cursor: pointer; font-size: 0.85rem; font-weight: 600; opacity: 0.5; transition: opacity 0.3s, color 0.3s; }
.lang-btn.active { opacity: 1; color: var(--accent-gold); }
.menu-toggle { display: none; font-size: 1.8rem; color: var(--text-light); cursor: pointer; background: none; border: none; }

/* --- HERO --- */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7)), url('hero-restaurante.webp') no-repeat center center/cover;
    will-change: transform;
    z-index: 0;
}
.hero h1 { font-size: clamp(3rem, 8vw, 5.5rem); color: var(--accent-gold); text-shadow: 2px 2px 10px rgba(0,0,0,0.5); margin-bottom: 20px; animation: fadeUp 1.5s ease; position: relative; z-index: 2; }
.hero p { font-size: clamp(1rem, 3vw, 1.5rem); font-weight: 300; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 40px; animation: fadeUp 2s ease; position: relative; z-index: 2; }
.hero-btns { display: flex; gap: 20px; animation: fadeUp 2.5s ease; flex-wrap: wrap; justify-content: center; position: relative; z-index: 2; }

/* --- HERO EMBER/SMOKE PARTICLES --- */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.ember {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0;
    animation: ember-rise linear infinite;
    box-shadow: 0 0 6px 2px rgba(212, 175, 55, 0.4);
}
.ember:nth-child(1) { left: 10%; animation-duration: 6s; animation-delay: 0s; width: 3px; height: 3px; }
.ember:nth-child(2) { left: 25%; animation-duration: 8s; animation-delay: 1s; width: 5px; height: 5px; }
.ember:nth-child(3) { left: 40%; animation-duration: 7s; animation-delay: 2s; }
.ember:nth-child(4) { left: 55%; animation-duration: 9s; animation-delay: 0.5s; width: 3px; height: 3px; }
.ember:nth-child(5) { left: 70%; animation-duration: 6.5s; animation-delay: 3s; width: 6px; height: 6px; }
.ember:nth-child(6) { left: 85%; animation-duration: 7.5s; animation-delay: 1.5s; }
.ember:nth-child(7) { left: 15%; animation-duration: 10s; animation-delay: 4s; width: 3px; height: 3px; }
.ember:nth-child(8) { left: 50%; animation-duration: 8.5s; animation-delay: 2.5s; width: 5px; height: 5px; }
.ember:nth-child(9) { left: 65%; animation-duration: 7s; animation-delay: 3.5s; width: 3px; height: 3px; }
.ember:nth-child(10) { left: 90%; animation-duration: 9.5s; animation-delay: 0.8s; }
.ember:nth-child(11) { left: 5%; animation-duration: 11s; animation-delay: 5s; width: 4px; height: 4px; }
.ember:nth-child(12) { left: 35%; animation-duration: 6.8s; animation-delay: 1.2s; width: 2px; height: 2px; }

@keyframes ember-rise {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 0.8; }
    50% { opacity: 0.5; transform: translateY(-40vh) translateX(20px) scale(0.8); }
    80% { opacity: 0.2; }
    100% { transform: translateY(-90vh) translateX(-15px) scale(0.3); opacity: 0; }
}

/* --- BUTTONS --- */
.btn { padding: 15px 35px; text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; border: 1px solid transparent; cursor: pointer; display: inline-block; }
.btn-gold { background: var(--accent-gold); color: var(--primary-dark); box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
.btn-gold:hover { background: transparent; border: 1px solid var(--accent-gold); color: var(--accent-gold); transform: translateY(-5px); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3); }
.btn-outline { background: transparent; border-color: var(--text-light); color: var(--text-light); }
.btn-outline:hover { background: var(--text-light); color: var(--primary-dark); transform: translateY(-5px); }

/* --- STATS --- */
.stats { background: var(--primary-dark); color: var(--text-light); display: flex; justify-content: center; gap: 80px; padding: 40px 20px; text-align: center; flex-wrap: wrap; }
.stat-item strong { font-size: 2.5rem; color: var(--accent-gold); display: block; }
.stat-item span { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; }

/* --- SECTIONS --- */
.section { padding: 100px 50px; max-width: 1400px; margin: 0 auto; }
.section-title { text-align: center; font-size: clamp(2rem, 5vw, 3rem); color: var(--primary-dark); margin-bottom: 20px; }
.section-title::after { content: ''; display: block; width: 80px; height: 3px; background: var(--accent-gold); margin: 20px auto 0; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 60px; font-size: 1.1rem; }
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.section-cta { text-align: center; margin-top: 45px; }

/* --- ABOUT --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-grid img { width: 100%; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.about-text h3 { font-size: 2.5rem; margin-bottom: 20px; color: var(--primary-green); }

/* --- MENU --- */
.menu-section { background: white; }
.menu-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; flex-wrap: wrap; }
.tab-btn { padding: 10px 25px; background: transparent; border: 1px solid var(--primary-green); color: var(--primary-green); cursor: pointer; font-weight: 600; text-transform: uppercase; transition: all 0.3s; }
.tab-btn[aria-selected="true"], .tab-btn:hover { background: var(--primary-green); color: var(--accent-gold); }
.menu-content { display: none; max-width: 900px; margin: 0 auto; }
.menu-content.active { display: block; }
.menu-content.active .menu-item {
    animation: menuItemIn 0.5s ease both;
}
.menu-content.active .menu-item:nth-child(1) { animation-delay: 0s; }
.menu-content.active .menu-item:nth-child(2) { animation-delay: 0.1s; }
.menu-content.active .menu-item:nth-child(3) { animation-delay: 0.2s; }
.menu-content.active .menu-item:nth-child(4) { animation-delay: 0.3s; }
.menu-content.active .menu-item:nth-child(5) { animation-delay: 0.4s; }
.menu-content.active .menu-item:nth-child(6) { animation-delay: 0.5s; }
@keyframes menuItemIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px dashed #ddd;
    gap: 20px;
    transition: background 0.3s ease, padding-left 0.3s ease;
    border-radius: 4px;
}
.menu-item:hover {
    background: rgba(212, 175, 55, 0.04);
    padding-left: 12px;
}
.menu-item-info h4 { font-size: 1.4rem; color: var(--primary-dark); transition: color 0.3s; }
.menu-item:hover .menu-item-info h4 { color: var(--primary-green); }
.menu-item-info p { font-size: 0.9rem; color: var(--text-muted); }
.menu-price { font-size: 1.3rem; color: var(--accent-gold); font-weight: 600; white-space: nowrap; }

/* --- ALLERGEN NOTICE --- */
.allergen-notice {
    text-align: center;
    margin-top: 30px;
    padding: 16px 20px;
    background: rgba(26, 60, 52, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(26, 60, 52, 0.1);
}
.allergen-notice p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.allergen-notice i {
    color: var(--accent-gold);
    margin-right: 6px;
}

/* --- HORARIOS --- */
.horarios-section {
    background: var(--primary-dark);
    color: var(--text-light);
}
.horarios-section .section-title { color: var(--accent-gold); }
.horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.horario-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.horario-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
}
.horario-card.cerrado {
    opacity: 0.4;
}
.horario-card .dia {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
    font-weight: 700;
}
.horario-card .horas {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #ccc;
}
.horario-card .horas strong {
    color: var(--text-light);
    font-weight: 600;
}
.horario-card.cerrado .dia {
    color: #666;
}
.horario-card.cerrado .horas {
    color: #555;
}

/* --- REVIEWS --- */
.reviews-section { background: white; }
.reviews-header {
    text-align: center;
    margin-bottom: 50px;
}
.reviews-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}
.reviews-rating .stars {
    color: var(--accent-gold);
    font-size: 1.4rem;
    letter-spacing: 2px;
}
.reviews-rating .score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
}
.reviews-count {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
.review-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.review-card::before {
    content: '"';
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 4rem;
    color: var(--accent-gold);
    opacity: 0.2;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}
.review-card .review-stars {
    color: var(--accent-gold);
    font-size: 0.95rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.review-card .review-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 18px;
    font-style: italic;
}
.review-card .review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.review-card .review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}
.review-card .review-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
}
.review-card .review-date {
    font-size: 0.8rem;
    color: #999;
}
.reviews-cta {
    text-align: center;
    margin-top: 40px;
}
.reviews-cta a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.reviews-cta a:hover {
    color: var(--primary-green);
}
.reviews-cta a i { margin-left: 6px; }

/* --- GALLERY --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-auto-flow: dense; gap: 15px; }
.gallery-item { overflow: hidden; border-radius: 8px; height: 300px; cursor: pointer; position: relative; }
.gallery-item-wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 60%, rgba(0,0,0,0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* --- LIGHTBOX --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    cursor: zoom-out;
}
.lightbox-overlay.open {
    display: flex;
    animation: fadeIn 0.3s ease;
}
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    cursor: default;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 3001;
    transition: color 0.3s;
}
.lightbox-close:hover { color: var(--accent-gold); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 3001;
}
.lightbox-nav:hover { background: rgba(212, 175, 55, 0.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* --- RESERVAS --- */
.reservation-section { background: linear-gradient(rgba(11, 29, 26, 0.92), rgba(11, 29, 26, 0.92)), url('1.webp') no-repeat center center/cover fixed; color: var(--text-light); }
.reservation-section .section-title { color: var(--accent-gold); }
.form-container { max-width: 800px; margin: 0 auto; background: rgba(255,255,255,0.05); padding: 50px; border-radius: 10px; backdrop-filter: blur(5px); border: 1px solid rgba(212, 175, 55, 0.3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { margin-bottom: 10px; font-size: 0.9rem; text-transform: uppercase; color: var(--accent-gold-light); }
.form-group input, .form-group select, .form-group textarea { background: transparent; border: none; border-bottom: 1px solid var(--accent-gold); color: white; padding: 10px 0; font-size: 1rem; outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-bottom-color: var(--accent-gold-light); }
.form-group select option { background: var(--primary-dark); }
.submit-btn { grid-column: 1 / -1; margin-top: 30px; padding: 15px; background: var(--accent-gold); color: var(--primary-dark); border: none; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform 0.3s, box-shadow 0.3s; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3); }
#form-message { text-align: center; margin-top: 20px; color: var(--accent-gold); font-weight: 600; display: none; background: rgba(255,255,255,0.1); padding: 30px; border-radius: 10px; }

/* --- MODAL --- */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; justify-content: center; align-items: center; padding: 20px; }
.modal-content { background: var(--primary-dark); border: 1px solid var(--accent-gold); max-width: 1000px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 40px; border-radius: 10px; position: relative; }
.modal-close { position: absolute; top: 15px; right: 20px; color: var(--accent-gold); font-size: 2rem; cursor: pointer; background: none; border: none; }

/* --- FLOTANTES --- */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* WhatsApp tooltip */
.wa-float-wrap { position: fixed; bottom: 30px; right: 30px; z-index: 999; }
.wa-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: var(--text-dark);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: white;
}
.wa-float-wrap.show-tooltip .wa-tooltip { opacity: 1; }
.wa-float-wrap .wa-float { position: static; }

.scroll-top { position: fixed; bottom: 30px; left: 30px; background: var(--primary-dark); color: var(--accent-gold); width: 50px; height: 50px; border-radius: 50%; display: none; align-items: center; justify-content: center; cursor: pointer; border: 1px solid var(--accent-gold); z-index: 999; transition: transform 0.3s; }
.scroll-top:hover { transform: translateY(-3px); }
.scroll-top.show { display: flex; }
.mobile-action-bar { display: none; }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; margin-bottom: 15px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.faq-item summary { padding: 20px 25px; font-weight: 600; font-size: 1.1rem; color: var(--primary-dark); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--accent-gold); transition: transform 0.3s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 25px 20px; color: #666; line-height: 1.6; margin: 0; }

/* --- FOOTER --- */
footer { background: var(--primary-dark); color: var(--text-light); padding: 80px 50px 30px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 50px; max-width: 1400px; margin: 0 auto 50px; }
.footer-top h4 { color: var(--accent-gold); margin-bottom: 20px; font-size: 1.5rem; }
.footer-contact li { padding: 4px 0; }
.footer-contact li i { width: 20px; margin-right: 8px; color: var(--accent-gold); }
.footer-contact a { color: #ccc; text-decoration: none; transition: color 0.3s; }
.footer-contact a:hover { color: var(--accent-gold); }
.map-responsive { overflow: hidden; border-radius: 10px; height: 250px; }
.map-responsive iframe { width: 100%; height: 100%; border: 0; filter: grayscale(40%) invert(90%) contrast(90%); }
.footer-bottom { text-align: center; margin-top: 40px; font-size: 0.8rem; color: var(--text-muted-dark); }
.footer-bottom a { color: var(--accent-gold); margin-left: 10px; }
.footer-social { display: flex; gap: 15px; margin-top: 15px; }
.footer-social a {
    color: #ccc;
    font-size: 1.3rem;
    transition: color 0.3s, transform 0.3s;
}
.footer-social a:hover { color: var(--accent-gold); transform: translateY(-3px); }

/* --- COOKIE BANNER (RGPD) --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 18px 30px;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-banner.show {
    transform: translateY(0);
}
.cookie-banner p {
    color: #ccc;
    font-size: 0.85rem;
    max-width: 600px;
    line-height: 1.5;
}
.cookie-banner p a {
    color: var(--accent-gold);
    text-decoration: underline;
}
.cookie-btn {
    padding: 10px 24px;
    background: var(--accent-gold);
    color: var(--primary-dark);
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: transform 0.3s;
}
.cookie-btn:hover { transform: translateY(-2px); }
.cookie-btn-reject {
    padding: 10px 24px;
    background: transparent;
    color: #999;
    border: 1px solid #555;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: color 0.3s, border-color 0.3s;
}
.cookie-btn-reject:hover { color: white; border-color: white; }

/* --- HORARIO HIGHLIGHT (today) --- */
.horario-card.today {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.08);
}
.horario-card.today .dia::after {
    content: ' •';
    color: #25d366;
}

/* --- ANIMATIONS --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    body { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
    nav { padding: 15px 20px; top: 35px; }
    nav.scrolled { padding: 12px 20px; }
    nav .logo { font-size: 1.25rem; }
    .status-badge { display: none; }
    .news-marquee span { font-size: 0.78rem; animation-duration: 18s; }
    .menu-toggle { display: block; }
    nav ul { display: none; flex-direction: column; position: absolute; top: 100%; right: 0; background: rgba(11, 29, 26, 0.98); padding: 30px; width: 100%; text-align: center; gap: 20px; }
    nav ul.active { display: flex; }
    .lang-switch { margin-left: 0; border: none; justify-content: center; margin-top: 10px; }
    .hero h1 { font-size: clamp(2.8rem, 15vw, 4.3rem); line-height: 1; }
    .hero p { letter-spacing: 2px; }
    .hero-btns { width: 100%; }
    .hero-btns .btn { width: min(100%, 310px); }
    .section { padding: 60px 20px; }
    .about-grid, .form-grid, .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .stats { gap: 30px; padding: 32px 16px; }
    .stat-item { flex: 1 1 180px; }
    .stat-item strong { font-size: 1.9rem; }
    .menu-item { align-items: flex-start; }
    .gallery-item, .gallery-item-wide { grid-column: auto; height: 240px; }
    .form-container { padding: 30px 20px; }
    .reviews-grid { grid-template-columns: 1fr; }
    .horarios-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
    .horario-card { padding: 18px 12px; }

    /* Mobile action bar */
    .wa-float-wrap { display: none; }
    .scroll-top { bottom: 20px; left: 20px; }
    .mobile-action-bar { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; z-index: 1200; box-shadow: 0 -4px 18px rgba(0,0,0,0.25); }
    .mobile-action-bar a { text-align: center; padding: 14px 10px calc(14px + env(safe-area-inset-bottom)); text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
    .mobile-action-bar .call { background: var(--primary-dark); color: var(--accent-gold); }
    .mobile-action-bar .whatsapp { background: #25d366; color: white; }

    /* Lightbox mobile */
    .lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }

    /* Cookie banner mobile */
    .cookie-banner { flex-direction: column; text-align: center; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); }
    .cookie-banner p { font-size: 0.8rem; }

    /* Nav scroll spy underline hidden on mobile */
    nav ul a.active-link::after { display: none; }
}

/* --- PRINT STYLES --- */
@media print {
    nav, .news-bar, .wa-float-wrap, .mobile-action-bar, .scroll-top, .cookie-banner, .scroll-progress, .preloader { display: none !important; }
    .hero { min-height: auto; padding: 40px 20px; }
    .section { padding: 30px 20px; }
    body { padding-bottom: 0; }
}

/* --- REDUCED MOTION (Accessibility) --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .news-marquee span { animation: none !important; }
    .ember { display: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
