/* ═══════════════════════════════════════════════════════════════
   KŌDA — Estudio de Mobiliario y Diseño
   styles.css — Sistema de diseño completo
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garant:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ─────────────────────────────────────────
   CUSTOM PROPERTIES
───────────────────────────────────────── */
:root {
  /* Color system */
  --ink:         #0C0C0B;
  --ink-soft:    #1A1A18;
  --cream:       #F2EDE4;
  --cream-dark:  #E8E1D6;
  --copper:      #B5622A;
  --copper-lt:   #D4845A;
  --copper-glow: rgba(181, 98, 42, 0.25);
  --moss:        #2E4034;
  --moss-dark:   #1E2D23;
  --warm-white:  #FAF8F5;
  --stone:       #8A7F72;
  --stone-lt:    #C4B8A8;

  /* Typography */
  --font-display: 'Cormorant Garant', Georgia, serif;
  --font-body:    'DM Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;
  --space-2xl: 10rem;

  /* Transitions */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:    cubic-bezier(0.64, 0, 0.78, 0);
  --transition: 0.45s var(--ease-out);

  /* Layout */
  --max-w:    1320px;
  --gutter:   clamp(1.25rem, 5vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--warm-white);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

em { font-style: italic; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ─────────────────────────────────────────
   TYPOGRAPHY SCALE
───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3.5rem, 9vw, 8.5rem); }
h2 { font-size: clamp(2.5rem, 5.5vw, 5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }

p { font-size: clamp(0.78rem, 1.1vw, 0.88rem); }

/* ─────────────────────────────────────────
   SCROLL REVEAL ANIMATIONS
───────────────────────────────────────── */
.reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger via CSS custom property set in JS */
.reveal-item:nth-child(1) { transition-delay: 0s; }
.reveal-item:nth-child(2) { transition-delay: 0.1s; }
.reveal-item:nth-child(3) { transition-delay: 0.2s; }
.reveal-item:nth-child(4) { transition-delay: 0.3s; }
.reveal-item:nth-child(5) { transition-delay: 0.4s; }
.reveal-item:nth-child(6) { transition-delay: 0.5s; }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.btn:hover::before { transform: scaleX(1); }

.btn-primary {
  background: var(--copper);
  color: var(--cream);
}

.btn-primary::before {
  background: var(--copper-lt);
}

.btn-primary:hover {
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(242, 237, 228, 0.35);
}

.btn-ghost::before {
  background: rgba(242, 237, 228, 0.1);
}

.btn-ghost:hover {
  border-color: rgba(242, 237, 228, 0.6);
}

.btn-full { width: 100%; justify-content: center; }

.btn-label, .btn-icon { position: relative; z-index: 1; }

.btn-primary .btn-icon { transition: transform 0.3s var(--ease-out); }
.btn-primary:hover .btn-icon { transform: translateX(4px); }

/* ─────────────────────────────────────────
   SECTION SHARED
───────────────────────────────────────── */
section {
  padding: var(--space-xl) var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
}

.section-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.2rem;
  display: block;
}

.section-tag.light { color: var(--copper-lt); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 1.2rem;
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--copper);
}

.section-title.light { color: var(--cream); }
.section-title.light em { color: var(--copper-lt); }

.section-subtitle {
  font-size: 0.82rem;
  color: var(--stone);
  max-width: 38ch;
}

.section-intro {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.6rem var(--gutter);
  transition:
    background 0.5s var(--ease-out),
    padding 0.4s var(--ease-out),
    backdrop-filter 0.5s var(--ease-out);
}

#site-header.scrolled {
  background: rgba(12, 12, 11, 0.88);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  padding: 1rem var(--gutter);
}

.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

.logo-mark {
  color: var(--copper);
  font-size: 1.7rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.7);
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--cream);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.nav-cta {
  background: var(--copper);
  color: var(--cream);
  padding: 0.55rem 1.25rem;
  margin-left: 0.5rem;
  transition: background 0.3s, color 0.3s;
}

.nav-link.nav-cta::after { display: none; }

