/* ==========================================================
   Mancui · Manos cuidadosas — estilos (mobile first)
   ========================================================== */
:root {
  --brand: #6640a9;
  --brand-600: #563592;
  --brand-700: #452a78;
  --brand-2: #737fef;
  --lav-50: #faf8fe;
  --lav-100: #f3eefc;
  --lav-200: #e6dcf8;
  --lav-300: #cfbff0;
  --peach: #ffe6d3;
  --peach-2: #ffcfae;
  --ink: #2a1f47;
  --ink-2: #4c4466;
  --muted: #7b7393;
  --line: #ebe5f5;
  --bg: #fdfcff;
  --card: #ffffff;
  --ok: #1f8a5b; --ok-bg: #e5f6ee;
  --warn: #a8640a; --warn-bg: #fff3dd;
  --bad: #c2334d; --bad-bg: #fde9ed;
  --info: #3d55c9; --info-bg: #e9edfe;
  --wa: #25d366;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px -12px rgba(70, 40, 130, .25);
  --shadow-lg: 0 24px 60px -20px rgba(70, 40, 130, .35);
  --font: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 8vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 6vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hl { color: var(--brand); position: relative; white-space: nowrap; }
.hl::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: .08em; height: .32em; background: var(--peach-2); opacity: .7; border-radius: 6px; z-index: -1; }

