:root {
  --cream: #f6f1e9;
  --sand: #ebe2d4;
  --ink: #17241f;
  --green: #22352d;
  --muted: #55625b;
  --accent: #a44e2c;
  --accent-soft: #e9b99f;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote, address { margin: 0; padding: 0; font-style: normal; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }

h1, h2 { font-family: var(--serif); font-weight: 350; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 9vw, 7rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 1.5rem; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h3 { font: 500 1.35rem/1.2 var(--serif); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.intro { max-width: 38rem; color: var(--muted); }

.wrap { max-width: 76rem; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.alt { background: var(--sand); }
.dark { background: var(--ink); color: var(--cream); }
.dark h2 em, .dark .eyebrow, .hero h1 em, .hero .eyebrow { color: var(--accent-soft); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--cream); padding: .6rem 1rem; border-radius: 99px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.5rem; border-radius: 99px; border: 1.5px solid transparent; font-weight: 500; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #8c4024; }
.btn-light { background: var(--cream); color: var(--ink); padding: .6rem 1.2rem; }
.btn-ghost { border-color: rgb(255 255 255 / .6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Cabecera */
.top { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; gap: 2rem; padding: .8rem var(--pad); color: var(--cream); background: rgb(23 36 31 / .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.logo { font: 400 1.7rem/1 var(--serif); letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
.links { display: flex; gap: 2rem; }
.links a, .mnav nav a:not(.btn) { text-decoration: none; font-size: .95rem; opacity: .85; }
.links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.mnav { display: none; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate; }
.hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(23 36 31 / .88) 0%, rgb(23 36 31 / .55) 50%, rgb(23 36 31 / .15) 100%), linear-gradient(0deg, rgb(23 36 31 / .7), transparent 40%); }
.hero-text { padding: 8rem var(--pad) clamp(2.5rem, 6vw, 4.5rem); max-width: 60rem; }
.hero .lead { max-width: 33rem; margin-top: 1.5rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgb(255 255 255 / .88); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgb(255 255 255 / .25); }
.facts li { padding: 1.25rem var(--pad); font-size: .9rem; color: rgb(255 255 255 / .8); }
.facts li + li { border-left: 1px solid rgb(255 255 255 / .25); }
.facts strong { display: block; font: 400 1.25rem/1.3 var(--serif); color: #fff; }

/* Servicios */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); gap: 1px; margin-top: 3.5rem; background: #d9cdbb; border: 1px solid #d9cdbb; border-radius: 1.25rem; overflow: hidden; }
.cards li { display: flex; flex-direction: column; gap: .75rem; padding: 2.25rem 2rem; background: var(--cream); transition: background .25s; }
.cards li:hover { background: #fff; }
.cards p { color: var(--muted); font-size: .98rem; }
.num { font: italic 400 1rem var(--serif); color: var(--accent); }
.cards .price { margin-top: auto; padding-top: 1rem; font-size: .85rem; }
.price b { font: 500 1.5rem var(--serif); color: var(--ink); margin-left: .25rem; }

/* Estudio */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split + .split { margin-top: clamp(4rem, 8vw, 7rem); }
.split img { border-radius: 1.25rem; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split p + p { margin-top: 1rem; }
.split p:not(.eyebrow) { color: var(--muted); }
.reverse img { order: 2; }
.team li { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .25rem 1rem; padding: 1.1rem 0; border-top: 1px solid #cfc3b0; }
.team li:last-child { border-bottom: 1px solid #cfc3b0; }
.team b { font: 500 1.3rem var(--serif); }
.team span { color: var(--muted); font-size: .92rem; }

/* Galería */
.gallery { columns: 3; column-gap: 1rem; margin-top: 3rem; }
.gallery img { width: 100%; margin-bottom: 1rem; border-radius: 1rem; break-inside: avoid; transition: filter .3s, transform .3s; }
.gallery .crop { aspect-ratio: 6 / 7; object-fit: cover; object-position: top; } /* recorta el texto de la camiseta */
.gallery img:hover { filter: saturate(1.15); transform: scale(1.015); }

/* Opiniones */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.quotes figure { display: flex; flex-direction: column; gap: 1.5rem; padding: 2rem; border: 1px solid rgb(246 241 233 / .18); border-radius: 1.25rem; }
blockquote { font: italic 350 1.3rem/1.45 var(--serif); }
blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--accent-soft); margin-bottom: .75rem; }
figcaption { margin-top: auto; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.info { display: grid; gap: 2.25rem; padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--sand); border-radius: 1.25rem; }
.info h3 { margin-bottom: .75rem; }
.info address { color: var(--muted); }
dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid #cfc3b0; }
dt { color: var(--muted); }
dd { font-weight: 500; text-align: right; }

footer { background: var(--ink); color: rgb(246 241 233 / .7); padding: 3rem 0; font-size: .85rem; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 3rem; }
footer .logo { color: var(--cream); margin: 0; }
footer p { flex: 1 1 20rem; }

/* Aparición suave al hacer scroll, solo donde el navegador lo soporta */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .cards li, .split > *, .gallery img, .quotes figure, .contact > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes rise { from { opacity: 0; translate: 0 2rem; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 860px) {
  .links, .cta-top { display: none; }
  .mnav { display: block; }
  .mnav summary { list-style: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; cursor: pointer; border-radius: 50%; }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav summary span { position: relative; width: 1.5rem; height: 1.5rem; }
  .mnav summary span::before, .mnav summary span::after { content: ""; position: absolute; left: 0; top: calc(50% - 1px); width: 100%; height: 2px; background: currentColor; transition: transform .2s; }
  .mnav summary span::before { transform: translateY(-4px); }
  .mnav summary span::after { transform: translateY(4px); }
  .mnav[open] summary span::before { transform: rotate(45deg); }
  .mnav[open] summary span::after { transform: rotate(-45deg); }
  .mnav nav { position: absolute; inset: 100% 0 auto; display: grid; gap: .25rem; padding: 1rem var(--pad) 1.75rem; background: var(--ink); }
  .mnav nav a:not(.btn) { padding: .8rem 0; font: 400 1.5rem var(--serif); opacity: 1; border-bottom: 1px solid rgb(246 241 233 / .15); }
  .mnav nav .btn { margin-top: 1rem; }

  .split, .contact { grid-template-columns: 1fr; }
  .reverse img { order: 0; }
  .team li { flex-direction: column; }
  .gallery { columns: 2; column-gap: .75rem; }
  .gallery img { margin-bottom: .75rem; }
  .facts { grid-template-columns: 1fr; }
  .facts li { padding-block: .8rem; display: flex; gap: .5rem; align-items: baseline; }
  .facts li + li { border-left: 0; border-top: 1px solid rgb(255 255 255 / .2); }
  .facts strong { font-size: 1.05rem; }
}
