/* =========================================================================
   KIOSKO 7 ISLAS EL REMO — Sistema de diseño
   Estética marina fresca: azules, turquesa, arena. Mobile-first, nivel Awwwards.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --deep: #0a4d68;        /* azul marino profundo */
  --sea: #177e89;         /* teal */
  --sea-2: #11606a;       /* teal oscuro */
  --turq: #20b2aa;        /* turquesa */
  --turq-soft: #d6f1ee;   /* turquesa claro */
  --sand: #f4ecd8;        /* arena */
  --sand-soft: #faf6ec;   /* arena clara (fondo) */
  --sand-deep: #e9ddc0;
  --white: #ffffff;
  --foam: #eef7f6;        /* espuma (fondo frío) */

  --bg: var(--sand-soft);
  --bg-soft: var(--sand);
  --bg-cool: var(--foam);
  --card: #ffffff;
  --ink: #0c2b36;
  --ink-2: #46616c;
  --ink-3: #7d939c;
  --line: #e3dcc8;
  --footer: #082f3e;
  --footer-ink: #b8ccd2;

  --accent: var(--sea);
  --accent-2: var(--sea-2);
  --accent-soft: var(--turq-soft);
  --gold: #e0a63a;        /* para estrellas / Solete */
  --success: #2e8b6b;
  --danger: #b14b3a;

  --shadow-sm: 0 1px 2px rgba(12, 43, 54, .06), 0 4px 12px rgba(12, 43, 54, .06);
  --shadow-md: 0 6px 24px rgba(12, 43, 54, .12);
  --shadow-lg: 0 20px 50px rgba(12, 43, 54, .18);
  --radius: 18px;
  --radius-sm: 12px;

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  --nav-h: 70px;
  --maxw: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--turq-soft); color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Tipografía utilitaria ---------- */
.display { font-family: var(--font-display); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--sea);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--turq); border-radius: 2px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--sea); color: #fff; box-shadow: 0 8px 20px rgba(23,126,137,.32); }
.btn-primary:hover { background: var(--sea-2); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(23,126,137,.4); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--sea); color: var(--sea); }
.btn-dark { background: var(--deep); color: #fff; }
.btn-dark:hover { background: #0d3a50; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.3); }
.btn-whatsapp:hover { background: #1fb457; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header .inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
}
.site-header.scrolled { background: rgba(250,246,236,.92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--sea), var(--turq));
  display: grid; place-items: center; color: #fff; font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.05; }
.brand-sub { display: block; font-family: var(--font-body); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }

.nav-links { display: none; align-items: center; gap: 2px; }
.nav-links a {
  padding: 9px 13px; border-radius: 999px; font-size: .93rem; font-weight: 500; color: var(--ink-2);
  transition: color .16s, background .16s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--turq-soft); }


/* Header transparente sobre el hero oscuro del landing: texto claro para contraste */
.site-header.on-hero .brand-name { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.site-header.on-hero .brand-sub { color: rgba(255,255,255,.72); }
.site-header.on-hero .nav-links a { color: rgba(255,255,255,.88); text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.site-header.on-hero .nav-links a:hover,
.site-header.on-hero .nav-links a.active { color: #fff; background: rgba(255,255,255,.16); }


.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Selector de idioma */
.lang-switch {
  display: flex; align-items: center; gap: 2px; padding: 3px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.lang-switch button {
  padding: 5px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .02em;
  color: var(--ink-3); transition: background .16s, color .16s;
}
.lang-switch button.active { background: var(--sea); color: #fff; }
.lang-switch button:not(.active):hover { color: var(--sea); }

.burger { width: 44px; height: 44px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: background .2s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, top .2s; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.open span { background: transparent; }
.burger.open span::before { top: 0; transform: rotate(45deg); }
.burger.open span::after { top: 0; transform: rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 12px 20px 20px; transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
  max-height: calc(100vh - var(--nav-h)); overflow: auto;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { display: block; padding: 14px 6px; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 14px; }
.mobile-menu .lang-row { display: flex; gap: 8px; margin-top: 16px; }
.mobile-menu .lang-row button { flex: 1; padding: 9px 12px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .85rem; color: var(--ink-2); transition: all .16s; }
.mobile-menu .lang-row button.active { background: var(--sea); border-color: var(--sea); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,47,62,.80) 0%, rgba(8,47,62,.55) 12%, rgba(8,47,62,.16) 42%, rgba(8,47,62,.86) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px 76px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(8px); font-size: .82rem; font-weight: 600;
  margin-bottom: 20px; border: 1px solid rgba(255,255,255,.24);
}
.hero-badge .sun { color: #ffd76b; font-size: 1.05rem; line-height: 0; }
.hero h1 { font-size: clamp(2.35rem, 7.5vw, 4.6rem); color: #fff; max-width: 16ch; margin-bottom: .4em; text-wrap: balance; }
.hero p.lead { font-size: clamp(1.02rem, 2.4vw, 1.28rem); max-width: 48ch; color: rgba(255,255,255,.94); margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-hero-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.btn-hero-ghost:hover { background: rgba(255,255,255,.26); }
.hero-scroll { position: absolute; bottom: 26px; right: 26px; z-index: 2; color: rgba(255,255,255,.85); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.hero-scroll::after { content: '↓'; animation: bob 1.6s ease infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
.section-head p { color: var(--ink-2); font-size: 1.06rem; }
.lead-in { color: var(--ink-2); }

/* ---------- Feature cards (Inicio) ---------- */
.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.feature-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-sm); padding: 26px 24px;
  border: 1px solid var(--line); transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; background: var(--turq-soft); }
.feature-card:nth-child(2) .ic { background: var(--sand); }
.feature-card:nth-child(3) .ic { background: #e3ecf4; }
.feature-card h3 { font-size: 1.3rem; }
.feature-card p { color: var(--ink-2); font-size: .97rem; margin-bottom: 0; }

/* ---------- Banda historia (Inicio) ---------- */
.story-strip { background: var(--deep); color: var(--footer-ink); position: relative; overflow: hidden; }
.story-strip .container { display: grid; gap: 32px; grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; }
.story-strip h2 { color: #fff; }
.story-strip p { color: var(--footer-ink); }
.story-strip .story-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.story-strip .story-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Galería ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.06); }

/* ---------- Carta (platos) ---------- */
.menu-section { margin-bottom: 52px; }
.menu-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.menu-section-head .emoji { font-size: 1.7rem; }
.menu-section-head h3 { font-size: 1.7rem; margin: 0; }
.menu-section .cat-desc { color: var(--ink-2); margin-bottom: 18px; max-width: 62ch; }
.dish-list { display: grid; gap: 0; }
.dish {
  padding: 20px 0; border-bottom: 1px dashed var(--line);
  display: grid; gap: 4px; grid-template-columns: 1fr auto;
}
.dish:last-child { border-bottom: none; }
.dish-top { display: flex; align-items: baseline; gap: 10px; grid-column: 1 / -1; }
.dish-top h4 { font-size: 1.14rem; margin: 0; font-family: var(--font-body); font-weight: 700; }
.dish-top .dots { flex: 1; border-bottom: 2px dotted var(--sand-deep); transform: translateY(-4px); }
.dish-price { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--sea); white-space: nowrap; }
.dish-price small { font-family: var(--font-body); font-size: .78rem; color: var(--ink-3); font-weight: 500; }
.dish-desc { color: var(--ink-2); font-size: .94rem; max-width: 60ch; grid-column: 1 / -1; }
.dish .tags { grid-column: 1 / -1; margin-top: 8px; }

/* ---------- Etiquetas ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.tag-vegano { background: #e3f0df; color: #4c7a3f; }
.tag-vegetariano { background: #dff0ea; color: #2e6b5c; }
.tag-picante { background: #fbe4e0; color: #b14b3a; }
.tag-singluten { background: var(--turq-soft); color: #116a68; }

/* ---------- Formularios ---------- */
.form-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 28px 24px; }
.form-note { font-size: .84rem; color: var(--ink-3); margin-top: 10px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(23,126,137,.14); }
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr; }

/* ---------- Info cards ---------- */
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); height: 100%; }
.info-card h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 9px; }
.info-card p, .info-card li { color: var(--ink-2); font-size: .96rem; }
.info-card a { color: var(--sea); font-weight: 600; }
.info-card a:hover { text-decoration: underline; }
.horario-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.horario-row:last-of-type { border-bottom: none; }
.horario-row b { color: var(--ink); }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); line-height: 0; }
.map-frame iframe { width: 100%; height: 360px; border: 0; }

/* ---------- Reseñas ---------- */
.reviews-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.review-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.review-card .stars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; margin-bottom: 10px; }
.review-card p { font-size: .98rem; }
.review-card .who { display: flex; align-items: center; gap: 10px; }
.review-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--turq-soft); display: grid; place-items: center; font-weight: 700; color: var(--sea-2); }
.review-card .who .name { font-weight: 600; font-size: .94rem; }
.review-card .who .zone { font-size: .8rem; color: var(--ink-3); }