/* ---------- Botones ---------- */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.5em; border-radius: 999px; border: 2px solid var(--b); background: var(--b); color: #fff; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; line-height: 1.2; min-height: 48px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(102, 64, 169, .55); }
.btn:active { transform: translateY(0); }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico-arrow { transform: translateX(4px); }
.btn-light { background: #fff; color: var(--brand); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--lav-300); }
.btn-ghost:hover { background: var(--lav-100); box-shadow: none; }
.btn-wa { --b: var(--wa); }
.btn-wa:hover { box-shadow: 0 12px 24px -10px rgba(37, 211, 102, .6); }
.btn-danger { --b: var(--bad); }
.btn-ok { --b: var(--ok); }
.btn-sm { padding: .55em 1em; min-height: 38px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; font-weight: 700; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-header .logo img { height: 34px; width: auto; }
.site-header .logo .logo-white { display: none; }
.site-header.on-hero:not(.scrolled) .logo .logo-color { display: none; }
.site-header.on-hero:not(.scrolled) .logo .logo-white { display: block; }
.site-header.scrolled, .site-header:not(.on-hero) { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-desktop { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 0; background: var(--lav-100); color: var(--brand); cursor: pointer; transition: background .2s, transform .2s; }
.icon-btn:hover { transform: scale(1.05); }
.on-hero:not(.scrolled) .icon-btn { background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); }
.icon-btn .ico { width: 22px; height: 22px; }
.header-cta { display: none; }

/* Menú móvil */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(30, 18, 60, .45); opacity: 0; transition: opacity .35s; }
.drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); background: #fff; border-radius: 28px 0 0 28px; padding: 18px 22px 28px; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .45s var(--ease); overflow-y: auto; }
.drawer.open { pointer-events: auto; }
.drawer.open .scrim { opacity: 1; }
.drawer.open .panel { transform: none; }
.drawer .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer .top img { height: 30px; }
.drawer nav a { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 16px; color: var(--ink); font-weight: 700; font-size: 1.08rem; opacity: 0; transform: translateX(20px); transition: background .2s, opacity .4s var(--ease), transform .4s var(--ease); }
.drawer.open nav a { opacity: 1; transform: none; }
.drawer nav a .ico { color: var(--brand); width: 22px; height: 22px; }
.drawer nav a.active, .drawer nav a:hover { background: var(--lav-100); }
.drawer nav a .chev { margin-left: auto; color: var(--lav-300); }
.drawer .foot { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }
.drawer hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; color: #fff; overflow: hidden; isolation: isolate; padding: 0; background: #3b1e74; }
.hero picture { position: relative; display: block; margin-bottom: -1px; height: min(64svh, 138vw); overflow: hidden; }
.hero .hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; animation: kenburns 18s ease-out both; }
.hero picture::after { content: ''; position: absolute; inset: 0 0 -2px; background: linear-gradient(180deg, rgba(30, 14, 64, .45) 0%, rgba(30, 14, 64, 0) 22%, rgba(59, 30, 116, 0) 52%, rgba(59, 30, 116, .75) 80%, #3b1e74 100%); }
.hero::before { content: ''; display: none; }
.hero .wrap { position: relative; margin-top: -96px; padding-top: 0; padding-bottom: 40px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(10px); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; margin-bottom: 16px; }
.hero h1 { color: #fff; max-width: 13ch; margin-bottom: .35em; text-shadow: 0 2px 30px rgba(30, 10, 60, .3); }
.hero h1 em { font-style: normal; color: var(--peach-2); }
.hero p.lead { font-size: 1.1rem; max-width: 34ch; opacity: .95; margin-bottom: 24px; }
.hero .btn-row .btn { flex: 1 1 auto; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: .9rem; font-weight: 700; opacity: .95; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .ico { color: var(--peach-2); }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero .fade-up { animation: fadeUp .9s var(--ease) both; }
.hero .d1 { animation-delay: .15s; } .hero .d2 { animation-delay: .3s; } .hero .d3 { animation-delay: .45s; } .hero .d4 { animation-delay: .6s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.scroll-hint { display: none; }

/* ---------- Secciones ---------- */
section { padding: 64px 0; }
.section-head { margin-bottom: 30px; }
.section-head .kicker, .kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; max-width: 52ch; }
.section-head.center p { margin-inline: auto; }
.bg-soft { background: linear-gradient(180deg, var(--lav-50), var(--lav-100)); }
.page-hero { padding: 110px 0 36px; background: radial-gradient(120% 90% at 100% 0%, var(--lav-200) 0%, transparent 60%), radial-gradient(90% 70% at 0% 100%, var(--peach) 0%, transparent 60%), var(--lav-50); }
.page-hero p { color: var(--ink-2); font-size: 1.05rem; max-width: 52ch; }

/* Tarjetas de beneficios */
.perks { display: grid; gap: 14px; }
.perk { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .3s var(--ease), box-shadow .3s; }
.perk:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.perk h3 { margin-bottom: 4px; }
.perk p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.bubble { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: var(--lav-100); color: var(--brand); flex: none; transition: transform .35s var(--ease); }
.bubble .ico { width: 26px; height: 26px; }
.bubble.peach { background: var(--peach); color: #b8571c; }
.bubble.blue { background: #eceefe; color: var(--brand-2); }
.perk:hover .bubble, .svc:hover .bubble { transform: rotate(-8deg) scale(1.06); }

/* Servicios */
.svc-grid { display: grid; gap: 14px; }
.svc { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; color: inherit; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--lav-300); }
.svc .top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.svc h3 { margin: 0; font-size: 1.08rem; }
.svc .cat { font-size: .78rem; font-weight: 700; color: var(--muted); }
.svc p { color: var(--ink-2); font-size: .95rem; margin-bottom: 16px; }
.svc .bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 900; font-size: 1.25rem; color: var(--brand); }
.price small { font-size: .72rem; font-weight: 700; color: var(--muted); display: block; line-height: 1; }
.svc .go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; transition: transform .3s var(--ease); }
.svc:hover .go { transform: rotate(-45deg); }
.chip-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; }
.chip-tabs::-webkit-scrollbar { display: none; }
.chip-tabs button, .chip-tabs a { flex: none; border: 1.5px solid var(--lav-300); background: #fff; color: var(--ink-2); padding: 9px 16px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: all .2s; }
.chip-tabs .active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Cómo funciona */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 22px 20px 22px 80px; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 1.1rem; }
.step h3 { margin-bottom: 2px; }
.step p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* Banda CTA */
.cta-band { position: relative; overflow: hidden; border-radius: 30px; padding: 34px 24px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, var(--brand-2) 0%, transparent 55%), linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .92; font-size: 1.05rem; }
.cta-band .iso { position: absolute; right: -40px; bottom: -40px; width: 220px; opacity: .12; filter: brightness(10); animation: float 8s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(4deg); } }

