/* =========================================================
   MENTALIZA — Hoja de estilos
   Paleta:  #7A9D96 sage · #83A8BD blue · #33485B navy · #D89B86 terra
   ========================================================= */

:root {
  --sage: #7A9D96;
  --sage-d: #5f8279;
  --blue: #83A8BD;
  --navy: #33485B;
  --navy-d: #26384a;
  --terra: #D89B86;
  --terra-d: #c98369;

  --ink: #2c3a44;
  --muted: #6b7c86;
  --cream: #f7f4ef;
  --paper: #ffffff;
  --soft: #eef3f2;

  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -18px rgba(51, 72, 91, .28);
  --shadow-sm: 0 8px 24px -12px rgba(51, 72, 91, .25);
  --ring: 0 0 0 4px rgba(131, 168, 189, .35);

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;

  --maxw: 1160px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.12; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.28rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sage-d); margin-bottom: .7rem;
}
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-top: .6rem; }
.accent { color: var(--terra-d); }
.muted { color: var(--muted); font-size: .92rem; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.03rem; }
.btn-block { width: 100%; }
.btn .ic { width: 1.15em; height: 1.15em; fill: currentColor; }

.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-d); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px rgba(51,72,91,.18); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--sage); color: var(--sage-d); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

.link-arrow { color: var(--sage-d); font-weight: 700; transition: gap .2s, color .2s; }
.link-arrow:hover { color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.scrolled { box-shadow: 0 8px 30px -20px rgba(51,72,91,.5); border-color: rgba(51,72,91,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-logo { width: 38px; height: 38px; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; color: var(--navy); letter-spacing: -.02em; }
.brand-light .brand-name { color: #fff; }

.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav > a { font-weight: 600; font-size: .98rem; color: var(--ink); position: relative; padding: .2rem 0; }
.nav > a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--sage); transition: width .25s; border-radius: 2px; }
.nav > a:hover { color: var(--navy); }
.nav > a:hover::after { width: 100%; }
.nav-cta { margin-left: .4rem; }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2.4px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(60px, 8vw, 100px); overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(131,168,189,.28), transparent 60%),
    radial-gradient(900px 500px at -5% 110%, rgba(122,157,150,.22), transparent 55%),
    var(--cream);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero-text .lead { font-size: 1.16rem; color: #4a5a64; max-width: 33ch; margin-top: 1.1rem; }
.hero h1 { margin-top: .2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.5rem; color: var(--muted); font-size: .92rem; font-weight: 600; }

.hero-media { position: relative; }
.hero-photo {
  border-radius: 30px 30px 30px 90px; overflow: hidden; aspect-ratio: 4/4.4;
  box-shadow: var(--shadow); background: var(--soft);
  position: relative;
}
.hero-photo::after { content:""; position:absolute; inset:0; background: linear-gradient(160deg, rgba(122,157,150,.12), rgba(51,72,91,.18)); mix-blend-mode: multiply; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; background: #fff; border-radius: 16px; padding: .7rem 1rem; box-shadow: var(--shadow-sm); font-size: .85rem; line-height: 1.25; }
.hero-badge strong { color: var(--navy); display: block; font-family: var(--font-body); }
.hero-badge span { color: var(--muted); font-size: .78rem; }
.hero-badge-1 { top: 26px; left: -22px; }
.hero-badge-2 { bottom: 30px; right: -16px; display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--navy); }
.hero-badge-2 .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(122,157,150,.25); }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; z-index: 0; }
.hero-blob-1 { width: 230px; height: 230px; background: rgba(216,155,134,.35); top: -60px; right: 18%; }
.hero-blob-2 { width: 180px; height: 180px; background: rgba(131,168,189,.4); bottom: -40px; left: 6%; }

