/* ============================================================
   Mi Refugio en el Campo — Website UI Kit styles
   Builds on colors_and_type.css tokens
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.mr-container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: clamp(20px, 5vw, 48px); }
.mr-container--narrow { max-width: var(--container-narrow); }
.mr-section { padding-block: clamp(56px, 9vw, 112px); }
.mr-section--cream { background: var(--crema-calido); }
.mr-section--sand  { background: var(--arena-suave); }
.mr-section--white { background: var(--surface); }
.mr-section--deep  { background: var(--oliva-profundo); color: var(--fg-on-deep); }

/* ---------- Type helpers ---------- */
.mr-eyebrow { font-family: var(--font-sans); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--oliva-suave); margin-bottom: 14px; }
.mr-display { font-family: var(--font-serif); font-weight: 600; font-size: var(--step-5); line-height: 1.12; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.mr-h1 { font-family: var(--font-serif); font-weight: 600; font-size: var(--step-4); line-height: 1.14; margin: 0; text-wrap: balance; }
.mr-h2 { font-family: var(--font-serif); font-weight: 600; font-size: var(--step-3); line-height: 1.18; margin: 0; text-wrap: balance; }
.mr-h3 { font-family: var(--font-serif); font-weight: 600; font-size: var(--step-2); line-height: 1.24; margin: 0; text-wrap: balance; }
.mr-lead { font-size: var(--step-1); line-height: 1.55; color: var(--fg-muted); margin: 0; text-wrap: pretty; }
.mr-body { font-size: var(--step-0); line-height: 1.7; margin: 0; text-wrap: pretty; }
.mr-quote { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: var(--step-2); line-height: 1.3; color: var(--primary); text-wrap: balance; margin: 0; }
.mr-section--deep .mr-quote { color: var(--accent-gold); }
.mr-muted { color: var(--fg-muted); }

/* ---------- Buttons ---------- */
.mr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 700; font-size: 15px; line-height: 1;
  padding: 14px 26px; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--dur) var(--ease-soft), color var(--dur) var(--ease-soft),
              border-color var(--dur) var(--ease-soft), transform var(--dur-fast) var(--ease-soft),
              box-shadow var(--dur) var(--ease-soft);
}
.mr-btn:active { transform: scale(0.975); }
.mr-btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.mr-btn--primary { background: var(--primary); color: var(--primary-fg); }
.mr-btn--primary:hover { background: var(--primary-hover); }
.mr-btn--gold { background: var(--accent-gold); color: #3a2c08; }
.mr-btn--gold:hover { background: var(--accent-gold-hover); }
.mr-btn--secondary { background: var(--surface); color: var(--primary); border-color: var(--line-strong); }
.mr-btn--secondary:hover { border-color: var(--primary); background: #fff; }
.mr-btn--ghost { background: transparent; color: var(--primary); padding-inline: 12px; }
.mr-btn--ghost:hover { color: var(--primary-hover); }
.mr-btn--whatsapp { background: var(--whatsapp); color: #fff; }
.mr-btn--whatsapp:hover { background: var(--whatsapp-hover); }
.mr-whatsapp-ic { display: inline-grid; place-items: center; flex: none; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04); }
.mr-whatsapp-ic img { width: 100%; height: 100%; display: block; }
.mr-btn--ondeep { background: var(--crema-calido); color: var(--oliva-profundo); }
.mr-btn--ondeep:hover { background: #fff; }

/* ---------- Pills ---------- */
.mr-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: var(--radius-pill); }
.mr-pill--sand { background: var(--arena-suave); color: var(--oliva-suave); border: 1px solid var(--line); }
.mr-pill--teal { background: #E1ECE8; color: #4E7E72; }
.mr-pill--coral { background: #F7E2E3; color: #B14C56; }
.mr-pill--gold { background: #F6E9CC; color: #8A6A1E; }

/* ---------- Placeholder ---------- */
.mr-ph {
  width: 100%; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 20% 10%, #EFE6D0 0%, #E7D9BC 55%, #DCCBA6 100%);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
}
.mr-ph__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #9A8C63; padding: 16px; text-align: center; }
.mr-ph__inner span { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; max-width: 26ch; line-height: 1.4; }

/* ---------- Cards ---------- */
.mr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow-md); transition: transform var(--dur) var(--ease-soft), box-shadow var(--dur) var(--ease-soft); }
.mr-card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mr-card__ic { width: 54px; height: 54px; border-radius: var(--radius-pill); display: grid; place-items: center; margin-bottom: 16px; }
.ic-olive { background: #ECEAD7; color: var(--oliva-principal); }
.ic-teal  { background: #E1ECE8; color: #4E7E72; }
.ic-coral { background: #F7E2E3; color: #B14C56; }
.ic-gold  { background: #F6E9CC; color: #8A6A1E; }

.mr-grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
@media (min-width: 720px) { .mr-grid--2 { grid-template-columns: repeat(2, 1fr); } .mr-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Header ---------- */
.mr-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background var(--dur) var(--ease-soft), box-shadow var(--dur) var(--ease-soft), border-color var(--dur) var(--ease-soft); border-bottom: 1px solid transparent; }
.mr-header.is-scrolled { background: rgba(251, 247, 239, 0.86); backdrop-filter: saturate(1.1) blur(10px); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.mr-header__bar { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.mr-header__logo { display: inline-flex; align-items: center; }
.mr-header__logo img { height: 46px; width: auto; display: block; }
.mr-header__nav { display: none; gap: 26px; margin-left: auto; }
.mr-header__nav a { font-size: 15px; font-weight: 600; color: var(--texto-secundario); text-decoration: none; transition: color var(--dur) var(--ease-soft); }
.mr-header__nav a:hover { color: var(--primary); }
.mr-header__cta { display: none; }
.mr-header__burger { margin-left: auto; display: inline-grid; place-items: center; width: 46px; height: 46px; border: none; background: transparent; color: var(--oliva-profundo); cursor: pointer; border-radius: var(--radius-md); }
.mr-header__burger:hover { background: rgba(94,91,44,0.08); }
@media (min-width: 940px) {
  .mr-header__nav { display: flex; }
  .mr-header__cta { display: block; margin-left: 8px; }
  .mr-header__burger { display: none; }
}
.mr-drawer { position: fixed; inset: 0; z-index: 60; background: var(--crema-calido); display: flex; flex-direction: column; animation: mr-fade var(--dur) var(--ease-soft); }
.mr-drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.mr-drawer__title { font-family: var(--font-serif); font-size: 24px; font-weight: 600; }
.mr-drawer__nav { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; }
.mr-drawer__nav a { font-family: var(--font-serif); font-size: 26px; font-weight: 600; color: var(--oliva-profundo); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
@keyframes mr-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Hero ---------- */
.mr-hero { padding-top: 110px; padding-bottom: clamp(48px, 8vw, 96px); background:
  linear-gradient(180deg, var(--crema-calido) 0%, var(--arena-suave) 100%); }
.mr-hero__grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.mr-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mr-hero__micro { margin: 16px 0 0; font-size: var(--step--1); color: var(--fg-muted); }
.mr-hero__media { position: relative; }
.mr-hero__chip { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 9px; background: rgba(251,247,239,0.94); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--oliva-profundo); box-shadow: var(--shadow-sm); }
.mr-hero__chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--celeste-apagado); }
.mr-hero__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xl); display: block; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
@media (min-width: 880px) {
  .mr-hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .mr-hero__media { max-width: 460px; margin-left: auto; }
}

/* ---------- Prose / section heads ---------- */
.mr-prose { display: grid; gap: 16px; margin-top: 24px; }
.mr-sectionhead { max-width: 64ch; }
.mr-band { margin: 40px 0 0; padding: clamp(24px, 4vw, 40px); background: var(--oliva-profundo); border-radius: var(--radius-lg); text-align: center; }
.mr-band .mr-quote { color: var(--accent-gold); }

/* ---------- Signal / offering cards ---------- */
.mr-signal { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Country calm ---------- */
.mr-calm { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 880px) { .mr-calm { grid-template-columns: 1.1fr 0.9fr; } .mr-calm__media { max-width: 420px; } }

/* ---------- Steps ---------- */
.mr-steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 720px) { .mr-steps { grid-template-columns: 1fr 1fr; gap: 20px; } }
.mr-step { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.mr-step__n { font-family: var(--font-serif); font-weight: 600; font-size: 30px; line-height: 1; color: var(--accent-gold); flex: none; min-width: 48px; }

/* ---------- FAQ ---------- */
.mr-faqlist { margin-top: 34px; display: grid; gap: 12px; }
.mr-faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.mr-faq.is-open { border-color: var(--line-strong); }
.mr-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: none; border: none; cursor: pointer; padding: 20px 22px; text-align: left; font-family: var(--font-serif); font-weight: 600; font-size: var(--step-1); color: var(--fg); }
.mr-faq__chev { flex: none; width: 32px; height: 32px; border-radius: var(--radius-pill); background: var(--arena-suave); display: grid; place-items: center; color: var(--oliva-principal); transition: background var(--dur) var(--ease-soft), color var(--dur) var(--ease-soft); }
.mr-faq.is-open .mr-faq__chev { background: var(--oliva-principal); color: var(--crema-calido); }
.mr-faq__a { overflow: hidden; transition: max-height var(--dur-slow) var(--ease-soft); }
.mr-faq__a p { padding: 0 22px 22px; margin: 0; }

/* ---------- Contact ---------- */
.mr-contact { display: grid; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (min-width: 880px) { .mr-contact { grid-template-columns: 1fr 1fr; } }
.mr-contact__wa { margin-top: 26px; }
.mr-contact__direct { display: grid; gap: 10px; margin-top: 18px; }
.mr-contact__direct a { display: inline-flex; align-items: center; gap: 9px; color: var(--oliva-principal); text-decoration: none; font-weight: 700; overflow-wrap: anywhere; }
.mr-contact__direct a:hover { color: var(--oliva-profundo); }
.mr-contact__micro { margin: 14px 0 0; font-family: var(--font-serif); font-style: italic; font-size: var(--step-1); color: var(--oliva-suave); }
.mr-form { display: flex; flex-direction: column; gap: 16px; }
.mr-field { display: flex; flex-direction: column; gap: 7px; }
.mr-field label { font-size: 13px; font-weight: 700; color: var(--fg); }
.mr-field input, .mr-field textarea { font-family: var(--font-sans); font-size: 15px; padding: 13px 15px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); resize: none; transition: border-color var(--dur) var(--ease-soft), box-shadow var(--dur) var(--ease-soft); }
.mr-field input::placeholder, .mr-field textarea::placeholder { color: #A9A48C; }
.mr-field input:focus, .mr-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--shadow-focus); }
.mr-form__done { text-align: center; padding: 24px 8px; display: grid; justify-items: center; gap: 8px; }
.mr-fine { font-size: var(--step--1); color: var(--fg-muted); line-height: 1.5; }

/* ---------- Footer ---------- */
.mr-footer { background: var(--oliva-profundo); color: var(--fg-on-deep); padding-top: clamp(48px, 7vw, 80px); }
.mr-footer__top { display: grid; gap: 36px; padding-bottom: 40px; }
@media (min-width: 820px) { .mr-footer__top { grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; } }
.mr-footer__name { font-family: var(--font-serif); font-size: 28px; font-weight: 600; color: var(--crema-calido); }
.mr-footer__tag { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--fg-on-deep-muted); max-width: 40ch; }
.mr-footer__loc { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 14px; color: var(--celeste-apagado); }
.mr-footer__h { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 14px; }
.mr-footer__links { display: flex; flex-direction: column; gap: 10px; }
.mr-footer__links a { font-size: 15px; color: var(--fg-on-deep-muted); text-decoration: none; transition: color var(--dur) var(--ease-soft); }
.mr-footer__links a:hover { color: var(--crema-calido); }
.mr-footer__wa { display: inline-flex; align-items: center; gap: 9px; background: var(--whatsapp); color: #fff; border: none; cursor: pointer; font-family: var(--font-sans); font-weight: 700; font-size: 14px; padding: 12px 18px; border-radius: var(--radius-pill); transition: background var(--dur) var(--ease-soft); }
.mr-footer__wa:hover { background: var(--whatsapp-hover); }
.mr-footer__direct { display: grid; gap: 9px; margin-top: 16px; }
.mr-footer__direct a { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-on-deep-muted); text-decoration: none; font-size: 14px; overflow-wrap: anywhere; }
.mr-footer__direct a:hover { color: var(--crema-calido); }
.mr-footer__base { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-block: 22px; border-top: 1px solid rgba(251,247,239,0.12); font-size: 13px; color: var(--fg-on-deep-muted); }

/* ---------- Gallery ---------- */
.mr-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 40px; }
@media (min-width: 720px) { .mr-gallery { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.mr-gallery__item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mr-gallery__item--wide { grid-column: span 2; }
.mr-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; transition: transform var(--dur-slow) var(--ease-soft); }
.mr-gallery__item--wide img { aspect-ratio: 16 / 9; }
.mr-gallery__item:hover img { transform: scale(1.04); }
.mr-gallery__item figcaption { position: absolute; inset: auto 0 0 0; padding: 28px 16px 12px; background: linear-gradient(to top, rgba(35,37,26,0.65) 0%, transparent 100%); color: var(--crema-calido); font-size: 13px; font-weight: 700; }

/* ---------- WhatsApp float (mobile) ---------- */
.mr-wafloat { position: fixed; right: 16px; bottom: 16px; z-index: 45; display: inline-flex; align-items: center; gap: 9px; background: var(--whatsapp); color: #fff; border: none; cursor: pointer; font-family: var(--font-sans); font-weight: 700; font-size: 15px; padding: 14px 20px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); transition: background var(--dur) var(--ease-soft), transform var(--dur-fast) var(--ease-soft); }
.mr-wafloat:hover { background: var(--whatsapp-hover); }
.mr-wafloat:active { transform: scale(0.96); }
@media (min-width: 940px) { .mr-wafloat { display: none; } }

/* ---------- WhatsApp toast (demo feedback) ---------- */
.mr-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 11px; background: var(--oliva-profundo); color: var(--crema-calido); padding: 14px 20px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; animation: mr-toast-in var(--dur) var(--ease-soft); }
.mr-toast b { color: var(--accent-gold); font-weight: 700; }
@keyframes mr-toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
