@charset "UTF-8";

/* ── Tokens ── */
:root {
  --primary:       #25464A;
  --primary-dk:    #183336;
  --primary-lt:    #416A67;
  --accent:        #9A7546;
  --accent-soft:   #E9D7B3;
  --accent-glow:   rgba(154,117,70,.12);
  --bg:            #F6F4EF;
  --surface:       #FFFEFA;
  --surface2:      #F0EDE6;
  --text:          #202A28;
  --text-muted:    #58635F;
  --border:        rgba(37,70,74,.13);
  --border-strong: rgba(37,70,74,.26);
  --chat-bg:       #F0F3F1;
  --shadow-sm:     0 3px 14px rgba(31,55,52,.07);
  --shadow-md:     0 12px 34px rgba(31,55,52,.11);
  --shadow-lg:     0 24px 64px rgba(31,55,52,.16);
  --radius:        18px;
  --max-w:         1160px;
  color-scheme:    light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary:       #335D55;
    --primary-dk:    #1C3936;
    --primary-lt:    #C0D8CF;
    --accent:        #D0B276;
    --accent-soft:   #3A3326;
    --accent-glow:   rgba(208,178,118,.15);
    --bg:            #101917;
    --surface:       #182421;
    --surface2:      #202D29;
    --text:          #EDF1EA;
    --text-muted:    #B2BFB7;
    --border:        rgba(155,194,182,.15);
    --border-strong: rgba(155,194,182,.3);
    --chat-bg:       #121D19;
    --shadow-sm:     0 2px 12px rgba(0,0,0,.3);
    --shadow-md:     0 8px 32px rgba(0,0,0,.4);
    --shadow-lg:     0 20px 60px rgba(0,0,0,.5);
    color-scheme:    dark;
  }
}
:root[data-theme="dark"] {
  --primary:       #335D55;
  --primary-dk:    #1C3936;
  --primary-lt:    #C0D8CF;
  --accent:        #D0B276;
  --accent-soft:   #3A3326;
  --accent-glow:   rgba(208,178,118,.15);
  --bg:            #101917;
  --surface:       #182421;
  --surface2:      #202D29;
  --text:          #EDF1EA;
  --text-muted:    #B2BFB7;
  --border:        rgba(155,194,182,.15);
  --border-strong: rgba(155,194,182,.3);
  --chat-bg:       #121D19;
  --shadow-sm:     0 2px 12px rgba(0,0,0,.3);
  --shadow-md:     0 8px 32px rgba(0,0,0,.4);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.5);
  color-scheme:    dark;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}
h1,h2,h3,h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--primary);
  margin: 0 0 .75rem;
  font-weight: 500;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem,5vw,4rem); line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(2.1rem,4vw,3rem); font-weight: 400; line-height: 1.12; letter-spacing: -.015em; }
h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
p  { margin: 0 0 1rem; color: var(--text-muted); font-weight: 300; }
a  { color: var(--primary); text-decoration: none; transition: color .2s; }
ul,ol { padding-left: 1.25rem; }
li { margin-bottom: .4rem; color: var(--text-muted); }
strong { font-weight: 600; color: var(--text); }
img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: 28px;
}

/* ── Progress bar ── */
#progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  z-index: 9999;
  transition: width .1s linear;
}

/* ── Nav ── */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  padding: env(safe-area-inset-top, 0px) 0 0;
  transition: background .35s, box-shadow .35s;
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px;
  max-width: var(--max-w); margin: 0 auto;
  transition: padding .3s;
}
header.scrolled .nav-wrap { padding-block: 14px; }
header.scrolled {
  background: rgba(245,245,242,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) header.scrolled { background: rgba(13,26,31,.94); }
}
:root[data-theme="dark"] header.scrolled { background: rgba(13,26,31,.94); }

.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 600;
  color: var(--text);
  letter-spacing: .03em;
  display: flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 34px; height: 34px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-soft);
  font-size: .85rem; font-weight: 700;
  flex-shrink: 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: .88rem; font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .03em;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 8px 18px; border-radius: 99px;
  font-size: .82rem !important; font-weight: 600 !important;
  transition: background .2s, transform .2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--primary-dk) !important; transform: translateY(-1px); }

