/* ============================================================
   Tu Desvío — tudesvio.es
   Design system: manual @_antostudios (ene-2026) + mockup Figma "Examen web"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --td-cream:      #F3EBCB;
  --td-terracotta: #B17035;
  --td-olive:      #535F34;
  --td-green:      #62934C;

  --td-cream-100:  #FAF6E8;
  --td-cream-300:  #E7DCB6;
  --td-terracotta-600: #935B27;
  --td-olive-700:  #3E481F;
  --td-green-600:  #517E3E;

  --td-ink:        #2B2A1F;
  --td-ink-soft:   #5C5A48;
  --td-line:       #D9CFA9;
  --td-white:      #FFFFFF;

  --td-font-hand:  'Caveat', cursive;
  --td-font-body:  'Poppins', system-ui, -apple-system, sans-serif;

  --td-radius-sm:   8px;
  --td-radius-md:   14px;
  --td-radius-lg:   22px;
  --td-radius-pill: 999px;

  --td-shadow-sm: 0 1px 2px rgba(43,42,31,.08);
  --td-shadow-md: 0 4px 14px rgba(43,42,31,.12);
  --td-shadow-lg: 0 12px 34px rgba(43,42,31,.16);

  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  font-family: var(--td-font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--td-ink);
  background: var(--td-cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
.hand {
  font-family: var(--td-font-hand);
  font-weight: 700;
  line-height: 1.05;
  color: var(--td-olive);
}
h1.hand { font-size: clamp(3rem, 7.5vw, 5.2rem); }
h2.hand { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }

.section-title { text-align: center; margin-bottom: 12px; }
.section-sub {
  text-align: center;
  color: var(--td-ink-soft);
  max-width: 640px;
  margin: 0 auto 48px;
}
.h-green {
  color: var(--td-green);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.3;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--td-font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--td-radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--td-shadow-md); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--td-olive); color: var(--td-cream); }
.btn-primary:hover { background: var(--td-olive-700); }
.btn-accent { background: var(--td-terracotta); color: var(--td-cream-100); }
.btn-accent:hover { background: var(--td-terracotta-600); }
.btn-outline { border-color: var(--td-olive); color: var(--td-olive); background: transparent; }
.btn-outline:hover { background: var(--td-olive); color: var(--td-cream); }
.btn-green { background: var(--td-green); color: var(--td-white); }
.btn-green:hover { background: var(--td-green-600); }
.btn-cream { background: var(--td-cream-100); color: var(--td-olive); }
.btn-cream:hover { background: var(--td-white); }
.btn-sm { padding: 10px 22px; font-size: .9rem; }
.btn-lg { padding: 17px 42px; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 235, 203, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--td-cream-300); box-shadow: var(--td-shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.main-nav { display: flex; align-items: center; gap: 42px; }
.main-nav a {
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--td-ink);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--td-olive); }
.main-nav a.active { color: var(--td-olive); font-weight: 600; }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: 3px;
  background: var(--td-green);
}
.main-nav a.nav-cta {
  margin-left: 8px;
  padding: 11px 26px;
  color: var(--td-white);
}
.main-nav a.nav-cta:hover { color: var(--td-white); }
.main-nav a.nav-cta.active::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--td-olive);
  margin: 5px 0;
  transition: .25s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero .hand { margin-bottom: 18px; }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--td-ink-soft);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.hero-runner { width: min(380px, 62vw); margin: 44px auto 40px; }
.hero-runner img { width: 100%; transition: transform .3s ease; }
.hero-runner:hover img { transform: scale(1.14); }

/* trust strip */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 80px);
  flex-wrap: wrap;
  padding: 28px 24px;
  border-top: 1px solid var(--td-line);
  border-bottom: 1px solid var(--td-line);
  background: var(--td-cream-100);
}
.trust-item { text-align: center; }
.trust-item strong {
  display: block;
  font-family: var(--td-font-hand);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--td-terracotta);
  line-height: 1;
}
.trust-item span { font-size: .88rem; color: var(--td-ink-soft); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

/* ---------- Cards: planes ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-3--airy { row-gap: 52px; }
.plan-card {
  background: var(--td-cream-100);
  border-radius: var(--td-radius-lg);
  overflow: hidden;
  box-shadow: var(--td-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--td-shadow-lg); }
.plan-card .card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.plan-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.plan-card:hover .card-img img { transform: scale(1.05); }
.plan-card .card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-tag {
  align-self: flex-start;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--td-cream-100);
  background: var(--td-green);
  padding: 4px 12px;
  border-radius: var(--td-radius-pill);
}
.plan-card h3 { font-size: 1.15rem; font-weight: 600; color: var(--td-ink); line-height: 1.35; }
.card-place { font-size: .9rem; color: var(--td-ink-soft); }
.card-place::before { content: '📍 '; }
.plan-card p { font-size: .92rem; color: var(--td-ink-soft); flex: 1; }
.card-link {
  font-weight: 600;
  font-size: .95rem;
  color: var(--td-terracotta);
  margin-top: 6px;
}
.card-link:hover { color: var(--td-terracotta-600); }
.card-link::after { content: ' →'; }
.card-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--td-cream-300), var(--td-cream-100));
}
.card-ph span { font-size: 3.4rem; }

/* ---------- Feature (ruta) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.feature-media img {
  width: 100%;
  border-radius: var(--td-radius-lg);
  box-shadow: var(--td-shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.feature-copy h2 { margin-bottom: 14px; }
.feature-copy .h-green { display: block; margin-bottom: 10px; }
.feature-copy p { color: var(--td-ink-soft); margin-bottom: 14px; }
.feature.reverse .feature-media { order: 2; }

/* ---------- Alojamientos cards ---------- */
.stay-card {
  background: var(--td-cream-100);
  border-radius: var(--td-radius-lg);
  overflow: hidden;
  box-shadow: var(--td-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.stay-card:hover { transform: translateY(-6px); box-shadow: var(--td-shadow-lg); }
.stay-card .card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.stay-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.stay-card:hover .card-img img { transform: scale(1.05); }
.stay-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(250,246,232,.94);
  color: var(--td-olive);
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: var(--td-radius-pill);
  box-shadow: var(--td-shadow-sm);
}
.stay-card .card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.stay-card h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.35; }
.stay-meta { font-size: .88rem; color: var(--td-ink-soft); }
.stay-price { margin-top: 4px; font-size: .95rem; }
.stay-price strong { font-size: 1.25rem; color: var(--td-terracotta); font-weight: 700; }
.stay-card .btn { margin-top: 12px; align-self: flex-start; }

/* bloque "ver más" */
.vermas { text-align: center; margin: 80px 0 48px; }
.vermas .hand { font-size: 2.4rem; display: block; margin-bottom: 20px; }
.vermas .btn { padding: 20px 52px; font-size: 1.15rem; }

/* filter chips */
.chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.chip {
  font-family: var(--td-font-body);
  font-size: .92rem;
  font-weight: 500;
  padding: 9px 22px;
  border-radius: var(--td-radius-pill);
  border: 1.5px solid var(--td-olive);
  color: var(--td-olive);
  background: transparent;
  cursor: pointer;
  transition: .18s;
}
.chip:hover { background: var(--td-cream-300); }
.chip.active { background: var(--td-olive); color: var(--td-cream); }

/* ---------- Banda CTA ---------- */
.cta-band {
  background: var(--td-olive);
  color: var(--td-cream);
  text-align: center;
  padding: 72px 24px;
  border-radius: var(--td-radius-lg);
  position: relative;
  overflow: hidden;
}
.cta-band .hand { color: var(--td-cream); font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 12px; }
.cta-band p { max-width: 560px; margin: 0 auto 30px; color: var(--td-cream-300); }
.cta-band--compact { padding: 44px 24px; max-width: 820px; margin: 0 auto; }
.cta-band--compact .hand { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.cta-band--compact p { margin-bottom: 22px; }

/* ---------- Form ---------- */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.form-copy h2 { margin-bottom: 16px; }
.form-copy p { color: var(--td-ink-soft); margin-bottom: 14px; }
.td-form { display: flex; flex-direction: column; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; color: var(--td-olive-700); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--td-font-body);
  font-size: 1rem;
  color: var(--td-ink);
  background: var(--td-cream-100);
  border: 1.5px solid var(--td-line);
  border-radius: var(--td-radius-md);
  padding: 13px 16px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--td-olive);
  box-shadow: 0 0 0 3px rgba(83,95,52,.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .8rem; color: var(--td-ink-soft); }
.form-status { font-weight: 600; color: var(--td-green-600); display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--td-cream-100);
  border-top: 1px solid var(--td-line);
  padding: 64px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-brand img { height: 74px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; color: var(--td-ink-soft); max-width: 260px; }
.footer-col h4 { font-weight: 600; color: var(--td-olive); margin-bottom: 14px; font-size: 1rem; }
.footer-col a { display: block; padding: 5px 0; color: var(--td-ink-soft); font-size: .93rem; }
.footer-col a:hover { color: var(--td-olive); }
.social-row { display: flex; gap: 14px; margin-top: 14px; }
.social-row a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--td-olive);
  color: var(--td-olive);
  transition: .18s;
}
.social-row a:hover { background: var(--td-olive); color: var(--td-cream); transform: translateY(-2px); }
.social-row svg { width: 19px; height: 19px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid var(--td-line);
  padding-top: 22px;
  text-align: center;
  font-size: .85rem;
  color: var(--td-ink-soft);
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: var(--td-shadow-lg);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Página interior hero ---------- */
.page-hero { padding: 64px 24px 40px; text-align: center; }
.page-hero .hand { margin-bottom: 14px; }
.page-hero p { color: var(--td-ink-soft); max-width: 640px; margin: 0 auto; }

/* ---------- Blogs alternados ---------- */
.blog-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: 44px 0;
}
.blog-row + .blog-row { border-top: 1px solid var(--td-line); }
.blog-row .card-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--td-radius-lg);
  overflow: hidden;
  box-shadow: var(--td-shadow-md);
}
.blog-row .card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-row.reverse .card-img { order: 2; }
.blog-row .card-ph span { font-size: 5rem; }
.blog-copy .card-tag { margin-bottom: 12px; }
.blog-copy h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 600; color: var(--td-green); margin-bottom: 10px; line-height: 1.35; }
.blog-copy p { color: var(--td-ink-soft); margin-bottom: 16px; }

