/* ============ ASCUA — paleta oficial ============ */
:root {
  --bg: #FFF6E8;        /* Apricot Ice — fondo */
  --surface: #FCEABC;   /* Sun Drenched — superficies */
  --yellow: #FFF183;    /* Maize */
  --orange: #FA9058;    /* Sè Lèi Orange — CTA */
  --pink: #FAA4B5;      /* Cherry Blossom Pink */
  --pink-soft: #FFC7E3; /* Rosa claro */
  --blue: #B5D8FF;      /* Azure Sky */
  --green: #82BA88;     /* Olivine */
  --lime: #B7C96A;      /* Verde lima */
  --ink: #26190F;       /* tinta cálida */
  --muted: #7d6b5c;

  --radius: 26px;
  --border: 2px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
.container.narrow { max-width: 860px; }
.center { text-align: center; }

/* ============ Tipografía ============ */
.display, .display-2, .statement, .card-title-serif, .statement-center {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.display { font-size: clamp(56px, 9.5vw, 128px); margin: 26px 0 30px; }
.display-2 { font-size: clamp(38px, 5.5vw, 68px); margin: 22px 0 20px; line-height: 1.05; max-width: 20ch; }
.center .display-2, .center .display { max-width: none; margin-left: auto; margin-right: auto; }

.lead {
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  max-width: 30ch;
  margin-bottom: 20px;
}

.muted { color: var(--muted); max-width: 52ch; margin-bottom: 34px; font-size: 18px; }

.section-intro { font-size: 19px; max-width: 62ch; margin-bottom: 18px; color: #4a3a2c; }

.statement { font-size: clamp(34px, 4.5vw, 56px); line-height: 1.08; }

.statement-center {
  text-align: center;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.25;
  margin-top: 56px;
}
.statement-center em { font-style: italic; color: #8a4a2a; }

/* ============ Header ============ */
.site-header {
  display: flex; align-items: center; gap: 48px;
  padding: 26px 40px;
  background: #fff;
  position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 74px; width: auto; }
.brand-name {
  font-weight: 800; font-size: 26px; letter-spacing: 0.14em;
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand-sub {
  font-weight: 500; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.top-nav { display: flex; gap: 28px; font-size: 17px; }
.top-nav a { color: var(--ink); text-decoration: none; padding-bottom: 3px; }
.top-nav a.active, .top-nav a:hover { border-bottom: 2px solid var(--ink); }

/* ============ Marquee ============ */
.marquee {
  background: var(--lime);
  border-top: var(--border); border-bottom: var(--border);
  overflow: hidden; white-space: nowrap;
  padding: 12px 0;
  position: relative; z-index: 4;
}
.marquee-track { display: inline-flex; animation: marquee 28s linear infinite; }
.marquee-track span {
  font-weight: 700; font-size: 16px; letter-spacing: 0.08em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(900px 700px at 82% 62%, var(--blue) 0%, rgba(181,216,255,0) 62%),
    radial-gradient(700px 560px at 12% 88%, var(--pink-soft) 0%, rgba(255,199,227,0) 55%),
    radial-gradient(1000px 700px at 25% 15%, var(--surface) 0%, rgba(252,234,188,0) 70%),
    var(--bg);
  padding: 90px 0 110px;
  position: relative;
}

.pill-nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.pill-btn {
  display: inline-block;
  background: #fffdf7;
  border: var(--border); border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 13px 26px;
  font-weight: 700; font-size: 16px;
  color: var(--ink); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pill-btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* ============ Badges ============ */
.badge {
  display: inline-block;
  border: var(--border); border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 9px 22px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.16em;
}
.badge-pink { background: var(--pink-soft); }
.badge-softpink { background: var(--pink); }
.badge-yellow { background: var(--yellow); }
.badge-blue { background: var(--blue); }
.badge-lime { background: var(--lime); }

/* ============ Botones ============ */
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
.cta-row.center { justify-content: center; margin-top: 10px; }
.btn {
  display: inline-block;
  border: var(--border); border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 16px 32px;
  font-weight: 700; font-size: 17px;
  color: var(--ink); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-green { background: var(--green); }
.btn-orange { background: var(--orange); }

/* ============ Chips ============ */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.chip {
  background: #fffdf7;
  border: var(--border); border-radius: 999px;
  padding: 9px 20px;
  font-weight: 600; font-size: 15px;
}
.chip-sm { font-size: 13px; padding: 7px 15px; }
.chip-dark { background: var(--ink); color: var(--bg); }
.arrow-chips { margin-top: 14px; }

/* ============ Secciones ============ */
.section { padding: 96px 0; background: var(--bg); position: relative; border-top: var(--border); }
.section-tint {
  background:
    radial-gradient(800px 500px at 85% 20%, var(--surface) 0%, rgba(252,234,188,0) 60%),
    var(--bg);
}
.split { padding: 80px 0; }

.footer-cta {
  background:
    radial-gradient(900px 600px at 80% 80%, var(--pink-soft) 0%, rgba(255,199,227,0) 60%),
    radial-gradient(700px 500px at 15% 20%, var(--surface) 0%, rgba(252,234,188,0) 65%),
    var(--bg);
  padding: 120px 0 130px;
}

/* ============ Grids ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 48px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }

/* ============ Cards ============ */
.card {
  border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  background: #fffdf7;
}
.card p { margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }

.card-blue { background: var(--blue); }
.card-cream { background: var(--surface); }
.card-yellow { background: var(--yellow); }
.card-softpink { background: var(--pink-soft); }
.card-peach { background: #FDD6BC; }
.card-skyblue { background: var(--blue); }
.card-lime { background: #DCE8AE; }

.card-statement { display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 44px; }

.card-title-serif { font-size: clamp(28px, 3vw, 38px); margin-bottom: 18px; }

/* Event cards */
.event-card h3 { font-size: 22px; line-height: 1.25; margin: 20px 0 12px; }
.event-card p { font-size: 15.5px; color: #443627; }
.event-head { display: flex; justify-content: space-between; align-items: center; }
.tag {
  border: var(--border); border-radius: 999px;
  background: #fffdf7;
  padding: 6px 16px;
  font-weight: 800; font-size: 13px; letter-spacing: 0.1em;
}
.icon-box {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border: var(--border); border-radius: 14px;
  background: #fffdf7;
  font-size: 24px;
  box-shadow: var(--shadow-sm);
}
.event-foot {
  margin-top: 18px !important;
  font-weight: 700; font-size: 13.5px !important;
  letter-spacing: 0.04em;
  color: var(--ink) !important;
}

.num-card { background: #fffdf7; }
.num-card h3 { font-size: 24px; margin: 18px 0 10px; }

.mini-card { padding: 28px; }
.mini-card p { font-size: 16px; }

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: var(--bg); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; gap: 16px; }
.footer-ember { height: 40px; width: auto; }
.site-footer p { font-size: 14px; opacity: .85; }

/* ============ Ascuas flotantes ============ */
.decor-zone { position: relative; overflow: hidden; }
.ember-float {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(2px 3px 2px rgba(38,25,15,.25));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(5deg); }
}

/* ============ Reveal on scroll ============ */
/* Solo se ocultan si hay JS (html.js): sin JS la página se ve completa */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .site-header { flex-direction: column; gap: 14px; padding: 22px 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
  .card { padding: 28px; }
  .brand-logo { height: 58px; }
}

/* ============ Tarjeta destacada (inscripción) ============ */
.featured-card {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  background: var(--yellow);
}
.featured-tags { margin: 0 0 18px; }
.tag-orange { background: var(--orange); }
.featured-info p { max-width: 62ch; }
.featured-cta {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 0 12px;
}
.icon-lg { width: 72px; height: 72px; font-size: 34px; border-radius: 20px; }
.featured-cta .btn { white-space: nowrap; }

/* ============ Enlaces en tarjetas ============ */
.card-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.card-link:hover { color: #8a4a2a; }

/* ============ Formulario de contacto ============ */
.contact-form { margin-top: 30px; display: flex; flex-direction: column; }
.contact-form label {
  font-weight: 700; font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 18px 0 8px;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: #fffdf7;
  border: var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  outline: none;
  transition: box-shadow .15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2326190F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { box-shadow: var(--shadow-sm); }
.contact-form textarea { resize: vertical; }
.contact-form .btn {
  margin-top: 26px;
  align-self: flex-start;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; text-align: center; }
.contact-form .form-note { text-align: left; }

@media (max-width: 720px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-cta { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; padding: 0; }
}
