@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Inter:wght@500;600;700;800&display=swap');
/* Títulos: Lilita One (Google Fonts, licencia libre OFL). Las fuentes del juego no se usan por licencia. */

/* Paleta de Tourist Trap (sacada del key art y del logo) */
:root {
  --cream: #fffaeb;   /* relleno del logo: fondo */
  --foam: #eaf3f1;
  --choco: #3e130f;   /* contorno del logo: texto */
  --brown: #632f22;
  --terra: #905d55;
  --peach: #ebb38c;   /* arena */
  --sky: #8ad6e3;     /* cielo */
  --sea: #1f6f8b;     /* mar: botones */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--choco); font-family: 'Inter', sans-serif; overflow-x: hidden; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }
img { display: block; max-width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Portada ---------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; background: var(--sky); }

/* Toldo de chiringuito: rayas + borde festoneado */
.awning {
  position: relative;
  height: 64px;
  flex-shrink: 0;
  background: repeating-linear-gradient(90deg, var(--peach) 0 64px, var(--cream) 64px 128px);
  border-bottom: 3px solid var(--choco);
  z-index: 2;
}
.awning::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 34px;
  background:
    radial-gradient(circle at 32px 0, var(--peach) 29px, var(--choco) 29.5px 32px, transparent 32.5px) 0 0 / 128px 34px repeat-x,
    radial-gradient(circle at 96px 0, var(--cream) 29px, var(--choco) 29.5px 32px, transparent 32.5px) 0 0 / 128px 34px repeat-x;
}

.hero-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-sky {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: 70px clamp(24px, 5vw, 96px) 50px;
}
.hero-kicker { margin: 0; font-family: 'Lilita One', sans-serif; font-size: clamp(12px, 0.95vw, 20px); letter-spacing: 0.22em; text-transform: uppercase; color: var(--brown); }

/* Letras como las del logo: relleno crema, contorno chocolate y sombra */
.studio {
  margin: 0;
  letter-spacing: 0.02em !important;
  display: flex; flex-direction: column;
  font-family: 'Lilita One', sans-serif;
  font-size: min(9.5vw, 19vh);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--cream);
  -webkit-text-stroke: 0.05em var(--choco);
  paint-order: stroke fill;
  text-shadow: 0.06em 0.07em 0 var(--brown);
  transform: rotate(-3deg);
  transform-origin: left center;
}
.studio span:last-child { margin-left: 0.5em; color: var(--peach); }
.hero-sub { margin: 0; max-width: 30em; font-size: clamp(16px, 1.2vw, 24px); line-height: 1.5; font-weight: 600; }
.hero-sub strong { font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { font-family: 'Lilita One', sans-serif; font-size: clamp(13px, 0.95vw, 19px); text-decoration: none; padding: 0.85em 1.3em; border: 3px solid var(--choco); box-shadow: 5px 5px 0 var(--choco); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--choco); }
.btn-sea { background: var(--sea); color: var(--cream); }
.btn-line { background: var(--cream); color: var(--choco); }

.hero-art { position: relative; overflow: hidden; border-left: 3px solid var(--choco); display: block; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; transition: transform 0.6s ease; }
.hero-art:hover img { transform: scale(1.03); }
.sticker {
  position: absolute; top: 60px; right: 28px;
  font-family: 'Lilita One', sans-serif; font-size: clamp(13px, 1vw, 20px); text-transform: uppercase;
  background: var(--peach); color: var(--choco);
  border: 3px solid var(--choco); padding: 0.6em 0.9em;
  box-shadow: 5px 5px 0 var(--choco);
  transform: rotate(5deg);
}

/* ---------- Secciones ---------- */
main { max-width: 1400px; margin: 0 auto; }
.section { padding: 90px 64px 20px; }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 40px; }
.section-title { font-family: 'Lilita One', sans-serif; font-size: clamp(32px, 5vw, 64px); text-transform: uppercase; margin: 0; color: var(--brown); }
.head-dots { flex: 1; align-self: baseline; font-size: clamp(32px, 5vw, 64px); height: 0.72em; background-image: radial-gradient(var(--peach) 30%, transparent 32%); background-size: 0.24em 0.24em; background-repeat: space; }