/* ── Hamburger ── */
.burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px; z-index: 301;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  transition: all .3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ── */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--surface);
  z-index: 299;
  display: flex; flex-direction: column;
  padding: 100px 40px 40px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 400;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: block;
}
.mobile-menu a:last-child { border: none; }
.mobile-menu a:hover { color: var(--primary); }

/* ── Hero ── */
.hero {
  padding: 140px 0 80px;
  min-height: 90vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw; align-items: center;
}
.eyebrow {
  font-size: .78rem; letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: '';
  display: inline-block; width: 24px; height: 2px;
  background: var(--accent);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(148,114,24,.25);
  color: var(--accent);
  font-size: .8rem; font-weight: 600;
  padding: 6px 14px; border-radius: 99px;
  margin-top: 16px; margin-bottom: 4px;
}
.pulse-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity:1; }
  50%      { transform: scale(.6); opacity:.4; }
}
.hero-list {
  list-style: none; padding: 0; margin: 20px 0 28px;
}
.hero-list li {
  padding-left: 18px; position: relative;
  font-size: .95rem; margin-bottom: 7px;
  color: var(--text-muted);
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
}
.hero-list li::before {
  content: '';
  position: absolute; left: 3px; top: .68em;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  justify-content: center;
  padding: 13px 26px; border-radius: 99px;
  font-family: 'Outfit', sans-serif;
  font-size: .92rem; font-weight: 500;
  cursor: pointer; border: none; text-decoration: none; text-align: center;
  transition: all .25s;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 8px 24px rgba(42,75,87,.25);
}
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(42,75,87,.3); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--primary); }

/* Hero image placeholder */
.hero-img-wrap {
  position: relative;
}
.hero-img {
  width: 100%; aspect-ratio: 1;
  border-radius: 50px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 50%, var(--primary-lt) 100%);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
.hero-img-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Fallback when img fails to load */
.hero-img-inner {
  text-align: center; color: rgba(255,255,255,.5);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem,8vw,6rem);
  font-weight: 300; font-style: italic;
  user-select: none;
}
.hero-accent-ring {
  position: absolute;
  inset: -12px; border-radius: 62px;
  border: 2px solid rgba(148,114,24,.2);
  pointer-events: none;
}
.hero-float-card {
  position: absolute; bottom: -16px; left: -20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  font-size: .82rem;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.float-stat { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; color: var(--primary); line-height:1; }
.float-label { color: var(--text-muted); font-size: .75rem; }

/* orb background */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); z-index: -1; pointer-events: none;
}
.orb-1 { top: -10%; left: -5%; width: 50vw; height: 50vw; background: var(--accent-glow); opacity: .8; }
.orb-2 { bottom: 0; right: -10%; width: 40vw; height: 40vw; background: rgba(42,75,87,.06); opacity: .8; }

/* ── Stats band ── */
.stats-band {
  background: var(--primary);
  padding: 52px 0; position: relative; overflow: hidden;
}
.stats-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(148,114,24,.15), transparent 65%);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 24px; text-align: center; position: relative;
}
.stat { position: relative; }
.stat + .stat::before {
  content: ''; position: absolute;
  left: 0; top: 15%; height: 70%; width: 1px;
  background: rgba(255,255,255,.15);
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 300;
  color: var(--accent-soft); display: block; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-lbl { color: rgba(255,255,255,.65); font-size: .85rem; margin-top: 4px; }

/* ── Section chrome ── */
section { padding: 100px 0; }
.section-label {
  font-size: .75rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  font-weight: 600; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--accent); }

