/* ============================================================
   Blanco Mate Estudio — One-page minimalista de galería
   Paleta exacta del estudio + tipografía editorial
   ============================================================ */

:root {
  --bg:      #FAFAF8;
  --surface: #F2F1EC;
  --fg:      #23241F;
  --muted:   #67685F;
  --accent:  #5A6B52;   /* relleno / borde */
  --accent-ink: #3F4A39; /* accent como texto sobre surface (AA) */
  --line:    #E3E2DA;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --pad: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1180px;
  --bar-h: 34px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: rgba(90,107,82,.18); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.muted { color: var(--muted); }

/* ---------- Tipografía display ---------- */
.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.012em;
  margin: 0;
  color: var(--fg);
}
.h-display em { font-style: italic; color: var(--accent-ink); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 1.1rem;
}
.eyebrow--light { color: rgba(255,255,255,.72); }

/* ============================================================
   Barra DEMO Digital Bee
   ============================================================ */
.db-bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--bar-h);
  z-index: 90;
  background: var(--fg);
  color: #F4F4F0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: .78rem;
  letter-spacing: .02em;
  padding: 0 1rem;
}
.db-bar__txt { opacity: .82; }
.db-bar__cta {
  text-decoration: none;
  font-weight: 500;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.45);
  padding-bottom: 1px;
  transition: border-color .25s var(--ease);
  white-space: nowrap;
}
.db-bar__cta:hover { border-color: #fff; }
@media (max-width: 560px){
  .db-bar { font-size: .7rem; gap: .6rem; }
  .db-bar__txt { display:none; }
}

/* ============================================================
   Header
   ============================================================ */
.site-head {
  position: sticky;
  top: var(--bar-h);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem var(--pad);
  background: rgba(250,250,248,.82);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--fg); }
.brand__mark { color: var(--accent); display: grid; place-items: center; }
.brand__words { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.18rem;
  letter-spacing: -.01em;
}
.brand__sub {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a {
  text-decoration: none;
  font-size: .92rem;
  color: var(--muted);
  position: relative;
  transition: color .25s var(--ease);
}
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav a:not(.nav__cta):hover { color: var(--fg); }
.nav a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta {
  color: var(--fg);
  font-weight: 500;
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: .42rem 1.05rem;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav__cta:hover { background: var(--accent); color: #fff; }

@media (max-width: 820px){
  .nav { gap: 1.05rem; }
  .nav a:not(.nav__cta) { display: none; }
}

/* ============================================================
   Botones
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .96rem;
  text-decoration: none;
  border-radius: 100px;
  padding: .82rem 1.6rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .3s var(--ease-out), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: #4c5b45; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.btn--full { width: 100%; }
.btn--wa { background: #25D366; color: #0b2e18; font-weight: 500; }
.btn--wa:hover { background: #1fb957; transform: translateY(-2px); }
.btn__wa-ic { display: inline-flex; }

/* ============================================================
   Layout helpers
   ============================================================ */
main { display: block; }

section {
  padding: clamp(4rem, 9vw, 8rem) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head__note { color: var(--muted); margin: 1.1rem 0 0; font-size: 1.02rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: 100svh;
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  line-height: 1.04;
  letter-spacing: -.022em;
  margin: 0 0 1.6rem;
}
.hero__title em { font-style: italic; color: var(--accent-ink); }
.hero__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 33ch;
  margin: 0 0 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.6rem; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}
.hero__meta li { font-size: .92rem; color: var(--muted); }
.hero__meta strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--fg);
  letter-spacing: -.01em;
}

/* plate (donde iría una foto) */
.hero__plate { display: grid; }
.plate {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(90,107,82,.10), transparent 60%),
    linear-gradient(160deg, #FBFBF9, var(--surface));
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(35,36,31,.35);
}
.plate__art { width: 100%; height: auto; }
.plate__cap {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.1rem;
  border-top: 1px solid var(--line);
  background: rgba(250,250,248,.7);
}
.plate__swatch {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--line);
}
.plate__swatch--bg { background: var(--bg); }
.plate__swatch--surface { background: var(--surface); }
.plate__swatch--line { background: var(--line); }
.plate__swatch--accent { background: var(--accent); }
.plate__txt {
  margin-left: auto;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 880px){
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__plate { order: -1; max-width: 440px; }
}

/* ============================================================
   Estudio (sobre nosotros)
   ============================================================ */
.estudio {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.estudio__lead { position: sticky; top: 120px; align-self: start; }
.estudio__body p { color: var(--muted); margin: 0 0 1.3rem; max-width: 56ch; }

.pillars { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.pillars li { display: flex; gap: 1rem; align-items: flex-start; }
.pillars__ic {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface);
  color: var(--accent-ink);
  border: 1px solid var(--line);
}
.pillars h3 { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin: 0 0 .25rem; }
.pillars p { margin: 0; font-size: .96rem; color: var(--muted); }

@media (max-width: 820px){
  .estudio { grid-template-columns: 1fr; }
  .estudio__lead { position: static; }
}

/* ============================================================
   Servicios — cards
   ============================================================ */
.servicios { border-top: 1px solid var(--line); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.card {
  background: var(--bg);
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: background .4s var(--ease);
}
.card:hover { background: var(--surface); }
.card__ic {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: var(--accent);
  background: rgba(90,107,82,.08);
  margin-bottom: .6rem;
  transition: transform .4s var(--ease-out);
}
.card:hover .card__ic { transform: translateY(-3px) rotate(-3deg); }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.32rem; margin: 0; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.card__price {
  margin-top: auto !important;
  padding-top: 1rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--fg) !important;
}
.card__price span {
  display: block;
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: .15rem;
}
.card__price small { font-size: .82rem; color: var(--muted); font-family: var(--sans); }

@media (max-width: 900px){ .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .cards { grid-template-columns: 1fr; } }

/* ============================================================
   Trust
   ============================================================ */
.trust {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(100% 60% at 50% 0%, rgba(90,107,82,.06), transparent 70%);
}
.trust__top { max-width: 620px; margin-bottom: clamp(2.4rem, 5vw, 3.5rem); }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: 2rem 1.4rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.stat__n {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent-ink);
}
.stat__l { font-size: .9rem; color: var(--muted); max-width: 22ch; }

