/* Retiro Fácil España — design tokens */
:root {
  --ink: #0f2a33;
  --ink-soft: #3a5560;
  --paper: #f7f3eb;
  --cream: #fffdf8;
  --teal: #0f4c5c;
  --teal-deep: #0a3440;
  --gold: #c9a227;
  --gold-soft: #e8d48b;
  --sand: #e6dcc8;
  --coral: #c45c26;
  --line: rgba(15, 42, 51, 0.12);
  --shadow: 0 18px 50px rgba(15, 42, 51, 0.12);
  --radius: 4px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
}

*,
*::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(--paper);
  line-height: 1.6;
  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;
  background: rgba(247, 243, 235, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(15, 42, 51, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--teal);
}

.logo span {
  color: var(--gold);
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--teal) !important;
  color: var(--cream) !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--teal-deep) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 2.4rem;
  height: 2.4rem;
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--ink);
  position: absolute;
  left: 0.5rem;
  transition: transform 0.25s;
}

.menu-toggle span {
  top: 50%;
}

.menu-toggle span::before {
  content: "";
  top: -6px;
}

.menu-toggle span::after {
  content: "";
  top: 6px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  color: var(--cream);
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 52, 64, 0.35) 0%, rgba(10, 52, 64, 0.78) 70%, rgba(10, 52, 64, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 52, 64, 0.55), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 0 4.5rem;
  max-width: 40rem;
  animation: fadeUp 0.9s ease both;
}

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

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.brand-mark em {
  font-style: italic;
  color: var(--gold-soft);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 1rem;
  max-width: 28ch;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255, 253, 248, 0.88);
  margin-bottom: 2rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.45rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn-primary {
  background: var(--gold);
  color: var(--teal-deep);
}

.btn-primary:hover {
  background: var(--gold-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 253, 248, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 253, 248, 0.1);
}

/* Sections shared */
section {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  color: var(--teal-deep);
}

.section-intro {
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Options */
.options {
  background: var(--cream);
}

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

.option-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  color: var(--cream);
}

.option-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.option-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(10, 52, 64, 0.92) 100%);
}

.option-body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
}

.option-body h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.45rem;
}

.option-body p {
  font-size: 0.95rem;
  color: rgba(255, 253, 248, 0.88);
}

.option-num {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* How-to */
.howto-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.howto-visual {
  position: relative;
  overflow: hidden;
  min-height: 460px;
}

.howto-visual img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.howto-visual::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(15, 42, 51, 0.35));
  z-index: 1;
  pointer-events: none;
}

.steps {
  display: grid;
  gap: 1.25rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-n {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: var(--teal-deep);
}

.step p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Tips / trust */
.tips {
  background:
    radial-gradient(ellipse at 10% 20%, rgba(201, 162, 39, 0.12), transparent 45%),
    radial-gradient(ellipse at 90% 80%, rgba(15, 76, 92, 0.1), transparent 40%),
    var(--paper);
}

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

.tip {
  padding: 1.5rem 1.6rem;
  border-left: 3px solid var(--gold);
  background: rgba(255, 253, 248, 0.7);
}

.tip h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--teal-deep);
}

.tip p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.75rem;
  background: var(--teal-deep);
  color: var(--cream);
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold-soft);
  margin-bottom: 0.2rem;
}

.trust-item span {
  font-size: 0.9rem;
  opacity: 0.88;
}

/* Cities */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.city {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  color: var(--cream);
}

.city img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.city::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 52, 64, 0.9));
}

.city-body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
}

.city-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.city-body p {
  font-size: 0.92rem;
  opacity: 0.9;
}

/* CTA band */
.cta-band {
  background: var(--teal);
  color: var(--cream);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -120px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.15);
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  max-width: 18ch;
  line-height: 1.2;
}

.cta-inner p {
  opacity: 0.9;
  margin-top: 0.5rem;
  max-width: 36ch;
}

/* FAQ */
.faq {
  background: var(--cream);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--paper);
}

.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  color: var(--teal-deep);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 1.25rem 1.2rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  background: var(--teal-deep);
  color: rgba(255, 253, 248, 0.92);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--cream);
  margin-bottom: 1rem;
}

.map-wrap {
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.15);
  min-height: 260px;
  background: #0a2a33;
}

.map-wrap iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
  filter: grayscale(0.25) contrast(1.05);
}

.address-list {
  display: grid;
  gap: 1.1rem;
}

.address-item h4 {
  font-family: var(--font-display);
  color: var(--gold-soft);
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.address-item p {
  font-size: 0.92rem;
  opacity: 0.88;
  line-height: 1.5;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-soft);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 253, 248, 0.2);
  background: rgba(255, 253, 248, 0.06);
  color: var(--cream);
  font: inherit;
  border-radius: var(--radius);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

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

.contact-form .btn-primary {
  margin-top: 0.35rem;
  width: 100%;
}

.form-note {
  font-size: 0.82rem;
  opacity: 0.75;
  margin-top: 0.35rem;
}

.form-success {
  display: none;
  padding: 1rem;
  background: rgba(201, 162, 39, 0.18);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--gold-soft);
  font-size: 0.95rem;
}

.form-success.show {
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 253, 248, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  opacity: 0.75;
}

/* Responsive */
@media (max-width: 960px) {
  .options-grid,
  .cities-grid,
  .footer-grid,
  .howto-layout {
    grid-template-columns: 1fr;
  }

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

  .howto-visual,
  .howto-visual img {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 3.6rem 0 auto;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.4rem;
    gap: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }

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

  .hero-content {
    padding-top: 7rem;
  }

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

@media (max-width: 480px) {
  .trust-bar {
    grid-template-columns: 1fr;
  }
}
