/* =============================================================
   AN REFORMAS — styles.css
   Archetype: Brutalist Grid (adapted — architectural, monochrome)
   v=20260515
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  --bg:          #FFFFFF;
  --ink:         #1B2B3A;      /* azul pizarra oscuro */
  --ink-mute:    #4A6580;      /* azul gris medio */
  --ink-ghost:   #8BA4BA;      /* azul gris claro */
  --accent:      #4A6FA5;      /* azul acero — acento principal */
  --accent-dark: #2C4F7A;      /* azul más oscuro para hover */
  --stone:       #C8D8E8;      /* azul muy claro para fondos sutiles */
  --stone-dark:  #8BA4BA;      /* alias compatibilidad */
  --line:        rgba(27, 43, 58, 0.12);
  --line-bold:   #1B2B3A;

  --display:     'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mono:        'Space Mono', 'Courier New', monospace;

  --gap:         clamp(1rem, 3vw, 2rem);
  --gutter:      clamp(1.25rem, 5vw, 4rem);
  --section-pad: clamp(5rem, 12vw, 9rem);
  --max-w:       1320px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);

  --nav-h:       68px;
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.02; letter-spacing: -0.03em; }
address { font-style: normal; }
ol, ul { list-style: none; }

::selection { background: var(--ink); color: var(--bg); }

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

/* =============================================================
   3. UTILITIES
   ============================================================= */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  padding: .5rem 1rem;
  background: var(--ink);
  color: var(--bg);
  z-index: 9999;
  font-size: .875rem;
  font-family: var(--mono);
  letter-spacing: .05em;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =============================================================
   4. NAV
   ============================================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease-soft), border-color .3s var(--ease-soft);
}

.site-nav.is-solid {
  background: var(--bg);
  border-color: var(--accent);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  /* preserve logo colors on white nav bg */
}

.logo-monogram {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.06em;
  color: var(--ink);
  line-height: 1;
  border: 2px solid var(--accent);
  padding: .15em .25em;
  transition: background .2s, color .2s, border-color .2s;
}

.site-nav.is-solid .logo-monogram {
  border-color: var(--accent);
}

.logo-text {
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--ink);
  text-transform: uppercase;
}

.nav-logo:hover .logo-monogram {
  background: var(--ink);
  color: var(--bg);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width .3s var(--ease-out);
}

.nav-link:hover::after { width: 100%; }

.nav-cta {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: .6em 1.4em;
  border: 1px solid var(--accent);
  transition: background .2s, color .2s;
}

.nav-cta:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* Mobile toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: .5rem;
  margin-right: -.5rem;
}

.toggle-bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .3s;
}

.site-nav.menu-open .toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.site-nav.menu-open .toggle-bar:nth-child(2) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--line-bold);
  padding: 0 var(--gutter);
  gap: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease-out), padding .4s var(--ease-out);
}

.mobile-menu.is-open {
  max-height: 400px;
  padding-block: 1.5rem;
}

.mobile-link {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--ink);
  padding-block: .25rem;
  border-bottom: 1px solid var(--line);
}