.nav-link.nav-cta:hover {
  background: var(--copper-lt);
  color: var(--cream);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--cream);
  transition: var(--transition);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink);
  max-width: 100%;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 5% 60%, rgba(46, 64, 52, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 45% 50% at 85% 15%, rgba(181, 98, 42, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse 80% 60% at 50% 90%, rgba(12, 12, 11, 0.9) 0%, transparent 70%),
    var(--ink);
  z-index: 0;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.06;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(7rem, 12vh, 10rem) var(--gutter) clamp(5rem, 8vh, 8rem);
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
}

.hero-text-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-lt);
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 8.5vw, 9.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--cream);
}

.title-line { display: block; }

.title-accent {
  font-style: italic;
  font-weight: 300;
  color: var(--copper-lt);
}

.hero-sub {
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  color: var(--stone-lt);
  line-height: 1.8;
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

/* Hero image */
.hero-image-block {
  display: flex;
  justify-content: flex-end;
}

.hero-image-frame {
  position: relative;
  width: min(100%, 520px);
}

.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: -10px -10px 10px 10px;
  border: 1px solid var(--copper);
  z-index: -1;
  opacity: 0.6;
}

.hero-img {
  width: 100%;
  height: clamp(420px, 70vh, 720px);
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}

.hero-image-badge {
  position: absolute;
  bottom: -1px;
  left: -1px;
  background: var(--copper);
  color: var(--cream);
  padding: 0.8rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.badge-text {
  font-family: var(--font-body);
  font-size: 0.65rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 7rem;
  left: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--copper), transparent);
  animation: scrollPulse 2.2s var(--ease-out) infinite;
}

@keyframes scrollPulse {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

.scroll-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Stat bar */
.hero-stat-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: rgba(46, 64, 52, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(181, 98, 42, 0.2);
  z-index: 2;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 3rem;
  gap: 0.2rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--copper-lt);
  line-height: 1;
}

.stat-lbl {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-lt);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(242, 237, 228, 0.15);
}

/* ─────────────────────────────────────────
   SERVICIOS SECTION
───────────────────────────────────────── */
#servicios {
  background: var(--warm-white);
  max-width: 100%;
  padding-inline: var(--gutter);
}

#servicios > * {
  max-width: var(--max-w);
  margin-inline: auto;
}

#servicios .section-intro {
  max-width: var(--max-w);
  margin-inline: auto;
}

.services-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5px;
  background: var(--cream-dark);
}

/* Wide card spans 2 columns */
.card-wide {
  grid-column: 1 / 3;
  grid-row: 1;
}

.service-card {
  background: var(--ink-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.4s var(--ease-out);
}

.service-card:hover {
  box-shadow:
    0 0 0 1px var(--copper),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 80px var(--copper-glow);
  z-index: 2;
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
}

.card-wide .card-image-wrap {
  height: 360px;
}

.service-card:not(.card-wide) .card-image-wrap {
  height: 240px;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.5s;
  filter: saturate(0.7) brightness(0.9);
}

.service-card:hover .card-image-wrap img {
  transform: scale(1.06);
  filter: saturate(1) brightness(0.95);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 0%, transparent 60%);
  opacity: 0.6;
  transition: opacity 0.4s;
}

.service-card:hover .card-overlay {
  opacity: 0.4;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  flex: 1;
}

.card-tag {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.1;
}

.card-title em {
  font-weight: 300;
  font-style: italic;
  color: var(--copper-lt);
}

.card-desc {
  font-size: 0.77rem;
  color: var(--stone-lt);
  line-height: 1.7;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(242, 237, 228, 0.08);
  margin-top: auto;
}

.card-price {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}

.card-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  transition: gap 0.3s var(--ease-out), color 0.3s;
}

.card-link:hover {
  gap: 0.75rem;
  color: var(--copper-lt);
}

.card-link i {
  transition: transform 0.3s var(--ease-out);
}

.card-link:hover i {
  transform: translateX(3px);
}

/* Accent card — bottom right */
.card-accent {
  background: var(--moss);
  position: relative;
}

