:root {
  --petrol: #0E2A3B;
  --petrol-2: #16384B;
  --sand: #F1EADF;
  --cream: #EDE7DC;
  --coral: #FF8A65;
  --coral-dark: #C2410C;
  --ink-2: #D3DCE0;
  --muted: #B9C7CE;
  --muted-dark: #5B6B73;
  --text-dark-2: #3D5260;
  --max: 1280px;
  --serif: 'Instrument Serif', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--petrol);
  color: var(--cream);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
.flip { display: inline-block; transform: rotate(180deg); }

/* ---------- Logo (grupo / mareo del revés) ---------- */
.logo {
  margin: 0;
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.04em;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}
.logo--small { font-size: 22px; color: var(--cream); }
.logo--hero { font-size: clamp(88px, 17vw, 232px); color: var(--cream); }
.logo--footer { font-size: clamp(96px, 20vw, 280px); color: var(--petrol-2); }

/* ---------- Cabecera ---------- */
.site-header {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--cream); padding: 12px 0; }
.main-nav a:hover { color: var(--coral); }

/* ---------- Portada (fondo C: espuma sobre arena) ---------- */
.hero {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--sand);
  color: var(--petrol);
}
.hero__foam { position: absolute; top: 0; left: 0; width: max(100%, 1000px); height: 100%; }
.hero .logo--small, .hero .logo--hero { color: var(--petrol); }
.hero .main-nav a { color: var(--petrol); }
.hero .main-nav a:hover { color: var(--petrol-2); text-decoration: underline; }
.hero__content {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.hero__brand { display: inline-flex; flex-direction: column; align-items: flex-end; }
.hero__by { margin: calc(-0.195 * clamp(88px, 17vw, 232px)) calc(0.065 * clamp(88px, 17vw, 232px)) 0 0; font-size: 19px; line-height: 1.5; }

/* ---------- Cinta ---------- */
.ribbon {
  background: var(--coral);
  color: var(--petrol);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.02em;
}
.ribbon__track {
  display: inline-flex;
  gap: 28px;
  padding-right: 28px;
  animation: ribbon 80s linear infinite;
}
@keyframes ribbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon__track { animation: none; } }

/* ---------- Quiénes somos ---------- */
.about { background: var(--sand); color: var(--petrol); padding: 120px 24px 96px; }
.about__inner { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.about__text {
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.wave { display: block; width: 100%; height: 64px; background: var(--sand); }
.wave path { fill: var(--petrol); }

/* ---------- Venues ---------- */
.venues {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px 120px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.venues__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.venues__title { margin: 0; font-size: clamp(48px, 7vw, 96px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.9; }
.venues__title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--coral); letter-spacing: -0.02em; }
.venues__where { margin: 0; font-size: 16px; color: var(--muted); }
.venues__grid { display: flex; flex-wrap: wrap; gap: 48px 24px; }

.venue { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.venue__media {
  position: relative;
  height: clamp(420px, 46vw, 620px);
  border-radius: 6px;
  overflow: hidden;
  background: var(--petrol-2);
}
.venue__media img { width: 100%; height: 100%; object-fit: cover; }
.venue__num {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 120px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(237, 231, 220, 0.9);
  text-shadow: 0 2px 24px rgba(8, 26, 37, 0.35);
}
.venue__num--right { left: auto; right: 20px; }
.venue__tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: var(--cream);
  color: var(--petrol);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.venue__body { display: flex; flex-direction: column; gap: 12px; }
.venue__name { margin: 0; font-size: clamp(36px, 4vw, 52px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.venue__claim { margin: 0; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--coral); }
.venue__text { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.venue__link {
  align-self: flex-start;
  margin-top: 8px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--cream);
  border-bottom: 1px solid rgba(237, 231, 220, 0.5);
}
.venue__link:hover { color: var(--coral); border-color: var(--coral); }

/* ---------- Contacto ---------- */
.contact { background: var(--sand); color: var(--petrol); padding: 120px 24px; }
.contact__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 56px 80px; }
.contact__intro { flex: 1 1 380px; display: flex; flex-direction: column; gap: 24px; }
.contact__title { margin: 0; font-size: clamp(64px, 9vw, 128px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.88; }
.contact__text { margin: 0; max-width: 380px; font-size: 18px; line-height: 1.55; color: var(--text-dark-2); }
.contact__mail {
  align-self: flex-start;
  font-size: 22px;
  font-weight: 500;
  border-bottom: 2px solid var(--coral-dark);
  padding-bottom: 2px;
}
.contact__mail:hover { color: var(--coral-dark); }

.form {
  flex: 1 1 480px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  background: #FFFFFF;
  border: 1px solid rgba(14, 42, 59, 0.3);
  border-radius: 6px;
  color: var(--petrol);
  font: inherit;
  font-size: 16px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--petrol); }
.field [aria-invalid="true"] { border-color: var(--coral-dark); }
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--petrol); }
.field--check label { font-size: 15px; font-weight: 400; line-height: 1.5; }
.field--check a { text-decoration: underline; }
.field--check a:hover { color: var(--coral-dark); }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.btn {
  min-height: 56px;
  padding: 0 40px;
  background: var(--petrol);
  color: var(--cream);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}
.btn:hover { background: #163E55; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.form__status { grid-column: 1 / -1; margin: 0; min-height: 1.5em; font-size: 15px; line-height: 1.5; }
.form__status.is-ok { color: #1F6B5C; font-weight: 500; }
.form__status.is-error { color: var(--coral-dark); font-weight: 500; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pie ---------- */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 32px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer__inner { width: 100%; display: flex; flex-direction: column; gap: 48px; }
.site-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--coral); }

/* ---------- Páginas legales ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  line-height: 1.65;
  color: var(--ink-2);
}
.legal h1 { color: var(--cream); font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.05; }
.legal h2 { color: var(--cream); font-size: 20px; margin-top: 40px; }
.legal a { color: var(--coral); text-decoration: underline; }

/* Baja un poco las olas para que el logo y el menú queden siempre sobre el coral,
   también en pantallas anchas (donde el menú se centra y las olas suben) */
.hero { background: linear-gradient(var(--coral) 0 70px, var(--sand) 70px); }
.hero__foam { transform: translateY(30px); }

.footer-kh { text-decoration: underline; text-underline-offset: 3px; }

/* Captcha (letras en imagen) */
.form__actions { align-items: flex-end; }
.captcha { flex: 1 1 340px; }
.captcha__row { display: flex; align-items: center; gap: 10px; }
.captcha__img { flex: none; width: 170px; height: 56px; border: 1px solid rgba(14, 42, 59, 0.3); border-radius: 6px; background: #FFFFFF; }
.captcha__new {
  flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--petrol); border: 1px solid rgba(14, 42, 59, 0.3); border-radius: 999px; cursor: pointer;
}
.captcha__new:hover { border-color: var(--petrol); }
.captcha .captcha__row input { flex: 1 1 90px; min-width: 0; text-transform: uppercase; letter-spacing: 0.15em; }

/* Desplegable de venue */
.field select {
  width: 100%;
  min-height: 52px;
  padding: 13px 44px 13px 16px;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230E2A3B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid rgba(14, 42, 59, 0.3);
  border-radius: 6px;
  color: var(--petrol);
  font: inherit;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.field select:focus { border-color: var(--petrol); }
.field select:invalid { color: #5B6B73; }

/* Textos legales: listas y énfasis */
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--cream); }

/* Información básica de protección de datos bajo el formulario */
.form__legal { grid-column: 1 / -1; margin: -4px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-dark-2); }
.form__legal a { text-decoration: underline; }
