/* Cuba Despierta · Gastronomía (views/gastronomia.php). Se carga solo en /cultura/gastronomia.
   Paleta de site.css; animaciones comunes de redesign.css (kenburns, hx-drift, fadeup, lineup, data-reveal). */

/* ---------- 1. Cabecera con vapor ---------- */
.gh { position: relative; display: flex; align-items: flex-end; min-height: min(100svh, 900px); padding: calc(var(--hdr-h) + 4rem) 0 4.5rem; background: var(--ink-950); color: #fff; overflow: hidden; isolation: isolate; }
.gh-media { position: absolute; inset: 0; z-index: -2; }
.gh-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; filter: saturate(1.05) contrast(1.04); transform-origin: 60% 50%; }
html.js .gh-media img { animation: kenburns 26s var(--ease-out) both, hx-drift 46s ease-in-out 26s infinite alternate; }
.gh::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,14,14,.93) 0%, rgba(14,14,14,.7) 42%, rgba(14,14,14,.1) 80%), linear-gradient(to top, rgba(14,14,14,.92) 0%, rgba(14,14,14,0) 55%); }
@media (max-width: 767px) { .gh::before { background: linear-gradient(to top, rgba(14,14,14,.96) 0%, rgba(14,14,14,.72) 55%, rgba(14,14,14,.5) 100%); } }
/* Vapor: tres volutas difuminadas que suben sobre la cafetera y se deshacen */
.gh-steam { position: absolute; left: calc(54% - 70px); top: calc(31% - 260px); width: 140px; height: 260px; z-index: 0; pointer-events: none; }
.gh-steam i { position: absolute; bottom: 0; left: 50%; width: 76px; height: 170px; margin-left: -38px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,.4) 45%, rgba(255,255,255,0)); opacity: 0; }
html.js .gh-steam i { animation: gh-steam 6.5s ease-in infinite; }
html.js .gh-steam i:nth-child(2) { animation-delay: 2.2s; left: 38%; }
html.js .gh-steam i:nth-child(3) { animation-delay: 4.3s; left: 62%; }
@keyframes gh-steam {
  0% { opacity: 0; transform: translate3d(0, 40px, 0) scale(.5, .6); }
  25% { opacity: .8; }
  60% { transform: translate3d(14px, -90px, 0) scale(1.2, 1.1) rotate(8deg); }
  100% { opacity: 0; transform: translate3d(-10px, -200px, 0) scale(1.9, 1.4) rotate(-6deg); }
}
@media (max-width: 899px) { .gh-steam { display: none; } }
.gh-in { position: relative; width: 100%; }
.gh-kicker { margin-top: 1.8rem; display: flex; align-items: center; gap: .9rem; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.gh-title { margin-top: 1.2rem; font-size: clamp(3rem, 1rem + 7vw, 7rem); font-weight: 800; line-height: .92; letter-spacing: -.035em; text-transform: uppercase; }
.gh-title .serif { color: var(--brand-light); font-size: 1.08em; text-transform: none; }
.gh-lead { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1rem, .95rem + .35vw, 1.2rem); line-height: 1.65; color: #e0e0e0; }
.gh-ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.gh-stats { margin: 3rem 0 0; padding-top: 1.4rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 0; max-width: 46rem; border-top: 1px solid rgba(255,255,255,.2); }
@media (min-width: 640px) { .gh-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gh-stats > div { display: flex; flex-direction: column-reverse; gap: .35rem; padding-right: 1rem; }
.gh-stats dd { margin: 0; font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gh-stats dt { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* ---------- 2. Plato del día ---------- */
.gd { padding-block: clamp(4rem, 3rem + 4vw, 7rem); scroll-margin-top: var(--hdr-h); }
.gd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .gd-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; } }
.gd-img { position: relative; display: block; aspect-ratio: 4 / 3; isolation: isolate; }
.gd-img img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 40px 70px -40px rgba(0,0,0,.55); }
.gd-img::before { content: ''; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; z-index: -1; border: 2px solid var(--brand); }
/* Sello que gira despacio sobre la esquina de la foto */
.gd-stamp { position: absolute; right: -1.2rem; top: -1.6rem; width: clamp(110px, 12vw, 150px); height: auto; background: var(--brand); border-radius: 50%; box-shadow: 0 16px 30px -14px rgba(0,0,0,.5); }
.gd-stamp .s1 { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.5; stroke-dasharray: 3 3; }
.gd-stamp .s2 { fill: none; stroke: rgba(255,255,255,.4); stroke-width: 1; }
.gd-stamp .st { fill: #fff; font-size: 13.5px; font-weight: 800; letter-spacing: .18em; }
.gd-stamp .sm { fill: #fff; font-family: var(--serif); font-style: italic; font-size: 34px; text-anchor: middle; }
html.js .gd-stamp { animation: gd-spin 40s linear infinite; }
@keyframes gd-spin { to { transform: rotate(360deg); } }
@media (max-width: 639px) { .gd-stamp { right: .6rem; top: -1.4rem; } .gd-img::before { inset: .8rem -.6rem -.8rem .8rem; } }
.gd-title { margin-top: .8rem; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.6rem, 1.6rem + 3.2vw, 4.6rem); line-height: .95; letter-spacing: -.02em; }
.gd-title a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 3px no-repeat; transition: background-size .6s var(--ease-out), color .3s; }
.gd-title a:hover { color: var(--brand-dark); background-size: 100% 3px; }
.gd-lema { margin-top: 1rem; font-size: 1.15rem; font-weight: 800; line-height: 1.35; text-transform: uppercase; letter-spacing: -.005em; }
.gd-desc { margin-top: .9rem; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.gd-meta { list-style: none; margin: 1.5rem 0 1.8rem; padding: 1rem 0; display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; border-block: 1px solid var(--line); }
.gd-meta li { display: inline-flex; align-items: center; gap: .45rem; font-size: 13.5px; font-weight: 700; }
.gd-meta svg { color: var(--brand); }

/* ---------- 3. La carta ---------- */
.gc { padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); background: #fff; border-top: 1px solid var(--line); scroll-margin-top: var(--hdr-h); }
.gc-count { font-size: 14px; color: var(--muted); }
.gc-count b { font-size: 1.6rem; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.gc-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 2px solid var(--ink); }
html:not(.js) .gc-tools { display: none; }
.gc-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.gc-tab { position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border: 1px solid var(--line-strong); background: #fff; font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); cursor: pointer; overflow: hidden; isolation: isolate; transition: color .35s var(--ease-out), border-color .35s; }
.gc-tab::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-out); }
.gc-tab span { display: inline-flex; min-width: 22px; height: 22px; padding: 0 .35rem; align-items: center; justify-content: center; background: var(--soft); color: var(--muted); font-size: 11px; letter-spacing: 0; transition: background-color .35s, color .35s; }
.gc-tab:hover, .gc-tab.is-active { color: #fff; border-color: var(--ink); }
.gc-tab:hover::before, .gc-tab.is-active::before { transform: scaleY(1); }
.gc-tab.is-active span { background: var(--brand); color: #fff; }
.gc-tab:focus-visible, .gc-sort select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.gc-sort { display: inline-flex; align-items: center; gap: .6rem; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gc-sort select { padding: .55rem 2rem .55rem .8rem; border: 1px solid var(--line-strong); border-radius: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230e0e0e' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center; -webkit-appearance: none; appearance: none; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }

.gc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 640px) { .gc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Al filtrar u ordenar, las tarjetas salen y entran con un pequeño fundido (js/gastronomia.js) */
.gc-item { transition: opacity .35s ease, transform .45s var(--ease-out); }
.gc-item.is-out { opacity: 0; transform: translate3d(0, 14px, 0) scale(.98); }
.gc-item[hidden] { display: none; }
.gc-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--page); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .35s, transform .6s var(--ease-out), box-shadow .6s; }
.gc-card:hover, .gc-card:focus-visible { border-color: var(--ink); transform: translateY(-6px); box-shadow: 0 28px 48px -30px rgba(0,0,0,.45); }
.gc-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.gc-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--thumb, #ddd); }
.gc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
.gc-card:hover .gc-img img { transform: scale(1.07); filter: saturate(1.12); }
.gc-time { position: absolute; left: .8rem; bottom: .8rem; display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .65rem; background: rgba(14,14,14,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; transition: background-color .35s; }
.gc-card:hover .gc-time { background: var(--brand); }
.gc-body { display: flex; flex: 1; flex-direction: column; gap: .45rem; padding: 1.2rem 1.25rem 1.1rem; }
.gc-tipo { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-dark); }
.gc-name { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 1.3rem + .8vw, 2rem); line-height: 1.02; letter-spacing: -.015em; transition: color .3s; }
.gc-card:hover .gc-name { color: var(--brand-dark); }
.gc-lema { font-size: 14px; line-height: 1.55; color: var(--muted); }
.gc-foot { margin-top: auto; padding-top: .9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px dashed var(--line-strong); font-size: 12.5px; font-weight: 700; }
.gc-yield { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); }
.gc-go { display: inline-flex; align-items: center; gap: .35rem; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-dark); }
.gc-go svg { transition: transform .45s var(--ease-out); }
.gc-card:hover .gc-go svg { transform: translateX(5px); }