.mobile-link--cta {
  margin-top: .5rem;
  border: none;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: .85rem 1.5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Nav transparent on hero (white logo against dark bg) */
.site-nav:not(.is-solid) .logo-monogram,
.site-nav:not(.is-solid) .logo-text,
.site-nav:not(.is-solid) .nav-link,
.site-nav:not(.is-solid) .toggle-bar {
  color: var(--bg);
  border-color: var(--bg);
  background-color: transparent;
}
.site-nav:not(.is-solid) .nav-link::after { background: var(--bg); }
.site-nav:not(.is-solid) .nav-cta {
  color: var(--ink);
  background: var(--bg);
  border-color: var(--bg);
}
.site-nav:not(.is-solid) .nav-cta:hover {
  color: var(--bg);
  background: transparent;
  border-color: var(--bg);
}
.site-nav:not(.is-solid) .toggle-bar { background: var(--bg); }

/* =============================================================
   5. HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.65) 50%,
    rgba(10, 10, 10, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-inline: var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  color: rgba(200, 216, 232, 0.8);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .8s .2s var(--ease-out) forwards;
}

.hero-title {
  font-size: clamp(2.8rem, 9vw, 7rem);
  font-weight: 700;
  color: var(--bg);
  letter-spacing: -0.04em;
  line-height: .95;
  margin-bottom: 1.5rem;
  max-width: 14ch;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp .8s var(--ease-out) forwards;
}
.hero-line:nth-child(1) { animation-delay: .35s; }
.hero-line:nth-child(2) { animation-delay: .5s; }
.hero-line:nth-child(3) { animation-delay: .65s; }

.hero-line--accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(.9rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,.7);
  margin-bottom: 2.5rem;
  max-width: 45ch;
  letter-spacing: .01em;
  opacity: 0;
  animation: fadeUp .8s .8s var(--ease-out) forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s .95s var(--ease-out) forwards;
}

.hero-counter {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  opacity: 0;
  animation: fadeIn 1s 1.2s var(--ease-out) forwards;
}

.hero-scroll-label {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .15em;
  color: rgba(255,255,255,.5);
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: .5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(.7); }
}

/* =============================================================
   6. BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .85em 1.8em;
  border: 1px solid;
  cursor: pointer;
  transition: background .2s var(--ease-soft), color .2s var(--ease-soft), transform .15s;
  white-space: nowrap;
}

.btn:active { transform: scale(.98); }

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--bg);
  border-color: rgba(255,255,255,.4);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--bg);
}

.btn--dark {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--dark:hover {
  background: var(--bg);
  color: var(--ink);
}

.btn--submit {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  width: 100%;
  justify-content: center;
  font-size: .85rem;
  padding: 1em 2em;
  margin-top: .5rem;
}
.btn--submit:hover {
  background: var(--bg);
  color: var(--ink);
}
.btn--submit.is-sending {
  opacity: .6;
  pointer-events: none;
}

/* =============================================================
   7. MARQUEE
   ============================================================= */
.marquee-wrap {
  border-top: 1px solid var(--line-bold);
  border-bottom: 1px solid var(--line-bold);
  overflow: hidden;
  padding-block: 1rem;
  background: var(--bg);
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-item {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}

.marquee-sep {
  color: var(--accent);
  font-size: .75rem;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================================
   8. SECTION SHARED
   ============================================================= */
.section {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line-bold);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  padding-inline: var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
  margin-inline: auto;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.section-num {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .15em;
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* =============================================================
   9. REVEAL ANIMATIONS
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  will-change: opacity, transform;
}

/* Defensive rule — .reveal with data-split stays visible */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

/* =============================================================
   10. SERVICES
   ============================================================= */
.section--services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  border: 1px solid var(--line-bold);
}

.service-card {
  position: relative;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line-bold);
  overflow: hidden;
  cursor: default;
  transition: background .3s var(--ease-out), color .3s var(--ease-out);
  display: grid;
  grid-template-areas:
    "num arrow"
    "icon icon"
    "name name"
    "desc desc";
  grid-template-columns: 1fr auto;
  gap: .75rem 0;
  align-items: start;
}

.service-card:last-child { border-bottom: 0; }

.service-card:nth-child(even) {
  background: var(--stone);
}

.service-watermark {
  position: absolute;
  right: -0.1em;
  bottom: -0.15em;
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  color: rgba(27,43,58,0.06);
  line-height: 1;
  pointer-events: none;
  transition: color .3s var(--ease-out);
  z-index: 0;
}

.service-icon {
  grid-area: icon;
  position: relative;
  z-index: 1;
  color: var(--accent);
  margin-bottom: .5rem;
  transition: color .3s;
}

.service-icon svg {
  width: clamp(28px, 4vw, 40px);
  height: clamp(28px, 4vw, 40px);
}

.service-num {
  grid-area: num;
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .15em;
  color: var(--accent);
  align-self: center;
  transition: color .3s;
}

.service-arrow {
  grid-area: arrow;
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  color: var(--ink-ghost);
  align-self: center;
  transition: color .3s, transform .3s var(--ease-out);
}

.service-name {
  grid-area: name;
  position: relative;
  z-index: 1;
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  transition: color .3s;
}

.service-desc {
  grid-area: desc;
  position: relative;
  z-index: 1;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--ink-mute);
  max-width: 48ch;
  transition: color .3s;
}

/* Hover — azul pizarra completo */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s var(--ease-out);
  z-index: 0;
}

.service-card:hover::before { transform: scaleY(1); }

.service-card:hover .service-num,
.service-card:hover .service-name,
.service-card:hover .service-icon { color: var(--bg); }

