:root {
  --paper: #f6f1e8;
  --paper-2: #ece3d3;
  --ink: #17140f;
  --ink-soft: #4d463b;
  --ink-mute: #8b8374;
  --accent: #d9542b;
  --accent-soft: #f6d9c9;
  --line: rgba(23,20,15,.12);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --g: clamp(20px, 5vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 11vw, 5.4rem); font-weight: 800; margin: .8rem 0 1.1rem; }
h2 { font-size: clamp(2rem, 8.4vw, 3.6rem); font-weight: 800; margin: .5rem 0 1.6rem; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
p { text-wrap: pretty; }
.hl { color: var(--accent); }
.kicker { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--ink-mute); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 1.6rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; transition: transform .4s var(--ease), background .3s; }
.btn:hover { transform: translateY(-2px); background: var(--accent); }
.btn-small { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-light { background: var(--paper); color: var(--ink); }
.link { font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 12px var(--g); transition: background .4s, box-shadow .4s; }
.nav.is-solid { background: rgba(246,241,232,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.05rem; }
.logo-soft { font-weight: 500; color: var(--ink-mute); margin-left: .25rem; }

section { padding: 72px var(--g); }
.hero { padding-top: 104px; padding-bottom: 40px; background: radial-gradient(90% 50% at 100% 0%, var(--accent-soft), transparent 70%), var(--paper); }
.sub { font-size: 1.08rem; color: var(--ink-soft); max-width: 38ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.6rem; margin: 1.8rem 0 0; }

/* Teléfonos de muestra (CSS puro, sin fotos) */
.phones { position: relative; height: 510px; margin-top: 48px; }
.phone { position: absolute; width: 214px; height: 430px; border-radius: 36px; background: #111; padding: 9px; box-shadow: 0 40px 70px -30px rgba(23,20,15,.55); }
.phone-a { left: 50%; transform: translateX(-84%) rotate(-5deg); z-index: 2; animation: float 7s ease-in-out infinite; }
.phone-b { left: 50%; transform: translateX(-4%) rotate(5deg) translateY(26px); animation: float2 7s ease-in-out infinite; }
.scr { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; font-family: var(--sans); font-size: 9px; line-height: 1.3; }
.phones-note { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: .75rem; color: var(--ink-mute); }

.demo-dental { background: #f3f6fb; color: #13233f; }
.d-nav, .e-nav { display: flex; justify-content: space-between; align-items: center; padding: 22px 14px 8px; }
.d-nav b { font-family: var(--display); font-size: 14px; }
.d-nav i, .e-nav i { font-style: normal; background: #13233f; color: #fff; border-radius: 99px; padding: 3px 8px; font-size: 8px; }
.d-hero { padding: 6px 14px 10px; }
.d-hero small { color: #4f7ad8; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 7px; }
.d-hero strong { display: block; font-family: var(--display); font-size: 22px; line-height: 1; margin: 5px 0 8px; letter-spacing: -0.03em; }
.d-hero em { color: #4f7ad8; font-style: normal; }
.d-btn { display: inline-block; background: #25d366; color: #fff; border-radius: 99px; padding: 5px 10px; font-weight: 600; font-size: 8px; }
.d-img { height: 120px; margin: 4px 12px 10px; border-radius: 16px; background: radial-gradient(60% 70% at 70% 30%, #cfe0ff, transparent 70%), linear-gradient(135deg, #8fb3f5, #3d63c7); }
.d-list { list-style: none; padding: 0; margin: 0 12px; background: #fff; border-radius: 12px; }
.d-list li { display: flex; justify-content: space-between; padding: 7px 10px; border-bottom: 1px solid #e6ebf3; }
.d-list li:last-child { border: 0; }
.d-list b { color: #3d63c7; }

.demo-estancia { background: #f1ede2; color: #2a2a1c; }
.e-nav b { font-family: Georgia, serif; font-style: italic; font-size: 14px; }
.e-nav i { background: #4a5a2c; }
.e-img { height: 190px; margin: 2px 10px 10px; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 60%), linear-gradient(180deg, #f2b46b 0%, #d9824a 35%, #7c6a3b 62%, #4a5a2c 100%); }
.e-img small { font-size: 7px; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.e-img strong { font-family: Georgia, serif; font-size: 22px; font-weight: 400; line-height: 1.02; }
.e-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 0 10px 10px; }
.e-row span { height: 48px; border-radius: 10px; background: linear-gradient(135deg, #b9a97c, #6f7a45); }
.e-row span:nth-child(2) { background: linear-gradient(135deg, #e0b88a, #a0623a); }
.e-row span:nth-child(3) { background: linear-gradient(135deg, #9fb6b9, #4c6b6e); }
.e-txt { padding: 0 12px 8px; color: #6b6550; }
.e-btn { margin: 0 12px; display: inline-block; background: #4a5a2c; color: #fff; border-radius: 99px; padding: 5px 10px; font-weight: 600; font-size: 8px; }

.cards { display: grid; gap: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.card .num { font-family: var(--display); font-weight: 800; color: var(--accent); font-size: .95rem; }
.card h3 { margin: .5rem 0 .4rem; }
.card p { color: var(--ink-soft); font-size: .95rem; }

.how { background: var(--ink); color: var(--paper); }
.how .kicker { color: #a59c8b; }
.steps { list-style: none; padding: 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.steps li > span { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.steps p { color: #c9c0ae; font-size: .95rem; margin-top: .25rem; }

.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding: 14px 16px 14px 48px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

.pricing { background: var(--paper-2); }
.entry { display: grid; gap: 10px; background: var(--ink); color: var(--paper); border-radius: 24px; padding: 24px; margin-bottom: 14px; }
.entry b { font-family: var(--display); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.entry span { display: block; color: #a59c8b; font-size: .9rem; }
.entry p { color: #c9c0ae; font-size: .95rem; }
.plans { display: grid; gap: 12px; }
.plan { background: #fff; border-radius: 24px; padding: 24px; border: 1px solid var(--line); }
.plan-star { border: 2px solid var(--accent); }
.tag { display: inline-block; background: var(--accent); color: #fff; border-radius: 99px; padding: .2rem .7rem; font-size: .72rem; font-weight: 600; margin-bottom: .7rem; }
.price { font-family: var(--display); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.03em; margin: .3rem 0 .8rem; }
.price small { font-size: .95rem; font-weight: 500; color: var(--ink-mute); }
.plan ul { padding-left: 1.1rem; color: var(--ink-soft); font-size: .94rem; display: grid; gap: .35rem; }
.fine { margin-top: 16px; font-size: .82rem; color: var(--ink-mute); }

.who p:not(.kicker) { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-soft); margin-top: .6rem; }

.final { background: var(--accent); color: #fff; text-align: center; padding: 96px var(--g); }
.final .hl { color: var(--ink); }
.final p { margin: 0 auto 1.8rem; max-width: 36ch; opacity: .95; }

.footer { padding: 40px var(--g) 110px; display: grid; gap: .5rem; justify-items: center; text-align: center; font-size: .85rem; color: var(--ink-mute); }

.wa-float { position: fixed; right: 16px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); transform: scale(0); transition: transform .5s cubic-bezier(0.34,1.56,0.64,1); }
.wa-float.is-on { transform: scale(1); }
.wa-float svg { width: 28px; height: 28px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes float { 50% { transform: translateX(-84%) rotate(-5deg) translateY(-8px); } }
@keyframes float2 { 50% { transform: translateX(-4%) rotate(5deg) translateY(16px); } }

@media (min-width: 760px) {
  .cards, .plans { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .ticks { grid-template-columns: 1fr 1fr; }
  .entry { grid-template-columns: auto 1fr; align-items: center; gap: 28px; }
}
@media (min-width: 1040px) {
  .hero { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 40px; align-items: center; min-height: 100vh; }
  .hero > :not(.phones) { grid-column: 1; }
  .phones { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
  section > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) { .phone-a, .phone-b { animation: none; } .reveal { opacity: 1; transform: none; } }
