:root {
  --champagne: #c8a46b;
  --champagne-light: #ebd4a2;
  --ivory: #f8f6f2;
  --white: #ffffff;
  --graphite: #1f1f21;
  --stone: #6f6f73;
  --line: #e8e6e1;
  --olive: #7e8a66;
  --rose: #d8b5be;
  --blue: #c9dee8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --body: "Inter", Arial, sans-serif;
  --accent: var(--champagne);
  --accent-soft: #f3e8d6;
  --shadow: 0 15px 45px rgba(0, 0, 0, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--graphite);
  background: var(--ivory);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body[data-event="quince"] { --accent: var(--rose); --accent-soft: #f5e8eb; }
body[data-event="cumpleanos"] { --accent: #9b5360; --accent-soft: #f3e5e7; }
body[data-event="celebracion"] { --accent: #7ca4b7; --accent-soft: #e8f1f5; }
body[data-event="empresarial"] { --accent: #5d7080; --accent-soft: #e7edf0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 10px max(22px, calc((100vw - 1180px) / 2));
  background: rgba(248, 246, 242, .96);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand img { width: 42px; height: 52px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; text-transform: uppercase; }
.brand small { margin-top: .24rem; color: #a67c3d; font-family: var(--sans); font-size: .44rem; letter-spacing: .18em; text-transform: uppercase; }
.header-links { display: flex; align-items: center; gap: .7rem; }
.text-link { color: var(--stone); font-family: var(--sans); font-size: .78rem; font-weight: 600; }
.icon-link { width: 42px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); }

.hub-hero {
  min-height: 470px;
  display: grid;
  place-items: center;
  padding: 76px 22px;
  text-align: center;
  background: linear-gradient(135deg, #f8f6f2 0%, #ffffff 52%, #efe5d5 100%);
}
.hub-hero > div { max-width: 790px; }
.eyebrow { margin: 0 0 .85rem; color: #a67c3d; font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
.hub-hero h1 { margin: 0; font-size: clamp(3.1rem, 7vw, 5.8rem); line-height: .98; }
.hub-hero h1 em { color: var(--champagne); font-weight: 400; }
.hub-hero .lead { max-width: 650px; margin: 1.4rem auto 0; color: var(--stone); font-size: 1.02rem; }

.event-selector { padding: 74px max(22px, calc((100vw - 1180px) / 2)) 96px; }
.section-title { max-width: 680px; margin-bottom: 2rem; }
.section-title h2 { margin: 0; font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.08; }
.section-title p:last-child { margin: .7rem 0 0; color: var(--stone); }
.event-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.event-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.event-card:nth-child(1), .event-card:nth-child(2) { grid-column: span 3; }
.event-card:nth-child(n+3) { grid-column: span 2; }
.event-card:hover { transform: translateY(-4px); box-shadow: 0 25px 60px rgba(0, 0, 0, .1); }
.event-card img { width: 100%; height: 230px; object-fit: cover; }
.event-card > div { padding: 1.25rem; }
.event-card h2 { margin: 0 0 .35rem; font-size: 1.65rem; }
.event-card p { min-height: 48px; margin: 0 0 1rem; color: var(--stone); font-size: .84rem; }
.event-card span { display: inline-flex; align-items: center; gap: .55rem; color: #a67c3d; font-family: var(--sans); font-size: .78rem; font-weight: 700; }

.detail-hero {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: center;
  padding: 70px max(22px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background-position: center;
  background-size: cover;
}
.detail-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 17, 17, .88) 0%, rgba(17, 17, 17, .64) 43%, rgba(17, 17, 17, .08) 72%); }
.detail-hero-content { position: relative; z-index: 1; width: min(580px, 100%); }
.back-link { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 3rem; color: #f3dfbd; font-family: var(--sans); font-size: .77rem; font-weight: 600; }
.detail-hero .eyebrow { color: #f3dfbd; }
.detail-hero h1 { margin: 0; font-size: clamp(3.2rem, 6vw, 5.4rem); line-height: .98; }
.detail-hero .lead { max-width: 540px; margin: 1.25rem 0 0; color: rgba(255, 255, 255, .82); font-size: 1rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.hero-meta span { padding: .45rem .7rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-family: var(--sans); font-size: .68rem; }

.progress-bar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; gap: 1rem; padding: 12px max(22px, calc((100vw - 1180px) / 2)); background: rgba(248,246,242,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.progress-bar strong { min-width: max-content; font-family: var(--sans); font-size: .76rem; }
.track { flex: 1; height: 6px; overflow: hidden; border-radius: 999px; background: var(--line); }
.track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--champagne), var(--accent)); transition: width .2s ease; }
.progress-count { color: var(--stone); font-size: .73rem; }

.brief-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 48px; padding: 72px max(22px, calc((100vw - 1180px) / 2)) 96px; }
.brief-content { min-width: 0; }
.intro-copy { max-width: 710px; margin-bottom: 3.5rem; }
.intro-copy h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.25rem); line-height: 1.06; }
.intro-copy p { margin: 1rem 0 0; color: var(--stone); }
.requirement-group { padding: 0 0 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); }
.requirement-group:last-child { border-bottom: 0; }
.group-head { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; margin-bottom: 1.2rem; }
.group-number { width: 44px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: #8b6839; background: var(--accent-soft); font-family: var(--sans); font-size: .68rem; font-weight: 700; }
.group-head h2 { margin: 0; font-size: 1.7rem; line-height: 1.1; }
.group-head p { margin: .35rem 0 0; color: var(--stone); font-size: .83rem; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0; padding: 0; list-style: none; }
.check-item label { min-height: 58px; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: .75rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.check-item label:hover { border-color: var(--accent); }
.check-item input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.check-item input:checked + span { color: var(--stone); text-decoration: line-through; text-decoration-color: var(--accent); }
.check-item span { font-size: .82rem; }
.section-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.option { min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.option i { color: #a67c3d; font-size: 1.2rem; }
.option strong { margin-top: .8rem; font-family: var(--sans); font-size: .78rem; }
.option small { margin-top: .25rem; color: var(--stone); font-size: .68rem; }

.brief-aside { align-self: start; position: sticky; top: 76px; }
.aside-panel { padding: 1.25rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.aside-panel h2 { margin: 0; font-size: 1.5rem; }
.aside-panel p { margin: .45rem 0 1.15rem; color: var(--stone); font-size: .78rem; }
.action { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; margin-top: .55rem; padding: .7rem 1rem; border: 1px solid var(--champagne); border-radius: 8px; color: var(--graphite); background: var(--white); font-family: var(--sans); font-size: .76rem; font-weight: 700; cursor: pointer; }
.action.primary { color: var(--white); background: linear-gradient(135deg, var(--champagne), var(--champagne-light)); }
.delivery-note { margin-top: 1rem; padding: 1rem; border-left: 2px solid var(--accent); background: var(--accent-soft); font-size: .74rem; }
.toast { position: fixed; z-index: 50; right: 18px; bottom: 18px; padding: .8rem 1rem; color: var(--white); background: var(--graphite); border-radius: 8px; font-size: .76rem; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.visible { opacity: 1; transform: none; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 30px max(22px, calc((100vw - 1180px) / 2)); color: #dedbd5; background: #111111; font-size: .72rem; }
.site-footer .brand strong { color: var(--white); }
.footer-links { display: flex; gap: 1.2rem; }

@media (max-width: 900px) {
  .event-list { grid-template-columns: 1fr 1fr; }
  .event-card:nth-child(n) { grid-column: span 1; }
  .brief-layout { grid-template-columns: 1fr; gap: 1rem; }
  .brief-aside { position: static; }
  .aside-panel { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; align-items: end; }
  .aside-panel h2, .aside-panel p, .delivery-note { grid-column: 1 / -1; }
  .action { margin: 0; }
}

@media (max-width: 620px) {
  .site-header { min-height: 68px; }
  .brand img { width: 36px; height: 44px; }
  .brand strong { font-size: 1.25rem; }
  .brand small { display: none; }
  .text-link { display: none; }
  .hub-hero { min-height: 420px; padding-block: 58px; }
  .hub-hero h1 { font-size: 3.3rem; }
  .event-selector { padding-block: 58px 72px; }
  .event-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .event-list::-webkit-scrollbar { display: none; }
  .event-card { flex: 0 0 84%; scroll-snap-align: center; }
  .event-card img { height: 205px; }
  .detail-hero { min-height: 630px; align-items: flex-end; padding-bottom: 50px; background-position: 67% center; }
  .detail-hero::before { background: linear-gradient(0deg, rgba(17,17,17,.93) 0%, rgba(17,17,17,.64) 54%, rgba(17,17,17,.12) 100%); }
  .back-link { margin-bottom: 2rem; }
  .detail-hero h1 { font-size: 3.35rem; }
  .progress-bar { gap: .65rem; }
  .progress-bar strong { display: none; }
  .brief-layout { padding-block: 54px 72px; }
  .check-list { grid-template-columns: 1fr; }
  .section-options { grid-template-columns: 1fr 1fr; }
  .aside-panel { grid-template-columns: 1fr; }
  .aside-panel h2, .aside-panel p, .delivery-note { grid-column: auto; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}

@media print {
  .site-header, .detail-hero, .progress-bar, .brief-aside, .site-footer, .toast { display: none !important; }
  body { background: #fff; }
  .brief-layout { display: block; padding: 0; }
  .requirement-group { break-inside: avoid; }
  .check-item label, .option { box-shadow: none; }
}