.service-card:hover .service-desc { color: rgba(255,255,255,.65); }
.service-card:hover .service-arrow { color: var(--accent); transform: translateX(4px); }
.service-card:hover .service-watermark { color: rgba(255,255,255,.05); }

/* =============================================================
   11. PROJECTS
   ============================================================= */
.section--projects {
  background: #F5F4F2;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.project-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  cursor: pointer;
}

/* Bulletproof 4:3 ratio — padding-top trick, works in all browsers/grids */
.project-card::before {
  content: '';
  display: block;
  padding-top: 75%; /* 3/4 = 75% → 4:3 ratio */
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s var(--ease-out), filter .4s var(--ease-soft);
  filter: saturate(1.05);
}

.project-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.15) brightness(.85);
}

.project-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(transparent, rgba(10,10,10,.85));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  transform: translateY(4px);
  opacity: 0;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}

.project-card:hover .project-caption {
  opacity: 1;
  transform: none;
}

.project-type {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bg);
}

.project-loc {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .1em;
  color: rgba(200, 216, 232, 0.8);
}

/* =============================================================
   12. NOSOTROS
   ============================================================= */
.section--about {
  background: var(--bg);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.about-text .section-header {
  padding-inline: 0;
  max-width: none;
  margin-inline: 0;
}

.about-lead {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.about-body p:not(.about-lead) {
  font-size: .95rem;
  color: var(--ink-mute);
  max-width: 52ch;
  line-height: 1.75;
}

.about-stats {
  display: flex;
  gap: clamp(1.5rem, 5vw, 3rem);
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-bold);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.stat-num {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .12em;
  color: var(--ink-ghost);
  text-transform: uppercase;
}

.about-image {
  margin: 0;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.95);
  transition: filter .4s;
}

.about-image:hover img { filter: saturate(1.1); }

/* =============================================================
   13. PROCESO
   ============================================================= */
.section--process {
  background: var(--ink);
}

.section--process .section-header {
  border-color: rgba(255,255,255,.15);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding-inline: var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
}

.section--process .section-num { color: var(--accent); }
.section--process .section-title { color: var(--bg); }

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  border-top: 1px solid rgba(255,255,255,.12);
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid rgba(255,255,255,.12);
  align-items: start;
}

.step-num {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--stone);  /* azul claro — buen contraste sobre --ink dark bg */
  padding-top: .3rem;
  min-width: 2.5rem;
}

.step-title {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bg);
  margin-bottom: .5rem;
}

.step-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  max-width: 55ch;
}

/* =============================================================
   14. CONTACTO
   ============================================================= */
.section--contact {
  background: var(--bg);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.contact-info .section-header {
  padding-inline: 0;
  max-width: none;
  margin-inline: 0;
}

.contact-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--ink-mute);
  margin-bottom: 2rem;
  max-width: 38ch;
}