.quote {
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  max-width: 780px;
}
.quote blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: -.012em;
  margin: 0 0 1.4rem;
  color: var(--fg);
}
.quote figcaption { display: flex; align-items: baseline; gap: .7rem; }
.quote__who { font-weight: 500; }
.quote__where { color: var(--muted); font-size: .9rem; }
.quote__where::before { content: "— "; }

@media (max-width: 760px){ .trust__grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   Método — steps
   ============================================================ */
.metodo { border-top: 1px solid var(--line); }
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 2.5rem);
  counter-reset: step;
}
.steps li {
  padding-top: 1.4rem;
  border-top: 1px solid var(--accent);
}
.steps__n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent-ink);
  display: block;
  margin-bottom: 1.1rem;
}
.steps h3 { font-family: var(--serif); font-weight: 500; font-size: 1.22rem; margin: 0 0 .5rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

@media (max-width: 880px){ .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .steps { grid-template-columns: 1fr; } }

/* ============================================================
   Ubicación
   ============================================================ */
.ubicacion {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.ubicacion__lead { color: var(--muted); max-width: 40ch; margin: 1.1rem 0 2rem; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.8rem; margin: 0; }
.facts dt {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: .35rem;
}
.facts__ic { color: var(--accent); display: inline-flex; }
.facts dd { margin: 0; font-size: 1rem; line-height: 1.45; }
.facts dd a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .25s var(--ease); }
.facts dd a:hover { border-color: var(--accent); }

.ubicacion__map {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -45px rgba(35,36,31,.3);
}
.mapart { width: 100%; height: auto; }
.mapart__pin {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .4rem .9rem;
  font-size: .8rem;
  color: var(--fg);
  box-shadow: 0 8px 20px -12px rgba(35,36,31,.4);
}

@media (max-width: 820px){
  .ubicacion { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px){ .facts { grid-template-columns: 1fr; } }

/* ============================================================
   Cotizar — formulario
   ============================================================ */
.cotizar {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.cotizar__note { color: var(--muted); margin: 1.1rem 0 1.6rem; max-width: 42ch; }
.cotizar__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.cotizar__list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--fg);
  font-size: .98rem;
}
.cotizar__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 10px; height: 6px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: grid;
  gap: 1.1rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--accent-ink);
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .72rem .85rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: #a4a499; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90,107,82,.16);
}
.form .btn { margin-top: .4rem; }
.form__ok {
  margin: 0;
  padding: .9rem 1rem;
  border-radius: 10px;
  background: rgba(90,107,82,.1);
  border: 1px solid rgba(90,107,82,.3);
  color: var(--accent-ink);
  font-size: .95rem;
}
.form__ok span { display: block; color: var(--muted); font-size: .82rem; margin-top: .25rem; }
.form__legal { margin: 0; font-size: .78rem; color: var(--muted); text-align: center; }

@media (max-width: 820px){ .cotizar { grid-template-columns: 1fr; } }
@media (max-width: 480px){ .form__row { grid-template-columns: 1fr; } }

/* ============================================================
   CTA Digital Bee
   ============================================================ */
.db-cta {
  max-width: 100%;
  margin: 0;
  padding: clamp(4rem, 8vw, 7rem) var(--pad);
  background:
    radial-gradient(120% 120% at 15% 0%, #2f3a2b, var(--fg) 60%);
  color: #F4F4F0;
}
.db-cta__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.db-cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -.018em;
  margin: 0 0 1.1rem;
  color: #fff;
}
.db-cta p {
  color: rgba(244,244,240,.78);
  max-width: 48ch;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ============================================================
   Footer
   ============================================================ */
.foot {
  padding: clamp(3rem, 6vw, 4.5rem) var(--pad) 2rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.foot__top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.foot__brand .brand__name { font-size: 1.3rem; }
.foot__brand p { color: var(--muted); margin: .6rem 0 0; font-size: .95rem; max-width: 32ch; }
.foot__nav { display: flex; flex-direction: column; gap: .6rem; }
.foot__nav a { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .25s var(--ease); }
.foot__nav a:hover { color: var(--accent-ink); }
.foot__contact { display: flex; flex-direction: column; gap: .5rem; font-size: .95rem; }
.foot__contact a { text-decoration: none; color: var(--fg); }
.foot__contact a:hover { color: var(--accent-ink); }

.foot__bottom {
  max-width: var(--maxw);
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .82rem;
  color: var(--muted);
}
.foot__bottom a { color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot__bottom a:hover { border-color: var(--accent); }

@media (max-width: 720px){
  .foot__top { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ============================================================
   WhatsApp flotante
   ============================================================ */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 95;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.6);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 34px -8px rgba(37,211,102,.7); }

/* ============================================================
   Reveals (FOUC-safe: ocultos solo bajo html.js-on)
   ============================================================ */
.js-on .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.js-on .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-on .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .card, .card__ic, .nav a, .wa-float { transition: none !important; }
}
