:root {
  --ink: #171513;
  --muted: #6d665f;
  --cream: #f6f2ec;
  --nude: #e9e1d5;
  --sand: #c9b8a4;
  --white: #fff;
  --line: rgba(23, 21, 19, .14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
img { display: block; width: 100%; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--ink); color: white; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1rem clamp(1.25rem, 4vw, 4rem);
  background: rgba(246, 242, 236, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; width: max-content; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; }
.brand-line { margin-top: .35rem; text-transform: uppercase; letter-spacing: .24em; font-size: .56rem; }
nav { display: flex; gap: 2rem; }
nav a { text-decoration: none; font-size: .88rem; }
nav a:hover, .text-link:hover { opacity: .6; }
.site-header > .button { justify-self: end; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.15rem;
  padding: .85rem 1.25rem;
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: .9rem;
  transition: transform .2s, background .2s, color .2s;
}
.button:hover { transform: translateY(-2px); background: transparent; color: var(--ink); }
.button-small { min-height: 2.65rem; padding: .65rem 1rem; }
.button-light { background: var(--nude); color: var(--ink); border-color: var(--nude); }
.button-light:hover { color: white; border-color: white; }
.text-link { display: inline-block; font-weight: 650; text-underline-offset: .3rem; }

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, .8fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  padding: clamp(3rem, 5vw, 5rem) clamp(1.25rem, 7vw, 8rem);
  overflow: hidden;
}
.hero-copy { max-width: 690px; }
.eyebrow { margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 750; }
h1, h2, h3 { margin-top: 0; font-family: var(--serif); font-weight: 400; line-height: 1.05; }
h1 { margin-bottom: 1.5rem; font-size: clamp(3.2rem, 7vw, 7.2rem); letter-spacing: -.045em; }
h2 { margin-bottom: 1.25rem; font-size: clamp(2.4rem, 4.7vw, 5.2rem); letter-spacing: -.035em; }
h3 { font-size: 1.75rem; }
.hero-text { max-width: 580px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.2rem; }
.quick-facts { display: flex; gap: 3rem; margin-top: 4rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.quick-facts div { display: flex; flex-direction: column; }
.quick-facts span { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; }
.quick-facts strong { margin-top: .25rem; font-size: .9rem; }
.hero-visual { position: relative; margin: 0; width: 100%; max-width: 680px; justify-self: end; }
.hero-visual::before { content: ""; position: absolute; inset: -1.2rem 1.2rem 1.2rem -1.2rem; border: 1px solid var(--sand); z-index: -1; }
.hero-visual img { aspect-ratio: 16/10; object-fit: cover; object-position: center 32%; }
.hero-visual figcaption { position: absolute; right: -1rem; bottom: 1.5rem; display: flex; flex-direction: column; padding: 1rem 1.25rem; background: var(--nude); box-shadow: 0 20px 50px rgba(23,21,19,.16); }
.hero-visual figcaption span { font-family: var(--serif); font-size: 1.1rem; }
.hero-visual figcaption strong { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; }

.section { padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 7vw, 8rem); }
.intro { display: grid; grid-template-columns: .45fr 1.6fr .8fr; align-items: start; gap: 4rem; border-top: 1px solid var(--line); }
.intro h2 { font-size: clamp(2.5rem, 4.5vw, 5rem); }
.intro > p:last-child { color: var(--muted); }
.section-heading { display: grid; grid-template-columns: 1.5fr .7fr; align-items: end; gap: 4rem; margin-bottom: 3rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { color: var(--muted); }

.services { background: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 285px; padding: 1.75rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-card.featured { background: var(--nude); }
.service-card h3 { margin-top: 3.2rem; margin-bottom: .75rem; }
.service-card p { color: var(--muted); font-size: .92rem; }
.service-number { font-family: var(--serif); color: var(--muted); }

.experience { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: white; }
.experience-image img { height: 100%; max-height: 850px; object-fit: cover; object-position: center 25%; }
.experience-copy { align-self: center; max-width: 720px; padding: clamp(4rem, 8vw, 8rem); }
.experience-copy p:not(.eyebrow), .experience-copy li { color: rgba(255,255,255,.7); }
.experience-copy ul { margin: 2rem 0; padding-left: 1.2rem; }
.experience-copy li { margin-bottom: .65rem; }
.light { color: var(--nude); }

.comparison { position: relative; width: 100%; max-width: 1050px; margin: 0 auto; aspect-ratio: 16/7.5; overflow: hidden; background: #d7cfc4; }
.comparison img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.comparison-before { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.comparison-before img { width: 100vw; max-width: 1050px; }
.comparison-divider { position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; width: 2px; background: white; pointer-events: none; }
.comparison-divider span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: white; color: var(--ink); box-shadow: 0 6px 30px rgba(0,0,0,.18); }
.comparison input { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.comparison-label { position: absolute; z-index: 2; top: 1rem; padding: .4rem .75rem; background: rgba(23,21,19,.75); color: white; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.before-label { left: 1rem; }
.after-label { right: 1rem; }
.result-gallery { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.25rem; max-width: 1100px; margin: 0 auto; }
.result-gallery figure { position: relative; margin: 0; min-height: 420px; overflow: hidden; background: #d7cfc4; }
.result-gallery img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.result-gallery figure:first-child img { object-position: center; }
.result-gallery figure:last-child img { object-position: center 44%; }
.result-gallery figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .45rem .75rem; background: rgba(23,21,19,.78); color: white; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.detail-row { display: grid; grid-template-columns: .75fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; max-width: 1100px; margin: 6rem auto 2rem; }
.detail-row img { aspect-ratio: 4/3; object-fit: cover; }
.detail-row p:last-child, .disclaimer { color: var(--muted); }
.detail-row h3 { font-size: clamp(2rem, 4vw, 4rem); }
.radiograph-card { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; max-width: 1200px; margin: 6rem auto 2rem; padding: clamp(2rem, 5vw, 5rem); background: var(--ink); color: white; }
.radiograph-card h3 { font-size: clamp(2rem, 3.4vw, 3.5rem); }
.radiograph-card p:last-child { color: rgba(255,255,255,.68); }
.radiograph-card img { background: #000; }
.disclaimer { max-width: 1050px; margin: 2rem auto 0; font-size: .78rem; }

.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6rem; padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 7vw, 8rem); background: var(--nude); }
.contact-main { max-width: 760px; }
.contact-main p:not(.eyebrow) { max-width: 550px; color: var(--muted); font-size: 1.1rem; }
.contact-main .button { margin-top: 1.3rem; }
.contact-details { display: grid; gap: 2rem; align-content: start; padding-top: 1rem; }
.contact-details > div { display: flex; flex-direction: column; gap: .35rem; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(23,21,19,.2); }
.contact-details span { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; }
.contact-details a { width: fit-content; text-underline-offset: .25rem; }

footer { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 3rem; padding: 3rem clamp(1.25rem, 7vw, 8rem); background: var(--ink); color: white; }
footer p { margin: 0; color: rgba(255,255,255,.55); font-size: .78rem; }
.footer-brand .brand-line { color: var(--nude); }
.whatsapp-float { position: fixed; z-index: 40; right: 1.2rem; bottom: 1.2rem; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; box-shadow: 0 10px 35px rgba(0,0,0,.25); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 31px; fill: white; }

/* Página de enlaces para la biografía de Instagram */
.links-page { min-height: 100svh; display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(circle at 50% 0%, #f6f1ea 0, var(--nude) 42%, #d9cbbb 100%); }
.links-card { width: min(100%, 520px); padding: clamp(2rem, 7vw, 3.5rem); text-align: center; background: rgba(255,255,255,.8); border: 1px solid rgba(23,21,19,.12); box-shadow: 0 30px 80px rgba(40,31,24,.14); backdrop-filter: blur(10px); }
.links-portrait { width: 112px; height: 112px; margin: 0 auto 1.35rem; border-radius: 50%; object-fit: cover; object-position: center 22%; border: 4px solid white; box-shadow: 0 12px 30px rgba(23,21,19,.17); }
.links-kicker { margin: 0 0 .65rem; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.links-card h1 { margin: 0; font-size: clamp(2.45rem, 9vw, 4rem); line-height: .98; }
.links-location { margin: 1rem auto 2rem; color: var(--muted); font-size: .95rem; }
.links-list { display: grid; gap: .85rem; }
.links-button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.9rem; padding: .9rem 1.15rem; border: 1px solid rgba(23,21,19,.23); background: rgba(255,255,255,.55); font-weight: 700; text-align: left; transition: transform .2s, background .2s, color .2s; }
.links-button:hover { transform: translateY(-2px); background: white; }
.links-button.primary { color: white; background: var(--ink); border-color: var(--ink); }
.links-button.primary:hover { background: #302c28; }
.links-note { margin: 1.8rem 0 .4rem; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.links-instagram { font-size: .9rem; text-decoration: underline; text-underline-offset: .25rem; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr .7fr; padding-top: 4rem; }
  h1 { font-size: clamp(3.1rem, 8vw, 5.8rem); }
  .intro { grid-template-columns: 1fr 2fr; gap: 2rem; }
  .intro > p:last-child { grid-column: 2; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-copy { padding: 4rem; }
  .contact { gap: 3rem; }
}

@media (max-width: 720px) {
  .site-header { padding: .85rem 1rem; }
  .brand-name { font-size: 1rem; }
  .site-header .brand-line { display: none; }
  .button-small { min-height: 2.45rem; font-size: .78rem; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 3.5rem; padding: 4rem 1.25rem 5rem; }
  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.1rem; }
  .quick-facts { gap: 1rem; justify-content: space-between; margin-top: 3rem; }
  .quick-facts div { max-width: 48%; }
  .hero-visual { width: calc(100% - 1rem); justify-self: center; }
  .hero-visual img { aspect-ratio: 16/10; object-position: center 30%; }
  .hero-visual figcaption { right: -.5rem; }
  .section { padding: 5rem 1.25rem; }
  .intro { grid-template-columns: 1fr; gap: 1rem; }
  .intro > p:last-child { grid-column: auto; }
  .section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-card h3 { margin-top: 2rem; }
  .experience { grid-template-columns: 1fr; }
  .experience-image img { max-height: 560px; }
  .experience-copy { padding: 4rem 1.25rem; }
  .comparison { aspect-ratio: 1/1; }
  .comparison-before img { width: calc(100vw - 2.5rem); }
  .result-gallery { grid-template-columns: 1fr; }
  .result-gallery figure, .result-gallery img { min-height: 0; }
  .result-gallery figure:first-child img { aspect-ratio: 4/3; }
  .result-gallery figure:last-child img { aspect-ratio: 4/3; object-position: center 34%; }
  .detail-row { grid-template-columns: 1fr; margin-top: 4rem; gap: 2rem; }
  .radiograph-card { grid-template-columns: 1fr; margin-top: 4rem; padding: 2rem 1.25rem; }
  .contact { grid-template-columns: 1fr; gap: 4rem; padding: 5rem 1.25rem; }
  footer { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; padding: 3rem 1.25rem 6rem; }
  .links-page { padding: 1rem; }
  .links-card { padding: 2rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
