:root {
  --wine-950: #481013;
  --wine-800: #72191e;
  --wine-700: #8f1f24;
  --wine-600: #a82b30;
  --gold-600: #b88724;
  --gold-500: #c99a35;
  --cream-100: #faf6ed;
  --cream-200: #f2e9d7;
  --ink-900: #241d1d;
  --ink-700: #574d4c;
  --ink-500: #7b706f;
  --white: #fff;
  --line: #e7ded2;
  --shadow: 0 18px 50px rgba(72, 16, 19, .10);
  --radius: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink-900);
  background: var(--cream-100);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--wine-700); text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--wine-800);
  border-radius: 10px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(250, 246, 237, .94);
  border-bottom: 1px solid rgba(184, 135, 36, .25);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 116px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: block; width: 215px; margin-right: auto; }
.brand img { display: block; width: 100%; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
  position: relative;
  color: var(--ink-700);
  font-weight: 650;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a.active { color: var(--wine-700); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: var(--gold-500);
}
.language-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.language-switcher a {
  padding: 4px 8px;
  color: var(--ink-700);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.language-switcher a:hover { color: var(--white); background: var(--wine-700); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 94px 0 82px;
  background:
    radial-gradient(circle at 86% 14%, rgba(201, 154, 53, .24), transparent 28%),
    linear-gradient(135deg, #fffaf0 0%, #f4ead8 100%);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -12%;
  right: -4%;
  width: 58%;
  height: 124%;
  background: url("/assets/images/monograma-mleal.png") center / contain no-repeat;
  opacity: .09;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -150px;
  bottom: -220px;
  border: 1px solid rgba(143, 31, 36, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(143, 31, 36, .035), 0 0 0 100px rgba(143, 31, 36, .025);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-600);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; color: var(--wine-950); font-family: Georgia, "Times New Roman", serif; line-height: 1.12; }
h1 { max-width: 780px; margin-bottom: 24px; font-size: clamp(42px, 6vw, 72px); font-weight: 500; letter-spacing: -.035em; }
h2 { margin-bottom: 16px; font-size: clamp(32px, 4vw, 48px); font-weight: 500; letter-spacing: -.02em; }
h3 { font-size: 23px; font-weight: 600; }
.lead { max-width: 700px; margin: 0 0 32px; color: var(--ink-700); font-size: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  color: var(--white);
  background: var(--wine-700);
  border: 1px solid var(--wine-700);
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { color: var(--white); background: var(--wine-800); box-shadow: 0 10px 25px rgba(114, 25, 30, .2); transform: translateY(-2px); }
.button.secondary { color: var(--wine-700); background: transparent; border-color: rgba(143, 31, 36, .35); }
.button.secondary:hover { color: var(--wine-800); background: rgba(255, 255, 255, .65); }
.button.small { min-height: 42px; padding: 8px 17px; font-size: 14px; }

.hero-card {
  position: relative;
  padding: 28px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(184, 135, 36, .28);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero-card::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-bottom: 22px;
  background: var(--gold-500);
}
.hero-card strong { display: block; color: var(--wine-800); font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.hero-card p { margin-bottom: 0; color: var(--ink-700); }

.section { padding: 78px 0; }
.section.white { background: var(--white); }
.section.wine { color: var(--white); background: var(--wine-800); }
.section.wine h2, .section.wine h3 { color: var(--white); }
.section-heading { max-width: 740px; margin-bottom: 38px; }
.section-heading p { color: var(--ink-700); font-size: 18px; }
.section.wine .section-heading p { color: rgba(255,255,255,.78); }

.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.event-card, .hotel-card, .step-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(72, 16, 19, .055);
}
.event-card { display: flex; min-height: 280px; flex-direction: column; padding: 26px; }
.event-card .date {
  margin-bottom: 18px;
  color: var(--gold-600);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.event-logo-wrap {
  display: flex;
  width: 100%;
  height: 112px;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 22px;
  text-decoration: none;
}
.event-logo-wrap img {
  display: block;
  max-width: min(100%, 260px);
  max-height: 108px;
  object-fit: contain;
  object-position: left center;
}
.event-card h3 { margin-bottom: 12px; }
.event-card .location { margin: 0 0 24px; color: var(--ink-700); }
.event-card .button { align-self: flex-start; margin-top: auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: steps; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 28px 0 38px; }
.admin-stat {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(72, 16, 19, .05);
}
.admin-stat span { display: block; color: var(--ink-700); font-size: 14px; font-weight: 700; }
.admin-stat strong { display: block; margin-top: 4px; color: var(--wine-800); font-family: Georgia, serif; font-size: 38px; font-weight: 500; }
.step-card { padding: 28px; counter-increment: steps; }
.step-card::before {
  content: "0" counter(steps);
  display: block;
  margin-bottom: 34px;
  color: var(--gold-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .13em;
}
.step-card p { margin: 0; color: var(--ink-700); font-size: 18px; }

.page-hero { padding: 62px 0 44px; background: linear-gradient(145deg, #fffaf0, #f2e7d4); }
.page-hero h1 { max-width: 900px; font-size: clamp(38px, 5vw, 58px); }
.page-hero p { max-width: 760px; color: var(--ink-700); font-size: 19px; }
.event-detail-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; }
.event-logo-panel {
  display: grid;
  width: 340px;
  min-height: 190px;
  padding: 22px;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.event-logo { display: block; max-width: 100%; max-height: 170px; object-fit: contain; }
.meta-list { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; list-style: none; }
.meta-list li { padding: 8px 13px; background: var(--cream-200); border-radius: 999px; color: var(--ink-700); }

.hotel-grid { display: grid; gap: 22px; }
.hotel-card { display: grid; grid-template-columns: 230px 1fr auto; gap: 28px; align-items: center; padding: 22px; }
.hotel-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream-200); border-radius: 14px; }
.hotel-card h3 { margin-bottom: 6px; }
.hotel-meta { margin: 0; color: var(--ink-700); }
.rate { min-width: 180px; text-align: right; }
.rate strong { display: block; color: var(--wine-800); font-family: Georgia, serif; font-size: 28px; font-weight: 500; }

.form-shell { max-width: 880px; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-section { padding: 0 0 28px; margin: 0 0 28px; border: 0; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section legend { padding: 0; margin-bottom: 20px; color: var(--wine-950); font-family: Georgia, serif; font-size: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; color: var(--ink-700); font-size: 14px; font-weight: 750; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink-900);
  background: var(--white);
  border: 1px solid #cfc2b6;
  border-radius: 10px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(201,154,53,.25); border-color: var(--gold-600); }
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  margin: 0 8px 0 0;
  vertical-align: middle;
  accent-color: var(--wine-700);
  cursor: pointer;
}
.field input[type="checkbox"] { width: 20px; min-height: 0; }
.html-editor { overflow: hidden; border: 1px solid #cfc2b6; border-radius: 10px; background: var(--white); }
.html-editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; background: var(--cream-200); border-bottom: 1px solid #cfc2b6; }
.html-editor-toolbar button { min-width: 36px; padding: 7px 10px; color: var(--wine-800); background: var(--white); border: 1px solid #cfc2b6; border-radius: 6px; cursor: pointer; }
.html-editor-toolbar button:hover { color: var(--white); background: var(--wine-700); border-color: var(--wine-700); }
.html-editor-content { min-height: 170px; padding: 14px; color: var(--ink-900); outline: 0; }
.html-editor-content:focus { box-shadow: inset 0 0 0 3px rgba(201,154,53,.25); }
.html-editor + textarea, textarea.html-editor-source { display: none; }
.rich-text p:first-child { margin-top: 0; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text ul, .rich-text ol { padding-left: 24px; }
.notice { padding: 16px 18px; margin-bottom: 24px; background: var(--cream-200); border-left: 4px solid var(--gold-500); border-radius: 8px; }
.error { background: #fff0f0; border-left-color: var(--wine-700); }

.site-footer { padding: 54px 0 22px; color: rgba(255,255,255,.8); background: var(--wine-950); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; }
.footer-logo { width: 150px; padding: 8px; background: var(--white); border-radius: 10px; }
.site-footer strong { color: var(--white); }
.site-footer a { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; margin-top: 34px; border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; }

@media (max-width: 960px) {
  .header-inner { min-height: 94px; }
  .brand { width: 170px; }
  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
  }
  .menu-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; background: var(--wine-800); }
  .main-nav {
    display: none;
    position: absolute;
    top: 94px;
    right: 20px;
    left: 20px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px; }
  .main-nav a.active::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero::before { top: 3%; right: -24%; width: 105%; height: 72%; opacity: .055; }
  .event-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .hotel-card { grid-template-columns: 170px 1fr; }
  .rate { grid-column: 2; text-align: left; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .language-switcher { margin-left: 0; }
  .language-switcher a { padding-inline: 6px; }
  .hero { padding: 62px 0 56px; }
  .brand { width: 145px; }
  h1 { font-size: 42px; }
  .event-grid, .steps, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
  .event-detail-head { grid-template-columns: 1fr; }
  .event-logo-panel { width: 100%; min-height: 150px; }
  .hotel-card { grid-template-columns: 1fr; }
  .rate { grid-column: auto; }
  .hotel-photo { max-height: 220px; }
  .form-shell { padding: 22px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
