/* Tipografía igual a Blunt: Archivo (expandida, 125%) para títulos + Inter para texto */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@112..125,400..600&family=Inter:wght@300;400;500&display=swap');

:root {
  --bg: #FBF7F4;        /* crema / off-white */
  --alt: #F6EDE8;       /* crema rosado para secciones alternas */
  --fg: #1F1A19;        /* texto */
  --muted: #6E625F;     /* texto secundario (AA sobre fondo) */
  --line: #E6D9D3;      /* líneas finas */
  --accent: #F2A493;    /* salmón suave: relleno de botones (texto oscuro, 8.6:1) */
  --accent-hover: #E98C78; /* salmón un poco más intenso (texto oscuro, 7:1) */
  --accent-text: #1F1A19;  /* textos chicos de acento: oscuros, con marcador salmón */
  --marker: #E98C78;       /* subrayados / marcadores decorativos */
  --focus: #1F1A19;        /* anillo de foco (alto contraste) */
  --wa-icon: #1F1A19;
  --ph-1: #F4D9D1;      /* placeholders de fotos: tintes salmón */
  --ph-2: #EFCBC0;
  --ph-3: #F8E4DE;
  --on-accent: #1F1A19;  /* texto sobre botón salmón */
  --header-bg: rgba(251, 247, 244, .9);
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}
/* Tema oscuro */
[data-theme="dark"] {
  --bg: #141110;
  --alt: #1C1817;
  --fg: #F3ECE8;
  --muted: #ADA09B;
  --line: #2F2826;
  --accent: #F08A78;     /* salmón claro para contraste sobre fondo oscuro */
  --accent-hover: #F5A595;
  --accent-text: #F08A78;
  --marker: #F08A78;
  --focus: #F08A78;
  --wa-icon: #F08A78;
  --ph-1: #3A2824;
  --ph-2: #46302B;
  --ph-3: #2E211F;
  --on-accent: #141110;
  --header-bg: rgba(20, 17, 16, .88);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  transition: background-color .3s, color .3s;
  background: var(--bg); color: var(--fg);
  font: 300 15.5px/1.7 Inter, system-ui, sans-serif; letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 {
  font-family: Archivo, system-ui, sans-serif; font-stretch: 125%;
  font-weight: 450; line-height: 1.1; letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: -.005em; }
.eyebrow { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 14px; }
.muted { color: var(--muted); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 112px 0; }
.alt { background: var(--alt); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 99; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: Archivo, sans-serif; font-stretch: 125%; font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
nav.main ul { display: flex; gap: 36px; }
nav.main a { position: relative; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
nav.main a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
nav.main a:hover { color: var(--fg); }
nav.main a:hover::after { transform: scaleX(1); transform-origin: left; }
.tools { display: flex; align-items: center; gap: 8px; margin-left: 32px; }
.theme-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: border-color .3s, color .3s; }
.theme-toggle:hover { border-color: var(--fg); }
.theme-toggle svg { width: 16px; height: 16px; grid-area: 1 / 1; transition: opacity .3s, transform .4s var(--ease); }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-45deg) scale(.7); }
[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(45deg) scale(.7); }
header.site nav.main { margin-left: auto; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--fg); transition: transform .3s var(--ease); }
.nav-toggle span:first-child { top: 16px; } .nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Botones */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); padding: 15px 30px; font: 500 .72rem Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn.ghost:hover { background: var(--fg); color: var(--bg); }
.link { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; padding-bottom: 3px; white-space: nowrap; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.link:hover { background-image: linear-gradient(var(--marker), var(--marker)); background-size: 100% 2px; }

/* Placeholders de fotos */
.ph { background: var(--ph-1); }

/* Hero */
.hero { padding: 104px 0 112px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.hero h1 { max-width: 14ch; }
.lead { font-size: 1.02rem; line-height: 1.75; color: var(--muted); max-width: 460px; margin: 28px 0 40px; }
.ph-hero { aspect-ratio: 4 / 5; background: linear-gradient(180deg, var(--ph-3), var(--ph-2)); }
.cap { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.cap span { display: block; color: var(--fg); letter-spacing: .12em; }

/* Secciones */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-sub { max-width: 44ch; font-size: .95rem; }

/* Servicios: filas con líneas finas */
.services { border-bottom: 1px solid var(--line); }
.services li { display: grid; grid-template-columns: 64px 1fr 1.4fr; gap: 24px; align-items: baseline; padding: 30px 0; border-top: 1px solid var(--line); transition: padding .4s var(--ease); }
.services .num { font-family: Archivo, sans-serif; font-stretch: 125%; font-size: .8rem; color: var(--accent-text); letter-spacing: .04em; }
.services .num::after { content: ""; display: block; width: 14px; height: 2px; margin-top: 8px; background: var(--marker); }
.services h3 { font-size: 1.3rem; }
.services p { color: var(--muted); font-size: .95rem; }
.services li:hover h3 { color: var(--accent-text); background-size: 100% 2px; }
.services h3 { background: linear-gradient(var(--marker), var(--marker)) 0 100% / 0 2px no-repeat; justify-self: start; transition: background-size .4s var(--ease), color .3s; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery .ph, .gallery img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; display: block; }
.g2, .g6 { background: var(--ph-2); }
.g3, .g4 { background: var(--ph-3); }
.note { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .78rem; letter-spacing: .06em; color: var(--muted); }

/* Sobre mí */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.split p:not(.eyebrow) { color: var(--muted); margin-top: 20px; max-width: 52ch; }
.split h2 { margin-bottom: 4px; }
.ph-about { aspect-ratio: 4 / 5; background: linear-gradient(180deg, var(--ph-1), var(--ph-2)); }
.facts { margin-top: 40px; border-bottom: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.facts span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }

/* Contacto */
.contact { align-items: start; }
.contact .actions { margin-top: 36px; }
.details div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.details div:last-child { border-bottom: 1px solid var(--line); }
.details dt { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.details dd { font-size: 1rem; }
.details a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.details a { background-image: linear-gradient(var(--marker), var(--marker)); }
.details a:hover { background-size: 100% 2px; }
/* En modo oscuro se mantiene el estilo original (acento en el texto, sin marcadores) */
[data-theme="dark"] .services .num::after { display: none; }
[data-theme="dark"] .services h3 { background: none; }
[data-theme="dark"] .details a { background-image: linear-gradient(currentColor, currentColor); }
[data-theme="dark"] .details a:hover { color: var(--accent); background-size: 100% 1px; }
[data-theme="dark"] .link:hover { color: var(--accent); background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: .88rem; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.foot-links { display: flex; gap: 32px; flex-wrap: wrap; color: var(--muted); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.foot-links a:hover { color: var(--fg); }
.legal { color: var(--muted); font-size: .78rem; border-top: 1px solid var(--line); padding-top: 24px; }

/* WhatsApp flotante, discreto */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--wa-icon); border: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.wa-float svg { width: 22px; height: 22px; }
.wa-float:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Aparición suave */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 48px; }
  .services li { grid-template-columns: 48px 1fr; row-gap: 6px; }
  .services p { grid-column: 2; }
}
@media (max-width: 760px) {
  section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
  .nav-toggle { display: block; }
  .tools { margin-left: auto; gap: 4px; }
  nav.main { position: fixed; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  nav.main li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  nav.main li:last-child a { border-bottom: 0; }
  nav.main a::after { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .services li { grid-template-columns: 36px 1fr; padding: 24px 0; }
  .services h3 { font-size: 1.15rem; }
  .details div, .facts li { grid-template-columns: 1fr; gap: 4px; }
  .sec-head { margin-bottom: 40px; }
  .foot-top { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 2.3rem; }
  .ph-hero, .ph-about { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .actions .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
