/* ============================================================
   Festival del Libro Dominicana — Website UI Kit
   Additional sections: flat bloom, free badge, schedule,
   gallery, sponsors, join, contact.
   Loaded after site.css.
   ============================================================ */

/* ---------- free-entry badge ---------- */
.badge-free { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--font-brand); font-weight: 800; font-size: 13px; letter-spacing: .04em; color: var(--azul-900); background: var(--amarillo); padding: 8px 16px; border-radius: var(--r-pill); }
.badge-free i { color: var(--rojo); font-size: 16px; }

/* ---------- hero info + organizers ---------- */
.hero__info { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.hero__info span { display: flex; align-items: center; gap: 9px; font-family: var(--font-brand); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.hero__info i { color: var(--rojo); font-size: 17px; flex: none; }
.hero__orgs { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__orgs-lbl { display: block; font-family: var(--font-brand); font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.hero__orgs img { max-width: 520px; width: 100%; height: auto; }

/* ---------- hero art: floating petals + plain book ---------- */
.petal-stage { position: relative; width: 380px; height: 420px; }
.petal-stage .petal { position: absolute; }
.mark-plain {
  position: absolute; top: 50%; left: 50%; width: 200px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 22px 28px rgba(2,55,107,.18));
  animation: bob 6s ease-in-out infinite; z-index: 2;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, calc(-50% - 6px)) rotate(-1.5deg); }
  50%      { transform: translate(-50%, calc(-50% + 10px)) rotate(1.5deg); }
}
@media (max-width: 900px){ .petal-stage{ transform: scale(.84); } }

/* ---------- hero art: image variant ---------- */
.img-stage { position: relative; width: 420px; max-width: 100%; }
.img-slot { display: block; width: 100%; height: 460px; box-shadow: var(--shadow-lg); }
@media (max-width: 900px){ .img-stage{ width: 100%; } .img-slot{ height: 320px; } }

/* ---------- SCHEDULE / HORARIO ---------- */
.days { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer; transition: .16s; }
.day:hover { border-color: var(--azul-400); }
.day.active { background: var(--azul); border-color: var(--azul); color: #fff; }
.day .dow { font-family: var(--font-brand); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.day .dnum { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; }
.agenda { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; }
.slot { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); align-items: start; }
.slot:last-child { border-bottom: 1px solid var(--line); }
.slot__time { font-family: var(--font-brand); font-weight: 700; font-size: 15px; color: var(--azul-900); padding-top: 3px; }
.slot__time .dur { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.slot__main { display: flex; gap: 16px; align-items: flex-start; }
.slot__main > div:not(.slot__bar) { flex: 1; min-width: 0; }
.slot__bar { width: 5px; align-self: stretch; border-radius: 3px; flex: none; }
.slot__cat { font-family: var(--font-brand); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.slot__ti { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--azul-900); line-height: 1.15; margin: 5px 0 6px; }
.slot__me { display: flex; gap: 18px; flex-wrap: wrap; }
.slot__me span { font-family: var(--font-ui); font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.slot__me i { color: var(--azul-400); }
@media (max-width: 620px){ .slot{ grid-template-columns: 88px 1fr; gap: 14px; } }

/* ---------- GALLERY ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 14px; }
.gtile { position: relative; border-radius: var(--r-md); overflow: hidden; display: flex; align-items: flex-end; padding: 16px; cursor: pointer; }
.gtile.wide { grid-column: span 2; }
.gtile.tall { grid-row: span 2; }
.gtile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,55,107,.6), transparent 55%); transition: .2s; }
.gtile:hover::after { background: linear-gradient(to top, rgba(2,55,107,.75), transparent 60%); }
.gtile span { position: relative; z-index: 2; color: #fff; font-family: var(--font-brand); font-weight: 700; font-size: 14px; }
.gtile i { position: absolute; z-index: 2; top: 14px; right: 14px; color: rgba(255,255,255,.85); font-size: 22px; }
@media (max-width: 760px){ .gallery{ grid-template-columns: 1fr 1fr; } .gtile.wide{ grid-column: span 2; } }

/* ---------- SPONSORS (slider / marquee) ---------- */
.spon-slider { overflow: hidden; padding: 10px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.spon-track { display: flex; gap: 18px; width: max-content; animation: marquee 36s linear infinite; }
.spon-slider:hover .spon-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.spon { flex: none; width: 230px; height: 150px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px; box-shadow: var(--shadow-sm); transition: .18s; }
.spon:hover { border-color: var(--azul-200); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.spon__logo { display: block; width: 150px; height: 70px; }
.spon__name { display: flex; align-items: center; gap: 8px; font-family: var(--font-brand); font-weight: 700; font-size: 14px; color: var(--ink-2); text-align: center; }
.spon__name i { font-size: 18px; color: var(--azul-claro); flex: none; }
.spon-cta { text-align: center; margin-top: 30px; }

/* ---------- JOIN / ÚNETE ---------- */
.join { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px){ .join{ grid-template-columns: 1fr; } }
.jcard { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 30px; color: #fff; display: flex; flex-direction: column; gap: 12px; min-height: 280px; }
.jcard h3 { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 27px; margin: 0; }
.jcard p { color: rgba(255,255,255,.9); font-family: var(--font-read); font-size: 15px; line-height: 1.55; margin: 0; flex: 1; }
.jcard__ic { width: 56px; height: 56px; border-radius: var(--r-md); background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.jcard .petal { position: absolute; border-radius: 0 50% 0 50%; opacity: .25; right: -30px; bottom: -30px; width: 130px; height: 130px; background: #fff; }
.jcard__btn { align-self: flex-start; font-family: var(--font-brand); font-weight: 700; font-size: 14px; background: #fff; color: var(--azul-900); border: none; padding: 12px 20px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 8px; transition: .18s; }
.jcard__btn:hover { transform: translateX(3px); }

/* ---------- CONTACT ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 820px){ .contact{ grid-template-columns: 1fr; gap: 30px; } }
.contact__info .ci { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.contact__info .ci i { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--azul-100); color: var(--azul); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.contact__info .ci b { font-family: var(--font-brand); font-weight: 700; font-size: 14px; color: var(--azul-900); display: block; }
.contact__info .ci span { font-family: var(--font-ui); font-size: 14px; color: var(--ink-3); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.form .field { margin-bottom: 16px; }
.form .lb { font-family: var(--font-brand); font-weight: 600; font-size: 13px; color: var(--ink-2); display: block; margin-bottom: 6px; }
.form .inp, .form select, .form textarea { width: 100%; font-family: var(--font-read); font-size: 15px; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; outline: none; transition: .15s; }
.form .inp:focus, .form select:focus, .form textarea:focus { border-color: var(--azul); box-shadow: 0 0 0 3px var(--focus-ring); }
.form textarea { resize: vertical; min-height: 96px; font-family: var(--font-read); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px){ .form .row2{ grid-template-columns: 1fr; } }

/* ---------- NEWSLETTER band (legacy, unused) ---------- */
.newsletter-band { background: var(--azul-100); }

/* ---------- NEWSLETTER fixed bar ---------- */
.news-bar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 80; display: flex; align-items: center; gap: 16px;
  width: min(760px, calc(100% - 32px));
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 12px 14px 12px 18px;
  box-shadow: var(--shadow-lg);
  animation: news-rise .5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes news-rise { from { transform: translate(-50%, 26px); } to { transform: translate(-50%, 0); } }
.news-bar__icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--azul-100); color: var(--azul); display: flex; align-items: center; justify-content: center; font-size: 24px; animation: news-bob 3s ease-in-out infinite; }
@keyframes news-bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-4px) rotate(4deg); } }
.news-bar__copy { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.news-bar__copy b { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--azul-900); }
.news-bar__copy span { font-family: var(--font-ui); font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-bar__form { display: flex; gap: 8px; flex: none; }
.news-bar__form input { width: 190px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); padding: 11px 16px; font-family: var(--font-read); font-size: 14px; color: var(--ink); outline: none; transition: .15s; }
.news-bar__form input:focus { border-color: var(--azul); box-shadow: 0 0 0 3px var(--focus-ring); }
.news-bar__form .btn { padding: 11px 20px; font-size: 14px; }
.news-bar__done { font-family: var(--font-brand); font-weight: 700; font-size: 15px; color: var(--azul-700); display: flex; align-items: center; gap: 8px; padding-right: 8px; }
.news-bar__done i { color: #1f8a5b; font-size: 20px; }
.news-bar__close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--gris); color: var(--ink-2); display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; transition: .15s; }
.news-bar__close:hover { background: var(--line-strong); color: var(--ink); }
/* attention halo */
.news-bar__pulse { position: absolute; left: 19px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--azul-claro); opacity: .5; animation: news-pulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes news-pulse { 0% { transform: translateY(-50%) scale(1); opacity: .5; } 70%,100% { transform: translateY(-50%) scale(2.1); opacity: 0; } }

/* minimized tab */
.news-tab { position: fixed; left: 22px; bottom: 22px; z-index: 80; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-brand); font-weight: 700; font-size: 14px; color: #fff; background: var(--azul); border: none; padding: 12px 18px; border-radius: var(--r-pill); box-shadow: var(--shadow-blue); cursor: pointer; }
.news-tab:hover { background: var(--azul-700); }
.news-tab__pulse { position: absolute; inset: 0; border-radius: var(--r-pill); border: 2px solid var(--azul-claro); animation: tab-pulse 2.2s ease-out infinite; pointer-events: none; }
@keyframes tab-pulse { 0% { transform: scale(1); opacity: .7; } 70%,100% { transform: scale(1.25); opacity: 0; } }

@media (max-width: 680px){
  .news-bar { flex-wrap: wrap; border-radius: var(--r-lg); padding: 14px; }
  .news-bar__copy span { white-space: normal; }
  .news-bar__form { flex: 1; }
  .news-bar__form input { width: auto; flex: 1; }
}

/* ---------- LOGO WATERMARK (soft / translucent sections) ---------- */
.section.alt, .newsletter-band, .cta-strip { position: relative; overflow: hidden; }
.section.alt::after, .newsletter-band::after {
  content: ''; position: absolute; right: -70px; bottom: -90px;
  width: 440px; height: 440px;
  background: url('../assets/mark-color.png') no-repeat center / contain;
  opacity: .07; transform: rotate(-8deg); pointer-events: none; z-index: 0;
}
.section.alt > .wrap, .section.alt > .spon-slider, .section.alt > .spon-cta, .newsletter-band > .wrap { position: relative; z-index: 1; }
/* blue strip uses the white mark, larger and centred behind content */
.cta-strip::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 520px; height: 520px; transform: translate(-50%, -50%);
  background: url('../assets/mark-white.png') no-repeat center / contain;
  opacity: .07; pointer-events: none; z-index: 0;
}
