/* ============================================
   Javier Toledo — Personal Brand
   Brand tokens + shared component system
   ============================================ */

:root {
  /* Brand palette */
  --navy:        #1B2632;
  --navy-deep:   #131C26;
  --accent:      #F0A050;
  --accent-soft: #F5C28A;
  --cream:       #F2EDE4;
  --warm-white:  #F9F6F1;
  --oatmeal:     #C9C1B1;
  --graphite:    #2C2C2C;
  --terra:       #A35139;
  --muted:       #6E6A60;
  --border:      rgba(28, 36, 50, 0.10);
  --border-dark: rgba(255, 255, 255, 0.10);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Type scale */
  --t-eyebrow: 0.75rem;
  --t-body:    1.0625rem;
  --t-lead:    1.25rem;
  --t-h3:      clamp(1.5rem, 2vw + 0.5rem, 2rem);
  --t-h2:      clamp(2rem, 3vw + 0.5rem, 3.5rem);
  --t-display: clamp(2.75rem, 6vw + 1rem, 6.5rem);
  --t-mega:    clamp(3.5rem, 9vw + 1rem, 9rem);

  /* Spacing */
  --space-section: clamp(5rem, 10vw, 9rem);
  --space-gutter:  clamp(1.25rem, 3vw, 2.5rem);

  /* Radius */
  --r-pill: 999px;
  --r-md: 14px;
  --r-lg: 22px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--cream);
  text-wrap: pretty;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--navy); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================
   Layout primitives
   ============================================ */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--space-gutter);
}

.container-wide {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: var(--space-gutter);
}

section { position: relative; }

.section {
  padding-block: var(--space-section);
}

.section-dark {
  background: var(--navy);
  color: var(--warm-white);
}

.section-cream {
  background: var(--cream);
  color: var(--graphite);
}

/* ============================================
   Typography helpers
   ============================================ */
.eyebrow {
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.eyebrow-muted { color: var(--muted); }
.section-dark .eyebrow-muted { color: var(--oatmeal); }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.02em; font-weight: 600; }
p  { margin: 0; }

