@font-face { font-family: "Red Hat Display"; src: url("../fonts/RedHatDisplay-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Red Hat Display"; src: url("../fonts/RedHatDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Red Hat Display"; src: url("../fonts/RedHatDisplay-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Red Hat Display"; src: url("../fonts/RedHatDisplay-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f5f3f0;
  --ink: #141414;
  --muted: #5e5a57;
  --line: #dcd7d1;
  --night: #121212;
  --night-2: #1d1c1c;
  --purple: #662d91;       /* morado de marca */
  --purple-soft: #b892d6;  /* morado legible sobre fondo oscuro */
  --wa: #1f9d55;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Red Hat Display", system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 140px); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 720px; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--purple);
}
.lede { color: var(--muted); font-size: 1.1rem; margin: 18px 0 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border: 1px solid currentColor; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; transition: background .25s, color .25s, border-color .25s;
}
.btn-sm { min-height: 40px; padding: 0 18px; }
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  color: #fff;
  transition: background .3s, color .3s, box-shadow .3s;
}
.site-header.is-solid { background: rgba(245, 243, 240, .94); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.brand img { height: 38px; width: auto; }
.brand-dark, .site-header.is-solid .brand-light { display: none; }
.site-header.is-solid .brand-dark { display: block; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-size: 0.95rem; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: currentColor; transition: right .25s; }
.nav a:not(.btn):hover::after { right: 0; }
.site-header:not(.is-solid) .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle {
    display: grid; place-content: center; gap: 7px;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: inherit; cursor: pointer;
  }
  .menu-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .3s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 24px var(--gutter);
    background: var(--paper); color: var(--ink);
    transform: translateX(100%); visibility: hidden; transition: transform .35s, visibility .35s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { font-size: 1.9rem; font-weight: 300; padding: 6px 0; }
  .nav .btn { margin-top: 18px; }
  body.menu-open .site-header { background: var(--paper); color: var(--ink); }
  body.menu-open .brand-light { display: none; }
  body.menu-open .brand-dark { display: block; }
  body.menu-open { overflow: hidden; }
}

/* Hero */
.hero { position: relative; height: 100svh; min-height: 560px; color: #fff; overflow: hidden; background: var(--night); }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, center);
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s ease, transform 7s ease-out;
}
.hero-slides img.is-active { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 45%, rgba(0,0,0,.7) 100%); }
@media (min-width: 901px) {
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 25%), linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%); }
}
.hero-copy { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(40px, 9vh, 96px); width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.hero .eyebrow { color: rgba(255,255,255,.85); animation: rise .9s .2s both; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); animation: rise 1s .35s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; animation: rise 1s .55s both; }
.hero .btn { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn:hover { background: transparent; color: #fff; }
.hero .btn-ghost { background: transparent; color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.intro { padding-top: clamp(64px, 9vw, 120px); }
.intro p { margin: 0; max-width: 900px; font-size: clamp(1.45rem, 3vw, 2.3rem); font-weight: 300; line-height: 1.35; letter-spacing: -0.01em; }

/* Filtros */
.filters { display: flex; gap: 8px; margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; min-height: 40px; padding: 0 18px;
  font: inherit; font-size: 0.92rem; color: inherit;
  background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: currentColor; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Galería tipo mosaico */
.gallery { display: flex; align-items: flex-start; gap: 14px; }
.gallery .col { flex: 1; min-width: 0; }
.gallery a {
  display: block; margin-bottom: 14px;
  overflow: hidden; background: #e7e3de; cursor: zoom-in;
  animation: fade .6s both;
}
.gallery img { width: 100%; transition: transform .7s ease, opacity .4s; }
.gallery a:hover img { transform: scale(1.03); }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .gallery { gap: 8px; } .gallery a { margin-bottom: 8px; } }

/* Servicios */
.services-wrap { background: #ebe7e2; }
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services li {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid #d3cdc6;
}
.services .num { font-size: 0.85rem; color: var(--purple); font-weight: 500; letter-spacing: .08em; }
.services p { margin: 6px 0 0; color: var(--muted); }
.services li > a { font-weight: 500; font-size: 0.95rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.services li > a:hover { color: var(--purple); }
@media (max-width: 640px) {
  .services li { grid-template-columns: 1fr; gap: 8px; }
  .services li > a { justify-self: start; margin-top: 6px; }
}

/* Sección oscura */
.dark { background: var(--night); color: #f2efeb; }
.dark .eyebrow { color: var(--purple-soft); }
.dark .lede { color: #a9a39d; }
.dark .lede a { color: #fff; }
.dark .filters button { border-color: #3a3837; }
.dark .filters button:hover { border-color: #f2efeb; }
.dark .filters button[aria-pressed="true"] { background: #f2efeb; color: var(--night); border-color: #f2efeb; }
.dark .gallery a { background: var(--night-2); }

/* Sobre mí */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 110px); align-items: center; }
.about-mark { width: 100%; max-width: 300px; justify-self: center; }
.about-lead { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 300; line-height: 1.35; margin: 22px 0; }
.about p { max-width: 620px; }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; gap: 4px; }
.steps li::before { content: "0" counter(s); font-size: .8rem; color: var(--purple); font-weight: 500; letter-spacing: .08em; }
.steps span { color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .about-mark { max-width: 160px; justify-self: start; }
  .steps { grid-template-columns: 1fr; }
}

/* Contacto */
.contact { background: var(--night); color: #f2efeb; }
.contact .eyebrow { color: var(--purple-soft); }
.contact h2 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
.contact .lede { color: #a9a39d; margin-bottom: 30px; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; min-height: 56px; font-size: 1rem; }
.btn-wa:hover { background: #17824a; border-color: #17824a; color: #fff; }
.btn-wa svg { width: 22px; height: 22px; }
.contact-list { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #2f2d2c; }
.contact-list li { padding: 22px 20px 0 0; display: grid; gap: 4px; min-width: 0; }
.contact-list span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #8d8781; }
.contact-list a, .contact-list p { margin: 0; font-size: 1.05rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--purple-soft); }
@media (max-width: 900px) { .contact-list { grid-template-columns: 1fr 1fr; row-gap: 12px; } }
@media (max-width: 520px) { .contact-list { grid-template-columns: 1fr; } }

.site-footer { background: var(--night); color: #8d8781; border-top: 1px solid #2a2928; padding-block: 32px 96px; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer img { height: 30px; width: auto; opacity: .85; }
.site-footer p { margin: 0; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* Visor */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10,10,10,.97); color: #fff; overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(10,10,10,.97); }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font: 300 2.6rem/1 "Red Hat Display", sans-serif; width: 56px; height: 56px; cursor: pointer; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 8px; top: 50%; translate: 0 -50%; }
.lb-next { right: 8px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; margin: 0; font-size: .85rem; letter-spacing: .12em; color: #a9a39d; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 4px; translate: none; } }

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