/* Avanzza Tono: mundo cálido y editorial */
[data-theme="light"] .p-tono { --bg: #F6F0E6; --mist: #EDE4D5; --card: #FFFDF9; --ink: #2A211B; --ink-2: #6A5D52; }
.p-tono h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; line-height: 1.04; }

/* lente: dos fotos alineadas al píxel */
.f-hero { position: relative; height: 100dvh; min-height: 640px; overflow: hidden; background: #1E1712; }
.lens { position: absolute; inset: 0; }
.lens-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.lens-top {
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(circle var(--r, 240px) at var(--x, 50%) var(--y, 26%), #000 0, #000 64%, rgb(0 0 0 / .72) 76%, rgb(0 0 0 / .28) 90%, transparent 100%);
  mask-image: radial-gradient(circle var(--r, 240px) at var(--x, 50%) var(--y, 26%), #000 0, #000 64%, rgb(0 0 0 / .72) 76%, rgb(0 0 0 / .28) 90%, transparent 100%);
}
.f-scrim { position: absolute; inset: 42% 0 0; background: linear-gradient(to top, rgb(24 16 10 / .9) 16%, transparent); pointer-events: none; }
.f-copy { position: absolute; z-index: 2; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); right: var(--gutter); bottom: clamp(1.75rem, 5vh, 3.5rem); color: #fff; pointer-events: none; }
.f-copy .btn { pointer-events: auto; }
.f-copy .kicker { color: #fff; }
.f-copy h1 { display: grid; max-width: 15em; font-size: clamp(2.6rem, 5.4vw, 5.25rem); line-height: 1.02; }
.f-l1, .f-l2 { grid-area: 1 / 1; }
.js-anim .f-l2 { visibility: hidden; }
html:not(.js-anim) .f-l2 { display: none; }
.f-sub { max-width: 34em; margin: var(--s-3) 0 var(--s-5); color: rgb(255 255 255 / .92); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.38; }
.js-anim [data-f-copy] { visibility: hidden; }
.f-hint { position: absolute; z-index: 2; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); bottom: clamp(1.75rem, 5vh, 3.5rem); padding: .45em 1em; border-radius: 999px; background: rgb(255 255 255 / .9); color: #2A211B; font-size: .875rem; font-weight: 500; }
.f-hint-b { display: none; }
@media (hover: none) { .f-hint-a { display: none; } .f-hint-b { display: inline; } }

/* mesa */
.f-table { padding-block: var(--sec) 0; background: var(--bg); }
.f-table-head { max-width: var(--wrap); margin-bottom: var(--s-7); }
.f-table-head h2 { max-width: 15em; }
.table {
  position: relative; width: min(1320px, 100% - var(--gutter) * 2); aspect-ratio: 16 / 9.4; margin-inline: auto;
  border-radius: var(--r-card); background: var(--mist); overflow: hidden; touch-action: pan-y; container-type: inline-size;
}
.table::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 80% at 30% 20%, rgb(255 255 255 / .5), transparent 60%); pointer-events: none; }
.obj {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); rotate: var(--r);
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; will-change: transform;
  filter: drop-shadow(0 14px 16px rgb(70 44 24 / .26));
}
.obj.is-held { cursor: grabbing; filter: drop-shadow(0 28px 26px rgb(70 44 24 / .3)); }
.obj img { width: 100%; height: auto; pointer-events: none; }
.obj-card { aspect-ratio: 1.7; display: flex; flex-direction: column; justify-content: center; padding: 1.4cqw; background: #B5412A; color: #F7EBDC; border-radius: 6px; }
.obj-card b { font: 400 2.5cqw/1 var(--serif); letter-spacing: -.02em; }
.obj-card span { margin-top: .3cqw; font-size: .95cqw; }
.obj-card small { margin-top: .5cqw; font-size: .85cqw; opacity: .9; }
.obj-swatch { display: grid; grid-template-columns: repeat(4, 1fr); padding: .6cqw; aspect-ratio: 1.75; border-radius: 8px; background: #fff; }
.obj-swatch i { border-radius: 2px; }
.obj-type { aspect-ratio: 1.1; display: flex; flex-direction: column; justify-content: space-between; padding: 1.3cqw; background: #FFFDF9; color: #2A211B; border-radius: 6px; }
.obj-type b { font: 400 6.4cqw/1 var(--serif); letter-spacing: -.03em; }
.obj-type span { font: 400 1.1cqw/1.15 var(--serif); }
.obj-photo { padding: .5cqw; background: #fff; border-radius: 4px; }
.obj-stamp { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #2A211B; color: #F3E7D3; text-align: center; }
.obj-stamp span { font: 400 1.5cqw/1 var(--serif); }

/* comparador */
.f-compare { padding-block: var(--sec); background: var(--bg); }
.f-cmp-head { text-align: center; margin-bottom: var(--s-7); }
.f-cmp-head h2 { max-width: 15em; margin-inline: auto; }
.f-cmp-head .lead { margin-inline: auto; }
.cmp {
  --split: 52%;
  position: relative; width: min(1180px, 100% - var(--gutter) * 2); aspect-ratio: 16 / 9.2; margin-inline: auto;
  border-radius: var(--r-card); overflow: hidden; background: #fff; container-type: inline-size;
  box-shadow: 0 40px 80px -56px rgb(70 44 24 / .6);
}
.cmp-site { position: absolute; inset: 0; }
.cmp-old { background: #F2F2F2; color: #333; font-family: Arial, Helvetica, sans-serif; clip-path: inset(0 0 0 var(--split)); }
.o-nav { display: flex; justify-content: center; gap: 3cqw; padding: 1.4cqw; background: #4A6FA5; color: #fff; font-size: 1.05cqw; font-weight: 700; }
.o-hero { display: grid; justify-items: start; align-content: center; gap: 1.4cqw; height: 58%; padding-inline: 55% 5%; background: linear-gradient(90deg, #BFC6CF 0 50%, #D7DCE3 50%); }
.o-h { font-size: 3.2cqw; font-weight: 700; color: #4A6FA5; }
.o-p { font-size: 1.25cqw; line-height: 1.45; color: #555; }
.o-btn { padding: .7cqw 1.8cqw; background: #4A6FA5; color: #fff; font-size: 1.1cqw; }
.o-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4cqw; padding: 2cqw 6cqw; }
.o-row i { height: 11cqw; background: #C9C9C9; }
.cmp-new { background: #F6F0E6; color: #2A211B; isolation: isolate; }
.n-nav { position: absolute; z-index: 1; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 2.4cqw; padding: 1.5cqw 2.6cqw; font-size: 1.15cqw; }
.n-nav b { margin-right: auto; font: 400 2.1cqw var(--serif); letter-spacing: -.02em; }
.n-nav em { padding: .5cqw 1.3cqw; border-radius: 999px; background: #B5412A; color: #fff; font-style: normal; }
.n-hero { position: absolute; inset: 0; }
.n-hero img { width: 100%; height: 100%; object-fit: cover; }
.n-copy { position: absolute; left: 4cqw; top: 24%; width: 42%; color: #2A211B; }
.n-h { font: 400 5cqw/1.02 var(--serif); letter-spacing: -.03em; color: #FFF6E9; text-shadow: 0 1px 30px rgb(50 20 8 / .55); }
.n-p { margin-top: 1.2cqw; font-size: 1.5cqw; color: #FFF0DE; text-shadow: 0 1px 16px rgb(50 20 8 / .7); }
.n-btn { display: inline-block; margin-top: 1.8cqw; padding: .9cqw 2cqw; border-radius: 999px; background: #FFF6E9; color: #8E2F1B; font-size: 1.3cqw; font-weight: 500; }
.cmp-tag { position: absolute; z-index: 2; bottom: 16px; padding: .3em .85em; border-radius: 999px; background: rgb(255 255 255 / .92); color: #2A211B; font-size: .8125rem; font-weight: 500; }
.cmp-tag-a { right: 16px; }
.cmp-tag-b { left: 16px; }
.cmp-handle { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--split); width: 2px; background: #fff; pointer-events: none; }
.cmp-handle span { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #2A211B; box-shadow: 0 8px 22px rgb(40 24 12 / .32); transition: scale .25s var(--spring); }
.cmp:hover .cmp-handle span { scale: 1.06; }
.cmp-handle .ic { width: 1rem; height: 1rem; }
.cmp-range { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.cmp-range:focus-visible + * { outline: none; }
.cmp:has(.cmp-range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* teléfono */
.f-phone {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(2rem, 6vw, 6rem);
  min-height: 100dvh; padding: calc(var(--nav-h) + 32px) max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 28px;
  background: var(--mist);
}
.fp-notes { margin-top: var(--s-6); display: grid; gap: .25rem; }
.fp-note { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); align-items: baseline; gap: 1rem; padding: .7rem 0; color: var(--ink-2); border-top: 1px solid var(--line); transition: color .35s var(--out); }
.fp-note b { font: 400 clamp(1.25rem, 2vw, 1.75rem)/1.1 var(--serif); letter-spacing: -.02em; }
.fp-note.is-on { color: var(--ink); }
.fp-device { justify-self: center; height: min(calc(100dvh - 130px), 760px); aspect-ratio: 9 / 18.6; padding: 10px; border-radius: 46px; background: #1A1410; box-shadow: 0 50px 90px -40px rgb(70 44 24 / .55); }
.fp-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #FFFDF9; color: #2A211B; container-type: inline-size; }
.fp-page { will-change: transform; font-size: 4.4cqw; line-height: 1.32; }
.fp-hero img { width: 100%; height: 72cqw; object-fit: cover; }
.fp-sec { padding: 6cqw; }
.fp-h { font: 400 9cqw/1.05 var(--serif); letter-spacing: -.03em; }
.fp-sec > p + p { margin-top: 2cqw; }
.fp-btn { display: block; margin-top: 4cqw; padding: 3.6cqw; border-radius: 999px; background: #B5412A; color: #fff; text-align: center; font-weight: 500; }
.fp-proof { background: #F3E7D3; }
.fp-proof img { width: 100%; height: 64cqw; object-fit: cover; border-radius: 4cqw; }
.fp-q { margin-top: 4cqw; font: 400 6.6cqw/1.14 var(--serif); letter-spacing: -.02em; }
.fp-proof small { display: block; margin-top: 2cqw; font-size: 3.6cqw; color: #6A5D52; }
.fp-offer ul { margin-top: 3cqw; }
.fp-offer li { padding-block: 2.6cqw; border-top: 1px solid rgb(42 33 27 / .14); }
.fp-last { background: #B5412A; color: #FFF6E9; padding-bottom: 14cqw; }
.fp-last .fp-btn { background: #FFF6E9; color: #8E2F1B; }

/* redes */
.f-cols { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7); height: 150dvh; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); background: #A83E27; color: #FFF6E9; overflow: hidden; }
.fc-copy { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; justify-content: center; height: 100dvh; }
.fc-copy .lead { color: #FBE3CF; }
.fc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: -12dvh; }
.fc-col { display: flex; flex-direction: column; gap: 12px; }
.fc-col img, .fc-t { width: 100%; border-radius: var(--r-tile); }
.fc-col img { aspect-ratio: 4/5; object-fit: cover; }
.fc-t { display: grid; place-items: center; aspect-ratio: 4/5; padding: 10%; background: #F3E7D3; color: #8E2F1B; text-align: center; font: 400 clamp(1.25rem, 2.6vw, 2.25rem)/1.05 var(--serif); letter-spacing: -.02em; }
.fc-t2 { background: #2A211B; color: #F3E7D3; }
.fc-t3 { background: #7C8B5B; color: #FFF6E9; }

/* plan */
.f-plan { padding-block: var(--sec); background: var(--bg); }
.fpl { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7); align-items: center; }
.pillars { display: grid; gap: 8px; margin-top: var(--s-6); }
.pillars button { display: grid; justify-items: start; min-height: 44px; padding: .85rem 1.1rem; border: 0; border-radius: 18px; background: var(--mist); color: var(--ink); text-align: left; transition: background-color .3s var(--out), color .3s var(--out), transform .18s var(--spring); }
.pillars button:active { transform: scale(.985); }
.pillars b { font: 400 1.375rem/1.1 var(--serif); letter-spacing: -.015em; }
.pillars small { color: var(--ink-2); font-size: .9063rem; transition: color .3s var(--out); }
.pillars button[aria-pressed="true"] { background: #A83E27; color: #FFF6E9; }
.pillars button[aria-pressed="true"] small { color: #FBE3CF; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 8%; border-radius: 12px; background: var(--mist); color: var(--ink-2); font-size: .8125rem; transition: background-color .4s var(--out) var(--d, 0s), color .4s var(--out) var(--d, 0s), transform .5s var(--spring) var(--d, 0s); }
.day b { font-size: .75rem; font-weight: 500; opacity: .8; }
.day span { line-height: 1.05; }
.day.is-on { background: #A83E27; color: #FFF6E9; transform: translateY(-2px); }

/* cierre */
.f-end { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: var(--s-7); padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); background: var(--bg); }
.fe-img { position: relative; height: min(92dvh, 860px); overflow: hidden; border-radius: 0 40px 40px 0; }
.fe-img img { width: 100%; height: 116%; object-fit: cover; }
.fe-copy h2 { font-size: clamp(2.4rem, 4.6vw, 4.5rem); }
.fe-copy .lead { margin-bottom: var(--s-5); }

@media (max-width: 1023px) {
  .f-phone { grid-template-columns: 1fr; align-content: center; justify-items: center; gap: var(--s-4); }
  .fp-left { width: 100%; }
  .fp-left .lead { display: none; }
  .fp-notes { margin-top: var(--s-3); display: grid; }
  .fp-note { grid-area: 1 / 1; grid-template-columns: 1fr; gap: 0; opacity: 0; visibility: hidden; border: 0; padding: 0; transition: opacity .3s var(--out), visibility .3s; }
  .fp-note.is-on { opacity: 1; visibility: visible; }
  .fp-device { height: min(calc(100dvh - 300px), 620px); order: 2; }
  .f-cols { grid-template-columns: 1fr; height: auto; padding-block: var(--sec) 0; }
  .fc-copy { position: static; height: auto; }
  .fc-grid { margin-block: 0 -8vw; }
  .fpl { grid-template-columns: 1fr; }
  .f-end { grid-template-columns: 1fr; padding: 0 0 var(--sec); }
  .fe-img { height: 72vw; border-radius: 0 0 28px 28px; }
  .fe-copy { padding-inline: var(--gutter); }
}

@media (max-width: 767px) {
  .f-hero { min-height: 640px; }
  .lens-img { object-position: 42% 40%; }
  .f-hint { top: calc(var(--nav-h) + 24px); bottom: auto; right: auto; left: 50%; translate: -50% 0; white-space: nowrap; }
  .table { aspect-ratio: 4 / 5; }
  .obj-card b { font-size: 5cqw; } .obj-card span { font-size: 2.1cqw; margin-top: .8cqw; } .obj-card small { font-size: 2cqw; }
  .obj-type b { font-size: 12cqw; } .obj-type span { font-size: 2.4cqw; }
  .obj-stamp span { font-size: 3.2cqw; }
  .cmp { aspect-ratio: 4 / 4.6; }
  .o-nav { gap: 2cqw; padding: 3cqw; font-size: 2.2cqw; }
  .o-h { font-size: 4.6cqw; } .o-p { font-size: 2.4cqw; } .o-btn { font-size: 2.6cqw; padding: 1.4cqw 3.6cqw; }
  .o-hero { gap: 2.4cqw; padding-inline: 54% 4%; }
  .o-row { padding: 3cqw; } .o-row i { height: 18cqw; }
  .n-nav { padding: 3cqw 4cqw; font-size: 2.4cqw; gap: 3cqw; } .n-nav b { font-size: 4.2cqw; } .n-nav span { display: none; } .n-nav em { padding: 1cqw 2.4cqw; }
  .n-copy { left: 4cqw; right: auto; top: 16%; width: 46%; }
  .n-h { font-size: 6.6cqw; } .n-p { font-size: 2.8cqw; margin-top: 2cqw; } .n-btn { font-size: 3cqw; padding: 2cqw 4cqw; margin-top: 3cqw; }
  .n-hero img { object-position: 70% 50%; }
  .day { padding: 7%; border-radius: 8px; font-size: .6875rem; }
  .day b { display: none; }
}

/* sin motion */
html:not(.js-anim) .f-phone { min-height: 0; }
html:not(.js-anim) .fp-note { opacity: 1; visibility: visible; grid-area: auto; color: var(--ink); }
html:not(.js-anim) .fp-screen { overflow-y: auto; }
html:not(.js-anim) .f-cols { height: auto; padding-block: var(--sec) 0; }
html:not(.js-anim) .fc-copy { position: static; height: auto; }
html:not(.js-anim) .fc-grid { margin-block: 0; }
