@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url(../fonts/poppins-200.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/poppins-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url(../fonts/inter-200.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/inter-200.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/sora-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-100.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --background: #100c0a;
  --text: #fff;
  --muted: #e5e5e5;
  --hero-image: url('../images/portada.webp');
  --hero-mobile-image: url('../images/portada-movil.png');
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--background); color: var(--text); font: 200 16px/1.5 'Poppins', sans-serif; overflow-x: clip; -webkit-text-size-adjust: 100%; }
main { overflow: clip; }
h1, h2, h3, p, ol { margin: 0; }
h1, h2, h3 { font-family: 'Poppins', sans-serif; font-weight: 500; }
h1, h2 { line-height: 1.1; }
h2 { font-size: 32px; }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; height: auto; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; z-index: 10; left: 16px; top: 16px; padding: 12px 20px; background: #fff; color: #100c0a; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 54px; padding: 18px 35px; border: 1px solid #fff; border-radius: 50px; background: transparent; color: #fff; text-decoration: none; font: 600 16px/1 'Sora', sans-serif; transition: color .2s, background-color .2s; }
.button:hover, .button:focus-visible { background: #fff; color: #111013; }
.hero { min-height: 100vh; min-height: 100svh; position: relative; isolation: isolate; padding: 10% 50% 50px 4%; background-image: var(--hero-image); background-size: cover; background-position: right center; background-repeat: no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #000; opacity: .55; }
.hero-content { display: flex; flex-direction: column; align-items: flex-start; }
.brand { display: block; width: 80px; height: 80px; flex: 0 0 auto; }
.brand img { width: 80px; height: 80px; }
h1 { font-size: 48px; width: 100%; }
.hero p { max-width: 487px; font: 200 16px/1.5 'Inter', sans-serif; color: var(--muted); margin-bottom: 16px; }
.hero .button { margin-top: 14px; }
.intro { position: relative; padding: 10px; margin-top: 20px; text-align: center; }
.intro h2 { line-height: 1.5; margin-bottom: 26px; }
.intro p { max-width: 1165px; margin: 0 auto 16px; font-size: 24px; line-height: 1.5; color: var(--muted); }
.section { margin-top: 10%; }
.pillars { position: relative; }
.pillars::before { content: ''; position: absolute; pointer-events: none; z-index: -1; width: 52vw; height: 85vh; top: -65%; left: -30%; background: radial-gradient(ellipse, #7e231866 0%, transparent 70%); }
.pillars > h2, .treatments > h2 { padding-inline: 4%; text-align: center; }
.carousel { position: relative; padding: 10px; }
.carousel-track { --visible: 3; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--visible) - 1)*10px)/var(--visible)); align-items: start; gap: 10px; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #6e5146 var(--background); }
.carousel-track > * { min-width: 0; scroll-snap-align: start; }
.carousel.is-enhanced .carousel-track { scrollbar-width: none; }
.carousel.is-enhanced .carousel-track::-webkit-scrollbar { display: none; }
.pillar-track { margin-top: 10px; }
.pillar { display: flex; gap: 25px; padding: 10px; }
.number { flex: 0 0 auto; font: 100 7.8vw/1 'IBM Plex Mono', monospace; }
.pillar h3 { margin-bottom: 10px; font: 600 28px/1.2 'IBM Plex Mono', monospace; text-transform: uppercase; }
.pillar p { color: var(--muted); font-size: 16px; line-height: 1.5; }
.pillar-1 { color: #3b4433; }
.pillar-2 { color: #9a4a27; }
.pillar-3 { color: #7e2318; }
.carousel-controls { display: contents; }
.carousel-arrow { position: absolute; z-index: 2; top: calc(50% - 32px); width: 44px; height: 44px; padding: 12px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.carousel-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; filter: drop-shadow(0 1px 2px #000); }
.carousel-arrow:hover { color: #e8baa7; }
.previous { left: 10px; }
.next { right: 10px; }
.carousel-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 2px; }
.carousel-dot { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.carousel-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #cbb6ab; opacity: .35; }
.carousel-dot[aria-current='true']::before { opacity: 1; }
.carousel-dot:focus-visible { outline-offset: -3px; }
.treatments > h2 { text-transform: capitalize; }
.treatment-card { padding: 10px; }
.treatment-card img { width: 100%; aspect-ratio: 3/4; object-fit: contain; }
.card-content { background: #191210; padding: 7% 15% 7% 8%; }
.card-content h3 { margin-bottom: 10px; font-size: 25px; line-height: 1.2; text-transform: capitalize; }
.card-content p { font-size: 16px; line-height: 1.5; color: var(--muted); }
.card-content p + p { margin-top: 1em; }
/* Galería en perspectiva. Sin JS conserva las tarjetas y el desplazamiento nativo. */
.treatments { background: var(--background); color: var(--text); padding-block: 64px 40px; }
.treatments > h2 { text-transform: none; max-width: 850px; margin-inline: auto; }
.coverflow { --card-width: clamp(230px, 26vw, 350px); padding: 0; }
.coverflow .card-content { color: #fff; }
.coverflow.is-enhanced .treatment-track { position: relative; display: block; height: calc(var(--card-width) * 4 / 3 + 140px); overflow: visible; perspective: 1200px; touch-action: pan-y; scroll-snap-type: none; }
.coverflow.is-enhanced .treatment-card { position: absolute; top: 50%; left: 50%; width: var(--card-width); padding: 0; opacity: 0; border-radius: 3px; background: #211a14; box-shadow: 0 24px 36px -10px #0009; transform: translate(-50%, -50%) scale(.65); transition: transform 700ms cubic-bezier(.22,.68,.2,1), opacity 500ms ease, filter 700ms ease; pointer-events: none; backface-visibility: hidden; }
.coverflow.is-enhanced .treatment-card img { border-radius: 3px; user-select: none; -webkit-user-drag: none; }
.image-expand { display: block; width: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: zoom-in; }
.image-viewer-open { overflow: hidden; }
.image-viewer { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: #000; color: #fff; }
.image-viewer::backdrop { background: #000; }
.image-viewer[open] { display: grid; place-items: center; }
.image-viewer-image { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.image-viewer-controls { position: absolute; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); margin: 0; }
.image-viewer-close { display: grid; place-items: center; width: 48px; height: 48px; padding: 12px; border: 1px solid #fff; border-radius: 50%; background: #000b; color: #fff; cursor: pointer; }
.image-viewer-close:hover { background: #333; }
.image-viewer-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.coverflow.is-enhanced .card-content { display: none; }
.coverflow.is-enhanced .treatment-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: var(--background); opacity: 0; transition: opacity 700ms ease; }
.coverflow.is-enhanced .treatment-card[data-position="-1"]::after, .coverflow.is-enhanced .treatment-card[data-position="1"]::after { opacity: .14; }
.coverflow.is-enhanced .treatment-card[data-position="-2"]::after, .coverflow.is-enhanced .treatment-card[data-position="2"]::after { opacity: .28; }
.coverflow.is-enhanced .treatment-card[data-position="0"] { z-index: 5; opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.coverflow.is-enhanced .treatment-card[data-position="-1"] { z-index: 4; opacity: 1; filter: saturate(.75); transform: translate(-50%, -50%) translateX(-68%) rotateY(24deg) scale(.89); pointer-events: auto; cursor: pointer; }
.coverflow.is-enhanced .treatment-card[data-position="1"] { z-index: 4; opacity: 1; filter: saturate(.75); transform: translate(-50%, -50%) translateX(68%) rotateY(-24deg) scale(.89); pointer-events: auto; cursor: pointer; }
.coverflow.is-enhanced .treatment-card[data-position="-2"] { z-index: 3; opacity: 1; filter: saturate(.6); transform: translate(-50%, -50%) translateX(-129%) rotateY(28deg) scale(.75); pointer-events: auto; cursor: pointer; }
.coverflow.is-enhanced .treatment-card[data-position="2"] { z-index: 3; opacity: 1; filter: saturate(.6); transform: translate(-50%, -50%) translateX(129%) rotateY(-28deg) scale(.75); pointer-events: auto; cursor: pointer; }
.coverflow.is-enhanced .treatment-card[data-position="-3"] { transform: translate(-50%, -50%) translateX(-155%) rotateY(30deg) scale(.65); }
.coverflow.is-enhanced .treatment-card[data-position="3"] { transform: translate(-50%, -50%) translateX(155%) rotateY(-30deg) scale(.65); }
.coverflow-controls { display: flex; justify-content: center; gap: 20px; padding-block: 12px 18px; }
.coverflow-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 12px; border: 1px solid #fff; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background .2s, transform .2s; }
.coverflow-button:hover { background: #ffffff24; transform: translateY(-2px); }
.coverflow-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.coverflow-button .play-icon { fill: currentColor; stroke: none; }
.coverflow-button .pause-icon { display: none; stroke-width: 2; }
.coverflow-play[aria-pressed="true"] .play-icon { display: none; }
.coverflow-play[aria-pressed="true"] .pause-icon { display: block; }
.coverflow :focus-visible { outline-color: #fff; outline-offset: 5px; }
.treatment-caption { position: relative; width: min(560px, calc(100% - 40px)); margin: -52px auto 0; text-align: center; }
.caption-panel { animation: caption-enter 550ms cubic-bezier(.22,.68,.2,1) 120ms both; }
@keyframes caption-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.treatment-caption h3 { font-size: 21px; margin-bottom: 8px; }
.treatment-caption p { font: 300 15px/1.6 'Inter', sans-serif; color: var(--muted); }
.treatment-caption p + p { margin-top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 767px) {
  .treatments { padding-block: 40px 20px; }
  .coverflow { --card-width: clamp(210px, 65vw, 320px); }
  .coverflow.is-enhanced .treatment-track { height: calc(var(--card-width) * 4 / 3 + 90px); }
  .treatment-caption { margin-top: -27px; }
}
@media print {
  .image-viewer[open] { display: none; }
  .coverflow.is-enhanced .treatment-track { display: grid; height: auto; perspective: none; }
  .coverflow.is-enhanced .treatment-card { position: static; width: auto; opacity: 1 !important; transform: none !important; filter: none !important; box-shadow: none; }
  .coverflow.is-enhanced .card-content { display: block; }
  .coverflow-controls, .treatment-caption { display: none; }
}
.root-health { position: relative; isolation: isolate; overflow: hidden; min-height: 85vh; padding: 10% 4% 80px; }
.background-slideshow { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #100c0a; }
.background-slide { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; opacity: 0; animation: background-journey 12s linear infinite; }
.background-slide:nth-child(2) { animation-delay: -9s; }
.background-slide:nth-child(3) { animation-delay: -6s; }
.background-slide:nth-child(4) { animation-delay: -3s; }
/* Cuatro fondos, cambio cada 3 s, fundido de 0.5 s y zoom de salida. */
@keyframes background-journey {
  0% { opacity: 1; transform: scale(1.12); }
  20.833333% { opacity: 1; }
  25% { opacity: 0; transform: scale(1); }
  95.833333% { opacity: 0; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1.12); }
}
.motion-toggle { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.motion-control { position: absolute; right: 4%; bottom: 20px; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid #ffffff80; border-radius: 24px; background: #0009; color: white; font: 300 12px/1.5 'Inter', sans-serif; cursor: pointer; }
.motion-control:hover { background: #000c; }
.motion-toggle:focus-visible + .motion-control { outline: 3px solid white; outline-offset: 4px; }
.when-paused, .motion-toggle:checked + .motion-control .when-playing { display: none; }
.motion-toggle:checked + .motion-control .when-paused { display: inline; }
.motion-toggle:checked ~ .background-slideshow .background-slide { animation-play-state: paused; }
.root-content h2 { max-width: 52%; font-size: 58px; }
.root-content p { max-width: 565px; color: var(--muted); font: 200 16px/1.5 'Inter', sans-serif; margin-bottom: 16px; }
.root-content .button { margin-top: 14px; }
.wellness { padding: 10px; text-align: center; }
.wellness h2 { font-size: 37px; }
.wellness > p { max-width: 974px; margin: 15px auto 26px; font: 200 16px/1.5 'Inter', sans-serif; color: var(--muted); }
.video-slot { width: 100%; aspect-ratio: 16/9; display: grid; place-items: center; background: #090706; position: relative; }
.video-placeholder { padding: 20px; text-align: center; }
.video-placeholder svg { width: 64px; height: 64px; fill: none; stroke: #fff; stroke-width: 1; }
.video-placeholder p { margin-top: 18px; font-size: 18px; }
.video-placeholder span { display: block; margin-top: 8px; color: #ccc; font: 200 14px/1.5 'Inter', sans-serif; }
.video-slot iframe { width: 100%; height: 100%; border: 0; position: absolute; inset: 0; }
.wellness .button { margin-top: 15px; }
.contact { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; padding-inline: 4%; align-items: start; }
.contact h2 { font-size: 36px; }
.form-slot { min-width: 0; min-height: 400px; padding: 24px; border: 1px solid #ffffff1f; border-radius: 16px; background: #1218268c; box-shadow: 0 15px 35px #0008, inset 0 1px 0 #ffffff1a; backdrop-filter: blur(20px); color: white; }
.form-placeholder { font-family: system-ui, sans-serif; text-align: center; }
.form-placeholder h3 { font: 700 28px/1.2 system-ui,sans-serif; margin-bottom: 4px; }
.form-placeholder > p { font-size: 14px; color: #ffffff80; }
.form-preview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-block: 32px 40px; text-align: left; }
.form-preview span { border-bottom: 2px solid #555; padding: 10px 5px; font-size: 18px; font-weight: 400; color: #aaa; }
.form-placeholder > .availability { color: #e5e5e5; font-size: 14px; }
.form-slot iframe { width: 100%; min-height: 450px; border: 0; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #2d2c2f; margin-top: 10%; padding: 1.5% 4%; font: 300 12px/1.5 'Inter', sans-serif; color: var(--muted); }
.footer a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 1024px) {
  .hero { padding: 10% 4% 50px; }
  .hero h1 { max-width: 600px; font-size: 45px; }
  .carousel-track { --visible: 2; }
  .number { font-size: 100px; }
  .pillar h3 { font-size: 22px; }
  .pillar p, .card-content p { font-size: 14px; }
  .treatments, .root-health, .wellness, .contact { margin-top: 20%; }
  .treatments > h2 { font-size: 36px; }
  .card-content h3 { font-size: 22px; }
  .root-health { min-height: 550px; }
  .root-content h2 { font-size: 45px; }
  .root-content p { font-size: 14px; }
  .wellness h2 { font-size: 45px; }
  .wellness > p { font-size: 14px; }
  .footer { margin-top: 15%; padding-block: 3%; }
}
@media (max-width: 767px) {
  .hero { padding-top: 25%; background-image: var(--hero-mobile-image); background-size: cover; }
  .hero-content { align-items: center; gap: 20px; text-align: center; }
  .hero h1 { max-width: 240px; font-size: 37px; }
  .hero p { max-width: 100%; margin-bottom: 16px; font-size: 14px; }
  .hero .button { margin-top: 0; }
  .intro h2 { margin-top: 15px; margin-bottom: 36px; font-size: 22px; line-height: 1.4; }
  .intro p { font-size: 14px; }
  .pillars > h2, .treatments > h2 { font-size: 28px; }
  .carousel-track { --visible: 1; }
  .pillar { flex-direction: column; gap: 0; text-align: center; padding-inline: 25px; }
  .pillar h3 { font-size: 20px; }
  .number { margin-bottom: 0; }
  .card-content { text-align: center; }
  .card-content h3 { font-size: 18px; }
  .root-health { padding-top: 25%; }
  .root-content { display: flex; flex-direction: column; gap: 25px; align-items: center; text-align: center; }
  .root-content h2 { max-width: 327px; font-size: 36px; }
  .root-content p { max-width: 100%; margin-bottom: 0; }
  .root-content .button { margin-top: 0; }
  .wellness, .contact { margin-top: 35%; }
  .wellness h2 { max-width: 327px; margin-inline: auto; font-size: 31px; }
  .video-placeholder svg { width: 44px; height: 44px; }
  .video-placeholder p { font-size: 13px; margin-top: 10px; }
  .video-placeholder span { font-size: 12px; }
  .contact { grid-template-columns: 1fr; }
  .contact h2 { text-align: center; font-size: 28px; }
  .form-slot { padding-inline: 16px; }
  .form-preview { grid-template-columns: 1fr; gap: 12px; margin-block: 24px; }
  .footer { margin-top: 25%; padding-block: 7%; flex-wrap: wrap; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .caption-panel { animation: none; }
  .background-slide { animation: none; opacity: 0; transform: none; }
  .background-slide:first-child { opacity: 1; }
  .motion-toggle, .motion-control { display: none; }
}
@media print {
  body { background: white; color: black; }
  .hero { min-height: 0; padding: 20px; }
  .hero::before, .pillars::before, .background-slideshow, .motion-toggle, .motion-control { display: none; }
  .carousel-track { display: grid; grid-auto-flow: row; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; }
  .carousel-controls, .button, .skip-link { display: none !important; }
  .treatment-card { break-inside: avoid; }
  .section { margin-top: 30px; }
  .root-health { min-height: 0; padding: 20px; }
}