/* ---------- Nosotros ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about-copy p { color: var(--td-ink-soft); margin-bottom: 18px; }
.about-logo { display: flex; justify-content: center; }
.about-logo img { width: min(360px, 80%); height: auto; }
.about-copy .lead { color: var(--td-green); font-weight: 600; font-size: 1.1rem; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.value-card {
  background: var(--td-cream-100);
  border-radius: var(--td-radius-lg);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--td-shadow-sm);
}
.value-card .emoji { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.value-card h3 { font-family: var(--td-font-hand); font-weight: 700; font-size: 1.7rem; color: var(--td-terracotta); margin-bottom: 6px; }
.value-card p { font-size: .9rem; color: var(--td-ink-soft); }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-copy h1 { white-space: nowrap; font-size: min(8.5vw, 3.6rem); margin-bottom: 30px; }
.contact-copy h2 { margin-bottom: 18px; }
.contact-copy p { color: var(--td-ink-soft); margin-bottom: 16px; }
.contact-person {
  display: block;
  font-weight: 600;
  color: var(--td-olive);
  font-size: 1.05rem;
  margin-top: 18px;
}
.steps { counter-reset: paso; margin: 10px 0 6px; list-style: none; padding-left: 0; }
.steps li {
  position: relative;
  padding: 0 0 18px 52px;
  color: var(--td-ink-soft);
}
.steps li strong { color: var(--td-ink); font-weight: 600; display: block; }
.steps li::before {
  counter-increment: paso;
  content: counter(paso);
  position: absolute;
  left: 0; top: 2px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--td-green);
  color: var(--td-white);
  font-weight: 600;
}
.contact-copy h3 { color: var(--td-green); font-weight: 600; font-size: 1.1rem; margin: 26px 0 8px; }
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--td-olive);
  margin-top: 10px;
  font-size: 1.05rem;
}
.contact-mail:hover { color: var(--td-terracotta); }

/* ---------- Página de detalle alojamiento ---------- */
.prop-hero { padding: 44px 24px 8px; }
.prop-hero .hand { margin-bottom: 8px; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.prop-meta { color: var(--td-ink-soft); font-size: 1rem; margin-bottom: 26px; }
.prop-meta strong { color: var(--td-ink); font-weight: 600; }

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 210px;
  gap: 10px;
  border-radius: var(--td-radius-lg);
  overflow: hidden;
}
.gallery a { display: block; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a:first-child { grid-row: span 2; }
.gallery-more {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.gallery-more a { display: block; border-radius: var(--td-radius-md); overflow: hidden; }
.gallery-more img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery-more a:hover img { transform: scale(1.04); }

.prop-layout {
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding: 48px 0 24px;
}
.prop-desc h2 { font-family: var(--td-font-hand); font-weight: 700; font-size: 2rem; color: var(--td-olive); margin-bottom: 14px; }
.prop-desc p { color: var(--td-ink-soft); margin-bottom: 16px; }
.amenities-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 8px; }
.amenity {
  font-size: .9rem;
  font-weight: 500;
  color: var(--td-olive-700);
  background: var(--td-cream-100);
  border: 1.5px solid var(--td-line);
  padding: 8px 16px;
  border-radius: var(--td-radius-pill);
}
.book-card {
  position: sticky;
  top: 96px;
  background: var(--td-cream-100);
  border-radius: var(--td-radius-lg);
  box-shadow: var(--td-shadow-md);
  padding: 28px 26px;
  text-align: center;
}
.book-card .price { font-size: 1.05rem; color: var(--td-ink-soft); margin-bottom: 4px; }
.book-card .price strong { font-size: 1.9rem; color: var(--td-terracotta); font-weight: 700; }
.book-card .cap { font-size: .9rem; color: var(--td-ink-soft); margin-bottom: 18px; }
.book-card .btn { width: 100%; }
.book-card .book-note { display: block; font-size: .8rem; color: var(--td-ink-soft); margin-top: 12px; }
.prop-back { display: inline-block; margin: 26px 0 0; font-weight: 600; color: var(--td-terracotta); }
.prop-back::before { content: '← '; }
.prop-back:hover { color: var(--td-terracotta-600); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .header-inner { justify-content: flex-end; }
  .main-nav {
    position: fixed;
    inset: 0;
    top: 76px;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 26px;
    background: var(--td-cream);
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.25rem; }
  .nav-toggle { display: block; }
  .grid-3, .feature, .form-wrap, .blog-row, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .feature.reverse .feature-media, .blog-row.reverse .card-img { order: 0; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 20px 40px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery a:first-child { grid-column: span 2; }
  .gallery-more { grid-template-columns: 1fr 1fr; }
  .prop-layout { grid-template-columns: 1fr; }
  .book-card { position: static; }
}