/* ── Services ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px,1fr));
  gap: 24px;
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s, box-shadow .25s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc-icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; color: var(--accent);
  font-style: italic; font-weight: 600;
}
.svc-card h3 { margin-bottom: 8px; }
.svc-card p { font-size: .9rem; margin: 0; }

/* ── Timeline (proceso) ── */
.timeline { position: relative; padding-left: 48px; }
.timeline::before {
  content: ''; position: absolute;
  left: 15px; top: 20px; bottom: 20px; width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.tl-item { position: relative; margin-bottom: 36px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-num {
  position: absolute; left: -48px; top: 2px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: var(--accent-soft);
  font-family: 'Cormorant Garamond', serif;
  font-size: .9rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(148,114,24,.3);
  transition: all .25s; z-index: 1;
}
.tl-item:hover .tl-num {
  background: var(--accent); border-color: var(--accent); color: #fff;
  transform: scale(1.1);
}
.tl-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 600; color: var(--primary);
  margin: 0 0 4px;
}
.tl-body { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ── Bot feature section ── */
.bot-section {
  background: var(--primary);
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.bot-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(148,114,24,.2), transparent 60%);
}
.bot-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; position: relative;
}
.bot-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem,4vw,3rem);
  font-weight: 400; color: #fff; margin-bottom: 16px;
}
.bot-desc { color: rgba(255,255,255,.7); font-size: .95rem; margin-bottom: 28px; }
.bot-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bot-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; color: rgba(255,255,255,.75);
  margin: 0;
}
.bot-features li::before {
  content: '';
  width: 6px; height: 10px;
  border-right: 1.5px solid var(--accent-soft);
  border-bottom: 1.5px solid var(--accent-soft);
  transform: rotate(45deg);
  flex-shrink: 0; margin: 0 4px 0 2px;
}
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 24px rgba(148,114,24,.3);
}
.btn-accent:hover { background: #7d6015; transform: translateY(-2px); color:#fff; }
/* Mini chat preview */
.bot-preview {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 340px; margin-left: auto;
}
.bp-header {
  background: var(--primary-dk);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
}
.bp-avatar {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.bp-name { color: #fff; font-size: .88rem; font-weight: 600; }
.bp-status { color: rgba(255,255,255,.55); font-size: .72rem; display: flex; align-items: center; gap: 4px; }
.bp-online { width:6px;height:6px;background:#4ADE80;border-radius:50%; display:inline-block; }
.bp-body { padding: 16px; background: var(--chat-bg); display: flex; flex-direction: column; gap: 10px; min-height: 180px; }
.bp-msg {
  max-width: 82%; padding: 9px 13px; border-radius: 12px;
  font-size: .82rem; line-height: 1.5;
}
.bp-bot {
  background: var(--surface); color: var(--text);
  border-radius: 4px 12px 12px 12px;
  box-shadow: var(--shadow-sm);
  align-self: flex-start;
}
.bp-user {
  background: var(--primary); color: #fff;
  border-radius: 12px 12px 4px 12px;
  align-self: flex-end;
}
.bp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.bp-chip {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 99px; padding: 3px 10px;
  font-size: .75rem; cursor: pointer;
  background: var(--surface);
  transition: all .15s;
}
.bp-chip:hover { background: var(--primary); color: #fff; }
.bp-input {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px; align-items: center;
  background: var(--surface);
}
.bp-input-txt {
  flex: 1; font-size: .8rem; color: var(--text-muted);
  padding: 7px 12px;
  border: 1px solid var(--border); border-radius: 99px;
  background: var(--chat-bg);
}

/* ── FAQ ── */
#faq { background: var(--surface2); }
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 600; color: var(--primary);
  transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-arrow {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; transition: all .25s;
  color: var(--text-muted);
}
.faq-item.open .faq-arrow { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a-inner { padding: 0 0 20px; font-size: .92rem; color: var(--text-muted); }
.faq-item.open .faq-a { max-height: 300px; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h3 { margin-bottom: 12px; }
.contact-info p { font-size: .92rem; }
.contact-point {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.contact-point:last-child { border-bottom: none; }
.cp-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.cp-label { font-size: .75rem; color: var(--text-muted); margin: 0 0 2px; letter-spacing: .05em; text-transform: uppercase; }
.cp-value { font-size: .92rem; color: var(--text); font-weight: 500; margin: 0; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.inp {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: 'Outfit', sans-serif; font-size: .9rem;
  transition: border-color .2s;
}
.inp:focus { outline: none; border-color: var(--primary); }
.inp::placeholder { color: var(--text-muted); }
textarea.inp { resize: vertical; min-height: 100px; }
select.inp { cursor: pointer; }
.form-sent { display: none; text-align: center; padding: 32px; }
.form-sent p { font-size: 1rem; color: var(--text-muted); margin: 0; }

/* ── Footer ── */
footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; color: var(--primary);
}
.footer-copy { font-size: .8rem; color: var(--text-muted); margin-top: 6px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: .82rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }
.disclaimer { font-size: .75rem; color: var(--text-muted); margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); opacity: .7; }

/* ── WA float ── */
.wa-float {
  position: fixed; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); right: 24px;
  z-index: 990;
}
.wa-btn {
  display: flex; align-items: center;
  gap: 0; overflow: hidden;
  background: #25D366; color: #fff;
  padding: 13px 14px; border-radius: 99px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37,211,102,.35);
  transition: all .3s;
}
.wa-btn:hover {
  gap: 8px; padding-right: 20px;
  box-shadow: 0 10px 28px rgba(37,211,102,.5);
  transform: translateY(-2px);
}
.wa-btn svg { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }
.wa-label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-size: .84rem; font-weight: 600;
  transition: max-width .35s;
  color: #fff;
}
.wa-btn:hover .wa-label { max-width: 160px; }

/* ── Chat widget ── */
#chatBtn {
  position: fixed; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); left: 24px;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  cursor: pointer; z-index: 990;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform .2s, background .2s;
  font-size: 22px;
}
#chatBtn:hover { transform: scale(1.08); background: var(--primary-lt); }
#chatBtn.open { background: var(--primary-dk); }
#chatBtn .ico-open  { line-height: 1; }
#chatBtn .ico-close { display: none; font-size: 18px; font-weight: 700; }
#chatBtn.open .ico-open  { display: none; }
#chatBtn.open .ico-close { display: block; }
.chat-notif {
  position: absolute; top: 1px; right: 1px;
  width: 13px; height: 13px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
  animation: ping 2s infinite;
}
@keyframes ping {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}
#chatWin {
  position: fixed; left: 24px;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  width: min(370px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 130px));
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  z-index: 989;
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(.92) translateY(16px);
  opacity: 0; pointer-events: none;
  transform-origin: bottom left;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
}
#chatWin.open {
  transform: scale(1) translateY(0);
  opacity: 1; pointer-events: all;
}
.cw-header {
  background: var(--primary);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; position: relative;
}
.cw-header::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.cw-avatar {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.cw-name { color: #fff; font-weight: 600; font-size: .9rem; line-height: 1.2; }
.cw-sub {
  color: rgba(255,255,255,.6); font-size: .72rem;
  display: flex; align-items: center; gap: 4px;
}
.cw-online { width:6px;height:6px;background:#4ADE80;border-radius:50%;display:inline-block; }
.cw-msgs {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--chat-bg);
}
.cw-msgs::-webkit-scrollbar { width: 3px; }
.cw-msgs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.cw-msg {
  display: flex; flex-direction: column; gap: 3px;
  max-width: 84%; animation: msgSlide .2s ease-out;
}
@keyframes msgSlide { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.cw-msg.bot { align-self: flex-start; }
.cw-msg.user { align-self: flex-end; align-items: flex-end; }
.cw-bubble {
  padding: 9px 13px; border-radius: 13px;
  font-size: .84rem; line-height: 1.55; white-space: pre-line; word-break: break-word;
}
.cw-msg.bot  .cw-bubble { background: var(--surface); color: var(--text); border-radius: 4px 13px 13px 13px; box-shadow: var(--shadow-sm); }
.cw-msg.user .cw-bubble { background: var(--primary); color: #fff; border-radius: 13px 13px 4px 13px; }
.cw-bubble strong { color: var(--primary); }
.cw-msg.user .cw-bubble strong { color: inherit; }
.cw-time { font-size: .68rem; color: var(--text-muted); padding: 0 3px; }
.cw-qr { display: flex; flex-wrap: wrap; gap: 5px; max-width: 90%; animation: msgSlide .25s ease-out; }
.cw-chip {
  background: var(--surface); border: 1.5px solid var(--primary);
  color: var(--primary); border-radius: 99px; padding: 4px 11px;
  font-size: .76rem; cursor: pointer; font-weight: 500;
  font-family: 'Outfit', sans-serif;
  transition: all .15s;
}
.cw-chip:hover { background: var(--primary); color: #fff; }
.cw-appt-form {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px;
  width: 100%; max-width: 90%;
  box-shadow: var(--shadow-sm);
  animation: msgSlide .25s ease-out;
}
.cw-appt-form input {
  width: 100%; border: 1.5px solid var(--border);
  border-radius: 8px; padding: 7px 10px;
  font-size: .8rem; font-family: 'Outfit', sans-serif;
  background: var(--chat-bg); color: var(--text);
  outline: none; margin-bottom: 7px; display: block;
  transition: border-color .2s;
}
.cw-appt-form input:focus { border-color: var(--primary); }
.cw-appt-form input::placeholder { color: var(--text-muted); }
.cw-appt-form button[type=submit] {
  width: 100%; background: var(--primary); color: #fff;
  border: none; border-radius: 8px; padding: 8px;
  font-size: .83rem; font-weight: 600; font-family: 'Outfit', sans-serif;
  cursor: pointer; transition: background .2s;
}
.cw-appt-form button[type=submit]:hover { background: var(--primary-dk); }
.cw-appt-form button[type=submit]:disabled { opacity: .6; cursor: default; }
.cw-appt-note { font-size: .72rem; color: var(--text-muted); margin-top: 6px; text-align: center; }
.cw-typing {
  display: flex; align-items: center; gap: 4px;
  padding: 9px 13px; background: var(--surface);
  border-radius: 4px 13px 13px 13px; box-shadow: var(--shadow-sm);
  align-self: flex-start; animation: msgSlide .2s ease-out;
}
.cw-dot {
  width: 6px; height: 6px; background: var(--text-muted);
  border-radius: 50%; animation: typeDot 1.2s infinite;
}
.cw-dot:nth-child(2) { animation-delay: .2s; }
.cw-dot:nth-child(3) { animation-delay: .4s; }
@keyframes typeDot {
  0%,60%,100% { transform: translateY(0); opacity: .4; }
  30%          { transform: translateY(-5px); opacity: 1; }
}
.cw-input {
  padding: 10px 12px; border-top: 1px solid var(--border);
  display: flex; gap: 7px; align-items: center;
  flex-shrink: 0; background: var(--surface);
}
#cwText {
  flex: 1; border: 1.5px solid var(--border); border-radius: 99px;
  padding: 8px 14px; font-size: .85rem;
  font-family: 'Outfit', sans-serif;
  background: var(--chat-bg); color: var(--text);
  outline: none; transition: border-color .2s;
}
#cwText:focus { border-color: var(--primary); }
#cwText::placeholder { color: var(--text-muted); }
#cwSend {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
  transition: background .2s, transform .15s;
}
#cwSend:hover { background: var(--primary-dk); transform: scale(1.05); }

/* ── Theme toggle ── */
.theme-btn {
  position: fixed; top: calc(env(safe-area-inset-top,0px) + 80px); right: 16px;
  z-index: 100;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.theme-btn:hover { transform: scale(1.1); border-color: var(--primary); color: var(--primary); }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid, .contact-grid, .bot-grid, .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-grid > div:first-child { order: 2; }
  .hero-img { max-width: 360px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat + .stat::before { display: none; }
  .btn-row .btn { flex: 1; justify-content: center; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .footer-grid { gap: 20px; }
  .footer-links { display: none; }
  .hero { min-height: auto; padding: 120px 0 64px; }
  .hero-float-card { display: none; }
  .bot-preview { display: none; }
  section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 18px; }
  .grid-3 { gap: 14px; }
  .nav-wrap { padding-inline: 18px; }
}

/* ── Dirección visual editorial ── */
h1 {
  font-size: clamp(3rem, 5.7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  max-width: 11ch;
}

body { font-weight: 400; }
p, li { font-weight: 400; }

.brand { font-size: 1.35rem; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.hero {
  min-height: min(94vh, 880px);
  padding: clamp(132px, 15vh, 176px) 0 96px;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(233,215,179,.32), transparent 34%),
    linear-gradient(135deg, var(--bg) 0%, var(--surface) 54%, var(--surface2) 100%);
}

.hero-grid {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(48px, 7vw, 104px);
}

.hero-grid > div:first-child > p {
  max-width: 54ch;
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
}

.eyebrow, .section-label {
  letter-spacing: .16em;
}

.hero-img-wrap {
  width: min(100%, 520px);
  margin-inline: auto;
  padding: 8px;
}

.hero-img {
  aspect-ratio: 4 / 5;
  max-height: 660px;
  border: 7px solid var(--surface);
  border-radius: 48% 48% 22px 22px;
  box-shadow: 0 28px 70px rgba(27,48,44,.2);
}

.hero-img-photo {
  object-position: center 36%;
  filter: none;
  transition: filter .55s ease, transform .55s ease;
}

.hero-accent-ring {
  inset: 0;
  border: 1px solid rgba(154,117,70,.5);
  border-radius: 49% 49% 26px 26px;
  transition: border-color .55s ease, box-shadow .55s ease;
}

.hero-img-wrap:hover .hero-img-photo {
  filter: brightness(1.035) saturate(1.06) sepia(.025);
  transform: scale(1.012);
}

.hero-img-wrap:hover .hero-accent-ring {
  border-color: rgba(154,117,70,.72);
  box-shadow: 0 0 22px rgba(154,117,70,.13);
}

.hero-float-card {
  bottom: -24px;
  left: -34px;
  border-radius: 16px;
  padding: 16px 20px;
}

.stats-band {
  background: var(--primary-dk);
  padding: 44px 0;
}

section { padding: clamp(76px, 9vw, 112px) 0; }

.svc-card {
  position: relative;
  border-radius: 20px;
  padding: 34px 30px;
  background: linear-gradient(145deg, var(--surface), var(--surface2));
  box-shadow: var(--shadow-sm);
}

.svc-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.svc-icon {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(154,117,70,.24);
  border-radius: 15px;
  margin-bottom: 22px;
  font-style: normal;
}

.svc-icon svg { width: 25px; height: 25px; }

.btn {
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
}

.btn-primary {
  box-shadow: 0 10px 24px rgba(24,51,54,.2);
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 118px 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-grid > div:first-child { order: 0; }
  .hero-img-wrap { order: 1; width: min(100%, 420px); }
  .hero-img { max-width: none; }
}

@media (max-width: 600px) {
  h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
  .hero { padding: 108px 0 60px; }
  .hero-img-wrap { width: min(100%, 340px); }
  .hero-float-card { left: 2px; }
  .svc-card { padding: 28px 24px; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) h1,
  :root:not([data-theme="light"]) h2,
  :root:not([data-theme="light"]) h3,
  :root:not([data-theme="light"]) h4 { color: var(--text); }
  :root:not([data-theme="light"]) a:not(.btn):not(.nav-cta) { color: var(--primary-lt); }
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4 { color: var(--text); }
:root[data-theme="dark"] a:not(.btn):not(.nav-cta) { color: var(--primary-lt); }

/* ── Movimiento simbólico al recorrer la página ── */
.hero-accent-ring { animation: protective-ring-appear 1.4s ease-out both; }

@keyframes protective-ring-appear {
  from { opacity: .25; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

.svc-card.in .svc-icon { animation: legacy-light 900ms ease-out both; }

@keyframes legacy-light {
  45% { box-shadow: 0 0 0 7px rgba(154,117,70,.09); }
  100% { box-shadow: 0 0 0 2px rgba(154,117,70,0); }
}

.timeline::before {
  transform: scaleY(0);
  transform-origin: top;
}

.reveal.in .timeline::before {
  animation: succession-line 1.35s cubic-bezier(.22,.61,.36,1) both;
}

.reveal.in .timeline .tl-item {
  animation: succession-step 520ms ease-out both;
}

.reveal.in .timeline .tl-item:nth-child(2) { animation-delay: 80ms; }
.reveal.in .timeline .tl-item:nth-child(3) { animation-delay: 150ms; }
.reveal.in .timeline .tl-item:nth-child(4) { animation-delay: 220ms; }
.reveal.in .timeline .tl-item:nth-child(5) { animation-delay: 290ms; }
.reveal.in .timeline .tl-item:nth-child(6) { animation-delay: 360ms; }

@keyframes succession-line {
  to { transform: scaleY(1); }
}

@keyframes succession-step {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-accent-ring,
  .svc-card.in .svc-icon,
  .reveal.in .timeline::before,
  .reveal.in .timeline .tl-item,
  .hero-float-card { animation: none; }

  .timeline::before { transform: none; }
  .hero-img-photo, .hero-accent-ring { transition: none; }
}

.hero-grid > div:first-child > .eyebrow {
  text-align: center;
}

.hero-grid > div:first-child > h1 {
  max-width: 17ch;
  margin-inline: auto;
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.35rem, 4.2vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: .005em;
  text-align: center;
}

.hero-grid > div:first-child > h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .75;
}

@media (max-width: 600px) {
  .hero-grid > div:first-child > h1 {
    font-size: clamp(2.2rem, 9.2vw, 3.1rem);
  }
}