/* ==========================================================================
   Odyssey Barcelona — hoja de estilos compartida
   Contiene: variables de marca, reset, tipografía global, componentes
   reutilizables (botones, enlaces, formularios), header/nav y footer.
   Los estilos propios de cada página van embebidos en su HTML.
   ========================================================================== */

/* --- Variables de marca --------------------------------------------------- */
:root {
  /* Color */
  --bg: hsl(205 45% 93%);
  --text: hsl(210 40% 14%);
  --muted: hsl(210 30% 40%);
  --primary: hsl(205 78% 42%);
  --deep: hsl(210 60% 18%);
  --deep-text: hsl(205 45% 94%);
  --deeper: hsl(212 65% 10%);
  --glow: hsl(178 85% 62%);
  --accent: hsl(28 85% 60%);
  --accent-soft: hsl(28 85% 60% / 0.14);
  --border: hsl(210 40% 14% / 0.1);
  --surface: hsl(205 45% 93%);

  /* Tipografía */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Radios y sombras */
  --radius-sm: 0.75rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px hsl(212 65% 10% / 0.06);
  --shadow: 0 12px 40px hsl(212 65% 10% / 0.12);

  /* Layout */
  --container: 75rem; /* 1200px */
  --container-narrow: 51.25rem; /* 820px */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

/* --- Reset base ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
iframe,
video {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  padding-left: 1.25rem;
}

/* --- Tipografía global ---------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
}
h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
}
h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
}

p {
  text-wrap: pretty;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary);
}

.eyebrow--glow {
  color: var(--glow);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.italic {
  font-style: italic;
}

.lead {
  font-size: clamp(1.0625rem, 2.2vw, 1.125rem);
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px
  ;overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Componentes de marca ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.75rem; /* 44px touch target */
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 200ms var(--ease),
    color 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.btn--accent {
  background-color: var(--accent);
  color: var(--deep);
}
.btn--accent:hover {
  background-color: hsl(28 85% 55%);
}

.btn--deep {
  background-color: var(--deep);
  color: var(--deep-text);
}
.btn--deep:hover {
  background-color: var(--deeper);
}

.btn--ghost {
  background-color: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn--ghost:hover {
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.btn--ghost-light {
  background-color: transparent;
  color: var(--deep-text);
  box-shadow: inset 0 0 0 1px hsl(205 45% 94% / 0.3);
}
.btn--ghost-light:hover {
  color: var(--glow);
  box-shadow: inset 0 0 0 1px hsl(178 85% 62% / 0.6);
}

.card {
  background-color: var(--bg);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: inset 0 0 0 1px var(--border);
}

.card h3 {
  color: var(--text);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1px var(--border);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Formularios base */
.field {
  display: grid;
  gap: var(--space-2);
}

.field > label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 0.9rem;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}

.textarea {
  min-height: 8rem;
  resize: vertical;
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible,
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Header y navegación -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: hsl(205 45% 93% / 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-block: 0.65rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}

.brand__mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  background-color: var(--deep);
  box-shadow: inset 0 0 0 1px hsl(178 85% 62% / 0.4);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--glow);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__name span {
  color: var(--muted);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.7rem;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background-color: var(--text);
  transition: transform 200ms var(--ease), opacity 150ms linear;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.site-nav {
  display: none;
  grid-column: 1 / -1;
}

@media (max-width: 1023px) {
  .brand { order: 1; min-width: 0; }
  .site-header__actions { order: 2; }
  .site-nav { order: 3; }
}

.site-nav.is-open {
  display: block;
  flex-basis: 100%;
  width: 100%;
  padding-bottom: var(--space-4);
  border-top: 1px solid var(--border);
  padding-top: var(--space-2);
}

.site-nav__list {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.25rem;
  color: var(--text);
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--primary);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-header__cta {
  display: none;
  padding-inline: 1.1rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.brand__name {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .site-header__cta {
    display: inline-flex;
  }
}


@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .site-header__inner {
    display: flex;
    flex-wrap: nowrap;
  }

  .site-nav,
  .site-nav.is-open {
    display: block;
    flex-basis: auto;
    width: auto;
    padding-bottom: 0;
    padding-top: 0;
    border-top: 0;
    margin-left: auto;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }

  .site-nav__list a {
    min-height: 2.25rem;
  }
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background-color: var(--deeper);
  color: var(--deep-text);
}

.site-footer__inner {
  display: grid;
  gap: var(--space-8);
  padding-block: var(--space-12);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
}
.site-footer__brand span {
  color: hsl(205 45% 94% / 0.6);
}

.site-footer p,
.site-footer a {
  color: hsl(205 45% 94% / 0.7);
}

.site-footer__tagline {
  max-width: 36ch;
  margin-top: var(--space-2);
  font-size: 0.875rem;
}

.site-footer__meta {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: grid;
  gap: 0.25rem;
}

.site-footer__social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.site-footer a {
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.site-footer a:hover {
  color: var(--glow);
}

.site-footer__links {
  display: grid;
  gap: var(--space-3);
  font-size: 0.875rem;
}

.site-footer__links a {
  color: hsl(205 45% 94% / 0.85);
  min-height: 1.75rem;
  display: inline-flex;
  align-items: center;
}

.site-footer__copy {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: hsl(205 45% 94% / 0.5);
}

@media (min-width: 640px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

/* --- Banner de cookies (compartido) -------------------------------------- */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: var(--space-4);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__box {
  max-width: var(--container);
  margin-inline: auto;
  background-color: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--border);
  padding: var(--space-6);
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.cookie-banner__text {
  margin-top: var(--space-2);
  font-size: 0.875rem;
  color: var(--muted);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.cookie-banner__prefs {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-3);
  font-size: 0.875rem;
}

.cookie-banner__prefs[hidden] {
  display: none;
}

.cookie-banner__pref {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--border);
}

@media (min-width: 1024px) {
  .cookie-banner__box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-6);
    align-items: center;
  }
  .cookie-banner__actions,
  .cookie-banner__prefs {
    margin-top: 0;
  }
  .cookie-banner__prefs {
    grid-column: 1 / -1;
  }
}

/* --- Utilidades compartidas ---------------------------------------------- */
.section--deep {
  background-color: var(--deep);
  color: var(--deep-text);
}

.section--deep h1,
.section--deep h2 {
  color: var(--deep-text);
}

.curve-top {
  height: 4rem;
  margin-bottom: -1px;
  border-radius: 100% 100% 0 0 / 100% 100% 0 0;
  background-color: var(--bg);
}

.curve-bottom {
  height: 4rem;
  margin-top: -1px;
  border-radius: 0 0 100% 100% / 0 0 100% 100%;
  background-color: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
