/* ==========================================================================
   Fiestas360 · capa visual final
   Se carga la última. Sistema: tipografía única (Poppins), papel cálido,
   acentos fuego/oro, una sección de noche y un pie de noche como cierre.
   ========================================================================== */

@font-face { font-family: "Fiestas Sans"; src: url("assets/fonts/poppins-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fiestas Sans"; src: url("assets/fonts/poppins-500.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fiestas Sans"; src: url("assets/fonts/poppins-600.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fiestas Sans"; src: url("assets/fonts/poppins-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --font-sans: "Fiestas Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fiestas Sans", system-ui, -apple-system, sans-serif;
  --paper: #fffdfa;
  --surface: #f7f3ed;
  --surface-strong: #efe8de;
  --ink: #181513;
  --muted: #5d564f;
  --line: #e7dfd5;
  --night: #14110f;
  --night-soft: #1f1a16;
  --ember: #e8480f;
  --gold-bright: #f4b955;
  --radius-card: 16px;
  --radius-panel: 24px;
  --shadow-soft: 0 1px 2px rgba(24,21,19,.05), 0 14px 36px -12px rgba(24,21,19,.14);
  --shadow-lift: 0 2px 4px rgba(24,21,19,.06), 0 28px 60px -20px rgba(24,21,19,.28);
}

body { background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-weight: 400; line-height: 1.6; letter-spacing: -.003em; }
body, button, input, select, textarea { font-family: var(--font-sans); }
::selection { background: var(--ember); color: #fff; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }

/* Titulares: más peso y más apretados, jerarquía clara */
body h1, body h2 { font-weight: 700; letter-spacing: -.045em; line-height: 1.03; }
body h3 { font-weight: 600; letter-spacing: -.025em; }
body h2 em { font-style: normal; color: var(--ember); }

/* Etiquetas de sección */
body .section-overline, body .membership-kicker, body .section-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ember); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
body .section-overline::before, body .membership-kicker::before, body .section-kicker::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor;
}

/* Cabecera: cristal y línea fina */
body .site-header {
  background: rgba(255,253,250,.8);
  -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid rgba(24,21,19,.07);
}
body .nav > a:not(.button) { color: var(--muted); font-weight: 500; }
body .nav > a:not(.button):hover { color: var(--ink); }

/* Botones */
body .button { border-radius: 999px; font-weight: 600; letter-spacing: -.01em; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
/* Naranja algo más oscuro que --ember: con texto blanco cumple el contraste 4,5:1. */
body .button--brand { background: #d4400c; color: #fff; box-shadow: 0 10px 24px -10px rgba(232,72,15,.7); }
body .button--brand:hover { background: #b93608; transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(232,72,15,.75); }
body .button--dark { background: var(--night); color: #fff; }
body .button--dark:hover { background: #000; transform: translateY(-1px); }
body .button--light { background: #fff; border: 1px solid var(--line); color: var(--ink); }
body .button--light:hover { border-color: var(--ink); transform: translateY(-1px); }

/* Hero: el mapa se mantiene; titular con más presencia y tarjeta de búsqueda con más profundidad */
body .hero h1 { font-weight: 700; letter-spacing: -.055em; line-height: .98; }
body .hero-copy p { color: #3b3631; font-weight: 500; }
body .product-demo { border-radius: var(--radius-panel); border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-lift); }
body .demo-tabs { border-radius: 999px; }

/* Superficies: bordes finos, sombra suave y radios distintos según el tamaño */
body .trip-planner, body .festival-detail, body .destination-explorer, body .membership-card, body .proposal-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow-soft);
}
body .membership-card-negocio { border-color: rgba(232,72,15,.35); box-shadow: 0 1px 2px rgba(24,21,19,.05), 0 24px 56px -22px rgba(232,72,15,.35); }
body .search-field, body .trip-planner-fields input, body .trip-planner-fields select {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
body .trip-planner-fields input:focus, body .trip-planner-fields select:focus, body .search-field:focus-within { border-color: var(--ember); }

/* Ritmo de fondos: papel · noche · cálido · papel · foto · cálido · papel · noche */
body .destinations-section { background: var(--paper); }
body .how-section { background: var(--surface); }
body .faq-section { background: var(--paper); }
body .membership-section { background: var(--surface); }
body .proposal-section { background: var(--paper); }

/* Sección de noche: Plan 360 */
body .features-section {
  color: #f4eee6;
  background:
    radial-gradient(900px 460px at 88% -8%, rgba(232,72,15,.34), transparent 62%),
    radial-gradient(760px 420px at -8% 108%, rgba(244,185,85,.16), transparent 60%),
    var(--night);
}
body .features-section .section-overline { color: var(--gold-bright); }
body .features-section .plan-story h2 { color: #fff; }
body .features-section .plan-story h2 em { color: #ff7a45; }
body .features-section .plan-story-lead { color: rgba(255,255,255,.78); }
body .features-section .plan-steps strong { color: #fff; }
body .features-section .plan-steps small { color: rgba(255,255,255,.62); }
body .features-section .plan-workspace { color: var(--ink); background: #fffdfa; border-radius: var(--radius-panel); box-shadow: 0 40px 90px -24px rgba(0,0,0,.7); }
body .features-section .plan-document-dialog { color: var(--ink); }
body .features-section .plan-agenda-link { margin: 34px 0 0; }
body .features-section .plan-agenda-link .quiet-link { color: var(--gold-bright); }
body .features-section .plan-agenda-link .quiet-link:hover { color: #fff; }

/* Cierre con foto: más alto y con luz cálida */
body .final-content { border-radius: var(--radius-panel); box-shadow: var(--shadow-lift); }

/* Plan 360 a medida: formulario y resultado */
body .features-section .plan-story-note { max-width: 46ch; margin: 22px 0 0; color: rgba(255,255,255,.55); font-size: 13.5px; }
body .plan-builder-card { padding: clamp(20px, 3vw, 32px); }
.plan-builder { display: grid; gap: 20px; }
.plan-builder[hidden], .plan-result[hidden] { display: none; }
.pb-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.pb-group legend { margin-bottom: 10px; padding: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.pb-group legend small { margin-left: 6px; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.pb-dates, .pb-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pb-dates label, .pb-contact label { display: grid; min-width: 0; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.pb-contact label small { font-weight: 400; }
.pb-dates input, .pb-contact input { width: 100%; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; }
.pb-dates input:focus, .pb-contact input:focus { border-color: var(--ember); outline: none; box-shadow: 0 0 0 3px rgba(232,72,15,.18); }
.pb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-chip { position: relative; }
.pb-chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pb-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.pb-chip:hover span { border-color: var(--ink); }
.pb-chip input:checked + span { border-color: var(--night); background: var(--night); color: #fff; }
.pb-chip input:focus-visible + span { outline: 3px solid var(--ember); outline-offset: 2px; }
.pb-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.pb-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ember); }
.pb-consent a { text-decoration: underline; }
.pb-submit { width: 100%; min-height: 54px; justify-content: center; font-size: 16px; }
.pb-submit:disabled { opacity: .7; cursor: progress; transform: none; }
.pb-status { min-height: 20px; margin: 0; color: var(--muted); font-size: 14px; }
.pb-status.is-error { color: #b42318; font-weight: 500; }

.pb-select select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; }
.pb-select select:focus { border-color: var(--ember); outline: none; box-shadow: 0 0 0 3px rgba(232,72,15,.18); }
.pb-fiesta-note { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.pr-level { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.pr-time.is-text { font-size: 13px; line-height: 1.3; }
.pr-desc { display: block; margin-top: 4px; color: #3b3631; font-size: 13px; line-height: 1.45; }
.pr-badge { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft, #fff1d5); color: #8a5a09; font-size: 11.5px; font-weight: 600; }
.pr-note { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.pr-guides { display: grid; gap: 14px; }
.pr-guide { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.pr-guide h4 { margin: 0 0 6px; font-size: 16px; }
.pr-guide ul { margin: 0; padding-left: 18px; color: #3b3631; font-size: 14px; line-height: 1.6; }
.pr-guide li + li { margin-top: 4px; }
.plan-result { display: grid; gap: 18px; outline: none; }
.pr-banner { padding: 12px 14px; border: 1px solid #f1d9a8; border-radius: 12px; background: #fff4e0; font-size: 14px; line-height: 1.5; }
.pr-banner.is-ok { border-color: #c5e0c8; background: #eaf3e9; color: #1f5a3a; }
.pr-kicker { margin: 0 0 4px; color: var(--ember); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pr-head h3 { margin: 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.04em; line-height: 1.05; }
.pr-head > p:last-child { margin: 8px 0 0; color: var(--muted); }
.pr-days { display: grid; gap: 14px; }
.pr-day { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.pr-day > header { margin-bottom: 10px; }
.pr-day-date { color: var(--ember); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.pr-day h3 { margin: 2px 0 0; font-size: 19px; }
.pr-stops { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pr-walk { margin: 0 0 6px 2px; color: var(--muted); font-size: 12.5px; }
.pr-stop-card { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface); }
.pr-time { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pr-stop-card strong { display: block; font-size: 15px; line-height: 1.3; }
.pr-place { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.pr-place a { color: var(--ember); font-weight: 500; }
.pr-place a:hover { text-decoration: underline; }
.pr-tip { margin: 10px 0 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; background: var(--paper); color: var(--muted); font-size: 13px; }
.pr-tips h4 { margin: 0 0 6px; font-size: 16px; }
.pr-tips ul { margin: 0; padding-left: 18px; color: #3b3631; font-size: 14px; line-height: 1.6; }
.pr-disclaimer { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.pr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pr-link { color: var(--ember); font-size: 14px; font-weight: 600; }
@media (max-width: 640px) {
  .pb-contact { grid-template-columns: 1fr; }
  .pr-stop-card { grid-template-columns: 52px 1fr; }
}
@media print {
  body.is-printing-plan > *:not(main) { display: none !important; }
  body.is-printing-plan main > section:not(#funciones) { display: none !important; }
  body.is-printing-plan #funciones { padding: 0 !important; background: #fff !important; color: #000 !important; }
  body.is-printing-plan .plan-story, body.is-printing-plan .plan-agenda-link, body.is-printing-plan .pr-actions, body.is-printing-plan .pr-banner { display: none !important; }
  body.is-printing-plan .plan-showcase { display: block !important; }
  body.is-printing-plan .plan-workspace { box-shadow: none !important; border: 0 !important; padding: 0 !important; }
  body.is-printing-plan .pr-day { break-inside: avoid; }
}

/* Plan Negocio: todavía no disponible */
body .membership-card-soon { display: flex; flex-direction: column; }
.membership-soon { display: grid; flex: 1; place-items: center; min-height: 180px; margin: 0; color: var(--ember); font: 700 clamp(30px, 3.6vw, 44px)/1.1 var(--font-display); letter-spacing: -.045em; text-align: center; }

/* Ficha de una fiesta sin fotografía verificada: panel de noche en lugar de un hueco en blanco */
body .festival-detail:has([data-detail-image][hidden]) {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; border-color: transparent;
  background: radial-gradient(620px 340px at 88% 0%, rgba(232,72,15,.46), transparent 66%), radial-gradient(520px 300px at 0% 100%, rgba(244,185,85,.2), transparent 62%), var(--night);
}
body .festival-detail:has([data-detail-image][hidden]) .festival-detail-copy,
body .festival-detail:has([data-detail-image][hidden]) h3 { color: #fff; }
body .festival-detail:has([data-detail-image][hidden]) p { color: rgba(255,255,255,.78); }
body .festival-detail:has([data-detail-image][hidden]) .status-label { color: var(--gold-bright); }
body .festival-detail:has([data-detail-image][hidden]) .quiet-link { color: #fff; }

/* Portada: la fiesta elegida y su acción. El pie queda con tres columnas */
body .hero-trip-action { grid-template-columns: minmax(0,1fr) auto; }
body .hero-trip-action[hidden] { display: none; }
body .hero-trip-add { justify-content: center; color: #fff; background: var(--ember); }
@media (min-width: 981px) { body .footer-main { grid-template-columns: minmax(210px,1.6fr) repeat(3,minmax(140px,1fr)); } }

/* Portada: una sola acción principal; la secundaria es un enlace */
.hero-secondary-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-shadow: 0 0 6px var(--paper), 0 0 12px var(--paper), 0 0 18px var(--paper); }
.hero-secondary-link:hover { color: var(--ember); }
/* Sin puntos de adorno delante de los estados */
body .status-label::before { content: none; }
/* Sin la flecha, el nombre de la fiesta conserva el color del texto */
body .demo-result > span.demo-result-copy { color: var(--ink); }
/* Plan 360: con menos texto, el título acompaña al formulario desde arriba */
@media (min-width: 981px) {
  body .features-section .plan-showcase { align-items: start; }
  body .features-section .plan-story { position: sticky; top: calc(var(--header-height) + 56px); }
}

/* Pie de noche: remata la página como la abre el hero */
body .site-footer { margin-top: 0; padding: 64px 0 28px; background: var(--night); color: rgba(255,255,255,.72); }
body .site-footer .brand, body .site-footer .brand span { color: #fff; }
body .site-footer .brand-number { color: #ff7a45; }
body .footer-brand-column p { color: rgba(255,255,255,.62); }
body .footer-brand-column .quiet-link { color: var(--gold-bright); }
body .footer-column h2 { color: #fff; font-weight: 600; letter-spacing: -.01em; }
body .footer-column a { color: rgba(255,255,255,.66); }
body .footer-column a:hover { color: #fff; }
body .footer-bottom { border-top-color: rgba(255,255,255,.12); color: rgba(255,255,255,.5); }

/* Móvil: radios y sombras algo más contenidos */
@media (max-width: 640px) {
  :root { --radius-panel: 20px; }
  body .hero h1 { letter-spacing: -.05em; }
}

@media (prefers-reduced-motion: reduce) {
  body .button { transition: none; }
}