.feature { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); border: 3px solid var(--choco); box-shadow: 8px 8px 0 var(--choco); }
.feature-art { position: relative; min-height: 380px; overflow: hidden; border-right: 3px solid var(--choco); }
.feature-art > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-logo { display: none; }
.badge { position: absolute; top: 16px; left: 16px; font-family: 'Lilita One', sans-serif; font-size: 12px; text-transform: uppercase; background: var(--choco); color: var(--cream); padding: 6px 10px; transform: rotate(-3deg); }
.feature-body { background: var(--sky); color: var(--choco); padding: clamp(24px, 3vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.feature-label { margin: 0; align-self: flex-start; font-family: 'Lilita One', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; background: var(--choco); color: var(--cream); padding: 5px 10px; transform: rotate(-2deg); }
.feature-summary { margin: 0; font-size: clamp(16px, 1.25vw, 22px); line-height: 1.55; font-weight: 600; }
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-weight: 700; }
.feature-list li { position: relative; padding-left: 18px; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; background: var(--choco); }
.feature-tags { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.feature-tags span:not(:last-child)::after { content: '/'; margin-left: 8px; opacity: 0.45; }

.story { max-width: 780px; margin: 48px 0 0; font-size: 17px; line-height: 1.7; font-weight: 500; color: var(--brown); }
.story p { margin: 0 0 14px; }

.block-title { font-family: 'Lilita One', sans-serif; font-size: 18px; text-transform: uppercase; letter-spacing: 0.06em; margin: 46px 0 16px; color: var(--brown); scroll-margin-top: 30px; }
.video { background: #000; border: 3px solid var(--choco); box-shadow: 8px 8px 0 var(--sky); }
.video video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery a { display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 3px solid var(--choco); box-shadow: 5px 5px 0 var(--peach); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery-vid { overflow: hidden; border: 3px solid var(--choco); box-shadow: 5px 5px 0 var(--peach); background: var(--choco); aspect-ratio: 16 / 10; }
.gallery-vid video { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Minijuegos de cocina: cuatro animaciones con su nombre, mismo marco que la galería */
.minigames { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.minigames figure { margin: 0; border: 3px solid var(--choco); box-shadow: 5px 5px 0 var(--peach); background: var(--choco); }
.minigames img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.minigames figcaption { font-family: 'Lilita One', sans-serif; font-size: 16px; text-align: center; color: var(--cream); padding: 6px 4px 8px; }
@media (max-width: 1000px) { .minigames { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* El altavoz del vídeo asoma por encima del título: más aire para que no pise los minijuegos */
.minigames + .block-title { margin-top: 90px; }

/* ---------- Equipo ---------- */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.team li { padding: 22px; display: flex; flex-direction: column; gap: 6px; min-height: 120px; justify-content: flex-end; border: 3px solid var(--choco); }
.team strong { font-family: 'Lilita One', sans-serif; font-size: 18px; line-height: 1.15; }
.team span { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; }
.team .c0 { background: var(--sky); }
.team .c1 { background: var(--peach); }
.team .c2 { background: var(--foam); }

/* ---------- Pie ---------- */
.footer { margin-top: 80px; background: var(--choco); color: var(--cream); padding: 30px 64px 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; font-weight: 800; }
.wip { font-family: 'Lilita One', sans-serif; text-transform: uppercase; letter-spacing: 0.12em; background: var(--peach); color: var(--choco); padding: 6px 12px; transform: rotate(-2deg); }

/* ---------- Pantallas ---------- */
@media (max-width: 1000px) {
  .feature { grid-template-columns: 1fr; }
  .feature-art { min-height: 0; aspect-ratio: 16 / 9; border-right: none; border-bottom: 3px solid var(--choco); }
}
@media (max-width: 800px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sky { padding: 56px 22px 36px; }
  .studio { font-size: 17vw; }
  .hero-art { min-height: 62vw; border-left: none; border-top: 3px solid var(--choco); }
  .sticker { top: 18px; right: 14px; }
  .section { padding: 60px 20px 10px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { padding: 24px 20px 32px; }
}


/* =====================================================================
   Decoración con los dibujos del juego
   ===================================================================== */
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 22px; }
.sky-sun { position: absolute; top: 70px; right: 6%; width: clamp(90px, 10vw, 180px); aspect-ratio: 1; z-index: 3; cursor: pointer; }
.sky-sun img, .nav-sky img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.4s ease; }
.sky-sun .sun, .nav-sky .sun { animation: sun-spin 40s linear infinite; }
.sky-sun .moon, .nav-sky .moon { opacity: 0; transform: rotate(-120deg) scale(0.3); }
.sky-sun:hover .sun { animation-duration: 6s; }
.sky-cloud { position: absolute; z-index: 1; opacity: 0.95; pointer-events: none; }
.cloud-1 { top: 16%; width: clamp(160px, 18vw, 340px); animation: cloud-drift 55s linear infinite; }
.cloud-2 { bottom: 8%; width: clamp(130px, 14vw, 260px); animation: cloud-drift 75s linear infinite; animation-delay: -30s; }
@keyframes cloud-drift { from { left: -30%; } to { left: 105%; } }
@keyframes sun-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .sky-sun .sun, .nav-sky .sun, .sky-cloud { animation: none; }
  .cloud-1 { left: 55%; } .cloud-2 { left: 8%; }
}

/* Franja de azulejo andaluz (textura del chiringuito del juego) */
.tiles-band { height: 56px; background: url('assets/img/deco/azulejo.jpg') 0 0 / 56px 56px repeat-x; border-top: 3px solid var(--choco); border-bottom: 3px solid var(--choco); }
.footer { margin-top: 0; }
main + .tiles-band { margin-top: 80px; }

/* Logo del juego en grande en lugar del título de sección */
.tt-logo { display: block; width: min(520px, 80%); margin: 0 auto 40px; filter: drop-shadow(6px 8px 0 rgba(62, 19, 15, 0.18)); }

/* La historia con la viñeta */
.story { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 60px); align-items: center; max-width: none; margin-top: 64px; }
.story-text .block-title { margin-top: 0; }
.comic { margin: 0; transform: rotate(-3deg); filter: drop-shadow(8px 8px 0 var(--peach)); }
.comic img { width: 100%; height: auto; }
.stars { display: flex; gap: 6px; margin: 4px 0 16px; }
.stars img { width: 42px; height: auto; }

/* La carta: pizarra de menú */
.menu { position: relative; margin-top: 70px; background: var(--foam); border: 3px solid var(--choco); box-shadow: 8px 8px 0 var(--peach); padding: clamp(26px, 3vw, 44px); }
.menu-title { margin: 0 0 26px; text-align: center; font-family: 'Lilita One', sans-serif; font-size: clamp(28px, 3.2vw, 46px); color: var(--brown); }
.menu-espeto { position: absolute; top: -34px; right: 30px; width: clamp(140px, 16vw, 230px); transform: rotate(-8deg); }
.menu-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 22px; }
.menu-grid li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.menu-grid img { width: 100%; max-width: 190px; height: 130px; object-fit: contain; transition: transform 0.25s ease; }
.menu-grid li:hover img { transform: translateY(-6px) rotate(-4deg); }
.menu-grid span { font-family: 'Lilita One', sans-serif; font-size: 20px; color: var(--choco); }

/* Sombrilla junto al equipo */

@media (max-width: 800px) {
  .story { grid-template-columns: 1fr; }
  .comic { max-width: 280px; margin: 0 auto; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-espeto { width: 120px; top: -26px; right: 12px; }
  .sky-sun { top: 20px; }
}

/* Logo del estudio (archivo original del equipo) */
.studio-logo { margin: 0; }
.studio-logo img { height: min(46vh, 440px); width: auto; max-width: 100%; filter: drop-shadow(6px 8px 0 rgba(15, 42, 82, 0.18)); }


/* =====================================================================
   Modo noche: se activa pulsando el sol (checkbox #night, paleta en .page)
   ===================================================================== */
.night-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
#night:focus-visible ~ .page .nav-sky { outline: 3px dashed var(--choco); outline-offset: 6px; border-radius: 50%; }

#night:checked ~ .page {
  --cream: #121a33;   /* fondo */
  --foam: #1c2748;
  --choco: #fff5dc;   /* texto y bordes */
  --brown: #f0bc5e;   /* títulos: mostaza del logo del estudio */
  --peach: #e38b5a;
  --sky: #1f3263;
  --sea: #f0bc5e;
}
#night:checked ~ .page .sky-sun .sun, #night:checked ~ .page .nav-sky .sun { opacity: 0; transform: rotate(160deg) scale(0.3); }
#night:checked ~ .page .sky-sun .moon, #night:checked ~ .page .nav-sky .moon { opacity: 1; transform: none; }
#night:checked ~ .page .sky-cloud { opacity: 0.3; }
#night:checked ~ .page .hero-art img,
#night:checked ~ .page .feature-art img { filter: brightness(0.7) saturate(0.8) hue-rotate(-10deg); }
#night:checked ~ .page .hero-art::after { content: ''; position: absolute; inset: 0; background: rgba(18, 26, 51, 0.28); pointer-events: none; }
#night:checked ~ .page .footer { background: #0b1224; color: #fff5dc; }
#night:checked ~ .page .btn-sea { color: #121a33; }
#night:checked ~ .page .studio-logo img { filter: drop-shadow(0 0 22px rgba(240, 188, 94, 0.35)); }

/* Estrellas del cielo nocturno */
.night-stars {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background-image:
    radial-gradient(2px 2px at 12% 22%, #fff5dc 50%, transparent 51%),
    radial-gradient(2px 2px at 30% 12%, #fff5dc 50%, transparent 51%),
    radial-gradient(3px 3px at 46% 30%, #f0bc5e 50%, transparent 51%),
    radial-gradient(2px 2px at 62% 16%, #fff5dc 50%, transparent 51%),
    radial-gradient(2px 2px at 80% 40%, #fff5dc 50%, transparent 51%),
    radial-gradient(3px 3px at 20% 62%, #fff5dc 50%, transparent 51%),
    radial-gradient(2px 2px at 54% 74%, #f0bc5e 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 70%, #fff5dc 50%, transparent 51%),
    radial-gradient(2px 2px at 8% 88%, #fff5dc 50%, transparent 51%),
    radial-gradient(3px 3px at 72% 90%, #fff5dc 50%, transparent 51%);
  transition: opacity 0.8s ease;
}
#night:checked ~ .page .night-stars { opacity: 1; animation: stars-twinkle 3.5s ease-in-out infinite; }
@keyframes stars-twinkle { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { #night:checked ~ .page .night-stars { animation: none; } }

/* Transición suave del cambio de paleta */
body, .hero, .hero-sky, .awning, .feature, .feature-body, .menu, .team li, .footer, .btn, .badge, .sticker, .video, .gallery a, .tiles-band {
  transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

/* .page lleva el fondo para que cambie con la paleta */
.page { background: var(--cream); color: var(--choco); min-height: 100vh; transition: background-color 0.6s ease, color 0.6s ease; }


/* =====================================================================
   Barra de navegación + páginas
   ===================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 10px clamp(16px, 3vw, 48px);
  background: var(--cream);
  border-bottom: 3px solid var(--choco);
  transition: background-color 0.6s ease, border-color 0.6s ease;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Lilita One', sans-serif; font-size: 22px; color: var(--brown); }
.brand img { height: 44px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(6px, 1.4vw, 22px); }
.nav a { font-family: 'Lilita One', sans-serif; font-size: 18px; text-decoration: none; color: var(--choco); padding: 6px 10px; border-bottom: 3px solid transparent; transition: border-color 0.2s ease, color 0.2s ease; }
.nav a:hover { border-bottom-color: var(--peach); }
.nav a.is-active { border-bottom-color: var(--choco); }
.nav a.nav-cta { background: var(--sea); color: var(--cream); border: 3px solid var(--choco); box-shadow: 4px 4px 0 var(--choco); padding: 6px 14px; }
.nav a.nav-cta:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--choco); }
.nav a.nav-cta.is-active { background: var(--peach); color: var(--choco); }
.nav-sky { position: relative; width: 46px; height: 46px; flex-shrink: 0; cursor: pointer; }
.hero { min-height: calc(100vh - 68px); }

/* Cabecera de subpáginas: toldo + cielo */
.page-hero { position: relative; overflow: hidden; background: var(--sky); padding: 70px clamp(24px, 5vw, 96px) 60px; text-align: center; transition: background-color 0.6s ease; }
.page-hero .awning { position: absolute; top: 0; left: 0; right: 0; }
.page-hero-copy { position: relative; z-index: 2; }
.page-title { margin: 20px 0 8px; font-family: 'Lilita One', sans-serif; font-size: clamp(40px, 6vw, 88px); line-height: 1; color: var(--cream); -webkit-text-stroke: 0.05em var(--choco); paint-order: stroke fill; text-shadow: 0.05em 0.06em 0 var(--brown); }
.page-logo { display: block; margin: 0 auto; width: min(460px, 80%); height: auto; filter: drop-shadow(6px 8px 0 rgba(62, 19, 15, 0.18)); }
.page-sub { margin: 0; font-family: 'Lilita One', sans-serif; font-size: clamp(16px, 1.4vw, 24px); color: var(--brown); }
.page-hero .cloud-1 { top: 30%; }
.page-hero .cloud-2 { bottom: 12%; }
.tt-logo { display: none; }

/* Subtítulos más presentes */
.block-title { font-size: clamp(20px, 1.8vw, 28px); letter-spacing: 0.03em; }

/* Las nubes de la portada pasan por encima y por debajo del texto, no sobre él */
.hero-sky .cloud-1 { top: 6%; }
.hero-sky .cloud-2 { bottom: 4%; }

/* Inicio: tres tarjetas */
.teasers { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.teaser { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; text-decoration: none; color: var(--choco); border: 3px solid var(--choco); box-shadow: 8px 8px 0 var(--choco); transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.6s ease; overflow: hidden; min-height: 280px; }
.teaser:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--choco); }
.teaser h2 { margin: 0; font-family: 'Lilita One', sans-serif; font-size: clamp(26px, 2.4vw, 38px); color: var(--brown); }
.teaser p { margin: 0; font-weight: 600; line-height: 1.5; max-width: 26em; position: relative; z-index: 1; }
.teaser-go { margin-top: auto; font-family: 'Lilita One', sans-serif; font-size: 20px; position: relative; z-index: 1; }
.teaser-tt { background: var(--sky); }
.teaser-team { background: var(--peach); }
.teaser-contact { background: var(--foam); }
.teaser-logo { width: min(300px, 70%); height: auto; }
.teaser-art { position: absolute; right: -16px; bottom: -18px; width: clamp(110px, 42%, 230px); height: auto; opacity: 0.95; transform: rotate(-6deg); }
.teaser h2, .teaser p { padding-right: 30%; }
.teaser-tt p { padding-right: 0; }

/* Quiénes somos */
.about { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 60px); align-items: center; margin-bottom: 80px; }
.about-text p { font-size: 18px; line-height: 1.7; font-weight: 500; color: var(--brown); margin: 0 0 14px; max-width: 36em; }
.about-text .block-title { margin-top: 0; }
.team-head { align-items: flex-end; }
.team-head .section-title, .team-head .head-dots { align-self: baseline; }
.team-umbrella { flex-shrink: 0; width: clamp(80px, 8vw, 128px); height: auto; margin-bottom: -44px; position: relative; z-index: 2; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-card { position: relative; background: var(--foam); border: 3px solid var(--choco); box-shadow: 8px 8px 0 var(--peach); padding: clamp(24px, 3vw, 44px); overflow: hidden; transition: background-color 0.6s ease; }
.contact-card .block-title { margin-top: 0; }
.contact-card p { font-size: 17px; line-height: 1.6; font-weight: 500; color: var(--brown); max-width: 30em; }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.contact-art { position: absolute; right: -20px; top: 18px; width: 180px; transform: rotate(-10deg); opacity: 0.9; }
.contact-card .block-title, .contact-card p { position: relative; z-index: 1; }
.contact-press { background: var(--sky); }
.contact-stars { display: flex; gap: 6px; margin-top: 24px; }
.contact-stars img { width: 38px; }

/* Pie con enlaces */
.foot-nav { display: flex; gap: 18px; }
.foot-nav a { color: inherit; text-decoration: none; font-family: 'Lilita One', sans-serif; font-size: 16px; }
.foot-nav a:hover { text-decoration: underline; }
/* Redes en el pie, abajo a la derecha: pegatinas crema con el icono en chocolate */
.foot-end { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot-social { display: flex; gap: 12px; }
.foot-social a { display: grid; place-items: center; width: 42px; height: 42px; background: var(--cream); color: var(--choco); box-shadow: 4px 4px 0 var(--peach); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.foot-social a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--peach); }
.foot-social svg { width: 22px; height: 22px; fill: currentColor; }
@media (max-width: 600px) { .foot-end { width: 100%; justify-content: space-between; gap: 14px; } .foot-social { gap: 10px; } .foot-social a { width: 38px; height: 38px; } }

@media (max-width: 1000px) {
  .teasers { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .topbar { flex-wrap: wrap; gap: 8px 14px; padding: 8px 14px; }
  .brand span { display: none; }
  .brand img { height: 38px; }
  .nav { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .nav a { font-size: 15px; padding: 4px 4px; }
  .nav a.nav-cta { padding: 4px 8px; }
  .nav-sky { margin-left: auto; width: 40px; height: 40px; }
  .about { grid-template-columns: 1fr; }
  .team-umbrella { width: 64px; margin-bottom: -30px; }
  .foot-nav { flex-wrap: wrap; }
}


/* =====================================================================
   Formulario de contacto
   ===================================================================== */
.contact { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: stretch; }
/* El formulario mide lo mismo que la columna derecha: el cuadro del mensaje se estira */
.contact-form .field-msg { flex: 1; }
.contact-form .field-msg textarea { flex: 1; }
.contact-side .contact-also { flex: 1; }
.contact-side { display: flex; flex-direction: column; gap: 28px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form .contact-art { top: 10px; right: -30px; width: 150px; }
.contact-form .block-title, .contact-form > p { margin-bottom: 0; padding-right: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-family: 'Lilita One', sans-serif; font-size: 17px; color: var(--brown); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; font-weight: 500;
  color: var(--choco); background: var(--cream);
  border: 3px solid var(--choco); border-radius: 0;
  padding: 10px 12px;
  box-shadow: 4px 4px 0 var(--peach);
  transition: box-shadow 0.15s ease, background-color 0.6s ease, color 0.6s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--sea); }
.form-note { margin: 0; font-size: 14px !important; opacity: 0.8; }
.contact-form button { align-self: flex-start; cursor: pointer; font-size: 18px; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Gracias */
.thanks { max-width: 640px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.thanks p { font-size: 20px; font-weight: 600; color: var(--brown); margin: 0; }
.thanks .stars img { width: 48px; }

@media (max-width: 1000px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-form .block-title, .contact-form > p { padding-right: 70px; }
  .contact-form .contact-art { width: 100px; }
}

#night:checked ~ .page .field select, #night:checked ~ .page .field input, #night:checked ~ .page .field textarea { color-scheme: dark; }

/* Campos mal rellenados (al salir del campo o al intentar enviar) */
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #c4122f; box-shadow: 4px 4px 0 #c4122f; }
.field-help { font-size: 13px; font-weight: 600; color: var(--brown); opacity: 0.75; }
.field input:user-invalid + .field-help { color: #c4122f; opacity: 1; font-weight: 800; }


/* =====================================================================
   Blog / Devlog (Jekyll: _layouts/, _posts/, blog/index.html)
   ===================================================================== */
.post-stickers { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.post-num, .post-date { font-family: 'Lilita One', sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; padding: 6px 12px; border: 3px solid var(--choco); }
.post-num { background: var(--choco); color: var(--cream); transform: rotate(-3deg); }
.post-date { background: var(--cream); color: var(--choco); transform: rotate(2deg); }
.post-hero .page-hero-copy { padding-top: 28px; }
.post-title { font-size: clamp(36px, 5vw, 76px); max-width: 16em; margin-left: auto; margin-right: auto; }

/* Lista de entradas */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: var(--choco); border: 3px solid var(--choco); box-shadow: 8px 8px 0 var(--choco); transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.6s ease; }
.post-card:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--choco); }
.post-card-c0 { background: var(--sky); }
.post-card-c1 { background: var(--peach); }
.post-card-c2 { background: var(--foam); }
.post-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--choco); }
.post-card-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.post-card-body .post-stickers { justify-content: flex-start; }
.post-card h2 { margin: 6px 0 0; font-family: 'Lilita One', sans-serif; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; color: var(--brown); }
.post-card p { margin: 0; font-weight: 600; line-height: 1.5; }
/* La entrada más reciente va destacada a todo el ancho */
.post-card:first-child { grid-column: 1 / -1; flex-direction: row; }
.post-card:first-child .post-card-img { width: 55%; aspect-ratio: auto; min-height: 320px; border-bottom: none; border-right: 3px solid var(--choco); }
.post-card:first-child .post-card-body { padding: clamp(24px, 3vw, 44px); justify-content: center; }
.post-card:first-child h2 { font-size: clamp(32px, 3.4vw, 52px); }
.post-card:first-child p { font-size: 18px; }
.post-empty { font-family: 'Lilita One', sans-serif; font-size: 24px; color: var(--brown); text-align: center; }

/* Entrada */
.post { max-width: 860px; margin: 0 auto; }
.post-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 3px solid var(--choco); box-shadow: 8px 8px 0 var(--sky); margin-bottom: 48px; }
.post-body { font-size: 18px; line-height: 1.75; font-weight: 500; color: var(--brown); }
.post-body > * { margin: 0 0 20px; }
.post-body h2 { margin: 52px 0 16px; font-family: 'Lilita One', sans-serif; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; font-weight: 400; color: var(--brown); }
.post-body h3 { margin: 36px 0 12px; font-family: 'Lilita One', sans-serif; font-size: 22px; font-weight: 400; color: var(--choco); }
.post-body strong { font-weight: 800; color: var(--choco); }
.post-body a { color: var(--choco); text-decoration-color: var(--peach); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: var(--sea); }
.post-body img, .post-body video { display: block; width: 100%; height: auto; border: 3px solid var(--choco); box-shadow: 8px 8px 0 var(--peach); background: #000; }
.post-body p:has(> img:only-child) { margin: 36px 0 14px; }
/* Pie de foto: una línea entera en cursiva */
.post-body p > em:only-child { display: block; text-align: center; font-size: 15px; font-weight: 600; opacity: 0.8; }
.post-body ul, .post-body ol { padding-left: 0; list-style: none; }
.post-body ul li, .post-body ol li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.post-body ul li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 8px; height: 8px; background: var(--choco); }
.post-body ol { counter-reset: paso; }
.post-body ol li { counter-increment: paso; padding-left: 30px; }
.post-body ol li::before { content: counter(paso) '.'; position: absolute; left: 0; font-family: 'Lilita One', sans-serif; color: var(--choco); }
.post-body blockquote { margin: 32px 0; padding: 20px 24px; background: var(--foam); border: 3px solid var(--choco); box-shadow: 6px 6px 0 var(--sky); font-weight: 600; transform: rotate(-0.6deg); }
.post-body blockquote p { margin: 0; }
.post-body hr { border: none; height: 0.6em; margin: 48px 0; font-size: 40px; background-image: radial-gradient(var(--peach) 30%, transparent 32%); background-size: 0.3em 0.3em; background-repeat: space; }
.post-body code { font-size: 0.9em; background: var(--foam); border: 2px solid var(--choco); padding: 1px 6px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 40px 0 0; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.post-tags span:not(:last-child)::after { content: '/'; margin-left: 8px; opacity: 0.45; }
.post-nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 3px solid var(--choco); }

/* Vídeo vertical (9:16): <video class="video-vertical" …> */
.post-body video.video-vertical { width: min(100%, 400px); margin: 36px auto 14px; }
/* Dos imágenes lado a lado, un poco giradas: <div class="post-pair"><img …><img …></div> */
.post-body .post-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 36px 0 14px; }
.post-body .post-pair img:first-child { transform: rotate(-2deg); }
.post-body .post-pair img:last-child { transform: rotate(2deg); }

#night:checked ~ .page .post-body img, #night:checked ~ .page .post-cover, #night:checked ~ .page .post-card-img { filter: brightness(0.85); }

@media (max-width: 800px) {
  .post-list { grid-template-columns: 1fr; }
  .post-card:first-child { flex-direction: column; }
  .post-card:first-child .post-card-img { width: 100%; min-height: 0; aspect-ratio: 16 / 9; border-right: none; border-bottom: 3px solid var(--choco); }
  .post-body { font-size: 17px; }
  .post-body .post-pair { grid-template-columns: 1fr; }
  .post-nav { justify-content: center; }
}


/* =====================================================================
   Botón de idioma (ES ⇄ EN): las páginas en inglés viven en en/ (traducir.py)
   ===================================================================== */
.lang-switch {
  flex-shrink: 0;
  font-family: 'Lilita One', sans-serif; font-size: 16px; letter-spacing: 0.06em; text-decoration: none;
  color: var(--choco); background: var(--cream);
  border: 3px solid var(--choco); padding: 4px 10px;
  box-shadow: 3px 3px 0 var(--peach);
  transform: rotate(-3deg);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.6s ease, color 0.6s ease;
}
.lang-switch:hover, .lang-switch:focus-visible { transform: rotate(0deg) translate(-1px, -1px); box-shadow: 4px 4px 0 var(--peach); }
@media (max-width: 800px) {
  .lang-switch { margin-left: auto; font-size: 14px; padding: 3px 8px; }
  .lang-switch + .nav-sky { margin-left: 0; }
}


/* Pizarra del chiringuito (Tourist Trap, tras la carta): la imagen ya trae su marco de madera */
.chalkboard { position: relative; margin: 70px auto 0; max-width: 760px; text-align: center; }
.chalkboard img { width: 100%; height: auto; transform: rotate(1.5deg); filter: drop-shadow(8px 8px 0 var(--peach)); }
.chalkboard figcaption { margin-top: 18px; font-family: 'Lilita One', sans-serif; font-size: clamp(16px, 1.4vw, 20px); color: var(--brown); }
#night:checked ~ .page .chalkboard img { filter: drop-shadow(8px 8px 0 var(--peach)) brightness(0.85); }

/* Dibujos de la lámina de props (radio, gramófono, altavoz) */
.chalkboard .chalk-gramophone { position: absolute; filter: drop-shadow(6px 6px 0 rgba(62, 19, 15, 0.18)); left: -255px; bottom: 24px; width: 210px; transform: rotate(-4deg); pointer-events: none; }
.video-deco { position: relative; }
.video-speaker { position: absolute; right: 28px; bottom: calc(100% - 16px); width: clamp(100px, 9vw, 140px); transform: rotate(4deg); z-index: 2; pointer-events: none; }
.contact-press .press-radio { top: auto; bottom: 16px; right: 12px; width: 150px; transform: rotate(6deg); opacity: 1; }
@media (max-width: 1240px) { .chalkboard .chalk-gramophone { display: none; } }
@media (max-width: 800px) {
  .video-speaker { right: 10px; width: 76px; }
  .contact-press .press-radio { width: 110px; }
}

/* Móvil: el dibujo de las tarjetas de portada no pisa el texto */
@media (max-width: 800px) {
  .teaser-team h2, .teaser-team p, .teaser-contact h2, .teaser-contact p { padding-right: 40%; }
}


/* =====================================================================
   Props de Dani y Ernesto (assets/img/deco/props/)
   ===================================================================== */
/* Tourist Trap: guirnalda de bombillas sobre la carta */
.string-lights { position: absolute; top: -6px; left: 24px; right: 260px; height: 74px; background: url('assets/img/deco/props/guirnalda-bombillas.webp') 0 0 / auto 100% repeat-x; pointer-events: none; }
.menu-title { margin-top: 40px; }
#night:checked ~ .page .string-lights { filter: drop-shadow(0 0 10px rgba(240, 188, 94, 0.75)); }
@media (max-width: 800px) { .string-lights { right: 140px; height: 54px; left: 10px; } }

/* Tourist Trap: Poseidón, cliente del chiringuito, junto a la historia */
.story-poseidon { float: right; width: clamp(110px, 12vw, 170px); height: auto; margin: 0 0 8px 18px; transform: rotate(3deg); filter: drop-shadow(5px 5px 0 rgba(62, 19, 15, 0.15)); }

/* Quiénes somos: la barra */
.bar-props { display: flex; align-items: flex-end; gap: 14px; margin-top: 22px !important; }
.bar-props img { height: 96px; width: auto; }
.bar-props img:nth-child(2) { height: 116px; transform: rotate(-4deg); }
.bar-props img:nth-child(4) { height: 70px; }
@media (max-width: 800px) { .bar-props img { height: 70px; } .bar-props img:nth-child(2) { height: 84px; } .bar-props img:nth-child(4) { height: 52px; } }


/* Gracias: trofeo de oro */
.thanks-trophy { width: 150px; height: auto; transform: rotate(-4deg); filter: drop-shadow(6px 6px 0 var(--peach)); }

/* Blog: tele en la cabecera y banderines sobre la lista */
.blog-tv { position: absolute; left: 7%; bottom: 26px; width: clamp(90px, 10vw, 150px); transform: rotate(-6deg); z-index: 2; }
.blog-bunting { height: 80px; margin: -40px 0 24px; background: url('assets/img/deco/props/guirnalda-banderines.webp') 0 0 / auto 100% repeat-x; }
@media (max-width: 800px) { .blog-tv { display: none; } .blog-bunting { height: 56px; margin-top: -24px; } }
