/* ===== Broasty Marino · carta (editorial oscuro) ===== */
:root {
  --ocean-0: #052231;
  --ocean-1: #0a3a52;
  --ocean-2: #0f4a63;
  --line: rgba(230, 245, 250, 0.14);
  --gold: #f5c542;
  --gold-deep: #e0a72c;
  --head: #f6efdc;   /* títulos, cálido */
  --text: #eaf3f5;   /* texto claro */
  --muted: #9fbcc6;  /* descripciones */
  --ink: #06283b;    /* texto sobre dorado */
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Figtree', system-ui, sans-serif;
  background: #03161f;
  color: var(--text);
  padding: 22px 14px 92px;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.menu {
  width: 800px; /* ~ancho de A4 a 96dpi: lo que ves ≈ lo que imprimes */
  max-width: 100%;
  background:
    radial-gradient(120% 80% at 0% 0%, #12546e 0%, transparent 55%),
    radial-gradient(120% 90% at 100% 100%, #0b3247 0%, transparent 55%),
    linear-gradient(165deg, var(--ocean-1) 0%, var(--ocean-0) 100%);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 10, 20, 0.55);
}

/* ===== MASTHEAD ===== */
.masthead {
  position: relative;
  overflow: hidden;
  padding: 40px 26px 34px;
  text-align: center;
}
.citrus { position: absolute; width: 130px; height: 130px; opacity: .9; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.citrus.c1 { top: -34px; left: -30px; transform: rotate(-18deg); }
.citrus.c2 { top: -46px; right: -34px; width: 104px; height: 104px; transform: rotate(20deg); opacity: .85; }

.brandline { display: flex; align-items: center; justify-content: center; gap: 9px; }
.brandline .fish { width: 30px; height: auto; transform: rotate(18deg); filter: drop-shadow(0 3px 5px rgba(0,0,0,.3)); }
.brandline span { font-size: 13px; font-weight: 800; letter-spacing: 4px; color: var(--gold); }

.big {
  font-family: 'Anton', sans-serif;
  font-size: 92px;
  line-height: .9;
  letter-spacing: 3px;
  color: var(--head);
  margin: 4px 0 2px;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.4);
}
.lede { max-width: 460px; margin: 8px auto 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

.meta {
  margin: 20px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 10px;
  max-width: 620px;
}
.meta span {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500; color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
}
.meta b { font-weight: 700; color: #fff; }
.meta svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--gold); }

/* ===== CHIPS ===== */
.chips {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: 7px;
  padding: 12px 16px;
  overflow-x: auto; scrollbar-width: none;
  background: rgba(5, 34, 49, 0.9);
  backdrop-filter: blur(9px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: 0 0 auto;
  font-size: 12px; font-weight: 800; letter-spacing: .3px;
  color: var(--text); text-decoration: none;
  padding: 7px 15px; border-radius: 999px;
  border: 1.5px solid var(--line);
  background: rgba(255,255,255,0.04);
  transition: background .2s, color .2s, border-color .2s, transform .1s;
  white-space: nowrap;
}
.chips a:active { transform: scale(.96); }
.chips a.is-active { background: var(--gold); color: var(--ink); border-color: var(--gold-deep); }

/* ===== MENU BODY ===== */
.menu-body {
  padding: 26px 26px 12px;
  /* banco de peces tenue de fondo (tono sobre tono, se ve en los huecos) */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 28'%3E%3Cpath d='M12 14 2 7v14z' fill='%2313506c'/%3E%3Cellipse cx='24' cy='14' rx='14' ry='9' fill='%2313506c'/%3E%3Ccircle cx='33' cy='11' r='2.2' fill='%230a3a52'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 28'%3E%3Cpath d='M12 14 2 7v14z' fill='%2313506c'/%3E%3Cellipse cx='24' cy='14' rx='14' ry='9' fill='%2313506c'/%3E%3Ccircle cx='33' cy='11' r='2.2' fill='%230a3a52'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 28'%3E%3Cpath d='M12 14 2 7v14z' fill='%2313506c'/%3E%3Cellipse cx='24' cy='14' rx='14' ry='9' fill='%2313506c'/%3E%3Ccircle cx='33' cy='11' r='2.2' fill='%230a3a52'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 28'%3E%3Cpath d='M12 14 2 7v14z' fill='%2313506c'/%3E%3Cellipse cx='24' cy='14' rx='14' ry='9' fill='%2313506c'/%3E%3Ccircle cx='33' cy='11' r='2.2' fill='%230a3a52'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 28'%3E%3Cpath d='M12 14 2 7v14z' fill='%2313506c'/%3E%3Cellipse cx='24' cy='14' rx='14' ry='9' fill='%2313506c'/%3E%3Ccircle cx='33' cy='11' r='2.2' fill='%230a3a52'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 28'%3E%3Cpath d='M12 14 2 7v14z' fill='%2313506c'/%3E%3Cellipse cx='24' cy='14' rx='14' ry='9' fill='%2313506c'/%3E%3Ccircle cx='33' cy='11' r='2.2' fill='%230a3a52'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 6% 4%, 93% 13%, 15% 35%, 85% 53%, 30% 73%, 90% 90%;
  background-size: 58px, 40px, 74px, 48px, 64px, 44px;
}

/* ===== PECES (banco que nada entre secciones) ===== */
.swim { display: flex; align-items: center; justify-content: center; gap: 22px; margin: -6px 0 22px; }
.mini-fish { height: auto; }
.mini-fish .body { fill: #f5c542; }
.mini-fish .fin  { fill: #e29321; }
.mini-fish .gill { fill: none; stroke: #c9801a; stroke-width: 1.4; stroke-linecap: round; opacity: .55; }
.mini-fish .eye  { fill: var(--ink); }
.mini-fish .glint { fill: #fff; }
.mini-fish.coral .body { fill: #ef8354; }
.mini-fish.coral .fin  { fill: #d9623a; }
.mini-fish.coral .gill { stroke: #b4472a; }
.swim .f1 { width: 40px; opacity: .9; }
.swim .f2 { width: 56px; opacity: 1; }
.swim .f3 { width: 42px; opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .swim .mini-fish { animation: bob 4s ease-in-out infinite; }
  .swim .f2 { animation-delay: .5s; }
  .swim .f3 { animation-delay: 1s; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
}

.course {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 30px;
  scroll-margin-top: 64px;
}
.course--rev .photo { order: 2; }

/* FOTO por categoría */
.photo {
  position: relative;
  min-height: 210px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #10495f, #0a3247);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.empty { display: flex; align-items: center; justify-content: center; }
.photo.empty::before {
  content: "";
  width: 46px; height: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c542' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8a2 2 0 0 1 2-2h2l1.2-2h5.6L17 6h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Ccircle cx='12' cy='12.5' r='3.5'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .8;
}
.photo.empty::after {
  content: "Foto de " attr(data-label);
  position: absolute; bottom: 16px; left: 0; right: 0;
  text-align: center; font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
}

.course-body { display: flex; flex-direction: column; }
.course-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-title {
  font-family: 'Anton', sans-serif;
  font-size: 30px; line-height: 1; letter-spacing: 1px;
  color: var(--head);
}
.precio-grupo {
  font-size: 11.5px; font-weight: 800; letter-spacing: .3px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px; padding: 4px 12px;
}

/* ITEMS */
.list { list-style: none; }
.item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.item:last-child { border-bottom: 0; }
.item-main { flex: 1; }
.item-name { font-size: 15px; font-weight: 800; letter-spacing: .3px; color: var(--head); line-height: 1.2; }
.item-desc {
  margin-top: 5px; font-size: 12px; line-height: 1.45; color: var(--muted); max-width: 46ch;
  padding-bottom: 5px; border-bottom: 1.5px solid rgba(245, 197, 66, 0.28);
  display: inline-block;
}
.badge {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 54px; height: 54px; padding: 0 12px;
  border-radius: 999px;
  background: radial-gradient(120% 120% at 30% 20%, #ffdd6b, var(--gold) 60%, var(--gold-deep));
  color: var(--ink);
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.badge i { font-style: normal; font-size: 12px; font-weight: 700; margin-right: 1px; opacity: .8; }

/* ===== FOOTER ===== */
.foot {
  border-top: 1px solid var(--line);
  padding: 24px 26px;
  text-align: center;
  background: rgba(3, 20, 30, 0.4);
}
.sign { font-family: 'Anton', sans-serif; font-size: 24px; letter-spacing: 1px; color: var(--gold); margin-bottom: 14px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 620px; margin: 0 auto; }
.foot-grid span {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: var(--text); text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px;
}
.foot-grid b { color: #fff; font-weight: 700; }
.foot-grid svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--gold); }

.scan-hint { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); padding: 16px; }
.carta-state { padding: 50px 20px; text-align: center; font-weight: 700; color: var(--muted); grid-column: 1 / -1; }

/* ===== PDF BUTTON ===== */
.pdf-btn {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Figtree', sans-serif; font-size: 14px; font-weight: 800;
  color: var(--ink);
  background: linear-gradient(180deg, #ffdd6b, var(--gold));
  border: 2px solid var(--gold-deep);
  border-radius: 999px; padding: 11px 18px; cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: transform .12s, box-shadow .12s;
}
.pdf-btn svg { width: 18px; height: 18px; }
.pdf-btn:hover { transform: translateY(-2px); }
.pdf-btn:active { transform: translateY(0) scale(.97); }

/* ===== MOTION ===== */
@media (prefers-reduced-motion: no-preference) {
  .course { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
  .course.reveal { opacity: 1; transform: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .masthead { padding: 32px 18px 26px; }
  .big { font-size: 64px; }
  .citrus { width: 96px; height: 96px; }
  .menu-body { padding: 20px 16px 8px; }
  .course { grid-template-columns: 1fr; gap: 14px; margin-bottom: 26px; }
  .course--rev .photo { order: 0; }
  .photo { min-height: 172px; }
  .sec-title { font-size: 26px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ===== PRINT / PDF (A4 claro, para clientes) ===== */
@media print {
  /* Mantiene el fondo oscuro en el PDF (como la pantalla). print-color-adjust:exact
     obliga a Chrome a imprimir fondos en vez de descartarlos (por defecto los quita). */
  @page { margin: 0; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  html, body { background: #03161f; }
  body { padding: 9mm; display: block; }
  .menu { width: 100%; max-width: none; border-radius: 0; box-shadow: none; }
  .chips, .pdf-btn, .scan-hint { display: none !important; }

  .swim { break-inside: avoid; }
  .course { display: block; break-inside: avoid; opacity: 1 !important; transform: none !important; margin-bottom: 14px; }
  .photo.empty { display: none; } /* sin foto todavía => solo la lista, sin hueco */
  .item, .badge, .fam-card, .course__card { break-inside: avoid; }
}
