/* ============================================================
   LA TIENDA DE YELLITO — Hoja de estilos página pública
   Paleta extraída de los assets reales de marca:
   amarillo #FFC90D · azul #14509F · tinta #201607
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap');

:root {
  /* Color */
  --yellow: #FFC90D;
  --yellow-deep: #F5A300;
  --yellow-pale: #FFF1C2;
  --cream: #FFFBF2;
  --blue: #14509F;
  --blue-deep: #0C3568;
  --ink: #211705;
  --ink-soft: #5A4E33;
  --white: #FFFFFF;
  --line: rgba(32, 23, 5, 0.1);
  --red: #E14B4B;
  --green: #2E9E5B;

  /* Tipografia */
  --f-display: 'Fredoka', system-ui, sans-serif;
  --f-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Forma */
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --shadow-card: 0 10px 30px rgba(32, 23, 5, 0.08);
  --shadow-pop: 0 16px 40px rgba(32, 23, 5, 0.16);

  /* Altura real del navbar sticky, para que los enlaces del menú no
     salten a una sección con el título tapado por el navbar. */
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.05; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--f-body); cursor: pointer; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Compensa el navbar sticky: al saltar desde el menú (desktop, móvil o
   los botones "Ver anuncios" / "Anúnciate con nosotros") la sección
   destino ya no queda tapada bajo el navbar. */
#inicio, #anuncios, #nosotros, #anunciate, #contacto {
  scroll-margin-top: var(--nav-h);
}

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 0 var(--blue-deep);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 0 var(--blue-deep); }
.btn-primary:active { box-shadow: 0 4px 0 var(--blue-deep); transform: translateY(3px); }

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 0 var(--line), inset 0 0 0 2px var(--line);
}
.btn-ghost:hover { transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--yellow);
  border-bottom: 3px solid var(--ink);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 20px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo span { font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--blue-deep); display: none; }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 4px;
}
.nav-links a {
  display: block;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--white); color: var(--blue-deep); }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-burger span { width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; }

.nav-mobile-panel {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: var(--yellow);
  border-bottom: 3px solid var(--ink);
  padding: 8px 24px 18px;
}
.nav-mobile-panel a {
  padding: 12px 6px;
  font-weight: 600;
  border-bottom: 1px solid rgba(32,23,5,0.12);
}
.nav-mobile-panel.open { display: flex; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta .btn span.long { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow) 55%, var(--cream) 100%);
  padding: 64px 0 40px;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 20px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .03em;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  color: var(--blue-deep);
  -webkit-text-stroke: 1.5px var(--blue-deep);
}
.hero h1 .accent { color: var(--white); -webkit-text-stroke: 1.5px var(--blue-deep); }

.hero-sub {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 480px;
  font-weight: 500;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-tags span {
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-card);
}

.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 460px;
}

/* Personaje Yellito construido en SVG/CSS, con animaciones */
.yellito-char {
  width: min(360px, 80%);
  filter: drop-shadow(0 24px 20px rgba(32,23,5,0.18));
  animation: bob 3.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-16px) rotate(1.2deg); }
}
.yellito-char .eye { animation: blink 4.5s infinite; transform-origin: center; }
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}
.yellito-char .arm-wave { transform-origin: 128px 168px; animation: wave 2.6s ease-in-out infinite; }
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-22deg); }
  35% { transform: rotate(4deg); }
  50% { transform: rotate(-18deg); }
  65% { transform: rotate(0deg); }
}

.hero-bubble {
  position: absolute;
  top: 18px;
  right: 4%;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-m);
  padding: 12px 18px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  box-shadow: var(--shadow-card);
  animation: floaty 3.2s ease-in-out infinite;
}
.hero-bubble::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 34px;
  border: 10px solid transparent;
  border-top-color: var(--ink);
}
.hero-bubble::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 37px;
  border: 8px solid transparent;
  border-top-color: var(--white);
  z-index: 1;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  background: var(--white);
  opacity: .5;
}
.hero-blob.b1 { width: 90px; height: 90px; top: 10%; left: 4%; animation: floaty 5s ease-in-out infinite; }
.hero-blob.b2 { width: 50px; height: 50px; bottom: 14%; left: 14%; animation: floaty 4s ease-in-out infinite reverse; }
.hero-blob.b3 { width: 34px; height: 34px; top: 30%; right: 8%; animation: floaty 3.4s ease-in-out infinite; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-tags, .hero-actions { justify-content: center; }
  .hero-stage { height: 320px; margin-top: 10px; }
  .hero-bubble { right: 50%; transform: translateX(60%); top: 0; }
}

/* ---------- Secciones genéricas ---------- */
.section { padding: 76px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.section-eyebrow {
  font-weight: 800;
  color: var(--blue);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 8px;
  display: block;
}
:root { --h-section: clamp(28px, 3.4vw, 40px); }
.section-head h2 { font-size: var(--h-section); }
.section-desc { color: var(--ink-soft); font-size: 16px; max-width: 520px; margin-top: 10px; font-weight: 500; }

.section-alt { background: var(--white); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }

/* ---------- Filtro de categorías ---------- */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.cat-chip:hover { transform: translateY(-2px); }
.cat-chip.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ---------- Grid de anuncios (bento) ---------- */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  gap: 18px;
}
.ad-card {
  position: relative;
  grid-column: span 2;
  grid-row: span 2;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--yellow-pale);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ad-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.ad-card.size-s { grid-column: span 2; grid-row: span 1; }
