:root {
  --cream: #faf7f4;
  --warm-white: #f5f0eb;
  --peach: #f0e6dc;
  --terracotta: #b5622a;
  --terracotta-light: #c97a42;
  --dark: #1a1612;
  --mid: #4a3f35;
  --muted: #8a7a6e;
  --line: #e0d5cc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: white;
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 60px;
  background: rgb(242, 242, 242);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(181,98,42,0.15);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--dark);
  letter-spacing: 0.02em;
}

.nav-logo em {
  font-style: italic;
  color: var(--terracotta);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--mid);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--terracotta); }

/* HERO */
.hero {
  min-height: 65vh;
  padding-top: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--peach);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(181, 98, 42, 0.07);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(181, 98, 42, 0.05);
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 70px 40px;
  max-width: 780px;
  position: relative;
  z-index: 1;
  animation: fadeUp 1s ease 0.2s forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--terracotta);
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 32px;
}

.hero-headline em {
  font-style: italic;
  color: var(--terracotta-light);
}

.hero-bullets {
  list-style: none;
  margin: 0 0 44px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 580px;
}

.hero-bullets li {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.65;
  text-align: center;
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--terracotta);
  color: white;
  text-decoration: none;
  padding: 14px 32px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1.5px solid var(--terracotta);
  transition: all 0.25s;
  width: fit-content;
}

.hero-cta-secondary:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: white;
}

/* SECTION BASE */
section {
  padding: 100px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
}

.section-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  max-width: 40px;
  background: var(--terracotta);
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

h2 em {
  font-style: italic;
  color: var(--terracotta);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 560px;
  margin-bottom: 60px;
  line-height: 1.8;
}

/* QUE HACEMOS */
#que-hacemos {
  background: rgb(242, 242, 242);
  max-width: 100%;
  padding: 100px 0;
}

#que-hacemos .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

#que-hacemos .inner h2 {
  text-align: center;
}

#que-hacemos .inner .section-lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.pillar {
  background: var(--cream);
  padding: 40px 36px;
  border-top: 3px solid transparent;
  transition: all 0.3s;
}

.pillar:hover {
  border-top-color: var(--terracotta);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

.pillar-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--line);
  line-height: 1;
  margin-bottom: 16px;
  transition: color 0.3s, opacity 0.3s;
}

.pillar:hover .pillar-number {
  color: var(--terracotta);
  opacity: 1;
}

.pillar h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.service-card {
  border: 1px solid var(--line);
  padding: 36px;
  border-radius: 2px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--terracotta);
  transform: scaleY(0);
  transition: transform 0.3s;
  transform-origin: bottom;
}

.service-card:hover { background: var(--warm-white); }
.service-card:hover::before { transform: scaleY(1); }

.service-icon {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.service-list {
  list-style: none;
  margin-bottom: 20px;
}

.service-list li {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.service-list li::before {
  content: '—';
  color: var(--terracotta);
  flex-shrink: 0;
  margin-top: 1px;
}

.service-result {
  font-size: 0.78rem;
  color: var(--terracotta);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* POR QUE */
#por-que {
  background: var(--dark);
  max-width: 100%;
  padding: 100px 0;
  color: white;
}

#por-que .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

#por-que h2 { color: white; }
#por-que .section-lead { color: rgba(255,255,255,0.6); }

.comparativa {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin-top: 60px;
  align-items: start;
}

.comp-col { padding: 40px 36px; }

.comp-sin {
  background: rgba(255,255,255,0.04);
  border-radius: 2px 0 0 2px;
}

.comp-con {
  background: rgba(181,98,42,0.12);
  border-radius: 0 2px 2px 0;
  border: 1px solid rgba(181,98,42,0.25);
}

.comp-header {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.comp-sin .comp-header { color: rgba(255,255,255,0.4); }
.comp-con .comp-header {
  color: var(--terracotta-light);
  border-bottom-color: rgba(181,98,42,0.3);
}

.comp-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comp-list li {
  font-size: 0.88rem;
  line-height: 1.6;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comp-sin .comp-list li { color: rgba(255,255,255,0.45); }
.comp-sin .comp-list li::before {
  content: '✕';
  color: rgba(255,255,255,0.2);
  font-size: 0.7rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.comp-con .comp-list li { color: rgba(255,255,255,0.85); }
.comp-con .comp-list li::before {
  content: '✓';
  color: var(--terracotta-light);
  font-size: 0.75rem;
  margin-top: 2px;
  flex-shrink: 0;
  font-weight: 600;
}

.comp-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 12px;
  align-self: stretch;
}

.comp-divider-line {
  flex: 1;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.comp-divider-icon {
  font-size: 1.2rem;
  color: var(--terracotta-light);
}

.comp-cierre {
  margin-top: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.comp-cierre p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* EXPERIENCIA */
#experiencia {
  padding-top: 100px;
  padding-bottom: 100px;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.exp-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: all 0.3s;
}

.exp-card:hover {
  border-color: var(--terracotta);
  background: var(--warm-white);
}

.exp-company {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}

.exp-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.exp-card p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.exp-impact {
  font-size: 0.78rem;
  color: var(--terracotta);
  font-weight: 500;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* TESTIMONIOS */
#testimonios {
  background: var(--peach);
  max-width: 100%;
  padding: 100px 0;
}

#testimonios .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.testimonio {
  background: var(--cream);
  padding: 40px 32px;
  border-radius: 2px;
  position: relative;
}

.testimonio::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--terracotta);
  opacity: 0.15;
  position: absolute;
  top: 16px; left: 24px;
  line-height: 1;
}

.testimonio-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--dark);
  line-height: 1.7;
  margin-bottom: 24px;
  padding-top: 16px;
}

.testimonio-author {
  font-size: 0.8rem;
  color: var(--mid);
}

.testimonio-author strong {
  display: block;
  color: var(--dark);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 2px;
  font-family: 'DM Sans', sans-serif;
}

/* FOOTER */
footer {
  background: #111;
  padding: 48px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: white;
}

.footer-name em {
  font-style: italic;
  color: var(--terracotta-light);
}

.footer-tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--terracotta-light); }

.linkedin-icon {
  width: 18px; height: 18px;
  fill: currentColor;
}

.footer-copy {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.2);
  width: 100%;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 16px;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Responsive */
@media (max-width: 900px) {
  nav { padding: 18px 24px; }
  .nav-links { display: none; }
  .hero { min-height: 70vh; padding: 90px 24px 60px; }
  .hero-content { padding: 40px 0; }
  .hero-headline { font-size: clamp(2.2rem, 8vw, 3rem); }
  section { padding: 70px 24px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .comparativa { grid-template-columns: 1fr; }
  .comp-divider { flex-direction: row; padding: 16px 0; }
  .comp-divider-line { flex: 1; height: 1px; width: auto; }
  .exp-grid { grid-template-columns: 1fr; }
  .testimonios-grid { grid-template-columns: 1fr; }
  footer { padding: 40px 24px; flex-direction: column; text-align: center; }
  .stats { flex-wrap: wrap; }
  .stat { min-width: 140px; }
  #que-hacemos .inner, #por-que .inner, #testimonios .inner { padding: 0 24px; }
}