.contact-address {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-address p {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.detail-label {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .14em;
  color: var(--ink-ghost);
  text-transform: uppercase;
  padding-top: .15rem;
}

.detail-value {
  font-size: .9rem;
  color: var(--ink);
  font-weight: 500;
}

a.detail-value:hover { color: var(--accent); }

/* Form */
.contact-form-wrap {
  position: relative;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field-group { display: flex; flex-direction: column; gap: .4rem; }
.field-group--full { grid-column: 1 / -1; }

.field-label {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-ghost);
}

.field-input {
  width: 100%;
  padding: .85em 1em;
  border: 1px solid var(--line-bold);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: .9rem;
  border-radius: 0;
  outline: none;
  transition: border-color .2s, background .2s;
  appearance: none;
  -webkit-appearance: none;
}

.field-input:focus { border-color: var(--ink); background: #FAFAF9; }
.field-input::placeholder { color: var(--ink-ghost); }

.field-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231C1C1C' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field-textarea { resize: vertical; min-height: 110px; }

.btn--submit { grid-column: 1 / -1; }

.form-note {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .08em;
  color: var(--ink-ghost);
  text-align: center;
}

/* Success state */
.form-success {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  border: 1px solid var(--ink);
  text-align: center;
  padding: 2rem;
}

.form-success[hidden] { display: none; }

.success-icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
}

.success-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.success-body {
  font-size: .875rem;
  color: var(--ink-mute);
}

/* =============================================================
   15. FOOTER
   ============================================================= */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  /* logo es negro transparente → invert lo pone blanco sobre fondo oscuro */
  filter: invert(1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
  width: fit-content;
  text-decoration: none;
}

.footer-logo .logo-monogram {
  color: var(--bg);
  border-color: var(--bg);
}

.footer-logo .logo-monogram:hover {
  background: var(--bg);
  color: var(--ink);
}

.footer-logo .logo-text { color: rgba(255,255,255,.6); }

.footer-tagline {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .02em;
  max-width: 28ch;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer-nav a {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}

.footer-nav a:hover { color: var(--bg); }

.footer-contact p {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  line-height: 1.8;
}

.footer-contact a:hover { color: var(--bg); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.5rem var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
}

.footer-legal {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.3);
}

.footer-credits-link {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.25);
}

.footer-credits-link a {
  color: rgba(255,255,255,.4);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credits-link a:hover { color: var(--accent); }

/* =============================================================
   16. KEYFRAMES
   ============================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =============================================================
   17. RESPONSIVE — TABLET 720px+
   ============================================================= */
@media (min-width: 720px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card {
    border-right: 1px solid var(--line-bold);
    border-bottom: 1px solid var(--line-bold);
  }
  .service-card:nth-child(2n) { border-right: 0; }
  .service-card:nth-last-child(-n+2) { border-bottom: 0; }
  /* Even background alternation on 2-col */
  .service-card:nth-child(even) { background: var(--stone); }
  .service-card:nth-child(odd) { background: var(--bg); }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .process-step:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.12); }
  .process-step:nth-last-child(-n+2) { border-bottom: 0; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* =============================================================
   18. RESPONSIVE — DESKTOP 960px+
   ============================================================= */
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }

  .services-grid { grid-template-columns: 1fr 1fr 1fr; }
  .service-card:nth-child(2n) { border-right: 1px solid var(--line-bold); }
  .service-card:nth-child(3n) { border-right: 0; }
  .service-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-bold); }
  .service-card:nth-last-child(-n+3) { border-bottom: 0; }
  .service-card:nth-child(1), .service-card:nth-child(3), .service-card:nth-child(5) { background: var(--bg); }
  .service-card:nth-child(2), .service-card:nth-child(4), .service-card:nth-child(6) { background: var(--stone); }

  .projects-grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .project-card--wide {
    grid-column: span 2;
  }
  .project-card--wide::before {
    padding-top: 42.86%; /* 600/1400 ≈ 42.86% → 7:3 wide ratio */
  }

  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-step {
    grid-template-columns: 1fr;
    padding-inline: clamp(1.5rem, 3vw, 2.5rem);
  }

  .process-step:nth-child(odd) { border-right: none; }
  .process-step { border-right: 1px solid rgba(255,255,255,.12); }
  .process-step:last-child { border-right: 0; }
  .process-step:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .process-step:nth-last-child(-n+4) { border-bottom: 0; }

  .about-inner { grid-template-columns: 1fr 1fr; align-items: start; }

  .contact-inner { grid-template-columns: 1fr 1fr; align-items: start; }

  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
}

/* =============================================================
   19. RESPONSIVE — LARGE 1280px+
   ============================================================= */
@media (min-width: 1280px) {
  .hero-content { padding-bottom: 2rem; }
}

/* =============================================================
   20. REDUCED MOTION — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .hero-scroll-line { animation: none; }
  /* DO NOT disable: reveals, hovers, transitions — micro-interactions stay */
}

/* Checkbox privacidad */
.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
  font-size: .85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.field-checkbox input[type="checkbox"] {
  margin-top: .2rem;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.field-checkbox a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =============================================================
   21. MOBILE OPTIMIZATIONS — max 719px
   ============================================================= */
@media (max-width: 719px) {
  /* Formulario en columna única */
  .contact-form {
    grid-template-columns: 1fr;
  }
  .field-group--full {
    grid-column: 1;
  }

  /* Campos más grandes para toque fácil */
  .field-input {
    font-size: 1rem;
    padding: 1em 1em;
  }

  /* Botón enviar full width */
  .btn--submit {
    width: 100%;
    justify-content: center;
  }

  /* Email en Nosotros con estilo */
  .about-email {
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid var(--line);
  }
  .about-email a {
    font-size: .9rem;
    font-family: var(--mono);
    color: var(--accent);
    word-break: break-all;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* Botones hero en columna, más compactos */
  .hero-actions {
    flex-direction: column;
    gap: .75rem;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Reducir padding en secciones */
  .section {
    padding-block: clamp(3rem, 8vw, 5rem);
  }
}