.display {
  font-size: var(--t-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.mega {
  font-size: var(--t-mega);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.accent-text { color: var(--accent); }
.muted-text { color: var(--muted); }
.section-dark .muted-text { color: var(--oatmeal); }

.lead {
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  max-width: 38ch;
}
.section-dark .lead { color: rgba(249, 246, 241, 0.72); }

/* ============================================
   Buttons (pill)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.65rem;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.4s var(--ease-out), background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--navy);
}
.btn-primary:hover {
  background: #FFB266;
  box-shadow: 0 12px 30px -10px rgba(240, 160, 80, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--warm-white);
  border-color: rgba(249, 246, 241, 0.35);
}
.btn-outline:hover {
  background: rgba(249, 246, 241, 0.08);
  border-color: var(--warm-white);
}

.btn-dark {
  background: var(--navy);
  color: var(--warm-white);
}
.btn-dark:hover {
  background: var(--navy-deep);
  box-shadow: 0 14px 28px -12px rgba(27, 38, 50, 0.4);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--graphite);
  border-color: rgba(28, 36, 50, 0.18);
}
.btn-ghost-dark:hover {
  background: var(--warm-white);
  border-color: var(--graphite);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================
   Navbar — barra completa en crema (#F2EDE4, token --cream)
   Mismo tono que el fondo del logo
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.85rem 0;
  background-color: var(--cream);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s ease, box-shadow 0.4s ease;
}

.nav.is-scrolled {
  background-color: var(--cream);
  padding: 0.65rem 0;
  box-shadow: 0 4px 24px rgba(27, 38, 50, 0.06);
}

.nav.is-solid {
  background-color: var(--cream);
}

/* Toda la franja (logo + enlaces + CTA) comparte el mismo fondo */
.nav .container,
.nav .nav-inner,
.nav .nav-links,
.nav .nav-links li,
.nav .nav-logo {
  background-color: var(--cream);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--graphite);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.nav-logo-img {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: min(12.5rem, 48vw);
}

.nav-logo .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-pill);
  color: var(--muted);
  transition: color 0.2s ease, background 0.25s ease;
}

.nav-links a:hover {
  color: var(--navy);
  background: rgba(27, 38, 50, 0.04);
}

.nav-links a.active {
  color: var(--navy);
  font-weight: 600;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0.3rem;
  left: 0.95rem;
  right: 0.95rem;
  height: 1px;
  background: var(--accent);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--warm-white);
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 1.1rem;
  height: 1px;
  background: var(--navy);
  position: relative;
  display: inline-block;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--navy);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--warm-white);
  padding-block: 9rem 6rem;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 50% 20%, rgba(240, 160, 80, 0.18), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(240, 160, 80, 0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 700px 500px at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 700px 500px at center, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Hero inicio — foto (35%) + velo azul noche encima (60%) */
.hero--trabajo .hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('images/toledo-trabajo.png');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.hero--trabajo .hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

.hero--trabajo::before,
.hero--trabajo::after {
  z-index: 2;
}

.hero--trabajo .hero-inner,
.hero--trabajo .hero-scroll-hint {
  z-index: 3;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  padding-inline: var(--space-gutter);
}

.hero-eyebrow {
  margin-bottom: 2.5rem;
  color: var(--accent);
  justify-content: center;
}

.hero h1.display {
  margin-bottom: 1.75rem;
  line-height: 1.12;
}

.hero h1.display .line {
  display: block;
  overflow: hidden;
  padding-block: 0.08em 0.22em;
  margin-block: -0.06em -0.04em;
}

.hero h1.display .line-inner {
  display: inline-block;
  padding-bottom: 0.04em;
}

.hero p.hero-sub {
  font-size: clamp(1.05rem, 1.3vw + 0.5rem, 1.35rem);
  line-height: 1.5;
  color: rgba(249, 246, 241, 0.7);
  max-width: 58ch;
  margin: 0 auto 3rem;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(249, 246, 241, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1;
}
.hero-scroll-hint::after {
  content: "";
  width: 1px;
  height: 1.75rem;
  background: rgba(249, 246, 241, 0.4);
  display: inline-block;
  animation: scrollHint 2.4s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes scrollHint {
  0%   { transform: scaleY(0); }
  40%  { transform: scaleY(1); transform-origin: top; }
  41%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Page hero (smaller, for inner pages) */
.page-hero {
  min-height: 70vh;
  padding-block: 9rem 5rem;
}

.page-hero--office .page-hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('images/foto-oficina.png');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.page-hero--about .page-hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('images/sobre mi foto.png.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.page-hero--office::before,
.page-hero--office::after,
.page-hero--about::before,
.page-hero--about::after {
  z-index: 1;
}

.page-hero--office .hero-inner,
.page-hero--about .hero-inner {
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  font-size: clamp(3.5rem, 9vw + 1rem, 8.5rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  font-weight: 700;
}
.page-hero .page-hero-sub {
  margin-top: 2rem;
  max-width: 56ch;
  margin-inline: auto;
  color: rgba(249, 246, 241, 0.7);
  font-size: 1.15rem;
  line-height: 1.55;
}

/* ============================================
   Value cards (3 stat-style cards)
   ============================================ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.value-card {
  background: var(--warm-white);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem 2.25rem;
  position: relative;
  border-left: 3px solid var(--accent);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(27, 38, 50, 0.25);
}

.value-card .num {
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--terra);
  display: block;
  margin-bottom: 1.25rem;
}

.value-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.value-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* ============================================
   Services preview (dark stacked text)
   ============================================ */
.services-preview {
  position: relative;
  overflow: hidden;
  text-align: left;
}

.services-preview-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.65;
  pointer-events: none;
  overflow: hidden;
}

.services-preview .container {
  position: relative;
  z-index: 1;
}

/* n8n-style flow canvas (background layer) */
.flow-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flow-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(249, 246, 241, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.flow-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flow-bg-line {
  fill: none;
  stroke: rgba(249, 246, 241, 0.1);
  stroke-width: 1.5;
  transition: stroke 0.35s ease, stroke-dashoffset 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-bg-line.is-active {
  stroke: rgba(240, 160, 80, 0.55);
}

.flow-bg-pulse {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px rgba(240, 160, 80, 0.65));
  opacity: 0;
}

.flow-bg-glow {
  fill: rgba(240, 160, 80, 0.22);
  opacity: 0;
  filter: blur(2px);
}

.flow-bg-nodes {
  position: absolute;
  inset: 0;
}

.flow-bg-node {
  position: absolute;
  background: rgba(249, 246, 241, 0.06);
  border: 1px solid rgba(249, 246, 241, 0.14);
  border-radius: 3px;
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.flow-bg-node.is-active {
  border-color: rgba(240, 160, 80, 0.5);
  background: rgba(240, 160, 80, 0.12);
  box-shadow: 0 0 12px rgba(240, 160, 80, 0.15);
}

.services-preview .stacked-words {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  margin-block: 1rem 3rem;
}

.services-preview .stacked-words .line-inner {
  font-size: var(--t-mega);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.94;
  color: var(--warm-white);
  position: relative;
}

.services-preview .stacked-words > .reveal-line:nth-child(2) .line-inner {
  color: var(--accent);
}

.services-preview .stacked-words > .reveal-line:nth-child(3) .line-inner {
  color: rgba(249, 246, 241, 0.25);
}

.services-preview .stacked-words span.dot::after {
  content: ".";
  color: var(--accent);
}

.services-preview-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 4rem;
  align-items: end;
}

.services-preview-row .end {
  padding-bottom: 1rem;
}

/* ============================================
   Services list (services.html) — tarjetas
   ============================================ */
.services-section {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem 1.85rem;
  box-shadow: 0 18px 40px -32px rgba(27, 38, 50, 0.22);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 48px -28px rgba(27, 38, 50, 0.28);
}

.service-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.35rem;
  border-radius: 1rem;
  background: rgba(163, 81, 57, 0.08);
  color: var(--terra);
}

.service-card-tag {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.service-card-title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 1.5vw + 0.6rem, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
}

.service-card-desc {
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
  flex-grow: 1;
}

.service-card-list {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--graphite);
}

.service-card-list li::before {
  content: "";
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Legacy includes (otras páginas si las usan) */
.includes-card {
  background: var(--warm-white);
  border-radius: var(--r-lg);
  border-left: 3px solid var(--accent);
  padding: 2.25rem 2.25rem 2rem;
}

.includes-card .includes-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: block;
}

.includes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.includes-list li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--graphite);
}

.includes-list li::before {
  content: "→";
  color: var(--accent);
  font-weight: 600;
  line-height: 1.5;
  font-size: 1rem;
}

/* ============================================
   About — split bio + monogram card
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr minmax(0, 33rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-bio h2 {
  font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.028em;
  font-weight: 700;
}

.about-bio .bio-text {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--graphite);
  max-width: 50ch;
}

.about-bio .bio-text strong { color: var(--navy); font-weight: 600; }

.about-meta {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.about-meta dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.about-meta dd {
  margin: 0;
  font-size: 1rem;
  color: var(--graphite);
  line-height: 1.45;
}

.monogram-card {
  background: var(--navy);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 33rem;
  aspect-ratio: 4 / 5;
  min-height: 0;
  color: var(--warm-white);
  padding: 1.875rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  justify-self: end;
}

.monogram-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(19, 28, 38, 0.72) 0%, rgba(19, 28, 38, 0.08) 28%, rgba(19, 28, 38, 0.08) 62%, rgba(19, 28, 38, 0.88) 100%),
    radial-gradient(500px 400px at 80% 20%, rgba(240, 160, 80, 0.18), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.monogram-card .monogram-head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.monogram-card .badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(249, 246, 241, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.monogram-card .badge .live {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 160, 80, 0.18);
}

.monogram-card .monogram-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  border-radius: inherit;
  overflow: hidden;
}

.monogram-card .monogram-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.monogram-card .signature {
  position: relative;
  z-index: 2;
  margin-top: auto;
  font-size: 0.85rem;
  color: rgba(249, 246, 241, 0.55);
  letter-spacing: -0.005em;
}
.monogram-card .signature strong {
  color: var(--warm-white);
  font-weight: 600;
}

/* ============================================
   Contact — split info + form
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.028em;
  font-weight: 700;
}

.contact-info .lead {
  margin-bottom: 2.5rem;
  color: var(--muted);
  max-width: 36ch;
}

.contact-channels {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-channels li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--border);
  align-items: center;
}
.contact-channels li:last-child { border-bottom: 1px solid var(--border); }

.contact-channels .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-channels .val {
  font-size: 1.02rem;
  color: var(--graphite);
  font-weight: 500;
}
.contact-channels .val a:hover { color: var(--accent); }

.contact-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--warm-white);
  padding: 0.6rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
}
.contact-availability .live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #44A574;
  box-shadow: 0 0 0 4px rgba(68, 165, 116, 0.18);
}

/* Form */
.contact-form {
  background: var(--warm-white);
  border-radius: var(--r-lg);
  border-left: 3px solid var(--accent);
  padding: clamp(2rem, 3vw, 2.75rem);
  position: relative;
}

.form-grid {
  display: grid;
  gap: 1.4rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  font: inherit;
  font-size: 1.02rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid transparent;
  color: var(--graphite);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--warm-white);
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.contact-form .submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.contact-form .form-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-form .success {
  position: absolute;
  inset: 0;
  background: var(--warm-white);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.contact-form .success.is-shown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.contact-form .success .check {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.contact-form .success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.contact-form .success p {
  color: var(--muted);
  max-width: 32ch;
}

/* ============================================
   Final CTA
   ============================================ */
.final-cta {
  text-align: center;
  padding-block: clamp(6rem, 12vw, 11rem);
}

.final-cta h2 {
  font-size: var(--t-mega);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.94;
  margin-bottom: 2.5rem;
}

.final-cta h2 .accent-text { font-style: italic; font-weight: 700; }

.final-cta .ctas {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: rgba(249, 246, 241, 0.6);
  padding-block: 3.5rem 2rem;
  font-size: 0.92rem;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/doble pantalla.png") center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.footer > .container {
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
}

.footer h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(249, 246, 241, 0.4);
  margin-bottom: 1.25rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  margin-bottom: 0.85rem;
}

.footer-brand-logo {
  display: block;
  height: 5.0625rem;
  width: auto;
  max-width: min(28.125rem, 85vw);
}

.footer-brand-block p {
  max-width: 30ch;
  line-height: 1.55;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-list a {
  color: rgba(249, 246, 241, 0.65);
  transition: color 0.2s ease;
}
.footer-list a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(249, 246, 241, 0.4);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   Reveal animation (expressive motion)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.9s var(--ease-out),
      transform 0.9s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-line .line-inner {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .reveal-line.is-visible .line-inner { transform: translateY(0); }
}

/* ============================================
   Parallax hero accent (subtle)
   ============================================ */
.parallax-y {
  will-change: transform;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .services-preview-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .services-preview-row .end { padding-bottom: 0; }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .monogram-card { max-width: none; aspect-ratio: 4 / 5; justify-self: stretch; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand-block { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    max-width: 36rem;
    margin-inline: auto;
  }
}

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

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav.is-mobile-open {
    background: var(--cream);
  }
  .nav.is-mobile-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 1.5rem 1.75rem;
    background: var(--cream);
    border-top: 1px solid var(--border);
  }
  .nav.is-mobile-open .nav-links a {
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
  }
  .nav.is-mobile-open .nav-cta {
    display: inline-flex;
    margin-top: 0.5rem;
    align-self: flex-start;
  }
  .nav-links a.active::after { display: none; }

  .hero { min-height: 92vh; padding-block: 7rem 5rem; }
  .hero-scroll-hint { display: none; }
  .page-hero { min-height: 56vh; padding-block: 7rem 3.5rem; }

  .contact-channels li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .about-meta { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 400px) {
  :root {
    --space-gutter: 1.1rem;
  }
  .hero h1.display { font-size: clamp(2.5rem, 12vw, 3.5rem); }
  .value-card { padding: 2rem 1.5rem 1.75rem; }
  .monogram-card { padding: 1.75rem; }
  .contact-form { padding: 1.75rem; }
}
