/* ============================================================
   STYLES.CSS — Don Perico · Estilos compartidos
   ============================================================ */

/* === VARIABLES & RESET === */
:root {
  --cp: #C0392B; --ca: #F39C12; --bg: #FDF6EC; --dark: #2C1A0E;
  --text: #3D2B1F; --text-muted: #6b5a52; --light: #FFF8F0; --white: #FFFFFF;
  --fh: 'Playfair Display', Georgia, serif;
  --fb: 'Lato', Arial, sans-serif;
  --r: 8px; --sh: 0 4px 20px rgba(0,0,0,.1); --tr: .3s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); background: var(--bg); color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { position: relative; overflow: hidden; }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; min-height: 44px; border-radius: 30px; font-weight: 700; font-size: .9rem; cursor: pointer; transition: var(--tr); border: 2px solid transparent; touch-action: manipulation; }
.btn-primary { background: var(--cp); color: #fff; }
.btn-primary:hover { background: #a93226; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192,57,43,.35); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #1a0f08; transform: translateY(-2px); }

/* === SECTION HEADERS === */
.section-label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--cp); margin-bottom: 8px; }
h2 { font-family: var(--fh); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--dark); margin-bottom: 14px; }
.section-header { text-align: center; margin-bottom: 44px; }

/* === NAV === */
#header { position: sticky; top: 0; z-index: 1000; background: rgba(44,26,14,.96); backdrop-filter: blur(8px); box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 62px; max-width: 1200px; margin: 0 auto; }
.logo a { font-family: var(--fh); font-size: 1.55rem; color: var(--ca); font-weight: 700; letter-spacing: 1px; }
.logo span { color: rgba(255,255,255,.6); font-size: .62rem; display: block; letter-spacing: 2px; text-transform: uppercase; margin-top: -4px; }
.nav-center { display: flex; align-items: center; gap: 4px; }
.nav-center a { color: rgba(255,255,255,.85); font-size: .88rem; font-weight: 600; padding: 6px 16px; border-radius: 20px; transition: var(--tr); }
.nav-center a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-center a.active { background: rgba(255,255,255,.18); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta { background: var(--cp); color: #fff; padding: 9px 18px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 20px; transition: var(--tr); }
.nav-cta:hover { background: #a93226; }
#reservaBtn { display: none; }
#reservaBtn.visible { display: inline-flex; }

/* Language switcher */
.lang-switcher { display: flex; gap: 3px; }
.lang-btn { background: transparent; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.8); padding: 10px 8px; min-height: 44px; display: flex; align-items: center; border-radius: 4px; cursor: pointer; font-size: .75rem; font-weight: 700; transition: var(--tr); touch-action: manipulation; }
.lang-btn.active { background: var(--cp); border-color: var(--cp); color: #fff; }
.lang-btn:hover:not(.active) { background: rgba(255,255,255,.1); }

/* Mobile lang inside hamburger menu — oculto en desktop */
.nav-lang-mobile { display: none; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: var(--tr); border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* === HERO === */
.hero { min-height: 85vh; background-image: url('img/hero.jpg'); background-size: cover; background-position: center; background-attachment: scroll; display: flex; align-items: center; justify-content: center; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.52); display: flex; align-items: center; justify-content: center; }
.hero-content { text-align: center; color: #fff; padding: 20px; animation: fadeUp .9s ease; max-width: 680px; }
.hero-content h1 { font-family: var(--fh); font-size: clamp(1.9rem, 5vw, 3.2rem); margin-bottom: 8px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero-tagline { font-size: clamp(.85rem, 2vw, 1.05rem); opacity: .92; margin-bottom: 20px; font-weight: 300; letter-spacing: .5px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.divider-curve { position: absolute; bottom: 0; left: 0; width: 100%; line-height: 0; overflow: hidden; }
.divider-curve svg { display: block; width: 100%; height: 60px; }

/* === HOME QUICK LINKS === */
.quicklinks-section { background: var(--bg); padding: 60px 0 80px; }
.quicklinks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.quicklink-card { background: #fff; border-radius: var(--r); padding: 28px 22px; box-shadow: var(--sh); text-align: center; transition: var(--tr); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.quicklink-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.quicklink-card i { font-size: 1.8rem; color: var(--cp); }
.quicklink-card h3 { font-family: var(--fh); font-size: 1.1rem; color: var(--dark); }
.quicklink-card p { font-size: .83rem; color: var(--text-muted); line-height: 1.5; }

/* === ABOUT === */
.about-section { background: var(--bg); padding: 80px 0 100px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-image img { border-radius: var(--r); box-shadow: var(--sh); width: 100%; height: 360px; object-fit: cover; }
.about-text p { font-size: .93rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.about-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.badge { display: flex; align-items: center; gap: 8px; background: #fff; padding: 9px 16px; border-radius: 30px; box-shadow: 0 2px 10px rgba(0,0,0,.08); font-size: .82rem; font-weight: 600; color: var(--dark); }
.badge i { color: var(--cp); }

/* === HISTORY === */
.history-section { background: var(--light); padding: 80px 0 100px; }
.timeline { position: relative; margin-top: 36px; padding-left: 52px; }
.timeline::before { content: ''; position: absolute; left: 18px; top: 0; bottom: 0; width: 2px; background: var(--cp); opacity: .25; }
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before { content: ''; position: absolute; left: -42px; top: 6px; width: 16px; height: 16px; background: var(--cp); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--cp); }
.tl-year { font-family: var(--fh); font-size: .8rem; font-weight: 700; color: var(--cp); letter-spacing: 1px; margin-bottom: 3px; }
.timeline-item h3 { font-family: var(--fh); font-size: 1.05rem; color: var(--dark); margin-bottom: 5px; }
.timeline-item p { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }

/* === MENU === */
.menu-section { background: var(--bg); padding: 80px 0 100px; }
.menu-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.tab-btn { padding: 9px 22px; border: 2px solid var(--cp); background: transparent; color: var(--cp); border-radius: 30px; font-weight: 700; font-size: .88rem; cursor: pointer; transition: var(--tr); font-family: var(--fb); }
.tab-btn.active, .tab-btn:hover { background: var(--cp); color: #fff; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.menu-item { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); transition: var(--tr); display: none; }
.menu-item.show { display: block; }
.menu-item:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.menu-item img { width: 100%; height: 170px; object-fit: cover; }
.menu-item-info { padding: 15px; }
.menu-item-info h3 { font-family: var(--fh); font-size: 1rem; margin-bottom: 5px; color: var(--dark); }
.menu-item-info p { font-size: .875rem; color: var(--text-muted); margin-bottom: 8px; line-height: 1.5; }
.price { font-weight: 700; color: var(--cp); font-size: .95rem; }

/* === GALLERY === */
.gallery-section { background: var(--dark); padding: 80px 0 100px; }
.gallery-section .section-label { color: rgba(255,255,255,.6); }
.gallery-section h2 { color: var(--ca); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--r); cursor: pointer; height: 260px; }
.gallery-item:focus-visible { outline: 3px solid var(--ca); outline-offset: 2px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay { position: absolute; inset: 0; background: transparent; display: flex; align-items: center; justify-content: center; transition: var(--tr); color: #fff; font-size: 1.4rem; opacity: 0; }
.gallery-item:hover .gallery-overlay { background: rgba(0,0,0,.42); opacity: 1; }
#lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9998; align-items: center; justify-content: center; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 88vh; border-radius: var(--r); }
#lb-close { position: absolute; top: 18px; right: 24px; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; line-height: 1; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }

/* === REVIEWS === */
.reviews-section { background: var(--light); padding: 80px 0 100px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; margin-bottom: 28px; }
.review-card { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--sh); }
.review-header { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.rev-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--cp); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.rev-avatar--blue { background: #1565C0; }
.rev-avatar--green { background: #2E7D32; }
.rev-avatar--purple { background: #6A1B9A; }
.rev-name { font-weight: 700; font-size: .9rem; color: var(--dark); }
.stars { color: var(--ca); font-size: .88rem; margin-top: 1px; }
.review-text { font-size: .9rem; font-style: italic; color: var(--text-muted); line-height: 1.7; }
.reviews-cta { text-align: center; }
.gmb-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .85rem; color: var(--cp); font-weight: 700; transition: var(--tr); }
.gmb-link:hover { color: #a93226; }

/* === LOCATION === */
.location-section { background: var(--bg); padding: 80px 0 100px; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.info-icon { width: 42px; height: 42px; background: var(--cp); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; font-size: .9rem; }
.info-text h4 { font-weight: 700; color: var(--dark); margin-bottom: 2px; font-size: .88rem; text-transform: uppercase; letter-spacing: .5px; }
.info-text p { font-size: .87rem; color: var(--text-muted); line-height: 1.6; }
.map-embed { border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* === CONTACT === */
.contact-section { background: var(--light); padding: 80px 0 100px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: start; }
.contact-form { background: #fff; padding: 34px; border-radius: var(--r); box-shadow: var(--sh); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .83rem; font-weight: 700; margin-bottom: 5px; color: var(--dark); }
.form-group input, .form-group textarea { width: 100%; padding: 11px 15px; border: 1.5px solid #e0d0c0; border-radius: var(--r); font-family: var(--fb); font-size: .88rem; background: var(--bg); transition: var(--tr); color: var(--text); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--cp); outline: none; background: #fff; }
.form-group textarea { resize: vertical; min-height: 95px; }
.form-note { font-size: .75rem; color: var(--text-muted); margin-top: 10px; }
.btn-full { width: 100%; }
.form-success { color: green; margin-top: 10px; font-size: .88rem; display: none; }
.contact-aside { padding-top: 6px; }
.contact-aside h3 { font-family: var(--fh); font-size: 1.25rem; color: var(--dark); margin-bottom: 18px; }

/* === FOOTER === */
.site-footer { background: var(--dark); color: rgba(255,255,255,.8); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.footer-brand h3 { font-family: var(--fh); font-size: 1.5rem; color: var(--ca); margin-bottom: 9px; }
.footer-brand p { font-size: .83rem; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 18px; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: var(--tr); font-size: .9rem; }
.social-links a:hover { background: var(--cp); }
.footer-col h4 { font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ca); margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: .83rem; color: rgba(255,255,255,.65); transition: var(--tr); }
.footer-col ul li a:hover { color: var(--ca); }
.footer-col p { font-size: .83rem; color: rgba(255,255,255,.65); line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: rgba(255,255,255,.55); }

/* === WHATSAPP FLOAT === */
.wa-float { position: fixed; bottom: 24px; right: 24px; background: #25D366; color: #fff; border-radius: 50%; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 4px 16px rgba(37,211,102,.4); z-index: 9999; transition: transform .2s; }
.wa-float:hover { transform: scale(1.1); }

/* === ACCESSIBILITY === */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--cp); color: #fff; padding: 8px 16px; z-index: 9999; border-radius: 0 0 4px 0; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .about-grid { gap: 36px; }
  .contact-grid { gap: 32px; }
  .navbar { max-width: 1100px; }
}

@media (max-width: 768px) {
  /* Nav mobile */
  .nav-center {
    display: none;
    position: absolute;
    top: 62px; left: 0; right: 0;
    background: rgba(44,26,14,.98);
    flex-direction: column;
    padding: 18px 20px 22px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,.1);
    z-index: 999;
  }
  .nav-center.open { display: flex; }
  .nav-center a { padding: 12px 14px; border-radius: 6px; width: 100%; min-height: 44px; display: flex; align-items: center; }

  /* Lang inside mobile menu */
  .nav-lang-mobile {
    display: flex;
    gap: 8px;
    padding-top: 14px;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,.12);
    width: 100%;
  }
  .nav-lang-mobile .lang-btn {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    font-size: .8rem;
  }

  /* Ocultar lang switcher de desktop en mobile */
  .lang-switcher-desktop { display: none !important; }

  .hamburger { display: flex; }
  .nav-right { gap: 8px; }

  /* Sections */
  .hero { min-height: 70vh; }
  .hero-content h1 { font-size: 1.7rem; }
  .about-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-image img { height: 240px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item { height: 180px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .about-section, .history-section, .menu-section, .gallery-section,
  .reviews-section, .location-section, .contact-section, .quicklinks-section { padding: 56px 0 76px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .map-embed iframe { height: 260px; }
  .form-group input, .form-group textarea { font-size: 1rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { height: 220px; }
  .menu-grid { grid-template-columns: 1fr; }
  .quicklinks-grid { grid-template-columns: 1fr 1fr; }
}
