/* Guía Sabores de España — Mediterranean editorial */
:root {
  --navy: #1a2f44;
  --navy-deep: #0f1c2a;
  --saffron: #d4a017;
  --saffron-hot: #e8b923;
  --olive: #4a6741;
  --olive-soft: #6b8f62;
  --stone: #e8e2d6;
  --stone-warm: #f3efe6;
  --ink: #1c1a17;
  --muted: #5c564c;
  --white: #fffcf7;
  --coral: #c45c3e;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --radius: 2px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--stone-warm);
  line-height: 1.65;
  font-size: 1.05rem;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
}

.site-header.scrolled {
  background: rgba(15, 28, 42, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(15, 28, 42, 0.25);
  padding: 0.65rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.logo span {
  color: var(--saffron);
  font-weight: 400;
  font-style: italic;
}

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

.nav a {
  color: rgba(255, 252, 247, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--saffron);
}

.nav-cta {
  background: var(--saffron);
  color: var(--navy-deep) !important;
  padding: 0.55rem 1.1rem;
  font-weight: 600 !important;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--saffron-hot) !important;
  color: var(--navy-deep) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 1.25rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--white);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s var(--ease) infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 28, 42, 0.55) 0%, rgba(15, 28, 42, 0.25) 40%, rgba(15, 28, 42, 0.88) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(212, 160, 23, 0.18), transparent 55%);
}

.hero-content {
  padding: 0 0 5.5rem;
  max-width: 40rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.15s forwards;
}

.hero-brand em {
  font-style: italic;
  color: var(--saffron);
  font-weight: 400;
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 252, 247, 0.92);
  max-width: 32rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.35s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.55s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--saffron);
  color: var(--navy-deep);
}

.btn-primary:hover {
  background: var(--saffron-hot);
  box-shadow: 0 10px 28px rgba(212, 160, 23, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 252, 247, 0.45);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 252, 247, 0.08);
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 252, 247, 0.55);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Sections common —— */
section {
  padding: 5.5rem 0;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 0.85rem;
}

.section-lead {
  color: var(--muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

.section-head {
  margin-bottom: 3rem;
}

/* —— Why / value —— */
.why {
  background:
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #243d52 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.why::before {
  content: "";
  position: absolute;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.12), transparent 70%);
  top: -20%;
  right: -10%;
  pointer-events: none;
}

.why .section-label {
  color: var(--saffron);
}

.why .section-title {
  color: var(--white);
}

.why .section-lead {
  color: rgba(255, 252, 247, 0.72);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.value-card {
  padding: 1.75rem 1.5rem;
  border-top: 2px solid var(--saffron);
  background: rgba(255, 252, 247, 0.04);
  transition: background 0.3s, transform 0.3s var(--ease);
}

.value-card:hover {
  background: rgba(255, 252, 247, 0.08);
  transform: translateY(-4px);
}

.value-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--saffron);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.value-card p {
  color: rgba(255, 252, 247, 0.7);
  font-size: 0.98rem;
}

/* —— Regions —— */
.regions {
  background: var(--stone-warm);
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.region-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
}

.region-card.span-full {
  grid-column: 1 / -1;
  min-height: 340px;
}

.region-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}

.region-card:hover img {
  transform: scale(1.06);
}

.region-card .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(15, 28, 42, 0.9) 100%);
  z-index: 1;
}

.region-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 1.75rem;
  color: var(--white);
}

.region-body h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin-bottom: 0.35rem;
}

.region-body p {
  color: rgba(255, 252, 247, 0.8);
  font-size: 0.95rem;
  max-width: 28rem;
}

.region-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

/* —— Restaurants —— */
.restaurants {
  background: var(--white);
}

.resto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.resto {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resto-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}

.resto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.resto:hover .resto-img img {
  transform: scale(1.05);
}

.resto-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
}

.resto h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.resto-meta {
  font-size: 0.85rem;
  color: var(--olive);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.resto p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Trust —— */
.trust {
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234a6741' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--stone) 0%, var(--stone-warm) 100%);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.stat {
  text-align: left;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat span {
  font-size: 0.88rem;
  color: var(--muted);
}

.quote-block {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem;
  position: relative;
}

.quote-block::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--saffron);
  line-height: 0.6;
  display: block;
  margin-bottom: 1rem;
}

.quote-block blockquote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.quote-block cite {
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(255, 252, 247, 0.65);
}

/* —— CTA band —— */
.cta-band {
  padding: 4.5rem 0;
  background: linear-gradient(105deg, var(--olive) 0%, #3a5534 50%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin-bottom: 0.65rem;
}

.cta-band p {
  color: rgba(255, 252, 247, 0.8);
  margin-bottom: 1.75rem;
  max-width: 32rem;
  margin-inline: auto;
}

/* —— Footer —— */
.site-footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-block h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
  color: var(--saffron);
}

.footer-block p,
.address-list li {
  color: rgba(255, 252, 247, 0.72);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.address-list li strong {
  display: block;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  height: 260px;
  border: 1px solid rgba(255, 252, 247, 0.12);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.2) contrast(1.05);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 252, 247, 0.7);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 252, 247, 0.06);
  border: 1px solid rgba(255, 252, 247, 0.18);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--saffron);
  background: rgba(255, 252, 247, 0.1);
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form .btn {
  margin-top: 0.35rem;
  align-self: flex-start;
}

.form-note {
  font-size: 0.8rem;
  color: var(--saffron);
  min-height: 1.2em;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 252, 247, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 252, 247, 0.5);
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .value-grid,
  .resto-grid {
    grid-template-columns: 1fr;
  }

  .region-grid {
    grid-template-columns: 1fr;
  }

  .region-card.span-full {
    grid-column: auto;
  }

  .trust-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy-deep);
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 1rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }
}

@media (max-width: 560px) {
  .trust-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-content {
    padding-bottom: 4rem;
  }
}