/* Tarifa / cifras */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.stat b { display: block; font-size: 1.6rem; font-weight: 900; color: var(--brand); line-height: 1.1; }
.stat span { font-size: .88rem; color: var(--ink-2); font-weight: 600; }

/* Equipo */
.team-grid { display: grid; gap: 16px; }
.pro { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.pro:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pro .photo { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--lav-200), var(--peach)); display: grid; place-items: center; overflow: hidden; }
.pro .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pro:hover .photo img { transform: scale(1.05); }
.pro .photo .initials { width: 96px; height: 96px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-weight: 900; font-size: 2rem; box-shadow: var(--shadow); }
.pro .body { padding: 18px 20px 20px; }
.pro .role { color: var(--brand); font-weight: 700; font-size: .9rem; display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.pro p { color: var(--ink-2); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--lav-100); color: var(--brand-700); font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* Valores */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.value { background: #fff; border-radius: var(--radius-sm); padding: 16px; border: 1px solid var(--line); }
.value .ico { color: var(--brand); width: 26px; height: 26px; margin-bottom: 8px; }
.value h3 { font-size: 1rem; margin-bottom: 4px; }
.value p { font-size: .88rem; color: var(--ink-2); margin: 0; }

/* Cita / quote */
.quote { position: relative; background: #fff; border-radius: 28px; padding: 28px 22px; border: 1px solid var(--line); }
.quote blockquote { margin: 0 0 14px; font-size: 1.2rem; font-weight: 700; line-height: 1.45; color: var(--ink); }
.quote .ico-quote { color: var(--lav-300); width: 40px; height: 40px; margin-bottom: 8px; }
.quote .who { display: flex; gap: 12px; align-items: center; }
.quote .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* Split imagen */
.split { display: grid; gap: 26px; align-items: center; }
.split .pic { border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.split .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 30%; }
.check-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink-2); }
.check-list .ico { color: var(--ok); margin-top: 2px; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 0 18px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--brand); transition: transform .3s var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 16px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d2ec; padding: 50px 0 110px; margin-top: 40px; }
.site-footer a:not(.btn) { color: #fff; }
.site-footer .logo img { height: 34px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.site-footer .cols { display: grid; gap: 26px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer li a, .site-footer li { display: inline-flex; gap: 8px; align-items: center; color: #d9d2ec; }
.site-footer li a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 18px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 16px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); transition: transform .3s var(--ease); animation: popIn .6s 1s var(--ease) both; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ico { width: 30px; height: 30px; }
.wa-float::before, .wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.6s 2s ease-out infinite; }
.wa-float::after { animation-delay: 3.3s; }
.wa-float .tip { position: absolute; right: 70px; white-space: nowrap; background: #fff; color: var(--ink); font-weight: 800; font-size: .88rem; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); animation: tip 6s 2.2s var(--ease) both; pointer-events: none; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes tip { 0% { opacity: 0; transform: translateX(10px); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Barra CTA inferior móvil */
.mobile-cta { position: fixed; left: 12px; right: 88px; bottom: 18px; z-index: 55; transform: translateY(140%); transition: transform .45s var(--ease); }
.mobile-cta.show { transform: none; }
.mobile-cta .btn { width: 100%; box-shadow: var(--shadow-lg); min-height: 60px; }

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Formularios ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card + .card { margin-top: 16px; }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 1.1rem; }
.card-title .ico { color: var(--brand); }
.field { display: block; margin-bottom: 16px; }
.field > span, .label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.input, input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=time], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--lav-200); border-radius: var(--radius-sm); padding: 13px 15px; transition: border-color .2s, box-shadow .2s; min-height: 50px; appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236640a9' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(102, 64, 169, .14); }
.input-icon { position: relative; }
.input-icon > .ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 46px; }
.input-icon .toggle-pass { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 10px; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); margin-bottom: 12px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; margin: 1px 0 0; }
.grid-2 { display: grid; gap: 0 14px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* Auth */
.auth { min-height: 100svh; padding: 96px 0 50px; background: radial-gradient(100% 60% at 100% 0%, var(--lav-200), transparent 60%), radial-gradient(80% 50% at 0% 100%, var(--peach), transparent 60%), var(--lav-50); }
.auth .box { max-width: 440px; margin: 0 auto; }
.auth .card { padding: 28px 22px; box-shadow: var(--shadow); border: 0; }
.auth h1 { font-size: 1.8rem; }
.auth .iso { width: 54px; margin-bottom: 14px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Avisos flash */
.flash-wrap { position: fixed; top: 78px; left: 12px; right: 12px; z-index: 90; display: grid; gap: 8px; pointer-events: none; max-width: 520px; margin: 0 auto; }
.flash { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; font-weight: 700; box-shadow: var(--shadow-lg); background: #fff; border-left: 5px solid var(--brand); animation: slideDown .5s var(--ease) both; }
.flash.ok { border-color: var(--ok); } .flash.ok .ico { color: var(--ok); }
.flash.error { border-color: var(--bad); } .flash.error .ico { color: var(--bad); }
.flash.info .ico { color: var(--brand); }
.flash.hide { animation: slideUp .4s var(--ease) both; }
.flash .x { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes slideUp { to { opacity: 0; transform: translateY(-16px); } }
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--lav-100); color: var(--ink-2); font-size: .95rem; margin-bottom: 16px; }
.alert .ico { color: var(--brand); margin-top: 2px; }
.alert.warn { background: var(--warn-bg); } .alert.warn .ico { color: var(--warn); }
.alert.ok { background: var(--ok-bg); } .alert.ok .ico { color: var(--ok); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge .ico { width: 14px; height: 14px; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.neutral { background: var(--lav-100); color: var(--brand-700); }

/* ---------- Cuenta de usuario ---------- */
.acct { padding: 92px 0 60px; min-height: 100svh; background: var(--lav-50); }
.acct-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.avatar { width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; flex: none; }
.acct-head h1 { font-size: 1.5rem; margin: 0; }
.acct-nav { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px 20px; padding: 0 20px 4px; scrollbar-width: none; }
.acct-nav::-webkit-scrollbar { display: none; }
.acct-nav a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: .92rem; }
.acct-nav a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile .ico { color: var(--brand); width: 26px; height: 26px; margin-bottom: 10px; }
.tile b { display: block; font-size: 1.5rem; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.tile span { font-size: .88rem; color: var(--ink-2); font-weight: 600; }
.next-card { background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; border-radius: var(--radius); padding: 22px; margin-bottom: 16px; position: relative; overflow: hidden; }
.next-card h2 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.next-card .meta { display: grid; gap: 6px; margin: 12px 0 16px; font-weight: 600; }
.next-card .meta span { display: flex; gap: 8px; align-items: center; }

/* Lista de citas */
.list { display: grid; gap: 12px; }
.bk { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s; }
.bk:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bk .date { flex: none; width: 58px; text-align: center; background: var(--lav-100); border-radius: 16px; padding: 8px 4px; color: var(--brand-700); }
.bk .date b { display: block; font-size: 1.5rem; line-height: 1; font-weight: 900; }
.bk .date span { font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.bk .info { flex: 1; min-width: 0; }
.bk h3 { font-size: 1rem; margin-bottom: 2px; }
.bk .sub { font-size: .87rem; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.bk .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty .ico { width: 46px; height: 46px; color: var(--lav-300); margin: 0 auto 10px; display: block; }

.kv { display: grid; gap: 12px; margin: 0; }
.kv > div { display: flex; gap: 12px; align-items: flex-start; }
.kv .ico { color: var(--brand); margin-top: 2px; }
.kv dt { font-size: .8rem; color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; font-weight: 700; }
.addr { display: flex; gap: 14px; align-items: flex-start; }
.addr + .addr { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.addr .actions { margin-left: auto; display: flex; gap: 4px; }
.addr .bubble { width: 44px; height: 44px; border-radius: 14px; }
.inline { display: inline; }

/* Reservar */
.book-steps { display: grid; gap: 16px; }
.book-step h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.book-step h2 .n { width: 30px; height: 30px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .9rem; flex: none; }
.svc-pick { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding: 2px; }
.svc-pick label { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.svc-pick input { position: absolute; opacity: 0; }
.svc-pick label:has(input:checked) { border-color: var(--brand); background: var(--lav-100); }
.svc-pick .bubble { width: 42px; height: 42px; border-radius: 13px; }
.svc-pick .nm { font-weight: 800; font-size: .95rem; line-height: 1.3; }
.svc-pick .pr { margin-left: auto; font-weight: 900; color: var(--brand); white-space: nowrap; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.day { flex: none; width: 66px; border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: 10px 4px; text-align: center; cursor: pointer; font: inherit; color: var(--ink); transition: all .2s; }
.day small { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.day b { display: block; font-size: 1.35rem; font-weight: 900; line-height: 1.2; }
.day.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.day.active small { color: #fff; opacity: .85; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.time { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 6px; font: inherit; font-weight: 800; cursor: pointer; color: var(--ink); text-align: center; transition: all .2s; }
.time small { display: block; font-weight: 600; font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.time.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.time.active small { color: #fff; }
.summary { position: sticky; bottom: 12px; z-index: 5; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px; border: 1px solid var(--line); }
.summary .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.loader { width: 22px; height: 22px; border: 3px solid var(--lav-200); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 14px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tablas genéricas */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; padding: 12px 14px; background: var(--lav-50); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--lav-50); }

/* Error */
.error-page { min-height: 80svh; display: grid; place-items: center; text-align: center; padding: 110px 20px 40px; }
.error-page .iso { width: 80px; margin: 0 auto 18px; animation: float 6s ease-in-out infinite; }

/* Legal */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }

/* ---------- Escritorio ---------- */
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .svc-grid, .perks, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 80px 22px 24px; }
  .site-footer .cols { grid-template-columns: 2fr 1fr 1fr 1.3fr; }
  .cta-band { padding: 54px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .hero .btn-row .btn { flex: 0 0 auto; }
}
@media (min-width: 1000px) {
  section { padding: 96px 0; }
  .nav-desktop { display: flex; gap: 4px; }
  .nav-desktop a { padding: 8px 14px; border-radius: 999px; font-weight: 700; color: var(--ink-2); transition: background .2s, color .2s; }
  .nav-desktop a:hover, .nav-desktop a.active { background: var(--lav-100); color: var(--brand); }
  .on-hero:not(.scrolled) .nav-desktop a { color: #fff; }
  .on-hero:not(.scrolled) .nav-desktop a:hover, .on-hero:not(.scrolled) .nav-desktop a.active { background: rgba(255, 255, 255, .18); color: #fff; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none !important; }
  .svc-grid, .team-grid { grid-template-columns: repeat(3, 1fr); }
  .perks { grid-template-columns: repeat(4, 1fr); }
  .perk { flex-direction: column; }
  .split { grid-template-columns: 1fr 1.1fr; gap: 60px; }
  .hero { min-height: 100svh; flex-direction: row; align-items: center; background: none; }
  .hero picture { position: absolute; inset: 0; height: auto; z-index: -2; }
  .hero picture::after { display: none; }
  .hero .hero-img { object-position: 60% 30%; }
  .hero::before { display: block; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(48, 22, 98, .9) 0%, rgba(48, 22, 98, .65) 38%, rgba(48, 22, 98, 0) 65%), linear-gradient(180deg, rgba(30, 14, 64, .35) 0%, transparent 20%); }
  .hero .wrap { margin-top: 0; padding-top: 120px; padding-bottom: 60px; }
  .hero p.lead { font-size: 1.2rem; }
  .scroll-hint { display: grid; position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: #fff; opacity: .8; animation: bob 2s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translate(-50%, 8px); } }
  .mobile-cta { display: none; }
  .site-footer { padding-bottom: 50px; }
  .acct-layout { display: grid; grid-template-columns: 1fr; }
  .book-steps { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .book-steps .full { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.hide-wa .wa-float { display: none; }
.wa-float { transition: transform .3s var(--ease), opacity .4s var(--ease); }
.has-hero:not(.show-wa) .wa-float { opacity: 0; pointer-events: none; }
.book-steps > *, .cols-2 > *, .split > * { min-width: 0; }

/* Contraseñas: ojo y medidor de fuerza */
.input-icon.has-toggle input { padding-right: 52px; }
.input-icon.no-lead input { padding-left: 15px; }
.input-icon .toggle-pass { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; transition: color .2s, background .2s; }
.input-icon .toggle-pass:hover { color: var(--brand); background: var(--lav-100); }
.input-icon .toggle-pass .ico { position: static; transform: none; width: 22px; height: 22px; }
.pw-meter { margin-top: 10px; }
.pw-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pw-bars i { height: 6px; border-radius: 99px; background: var(--lav-200); transition: background .35s var(--ease), transform .35s var(--ease); transform-origin: left; }
.pw-meter[data-fill="1"] .pw-bars i:nth-child(-n+1), .pw-meter[data-fill="2"] .pw-bars i:nth-child(-n+2),
.pw-meter[data-fill="3"] .pw-bars i:nth-child(-n+3), .pw-meter[data-fill="4"] .pw-bars i { background: var(--c, var(--bad)); }
.pw-meter[data-level="bad"] { --c: var(--bad); }
.pw-meter[data-level="warn"] { --c: #e8a33a; }
.pw-meter[data-level="ok"] { --c: var(--ok); }
.pw-label { font-size: .85rem; font-weight: 800; margin-top: 6px; color: var(--muted); }
.pw-meter[data-level="bad"] .pw-label { color: var(--bad); }
.pw-meter[data-level="warn"] .pw-label { color: var(--warn); }
.pw-meter[data-level="ok"] .pw-label { color: var(--ok); }
.pw-rules { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.pw-rules li { font-size: .8rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; transition: color .25s; }
.pw-rules li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--lav-300); flex: none; transition: all .25s var(--ease); }
.pw-rules li.ok { color: var(--ok); }
.pw-rules li.ok::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; transform: scale(1.1); }
.pw-match { font-size: .82rem; font-weight: 800; margin-top: 6px; min-height: 0; }
.pw-match.ok { color: var(--ok); }
.pw-match.bad { color: var(--bad); }
@media (max-width: 360px) { .pw-rules { grid-template-columns: 1fr; } }

/* Verificación de correo */
.verify-ico { width: 72px; height: 72px; border-radius: 24px; margin: 0 auto 16px; animation: float 5s ease-in-out infinite; }
.verify-ico .ico { width: 34px; height: 34px; }
.verify-tips { list-style: none; padding: 14px 16px; margin: 0; background: var(--lav-50); border-radius: var(--radius-sm); text-align: left; display: grid; gap: 8px; }
.verify-tips li { display: flex; gap: 10px; align-items: center; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.verify-tips .ico { color: var(--brand); }

/* Los íconos de un botón siempre toman el color de su texto (nunca el de la alerta o tarjeta donde esté) */
.btn .ico { color: inherit !important; }
/* WhatsApp: texto e ícono siempre blancos */
.btn-wa, .btn-wa:hover, .btn-wa:visited, .btn-wa .ico, .wa-float, .wa-float .ico { color: #fff !important; }

/* Pago manual */
.pay-note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--lav-100); color: var(--ink-2); font-size: .93rem; }
.pay-note .ico { color: var(--brand); margin-top: 2px; }
.pay-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--lav-100); margin-bottom: 16px; font-weight: 700; color: var(--brand-700); }
.pay-total b { font-size: 1.5rem; font-weight: 900; color: var(--brand); }
.pay-steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.pay-steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); line-height: 1.5; }
.pay-steps .n { width: 28px; height: 28px; border-radius: 9px; background: var(--brand); color: #fff; font-weight: 900; display: grid; place-items: center; flex: none; font-size: .9rem; }
.pay-number { display: inline-flex; align-items: center; gap: 6px; border: 1.5px dashed var(--lav-300); background: #fff; color: var(--brand); font: inherit; font-weight: 900; font-size: 1.05rem; padding: 2px 10px; border-radius: 10px; cursor: pointer; transition: all .2s; }
.pay-number .ico { width: 16px; height: 16px; }
.pay-number.copied { border-color: var(--ok); color: var(--ok); }
.pay-number.copied::after { content: 'Copiado'; font-size: .75rem; }
.pay-upload { margin-top: 14px; }
.pay-upload summary { cursor: pointer; font-weight: 700; color: var(--brand); font-size: .92rem; padding: 6px 0; }
.pay-upload form { margin-top: 12px; }

/* Selección múltiple de servicios */
.svc-pick.multi label { position: relative; }
.svc-pick .tick { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--lav-300); display: grid; place-items: center; flex: none; color: transparent; transition: all .2s var(--ease); }
.svc-pick .tick .ico { width: 16px; height: 16px; stroke-width: 3; }
.svc-pick label:has(input:checked) .tick { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.08); }
.svc-pick label:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(102, 64, 169, .18); }
#sumService { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.items-list { list-style: none; padding: 0; margin: 0; }
.items-list li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-weight: 700; }
.items-list li span:last-child { color: var(--brand); white-space: nowrap; }
.svc-pick.multi label { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ic nm tick" "ic pr tick"; column-gap: 12px; row-gap: 2px; align-items: center; }
.svc-pick.multi .bubble { grid-area: ic; }
.svc-pick.multi .nm { grid-area: nm; min-width: 0; }
.svc-pick.multi .pr { grid-area: pr; margin-left: 0; font-size: .98rem; }
.svc-pick.multi .tick { grid-area: tick; }

/* Campo de dirección con validación y mapa */
.addr-status { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; font-weight: 700; min-height: 0; margin-bottom: 14px; line-height: 1.4; }
.addr-status:empty { margin-bottom: 10px; }
.addr-status .ico { width: 18px; height: 18px; flex: none; }
.addr-status.ok { color: var(--ok); }
.addr-status.bad { color: var(--bad); }
.addr-status.info { color: var(--warn); }
.addr-map-box { margin: -4px 0 16px; animation: fadeUp .4s var(--ease) both; }
.addr-map { height: 200px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--lav-100); }
.addr-map-box .hint { display: flex; gap: 6px; align-items: center; }
.addr-map-box .hint .ico { width: 16px; height: 16px; color: var(--brand); }
.addr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.addr-actions .btn { min-height: 40px; }
.addr-map-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.addr-map-foot .hint { margin: 0; }
.addr-map { height: 240px; }
.addr-map .maplibregl-ctrl-attrib { font-size: 10px; }

/* Reserva: avisos cuando falta algo */
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.book-msg { display: flex; gap: 8px; align-items: center; margin: -4px 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-weight: 800; font-size: .9rem; }
.book-msg.shake { animation: shake .45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.flash-step { animation: flashStep 1.4s var(--ease); }
@keyframes flashStep { 0%, 100% { box-shadow: 0 0 0 0 rgba(102, 64, 169, 0); } 30% { box-shadow: 0 0 0 5px rgba(102, 64, 169, .35); } }
.book-step { scroll-margin-top: 84px; }
.book-msg[hidden], .addr-map-box[hidden], [hidden] { display: none !important; }

/* Textos largos (correos, direcciones, nombres) nunca se salen de su tarjeta */
.card, .row-card, .bk, .tpl-card, .kpi, .tile, .slot, .alert, .addr, .flash { overflow-wrap: anywhere; }
.kv > div > div, .addr > div, .slot .who, .bk .info { flex: 1; min-width: 0; }
.btn { max-width: 100%; overflow-wrap: anywhere; }
.badge { max-width: 100%; }
.policy-card { border-color: var(--lav-300); background: linear-gradient(180deg, #fff, var(--lav-50)); }
[data-countdown] { font-weight: 800; color: var(--brand); }