.card-accent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--copper);
  z-index: 1;
}

/* ─────────────────────────────────────────
   NOSOTROS SECTION
───────────────────────────────────────── */
#nosotros {
  background: var(--cream);
  max-width: 100%;
  position: relative;
  padding-inline: var(--gutter);
}

#nosotros::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--copper), var(--moss) 60%, transparent);
}

.about-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.about-image-col {
  position: relative;
}

.about-image-wrap {
  position: relative;
  overflow: visible;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  inset: 12px -12px -12px 12px;
  background: var(--cream-dark);
  z-index: 0;
}

.about-image-wrap img {
  position: relative;
  width: 100%;
  height: clamp(480px, 80vh, 720px);
  object-fit: cover;
  z-index: 1;
  filter: saturate(0.85) contrast(1.05);
}

.about-image-accent {
  position: absolute;
  top: 0; right: -12px;
  width: 3px;
  height: 40%;
  background: var(--copper);
  z-index: 2;
}

.about-floating-tag {
  position: absolute;
  bottom: 2.5rem;
  right: -2rem;
  background: var(--ink);
  color: var(--cream);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.about-floating-tag i {
  color: var(--copper);
  font-size: 1.1rem;
}

.about-floating-tag span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-text-col {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-title {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
}

.about-title em {
  font-weight: 300;
  font-style: italic;
  color: var(--copper);
}

.about-body {
  font-size: 0.83rem;
  color: var(--stone);
  line-height: 1.85;
}

.about-quote {
  border-left: 3px solid var(--copper);
  padding: 1rem 1.5rem;
  background: rgba(181, 98, 42, 0.04);
  margin: 0.5rem 0;
}

.about-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.about-quote cite {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--stone);
  text-transform: uppercase;
  font-style: normal;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-dark);
}

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

.astat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--copper);
  line-height: 1;
}

.astat-lbl {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ─────────────────────────────────────────
   TESTIMONIOS SECTION
───────────────────────────────────────── */
#testimonios {
  background: var(--moss-dark);
  max-width: 100%;
  padding-inline: var(--gutter);
  position: relative;
  overflow: hidden;
}

#testimonios::before {
  content: '"';
  position: absolute;
  top: -0.2em;
  left: var(--gutter);
  font-family: var(--font-display);
  font-size: clamp(16rem, 30vw, 28rem);
  font-weight: 700;
  color: var(--copper);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

#testimonios > * {
  max-width: var(--max-w);
  margin-inline: auto;
}

#testimonios .section-intro {
  max-width: var(--max-w);
  margin-inline: auto;
}

.testimonials-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(255,255,255,0.04);
}

.testimonial-card {
  background: rgba(255,255,255,0.04);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition:
    background 0.4s var(--ease-out),
    transform 0.4s var(--ease-out);
  cursor: default;
}

.testimonial-card:hover {
  background: rgba(181, 98, 42, 0.08);
  transform: translateY(-4px);
}

.tcard-quote {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--copper);
  line-height: 0.6;
  height: 2rem;
  opacity: 0.8;
}

.tcard-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
  flex: 1;
}

.tcard-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(242, 237, 228, 0.1);
}

.tcard-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--copper);
  flex-shrink: 0;
}

.tcard-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tcard-info strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
}

.tcard-info span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--stone-lt);
  text-transform: uppercase;
}

/* ─────────────────────────────────────────
   CONTACTO SECTION
───────────────────────────────────────── */
#contacto {
  background: var(--warm-white);
  max-width: 100%;
  padding-inline: var(--gutter);
}

