/* =========================================================
   Tu Espacio Consentido — estilos de la landing
   Paleta: #a7b197 verde · #e9decb arena · #987156 café · #614b3f marrón
   Fuente: Nunito Sans (autoalojada, licencia OFL)
   ========================================================= */

@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-wght.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  --verde: #a7b197;
  --arena: #e9decb;
  --cafe: #987156;
  --marron: #614b3f;

  /* Tonos derivados de la paleta */
  --crema: #fbf7f1;        /* fondo crema de los sellos de marca */
  --arena-suave: #f2eade;  /* arena mezclada con crema */
  --verde-suave: #e7e9de;  /* verde mezclado con crema */
  --texto: var(--marron);
  --texto-2: #6e594e;      /* marrón suavizado, contraste AA */

  --radio: 20px;
  --sombra: 0 14px 34px -18px rgba(97, 75, 63, .35);
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--cafe); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--marron); color: var(--crema);
  padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografía ---------- */
h1, h2, h3 { color: var(--marron); margin: 0; }

h1 {
  font-size: clamp(2.4rem, 4.9vw, 3.95rem);
  line-height: 1.06;
  font-weight: 300;
  letter-spacing: -.028em;
  margin: .3em 0 .45em;
  text-wrap: balance;
}
@media (min-width: 601px) { h1 em { white-space: nowrap; } }
h1 em { font-style: italic; font-weight: 400; color: var(--cafe); }

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -.022em;
  margin: .25em 0 .5em;
  text-wrap: balance;
}
h2 strong { font-weight: 800; }

h3 { font-size: 1.18rem; line-height: 1.3; font-weight: 800; margin-bottom: .35em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0;
  font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--texto-2);
}
.eyebrow::before { content: ""; width: 30px; height: 2px; border-radius: 2px; background: var(--verde); }
.eyebrow--center::after { content: ""; width: 30px; height: 2px; border-radius: 2px; background: var(--verde); }

.muted { color: var(--texto-2); }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.22rem); color: var(--texto-2); max-width: 34em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 26px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--marron); color: var(--crema); box-shadow: 0 10px 22px -12px rgba(97, 75, 63, .8); }
.btn-primary:hover { box-shadow: 0 16px 28px -12px rgba(97, 75, 63, .85); }
.btn-outline { border-color: var(--marron); color: var(--marron); background: transparent; }
.btn-outline:hover { background: var(--marron); color: var(--crema); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: .95rem; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 241, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-scrolled { border-color: rgba(97, 75, 63, .08); box-shadow: 0 8px 24px -18px rgba(97, 75, 63, .6); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { flex-shrink: 0; }
.brand img { width: clamp(150px, 16vw, 196px); }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
.nav a:not(.btn) {
  position: relative; padding: 6px 0;
  font-size: .98rem; font-weight: 600; text-decoration: none;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--verde); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px; margin-right: -8px;
  border: 0; border-radius: 12px; background: transparent; color: var(--marron); cursor: pointer;
  place-items: center;
}
.nav-toggle .icon-close { display: none; }
.menu-open .nav-toggle .icon-open { display: none; }
.menu-open .nav-toggle .icon-close { display: block; }

/* ---------- Héroe ---------- */
/* Foto a lo ancho con el texto encima (lado izquierdo), como en el boceto */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center;
  min-height: clamp(560px, 50vw, 760px);
  padding: clamp(48px, 6vw, 88px) 0;
  background: var(--crema);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 35%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,
    rgba(251, 247, 241, .96) 0%,
    rgba(251, 247, 241, .9) 32%,
    rgba(251, 247, 241, .55) 48%,
    rgba(251, 247, 241, 0) 62%);
}
.hero-inner { width: min(100% - 2 * var(--gutter), var(--max)); }
.hero-copy { max-width: 560px; }
.hero-copy .lead { color: var(--marron); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; font-size: .95rem; font-weight: 700; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--verde); color: var(--crema); }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }

/* Bienestar */
.wellbeing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.question { font-size: clamp(1.5rem, 2.3vw, 1.85rem); line-height: 1.3; font-weight: 400; color: var(--cafe); margin: 0 0 .8em; text-wrap: balance; }
.benefits { display: grid; gap: 22px; }
.benefits li {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  padding: 22px 24px; border-radius: var(--radio); background: var(--arena-suave);
}
.benefits p { margin: 0; color: var(--texto-2); }

/* Servicios */
.services { background: var(--verde-suave); }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radio);
  background: var(--crema); box-shadow: var(--sombra);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(97, 75, 63, .45); }
.card-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--arena); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.card p { margin: 0; font-size: .98rem; color: var(--texto-2); }
.card-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px;
  font-weight: 800; text-decoration: none; color: var(--marron);
}
.card-link:hover svg { transform: translateX(3px); }
.card-link svg { transition: transform .2s ease; }

/* Método */
.method-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.stock-note {
  margin-top: 28px; padding: 22px 24px;
  border: 2px dashed var(--verde); border-radius: var(--radio);
  background: var(--crema);
}
.stock-note p { margin: 0; color: var(--texto-2); }
.stock-note .stock-title { margin-bottom: .4em; font-weight: 800; color: var(--marron); }

.steps { counter-reset: paso; display: grid; gap: 16px; }
.steps li {
  counter-increment: paso;
  display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start;
  padding: 24px 26px; border-radius: var(--radio);
  background: var(--arena-suave);
}
.steps li::before {
  content: counter(paso, decimal-leading-zero);
  font-size: 2.6rem; font-weight: 200; line-height: 1; letter-spacing: -.04em; color: var(--cafe);
}
.steps p { margin: 0; color: var(--texto-2); }

/* Frase */
.quote-band { background: var(--verde); padding: clamp(44px, 6vw, 72px) 0; }
.quote-inner { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 36px); max-width: 980px; }
.quote-inner img { width: clamp(52px, 6vw, 74px); flex-shrink: 0; }
.quote-inner p {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.3; font-weight: 400; letter-spacing: -.01em;
  color: var(--marron); text-wrap: balance;
}
.quote-inner strong { font-weight: 800; }

/* Mudanzas */
.moving { background: var(--crema); }
.moving-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.moving-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: 0 24px 48px -28px rgba(97, 75, 63, .55); }
.timeline { display: grid; gap: 12px; margin: 26px 0 32px; }
.timeline li {
  position: relative;
  padding: 16px 20px 16px 22px; border-radius: 16px;
  background: var(--arena-suave); border-left: 4px solid var(--verde);
}
.timeline .tag { display: block; margin-bottom: 2px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-2); }
.timeline p { margin: 0; }

/* Quiénes somos + contacto */
.about { background: linear-gradient(90deg, var(--arena-suave) 50%, var(--arena) 50%); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; }
.about-text { padding: clamp(64px, 8vw, 110px) clamp(24px, 5vw, 72px) clamp(64px, 8vw, 110px) 0; }
.about-text h2 { font-size: clamp(1.75rem, 2.8vw, 2.4rem); }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.values li {
  padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--verde); background: var(--crema);
  font-size: .92rem; font-weight: 700;
}

.cta-panel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: clamp(64px, 8vw, 110px) 0 clamp(64px, 8vw, 110px) clamp(24px, 5vw, 72px);
}
.cta-panel h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-top: 0; }
.cta-panel > p { max-width: 30em; color: var(--marron); }
.cta-rama {
  position: absolute; right: -24px; bottom: -70px;
  width: 120px; height: 240px; color: var(--cafe); opacity: .45; pointer-events: none;
}
.btn-wa { gap: 14px; padding: 14px 30px 14px 24px; margin-top: 10px; text-align: left; }
.btn-wa > span { display: flex; flex-direction: column; }
.btn-wa .btn-wa-title { font-size: 1.12rem; font-weight: 800; }
.btn-wa .btn-wa-sub { font-size: .85rem; font-weight: 600; opacity: .9; }
@media (min-width: 601px) { .btn-wa .btn-wa-sub { white-space: nowrap; } }
.cta-social { margin: 24px 0 0; font-size: .95rem; }
.cta-social a { font-weight: 700; text-underline-offset: 3px; }

