:root {
  /* Brand palette (Manual de Identidad Rehinicia) */
  --teal: #34d1d2;
  --teal-light: #51e5cc;
  --cyan-soft: #b0e9f0;
  --purple: #86658a;
  --purple-soft: #a08aae;
  --ink: #2a2a3c;
  --muted: #5a5a6e;
  --line: #e6eef2;
  --bg: #ffffff;
  --bg-alt: #f4fbfc;
  --bg-purple: #f6f2f8;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(42,42,60,.05);
  --shadow-md: 0 12px 32px rgba(42,42,60,.08);
  --shadow-lg: 0 24px 48px rgba(42,42,60,.10);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Geosans Light", "Oriyna MN", "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, .brand-text, .eyebrow { font-family: "Oriyna MN", "Geosans Light", "Poppins", "Segoe UI", system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal); }
.container { width: 92%; max-width: var(--maxw); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-logo { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.brand-text { font-weight: 600; font-size: 15px; letter-spacing: -.01em; line-height: 1.1; }
.brand-sub { display: block; font-weight: 400; font-size: 10.5px; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 8px 14px; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 500; transition: background .2s var(--ease); }
.nav-links a:hover { background: var(--bg-alt); text-decoration: none; color: var(--teal); }
.nav-toggle { display: none; background: none; border: none; padding: 6px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: .2s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 999px;
  font-weight: 500; font-size: 14px; letter-spacing: -.005em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(52,209,210,.35); }
.btn-primary:hover { background: var(--teal-light); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { padding: 104px 0 88px; background: var(--bg); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 80% 20%, var(--cyan-soft) 0%, transparent 70%);
  opacity: .5;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; position: relative; }
.eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--purple); margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 5.5vw, 68px); line-height: 1.02; margin: 0 0 24px;
  color: var(--ink); letter-spacing: -.035em; font-weight: 700;
}
.hero .accent { color: var(--teal); }
.hero p { font-size: 17px; color: var(--muted); max-width: 480px; margin: 0; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 36px 0 40px; }
.hero-meta { display: flex; gap: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.hero-meta span { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.hero-visual { display: grid; place-items: center; }
.hero-frame {
  position: relative; width: 100%; max-width: 420px; aspect-ratio: 1/1;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: grid; place-items: center; overflow: hidden;
}
.hero-logo { width: 45%; height: 45%; object-fit: contain; }
.hero-frame-caption {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  padding: 10px 14px; border-radius: 10px; font-size: 13px; color: var(--ink); font-weight: 500;
  border: 1px solid var(--line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); }
.section-purple { background: var(--bg-purple); }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head-left { text-align: left; margin: 0 0 56px; max-width: 640px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 46px); color: var(--ink); margin: 0 0 14px; letter-spacing: -.025em; font-weight: 700; line-height: 1.1; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; line-height: 1.6; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-text p { color: var(--muted); margin: 0 0 16px; font-size: 16px; line-height: 1.7; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--white); padding: 28px 24px; transition: background .2s var(--ease); }
.stat:hover { background: var(--bg-alt); }
.stat-num { display: block; font-size: 30px; font-weight: 700; color: var(--purple); letter-spacing: -.03em; line-height: 1; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- Specialist ---------- */
.specialist-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.specialist-media { position: relative; }
.specialist-photo { width: 100%; max-width: 320px; aspect-ratio: 1/1; object-fit: contain; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-alt); padding: 24px; }
.specialist-badge {
  position: absolute; bottom: -20px; left: 24px; right: 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 2px;
}
.specialist-name { font-weight: 600; color: var(--ink); font-size: 15px; }
.specialist-role { font-size: 12.5px; color: var(--muted); }
.specialist-body h2 { font-size: clamp(28px, 3.2vw, 40px); color: var(--ink); margin: 0 0 16px; letter-spacing: -.025em; font-weight: 700; line-height: 1.15; }
.specialist-body p { color: var(--muted); margin: 0 0 24px; font-size: 16px; line-height: 1.7; }
.cred-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.cred-list li { padding: 10px 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; break-inside: avoid; border-bottom: 1px solid var(--line); }
.cred-list li:last-child { border-bottom: none; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.service { background: var(--white); padding: 32px 32px 36px; transition: background .2s var(--ease); }
.service:hover { background: var(--bg-alt); }
.service-index { display: block; font-size: 12px; font-weight: 600; color: var(--teal); letter-spacing: .1em; margin-bottom: 18px; }
.service h3 { margin: 0 0 8px; color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.service p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { padding: 0; }
.process-num { display: block; font-size: 13px; font-weight: 600; color: var(--purple); letter-spacing: .1em; margin-bottom: 20px; }
.process-step h3 { margin: 0 0 8px; color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.process-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; margin: 0; }
.testimonial p { color: var(--ink); font-style: normal; margin: 0 0 20px; font-size: 15px; line-height: 1.65; }
.testimonial footer { color: var(--muted); font-size: 13px; font-weight: 500; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-copy h2 { color: var(--ink); margin: 0 0 14px; font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -.025em; font-weight: 700; line-height: 1.1; }
.contact-copy p { color: var(--muted); margin: 0 0 32px; font-size: 16px; line-height: 1.6; }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.contact-list li:last-child { border-bottom: none; }
.contact-list strong { color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.contact-list a, .contact-list span { color: var(--muted); }
.contact-list a:hover { color: var(--teal); }
.contact-map iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius-lg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple); color: #f0eaf4; padding: 80px 0 24px; }
.site-footer a { color: #f0eaf4; display: block; padding: 6px 0; font-size: 14px; transition: color .2s var(--ease); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; }
.site-footer h4 { color: #fff; margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.footer-note { color: #d8cee0; font-size: 14px; margin: 14px 0 0; }
.footer-legal { font-size: 12px; color: #b8a8c8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 56px; padding-top: 20px; text-align: center; color: #b8a8c8; font-size: 13px; }
.brand-footer .brand-logo { background: #fff; padding: 4px; border-radius: 8px; }
.brand-footer .brand-text { color: #fff; }
.brand-footer .brand-sub { color: #d8cee0; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; width: 50px; height: 50px;
  border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.15);
  z-index: 60; text-decoration: none; transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.05); text-decoration: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .specialist-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .cred-list { columns: 1; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 80px 0; }
  .hero-meta { gap: 24px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .process-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
  .section-head h2 { font-size: 30px; }
}
