/* ==========================================================
   SABOR CARIBE · Estilos
   Orden del archivo:
   1. Variables (colores, tipografía)  2. Base  3. Componentes
   4. Secciones (una por una)          5. Responsive
   ========================================================== */

/* ---------- 1. VARIABLES ---------- */
:root {
  --ocean: #0c3b46;        /* azul petróleo: fondo oscuro principal */
  --ocean-deep: #082a33;   /* versión más oscura (barra de aviso, footer) */
  --lagoon: #17a398;       /* turquesa */
  --lagoon-dark: #0f7d75;  /* turquesa oscuro, para textos sobre fondo claro */
  --mango: #f4b63f;        /* color de acento: botones principales */
  --mango-dark: #dd9d22;
  --foam: #f2f8f7;         /* fondo claro */
  --white: #ffffff;
  --ink: #10272c;          /* texto principal */
  --muted: #4b6168;        /* texto secundario */

  --font-title: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 8px 24px rgba(12, 59, 70, 0.1);
  --header-height: 68px;
}

/* ---------- 2. BASE ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header-height) + 8px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--foam);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.1; margin: 0; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--mango); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--mango); color: var(--ink); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. COMPONENTES ---------- */

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--mango); color: var(--ink); }
.btn-primary:hover { background: var(--mango-dark); }
.btn-outline { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--ocean); }
.btn-whatsapp { background: #1f9d55; color: var(--white); font-size: 1.1rem; padding: 1rem 2rem; }
.btn-whatsapp:hover { background: #178045; }
.btn-whatsapp.is-highlighted { animation: pulse 0.9s ease 2; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0.5); }
  50% { box-shadow: 0 0 0 14px rgba(31, 157, 85, 0); }
}

/* Encabezados de sección */
.section { padding-block: 5rem; }
.section-head { margin-bottom: 2.25rem; }
.section-head h2, .about-text h2, .contact h2 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin-top: 0.5rem; }

/* Mensaje flotante */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 200;
  transform: translate(-50%, 1.5rem); opacity: 0; pointer-events: none;
  width: min(92vw, 420px); padding: 0.9rem 1.2rem; border-radius: 12px;
  background: var(--ocean-deep); color: var(--white); font-size: 0.95rem; text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 4. SECCIONES ---------- */

/* Barra de aviso */
.demo-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem;
  padding: 0.5rem 1rem; background: var(--ocean-deep); color: #cfe5e4;
  font-size: 0.85rem; text-align: center;
}
.demo-bar a { color: var(--mango); font-weight: 600; }

/* Navbar */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ocean); color: var(--white);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); }

.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font: 800 1.35rem var(--font-title); }
.logo-icon { width: 34px; height: 34px; }

.nav-links { display: flex; gap: 0.25rem; }
.nav-links a {
  display: block; padding: 0.5rem 0.9rem; border-radius: 999px; text-decoration: none; font-weight: 500;
  color: #d6ebea; transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.nav-links a.is-active { color: var(--ocean); background: var(--mango); }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; margin: 5px auto; background: var(--white); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; background: var(--ocean); color: var(--white); padding: 3.5rem 0 8rem; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 3rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.02em; }
.hero-lead { margin-top: 1.25rem; max-width: 34rem; font-size: 1.2rem; color: #cfe5e4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 1; }
.hero-visual::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 2px dashed rgba(244, 182, 63, 0.55);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); }

.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; fill: var(--foam); }

/* Animación de entrada del hero (una sola, al cargar la página) */
.hero-text > * { animation: rise 0.7s ease both; }
.hero-text > :nth-child(2) { animation-delay: 0.12s; }
.hero-text > :nth-child(3) { animation-delay: 0.24s; }
.hero-visual { animation: rise 0.9s ease 0.2s both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Nosotros */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3.5rem; }
.about-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text p { margin-top: 1rem; color: var(--muted); max-width: 34rem; }
.about-text h2 { margin-bottom: 0.5rem; }