/* ---------- Pie de página ---------- */
.site-footer {
  position: relative; overflow: hidden;
  padding: clamp(56px, 7vw, 80px) 0 28px;
  background: var(--marron); color: var(--crema);
}
.footer-rama {
  position: absolute; right: 2%; bottom: -36px;
  width: 120px; height: 240px; color: var(--verde); opacity: .4; pointer-events: none;
  transform: rotate(10deg);
}
.nowrap { white-space: nowrap; }

.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 210px; margin-bottom: 20px; }
.footer-brand p { margin: 0 0 .4em; opacity: .9; }
.footer-place { display: flex; align-items: center; gap: 8px; }
.footer-title { margin: 0 0 14px; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--verde); }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a, .footer-wa, .footer-bottom a { color: var(--crema); text-decoration: none; opacity: .92; }
.footer-nav a:hover, .footer-wa:hover, .footer-bottom a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-wa { display: inline-flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; }
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(251, 247, 241, .4); color: var(--crema);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.social a:hover { background: var(--crema); color: var(--marron); border-color: var(--crema); }
.footer-handle { margin: 12px 0 0; font-size: .92rem; opacity: .85; }

.footer-bottom {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid rgba(251, 247, 241, .18);
  font-size: .9rem;
}
.footer-bottom p { margin: 0; opacity: .85; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--marron); color: var(--crema);
  box-shadow: 0 14px 30px -10px rgba(97, 75, 63, .7);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }

/* ---------- Animación de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .wa-float { transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 941px) and (max-width: 1180px) {
  .hero-copy { max-width: 480px; }
  .hero-copy h1 { font-size: clamp(2.4rem, 4.2vw, 3.1rem); }
  .hero-bg { object-position: 80% 35%; }
}

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  :root { --header-h: 70px; }

  .nav-toggle { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--crema);
    border-bottom: 1px solid rgba(97, 75, 63, .1);
    box-shadow: 0 18px 30px -20px rgba(97, 75, 63, .5);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 14px 4px; font-size: 1.08rem; border-bottom: 1px solid rgba(97, 75, 63, .08); }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 18px; }

  .wellbeing-grid, .method-grid, .moving-grid { grid-template-columns: 1fr; }
  .moving-art { order: 2; max-width: 560px; width: 100%; margin-inline: auto; }

  /* Héroe en móvil/tableta: foto arriba y texto debajo */
  .hero { display: block; min-height: 0; padding: 0 0 48px; background: linear-gradient(180deg, var(--crema), var(--arena-suave)); }
  .hero-bg { position: relative; inset: auto; z-index: auto; height: clamp(280px, 62vw, 520px); object-position: 82% 30%; }
  .hero::before { display: none; }
  .hero-inner { margin-inline: auto; padding-top: 32px; }
  .hero-copy { max-width: 640px; }

  .about { background: var(--arena-suave); }
  .about-grid { grid-template-columns: 1fr; }
  .about-text { padding: clamp(56px, 9vw, 80px) 0 40px; }
  .cta-panel {
    margin-bottom: clamp(56px, 9vw, 80px);
    padding: 48px clamp(20px, 5vw, 48px) 56px;
    border-radius: 28px; background: var(--arena);
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero-ctas .btn { padding-inline: 18px; }
  .services-grid { grid-template-columns: 1fr; }
  .card { flex-direction: row; }
  .card-img { width: 116px; flex-shrink: 0; aspect-ratio: auto; height: auto; align-self: stretch; }
  .card-body { padding: 16px 16px 18px; }
  .card h3 { font-size: 1.06rem; }
  .card p { font-size: .94rem; }
  .card-link { padding-top: 10px; }

  .hero-ctas .btn { width: 100%; }
  .benefits li { grid-template-columns: 48px 1fr; gap: 16px; padding: 18px; }
  .benefits img { width: 48px; height: 48px; }
  .steps li { grid-template-columns: 1fr; gap: 6px; padding: 20px; }
  .steps li::before { font-size: 2rem; }
  .quote-inner { flex-direction: column; text-align: center; }
  .btn-wa { width: 100%; }
  .cta-rama, .footer-rama { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .wa-float { width: 56px; height: 56px; right: 14px; }
}
