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

:root {
  --bg: #0C0C0C;
  --bg-alt: #111110;
  --text: #EDEBE4;
  --text-muted: #6B6960;
  --accent: #C8694A;
  --border: #1E1E1C;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ───────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 8vw;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.nav--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 22px;
  width: auto;
  opacity: 0.85;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

/* ─── ANIMACIONES ────────────────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── HERO ─────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 8vh 8vw 10vh;
  border-bottom: 1px solid var(--border);
}

.hero-logo {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 4rem;
  opacity: 0.9;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 1rem 2.2rem;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── SECCIONES ─────────────────────────────────────── */

.section {
  padding: 10vh 8vw;
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background-color: var(--bg-alt);
}

.container {
  max-width: 1100px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4rem;
}

/* ─── HISTORIA ──────────────────────────────────────── */

.historia-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 6rem;
  align-items: center;
}

.historia-foto img {
  width: 100%;
  display: block;
  filter: grayscale(15%);
  -webkit-mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
}

.prose {
  max-width: 660px;
}

.prose p {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.8rem;
}

.prose-closing {
  font-family: var(--font-display) !important;
  font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
  font-style: italic;
  font-weight: 300 !important;
  line-height: 1.3 !important;
  margin-bottom: 0 !important;
  color: var(--text) !important;
}

/* ─── STATEMENTS ─────────────────────────────────────── */

.statements {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 640px;
}

.statements p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--text);
}

/* ─── CARDS ─────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 6rem;
}

.card {
  padding: 3rem 2.5rem;
  background: var(--bg-alt);
}

.card-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.card-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.card-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
}

.card--full {
  grid-column: 1 / -1;
}

.card-logros {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-logros li {
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.card-logros li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
}

/* ─── TESTIMONIO ─────────────────────────────────────── */

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.testimonial {
  max-width: 100%;
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.testimonial cite {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-left: 2rem;
  font-style: normal;
}

/* ─── CONVICCIONES ──────────────────────────────────── */

.convictions {
  max-width: 860px;
}

.conviction {
  padding: 3.5rem 0;
}

.conviction:first-child {
  padding-top: 0;
}

.conviction:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.conviction p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
}

/* ─── CTA ───────────────────────────────────────────── */

.section-cta {
  background: var(--bg);
  border-bottom: none;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 4rem;
}

.cta-headline em {
  font-style: italic;
  color: var(--accent);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

.contact-link:hover {
  color: var(--text);
}

/* ─── FOOTER ─────────────────────────────────────────── */

.footer {
  padding: 2rem 8vw;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */

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

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

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

  .historia-foto {
    max-width: 320px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 0 6vw 8vh;
  }

  .section {
    padding: 8vh 6vw;
  }

  .footer {
    padding: 2rem 6vw;
  }

  .card {
    padding: 2.5rem 2rem;
  }
}