/* ---------- 4. Pizarra de la fonda ---------- */
.gp { position: relative; padding-block: clamp(4rem, 3rem + 4vw, 7rem); background: var(--ink-900); color: #fff; overflow: hidden; isolation: isolate; }
/* Textura de pizarra: polvo de tiza muy suave */
.gp::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.06), transparent 55%), radial-gradient(ellipse at 85% 90%, rgba(255,255,255,.04), transparent 50%); }
.gp-note { max-width: 24rem; font-size: 15px; line-height: 1.6; color: #c9c9c9; }
.gp-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.gp-col { padding: 1.6rem 1.4rem; border: 1px dashed rgba(255,255,255,.22); }
@media (min-width: 900px) {
  .gp-board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .gp-col { border: 0; padding: .5rem 2rem 1rem; }
  .gp-col + .gp-col { border-left: 1px dashed rgba(255,255,255,.22); }
  .gp-col:first-child { padding-left: 0; }
  .gp-col:last-child { padding-right: 0; }
}
.gp-h { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 1.4rem + 1vw, 2.3rem); line-height: 1; color: #fff; }
.gp-d { margin-top: .5rem; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-light); }
.gp-col ul { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.gp-col a { display: flex; align-items: baseline; gap: .6rem; padding: .55rem 0; color: #e0e0e0; text-decoration: none; transition: color .25s, transform .45s var(--ease-out); }
.gp-name { font-size: 15.5px; font-weight: 700; }
.gp-dots { flex: 1; min-width: 1.5rem; border-bottom: 2px dotted rgba(255,255,255,.3); transform: translateY(-4px); transition: border-color .25s; }
.gp-min { flex: none; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; transition: color .25s; }
.gp-col a:hover, .gp-col a:focus-visible { color: #fff; transform: translateX(6px); }
.gp-col a:hover .gp-dots { border-color: var(--brand-light); }
.gp-col a:hover .gp-min { color: var(--brand-light); }
.gp-col a:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 2px; }
/* Las líneas de la pizarra se «escriben» una tras otra al aparecer la columna */
html.js .gp-col li { transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + 200ms); }
html.js .gp-col[data-reveal]:not(.is-in) li { opacity: 0; transform: translate3d(-12px, 0, 0); }

/* ---------- 5. Cierre ---------- */
.gx { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
@media (min-width: 900px) { .gx { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.gx-guia { position: relative; display: flex; align-items: flex-end; min-height: 360px; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; background: var(--ink-950); }
.gx-img { position: absolute; inset: 0; z-index: -2; }
.gx-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.gx-guia::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(14,14,14,.95) 0%, rgba(14,14,14,.55) 55%, rgba(14,14,14,.15) 100%); }
.gx-guia:hover .gx-img img { transform: scale(1.06); }
.gx-txt { display: flex; flex-direction: column; gap: .7rem; padding: 2rem; max-width: 40rem; }
.gx-t { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 800; line-height: 1.1; text-transform: uppercase; letter-spacing: -.01em; }
.gx-d { font-size: 14.5px; line-height: 1.6; color: #d6d6d6; }
.gx-go { margin-top: .4rem; display: inline-flex; align-items: center; gap: .4rem; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-light); }
.gx-go svg { transition: transform .45s var(--ease-out); }
.gx-guia:hover .gx-go svg { transform: translateX(5px); }
.gx-guia:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.gx-otros { padding: 1.6rem 1.6rem 1rem; background: #fff; border: 1px solid var(--line); }
.gx-otros ul { list-style: none; margin: .9rem 0 0; padding: 0; }
.gx-otros li { border-top: 1px solid var(--line); }
.gx-otros a { display: flex; align-items: center; gap: .9rem; padding: .95rem 0; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; transition: color .25s; }
.gx-ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; background: var(--soft); color: var(--brand-dark); transition: background-color .35s, color .35s, transform .5s var(--ease-out); }
.gx-n { flex: 1; }
.gx-otros a > svg { color: var(--brand); transition: transform .45s var(--ease-out); }
.gx-otros a:hover { color: var(--brand-dark); }
.gx-otros a:hover .gx-ico { background: var(--brand); color: #fff; transform: rotate(-8deg); }
.gx-otros a:hover > svg { transform: translateX(5px); }

@media (prefers-reduced-motion: reduce) {
  html.js .gh-steam i, html.js .gd-stamp { animation: none; }
  html.js .gh-steam { display: none; }
  .gc-item, .gc-card, .gc-img img, .gp-col a, html.js .gp-col li { transition: none; }
  html.js .gp-col[data-reveal]:not(.is-in) li { opacity: 1; transform: none; }
}