/* ---------- CTA final ---------- */
.final-cta { background: var(--deep); color: #fff; text-align: center; position: relative; overflow: hidden; }
.final-cta h2 { color: #fff; font-size: clamp(1.8rem, 4.6vw, 2.7rem); }
.final-cta p { color: var(--footer-ink); }
.final-cta .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--footer-ink); padding: 56px 0 0; }
.site-footer .grid { display: grid; gap: 34px; grid-template-columns: 1fr; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.site-footer a { color: var(--footer-ink); display: block; padding: 4px 0; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: var(--footer-ink); }
.site-footer p { font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .82rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.social-row a { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.08); padding: 9px 14px; border-radius: 999px; }

/* ---------- FAB WhatsApp ---------- */
.wa-fab {
  position: fixed; right: 18px; bottom: 90px; z-index: 80; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .2s;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 28px; height: 28px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .3s; z-index: 200; white-space: nowrap; max-width: 92vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Animaciones ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Router ---------- */
.view { display: none; }
.view.active { display: block; }
.page-hero { position: relative; padding: calc(var(--nav-h) + 60px) 0 56px; background: linear-gradient(180deg, var(--bg-cool), var(--bg)); }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); max-width: 22ch; }
.page-hero p { color: var(--ink-2); max-width: 62ch; font-size: 1.08rem; }

.contacto-grid { display: grid; gap: 28px; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .story-strip .container { grid-template-columns: 1fr 1fr; align-items: center; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .burger { display: none; }
  .site-footer .grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
  .hero { min-height: 88vh; }
  .section { padding: 96px 0; }
  .contacto-grid { grid-template-columns: 1.1fr 1fr; }
}
@media (max-width: 380px) {
  .lang-switch button { padding: 5px 7px; font-size: .7rem; }
  .brand-name { font-size: 1rem; }
}