.contact-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.contact-title {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.contact-title em {
  font-weight: 300;
  font-style: italic;
  color: var(--copper);
}

.contact-intro {
  font-size: 0.82rem;
  color: var(--stone);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-details i {
  color: var(--copper);
  font-size: 0.9rem;
  margin-top: 0.15rem;
  width: 16px;
  flex-shrink: 0;
}

.contact-details div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-details strong {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.contact-details span {
  font-size: 0.8rem;
  color: var(--stone);
  line-height: 1.6;
}

.contact-social {
  display: flex;
  gap: 1rem;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--cream-dark);
  color: var(--stone);
  font-size: 0.9rem;
  transition:
    border-color 0.3s,
    color 0.3s,
    background 0.3s;
}

.contact-social a:hover {
  border-color: var(--copper);
  color: var(--copper);
  background: rgba(181, 98, 42, 0.06);
}

/* Form */
.contact-form-wrap {
  background: var(--cream);
  padding: clamp(2rem, 4vw, 3rem);
}

.contact-form-wrap::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--copper);
  margin-bottom: 2rem;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

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

label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink);
  background: var(--warm-white);
  border: 1px solid var(--cream-dark);
  padding: 0.8rem 1rem;
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

input::placeholder,
textarea::placeholder {
  color: var(--stone-lt);
  font-style: italic;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(12, 12, 11, 0.06);
}

/* Validation states */
input.valid, textarea.valid, select.valid {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(46, 64, 52, 0.08);
}

input.error, textarea.error, select.error {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px var(--copper-glow);
}

.field-msg {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  min-height: 1em;
  transition: color 0.3s;
}

.field-msg.error-msg { color: var(--copper); }
.field-msg.ok-msg    { color: var(--moss); }

textarea { resize: vertical; min-height: 120px; }

.select-wrap {
  position: relative;
}

.select-wrap i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--stone);
  font-size: 0.7rem;
  pointer-events: none;
}

/* Submit button */
#contact-form .btn-primary {
  margin-top: 0.5rem;
  background: var(--ink);
  color: var(--cream);
}

#contact-form .btn-primary::before {
  background: var(--copper);
}

#contact-form .btn-primary:hover {
  color: var(--cream);
}

/* Success message */
.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(46, 64, 52, 0.08);
  border-left: 3px solid var(--moss);
  color: var(--moss-dark);
}

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

.form-success i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.form-success p {
  font-size: 0.8rem;
  color: var(--moss-dark);
  line-height: 1.5;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
#site-footer {
  background: var(--ink);
  padding: var(--space-lg) var(--gutter) var(--space-md);
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(242, 237, 228, 0.1);
}

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

.footer-logo { font-size: 1.3rem; }

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--stone);
}

.footer-nav ul {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
  align-items: center;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.3s;
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(242, 237, 228, 0.1);
  color: var(--stone);
  font-size: 0.85rem;
  transition:
    border-color 0.3s,
    color 0.3s;
}

.footer-social a:hover {
  border-color: var(--copper);
  color: var(--copper-lt);
}

.footer-bottom {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(138, 127, 114, 0.5);
  text-transform: uppercase;
}

/* ─────────────────────────────────────────
   RESPONSIVE — TABLET
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-wide {
    grid-column: 1 / 3;
  }

  .about-grid {
    gap: 3rem;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    max-width: 540px;
  }

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

  .footer-social {
    grid-column: 2;
    grid-row: 1;
  }

  .footer-nav {
    grid-column: 1 / 3;
  }

  .footer-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ─────────────────────────────────────────
   RESPONSIVE — MOBILE
───────────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0 0 0 30%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    background: var(--ink);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease-out);
    gap: 0.5rem;
    z-index: 99;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-link {
    font-size: 0.85rem;
    padding: 0.75rem 0;
    color: var(--cream);
  }

  .nav-link.nav-cta {
    margin-left: 0;
    margin-top: 1rem;
    align-self: flex-start;
  }

  /* Hero */
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 8rem;
  }

  .hero-image-block {
    justify-content: center;
    order: -1;
  }

  .hero-img {
    height: 300px;
  }

  .hero-title {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .hero-stat-bar {
    gap: 0;
  }

  .stat-item {
    padding: 1rem 1.25rem;
  }

  .hero-scroll-indicator { display: none; }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .card-wide {
    grid-column: 1;
    grid-row: auto;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-floating-tag {
    right: 0;
    bottom: 1rem;
  }

  .about-image-wrap img {
    height: 380px;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand { align-items: center; }
  .footer-social { justify-content: center; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 4.5rem;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}