/* Menú */
.menu { background: var(--white); }
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.filter-btn {
  padding: 0.55rem 1.2rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(12, 59, 70, 0.25); background: transparent; color: var(--ocean);
  font: 600 0.95rem var(--font-body); transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { border-color: var(--ocean); }
.filter-btn.is-active { background: var(--ocean); border-color: var(--ocean); color: var(--white); }
.menu-count { margin: 1rem 0 1.5rem; font-size: 0.9rem; color: var(--muted); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.dish-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--foam); border: 1px solid rgba(12, 59, 70, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: cardIn 0.4s ease both;
}
.dish-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.dish-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dish-body { display: flex; flex: 1; flex-direction: column; padding: 1.1rem 1.2rem 1.25rem; }
.dish-body h3 { font-size: 1.3rem; }
.dish-body p { margin-top: 0.4rem; font-size: 0.97rem; color: var(--muted); }
.dish-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 1rem; }
.dish-category { font-size: 0.85rem; color: var(--lagoon-dark); font-weight: 600; }
.price { font: 800 1.2rem var(--font-title); color: var(--ocean); }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Galería */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 1rem; grid-auto-flow: dense; }
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.g-big { grid-column: span 2; grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-wide-3 { grid-column: span 3; }

/* Información */
.info { background: var(--ocean); color: var(--white); }
.info .section-head p { color: #a9c8c7; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.info-block { min-width: 0; overflow-wrap: anywhere; padding: 1.75rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.info-block h3 { font-size: 1.35rem; color: var(--mango); margin-bottom: 0.9rem; }
.info-block p { color: #d6ebea; }
.info-note { margin-top: 0.9rem; font-size: 0.88rem; color: #a9c8c7 !important; }
.hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; padding: 0.45rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.hours div:last-child { border-bottom: 0; }
.hours dt { color: #d6ebea; }
.hours dd { margin: 0; font-weight: 600; white-space: nowrap; }

/* Contacto */
.contact-inner { text-align: center; max-width: 40rem; }
.contact p { margin: 1rem 0 2rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ocean-deep); color: #cfe5e4; padding-block: 2.5rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: start; }
.footer-brand { font: 800 1.4rem var(--font-title); color: var(--white); }
.footer-small { font-size: 0.88rem; color: #9fbfbe; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--mango); text-decoration: underline; }
.footer-inner > .footer-small:last-child { grid-column: 1 / -1; }

/* ---------- 5. RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-inner, .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding-bottom: 6rem; }
  .hero-visual { width: min(100%, 320px); }
  .info-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g-wide-3, .g-wide { grid-column: span 2; }
  .section { padding-block: 3.5rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ocean); border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.25);
    display: none;
  }
  .site-header.nav-open .nav { display: block; animation: cardIn 0.25s ease both; }
  .nav-links { flex-direction: column; padding: 0.75rem 1.25rem 1.25rem; }
  .nav-links a { padding: 0.8rem 1rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ---------- 6. REDISEÑO: atardecer caribeño con arcos ---------- */
:root { --ocean: #17163b; --ocean-deep: #0f0e2a; --coral: #cf3a24; --lagoon: #19b5a5; --lagoon-dark: #0b7f73; --mango: #ffb627; --mango-dark: #e69d0f; --foam: #e6f6f3; --ink: #1a1838; --muted: #53506e; --font-title: "Young Serif", Georgia, serif; --shadow: 0 10px 26px rgba(23, 22, 59, 0.14); }

/* Young Serif solo tiene un grosor: se quita el negrita de los títulos */
.hero h1, .about-text h2, .section-head h2, .contact h2, .dish-body h3, .info-block h3, .price, .logo, .footer-brand { font-weight: 400; }

.hero { background: var(--coral); padding-bottom: 7.5rem; }
.hero h1 { letter-spacing: 0; }
.hero-lead { color: #fff; }
.hero-wave { height: 60px; }
.hero-visual { width: min(100%, 380px); aspect-ratio: 4 / 5; }
.hero-visual::before { inset: auto; top: 16px; left: 16px; right: -16px; bottom: -16px; border: 3px solid var(--mango); border-radius: 999px 999px 20px 20px; }
.hero-visual img { border-radius: 999px 999px 20px 20px; box-shadow: none; }

.about-image { max-width: 420px; justify-self: center; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); }

.menu { background: #fff; }
.filter-btn { border-color: var(--ocean); }
.dish-card { border: 0; border-radius: 20px; }
.price { color: var(--coral); }
.gallery-grid figure, .info-block { border-radius: 20px; }

@media (max-width: 900px) {
  .hero { padding-bottom: 5.5rem; }
  .hero-visual { width: min(100%, 300px); }
}