.ad-card.size-m { grid-column: span 2; grid-row: span 2; }
.ad-card.size-l { grid-column: span 4; grid-row: span 2; }
@media (max-width: 900px) {
  .ads-grid { grid-template-columns: repeat(2, 1fr); }
  .ad-card.size-l { grid-column: span 2; }
}
@media (max-width: 560px) {
  .ads-grid { grid-template-columns: 1fr; }
  .ad-card, .ad-card.size-s, .ad-card.size-m, .ad-card.size-l { grid-column: span 1; grid-row: span 1; min-height: 190px; }
}

.ad-card img.ad-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ad-card .ad-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,80,159,0) 40%, rgba(15,25,50,0.82) 100%);
}
.ad-card .ad-cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12.5px;
}
.ad-card .ad-info {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  color: var(--white);
}
.ad-card .ad-info h3 { font-size: 19px; }
.ad-card .ad-info p { font-size: 13px; opacity: .9; margin-top: 4px; font-weight: 600; }

/* ---------- Fila de anuncios con video (scroll horizontal) ---------- */
.video-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 6px 22px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--yellow-deep) var(--yellow-pale);
}
.video-scroll::-webkit-scrollbar { height: 9px; }
.video-scroll::-webkit-scrollbar-track { background: var(--yellow-pale); border-radius: 999px; }
.video-scroll::-webkit-scrollbar-thumb { background: var(--yellow-deep); border-radius: 999px; }

.video-card {
  scroll-snap-align: start;
  flex: 0 0 300px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.video-card .video-embed-wrap {
  width: 100%;
  min-height: 420px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-card .video-embed-wrap iframe { width: 100% !important; }
.video-card .video-info { padding: 16px 18px 18px; }
.video-card .video-info h3 { font-size: 18px; margin-bottom: 6px; }
.video-card .video-info p { font-size: 13px; color: var(--ink-soft); font-weight: 600; line-height: 1.5; margin-bottom: 8px; }
.video-card .video-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink); }

.video-scroll-empty {
  color: var(--ink-soft);
  font-weight: 600;
  padding: 20px 4px;
}

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  border: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: var(--shadow-pop);
  animation: floaty 3.4s ease-in-out infinite;
  transition: transform .18s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
@media (max-width: 560px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; font-size: 26px; }
}

.ads-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
  font-weight: 600;
  border: 3px dashed var(--line);
  border-radius: var(--radius-m);
}

/* ---------- Modal de detalle ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 15, 4, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  background: var(--white);
  border-radius: var(--radius-l);
  border: 3px solid var(--ink);
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  animation: pop .22s ease;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-media { position: relative; }
.modal-media img { width: 100%; max-height: 280px; object-fit: cover; border-bottom: 3px solid var(--ink); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.modal-body { padding: 26px 28px 30px; }
.modal-cat {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 5px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12.5px;
  margin-bottom: 12px;
}
.modal-body h3 { font-size: 26px; margin-bottom: 12px; }
.modal-body p.desc { color: var(--ink-soft); line-height: 1.65; font-weight: 500; margin-bottom: 20px; }
.modal-meta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.modal-meta div { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 600; }
.modal-meta .ico { flex-shrink: 0; width: 22px; text-align: center; }
.modal-video { margin-top: 6px; border-radius: var(--radius-s); overflow: hidden; }
.modal-video iframe, .modal-video blockquote { width: 100%; border: none; }

/* ---------- Nosotros ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}
.about-card {
  background: var(--blue);
  border-radius: var(--radius-l);
  border: 3px solid var(--ink);
  padding: 40px 34px;
  color: var(--white);
}
.about-card h3 { font-size: var(--h-section); margin-bottom: 14px; }
.about-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 14px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 15px; }
.about-list .emoji { font-size: 22px; }
.about-photo {
  border-radius: var(--radius-l);
  border: 3px solid var(--ink);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Formulario "Anúnciate" ---------- */
.promo-section {
  background: var(--ink);
  color: var(--white);
  border-top: 3px solid var(--ink);
}
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.promo-grid .section-eyebrow { color: var(--yellow); }
.promo-grid h2 { color: var(--white); font-size: var(--h-section); }
.promo-grid .section-desc { color: rgba(255,255,255,0.72); }
.promo-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 16px; }
.promo-points li { display: flex; gap: 12px; font-weight: 600; }
.promo-points .num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 700; font-size: 13.5px;
}

.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-l);
  border: 3px solid var(--ink);
  padding: 32px;
  box-shadow: var(--shadow-pop);
}
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 13.5px; }
.field input, .field select, .field textarea {
  font-family: var(--f-body);
  border: 2px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  font-size: 15px;
  background: var(--cream);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; }
.form-status { margin-top: 14px; font-weight: 700; font-size: 14px; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

@media (max-width: 900px) { .promo-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer {
  background: var(--yellow);
  border-top: 3px solid var(--ink);
  padding: 50px 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 2px solid rgba(32,23,5,0.15);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 42px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: transform .15s ease;
}
.footer-social a:hover { transform: translateY(-3px) rotate(-6deg); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.footer-bottom a { text-decoration: underline; }

/* ---------- Banner modo demo ---------- */
.demo-banner {
  background: var(--blue-deep);
  color: var(--white);
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  display: none;
}
.demo-banner.show { display: block; }
.demo-banner a { text-decoration: underline; color: var(--yellow); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