/* ---------- Trust strip ---------- */
.trust { background: var(--navy); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 26px 24px; }
.trust-item { display: flex; align-items: center; gap: .7rem; justify-content: center; text-align: left; }
.trust-item p { font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.92); }
.trust-ic { font-size: 1.4rem; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(34px, 5vw, 70px); align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/4.6; object-fit: cover; width: 100%; }
.about-quote {
  position: absolute; bottom: -22px; right: -10px; max-width: 230px;
  background: var(--sage); color: #fff; padding: 1rem 1.2rem; border-radius: 18px;
  font-family: var(--font-head); font-size: 1.05rem; line-height: 1.3; box-shadow: var(--shadow-sm);
}
.about-text p { margin-top: 1rem; color: #4a5a64; }
.check-list { list-style: none; margin: 1.3rem 0; display: grid; gap: .6rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: #46555e; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; background: var(--soft); color: var(--sage-d); border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.about-actions { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* ---------- Services / cards ---------- */
.services { background: linear-gradient(180deg, var(--paper), var(--soft)); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card, .contact-card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
  text-align: left; display: flex; flex-direction: column; gap: .5rem; border: 1px solid rgba(51,72,91,.05);
}
.card:hover, .contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:focus-visible, .contact-card:focus-visible { outline: none; box-shadow: var(--ring), var(--shadow); }
.card { cursor: pointer; }
.card p, .contact-card p { color: var(--muted); font-size: .96rem; flex-grow: 1; }
.card-ic, .contact-card .card-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: .5rem; }
.ic-sage { background: rgba(122,157,150,.18); }
.ic-blue { background: rgba(131,168,189,.22); }
.ic-navy { background: rgba(51,72,91,.12); }
.ic-terra { background: rgba(216,155,134,.22); }
.card-more { color: var(--sage-d); font-weight: 700; font-size: .9rem; margin-top: .5rem; }

/* ---------- How it works ---------- */
.how { background: var(--soft); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 2rem 1.5rem 1.6rem; position: relative; box-shadow: var(--shadow-sm); }
.step-n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: #fff; font-family: var(--font-head); font-size: 1.3rem; margin-bottom: .8rem; }
.step:nth-child(2) .step-n { background: var(--sage); }
.step:nth-child(3) .step-n { background: var(--blue); }
.step:nth-child(4) .step-n { background: var(--terra); }
.step p { color: var(--muted); font-size: .95rem; margin-top: .3rem; }

/* ---------- Quote band ---------- */
.quote-band { background: var(--sage); color: #fff; padding: clamp(60px, 8vw, 100px) 0; position: relative; }
.quote-inner { max-width: 820px; margin: 0 auto; text-align: center; position: relative; }
.quote-mark { font-family: var(--font-head); font-size: 5rem; line-height: .4; opacity: .35; margin-bottom: 1.3rem; }
.quote-inner blockquote { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2.05rem); line-height: 1.35; font-weight: 400; }
.quote-inner cite { display: block; margin-top: 1.4rem; font-style: normal; font-weight: 700; opacity: .9; letter-spacing: .02em; }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 800px; margin: 0 auto; }
.accordion { display: grid; gap: .8rem; }
.acc-item { background: #fff; border: 1px solid rgba(51,72,91,.1); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow .25s; }
.acc-item[open] { box-shadow: var(--shadow-sm); border-color: rgba(122,157,150,.5); }
.acc-item summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: "+"; font-family: var(--font-head); font-size: 1.5rem; color: var(--sage-d); transition: transform .25s; line-height: 1; }
.acc-item[open] summary::after { transform: rotate(45deg); }
.acc-body { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--sage-d)); color: #fff; padding: clamp(56px, 7vw, 90px) 0; text-align: center; }
.cta-inner { max-width: 700px; margin: 0 auto; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: .8rem; font-size: 1.1rem; color: rgba(255,255,255,.9); }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.contact-card { cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-d); color: rgba(255,255,255,.8); padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand > p { margin-top: 1rem; max-width: 38ch; font-size: .95rem; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a { display: block; padding: .3rem 0; color: rgba(255,255,255,.78); font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--sage); }
.socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--sage); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer-bottom a:hover { color: var(--sage); }

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp { position: fixed; bottom: 22px; right: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(37,211,102,.6); transition: transform .25s; animation: fabPulse 2.6s infinite; }
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp svg { width: 30px; height: 30px; fill: #fff; }
@keyframes fabPulse { 0%,100% { box-shadow: 0 12px 28px -8px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.5);} 50% { box-shadow: 0 12px 28px -8px rgba(37,211,102,.6), 0 0 0 12px rgba(37,211,102,0);} }

/* ---------- Modals ---------- */
.modal-root { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-root.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(38,56,74,.55); backdrop-filter: blur(3px); animation: fade .25s ease; }
.modal {
  position: relative; background: #fff; border-radius: var(--radius-lg); padding: 2rem; width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 40px 80px -24px rgba(38,56,74,.5);
  animation: pop .3s cubic-bezier(.2,.8,.25,1); z-index: 1;
}
.modal-sm { max-width: 420px; text-align: center; }
.modal-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 50%; font-size: 1.7rem; line-height: 1; color: var(--muted); background: var(--soft); display: grid; place-items: center; transition: background .2s, color .2s; }
.modal-close:hover { background: var(--terra); color: #fff; }
.modal-title { margin-bottom: .5rem; }
.modal-sub { color: var(--muted); margin-bottom: 1.2rem; }
.modal p { color: #4a5a64; }
.modal .check-list { margin-top: 1.2rem; }
.modal-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.modal-sm .modal-actions { justify-content: center; }
.modal-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 1rem; }
.modal-hero { border-radius: 16px; overflow: hidden; margin-bottom: 1.3rem; aspect-ratio: 16/8; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.contact-line { font-weight: 700; color: var(--navy); font-size: 1.1rem; margin: .4rem 0 1rem; }

/* Forms */
.form { display: grid; gap: .9rem; text-align: left; }
.form label { display: grid; gap: .35rem; font-weight: 700; font-size: .9rem; color: var(--navy); }
.form input, .form textarea { font-family: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1.5px solid rgba(51,72,91,.18); border-radius: 12px; background: #fcfdfd; color: var(--ink); transition: border-color .2s, box-shadow .2s; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--sage); box-shadow: var(--ring); }

/* Calendly */
.calendly-wrap { min-height: 200px; }
.calendly-wrap iframe { width: 100%; height: 640px; border: 0; border-radius: 14px; }
.calendly-placeholder { background: var(--soft); border: 2px dashed rgba(122,157,150,.5); border-radius: 16px; padding: 2rem 1.5rem; text-align: center; }
.calendly-placeholder p { margin-bottom: .6rem; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 440px; margin: 0 auto; }
  .hero-text { text-align: center; }
  .hero-text .lead { max-width: none; margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .about-inner { grid-template-columns: 1fr; }
  .about-media { max-width: 440px; margin: 0 auto; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column; gap: 0;
    padding: 1rem 24px 1.6rem; box-shadow: var(--shadow); transform: translateY(-130%);
    transition: transform .35s cubic-bezier(.3,.8,.3,1); align-items: stretch;
  }
  .nav.open { transform: translateY(0); }
  .nav > a { padding: .9rem 0; border-bottom: 1px solid rgba(51,72,91,.07); }
  .nav > a::after { display: none; }
  .nav-cta { margin: .8rem 0 0; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .hero-badge-1 { left: 0; }
  .hero-badge-2 { right: 0; }
  .modal { padding: 1.5rem 1.2rem; }
  .footer-bottom { flex-direction: column; gap: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
