/* ==========================================================================
   ETSA — Reciclaje de cable con forro
   Sistema visual: navy + verde de marca, tipografía industrial, fotos reales
   como elemento dominante. Sin tarjetas de ícono, sin hero degradado+centrado.
   ========================================================================== */

:root {
  --navy: #1F3B73;
  --navy-dark: #142850;
  --navy-deeper: #0d1b38;
  --green: #4CAF3C;
  --green-dark: #398a2d;
  --paper: #F5F3EE;
  --paper-dim: #EAE6DC;
  --ink: #17191c;
  --ink-soft: #4a4d52;
  --white: #ffffff;
  --line: rgba(23, 25, 28, 0.12);
  --line-on-navy: rgba(255, 255, 255, 0.18);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.05;
}

p { margin: 0; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 2px;
  background: var(--green);
  display: inline-block;
}
.on-dark .eyebrow { color: #9fe08f; }
.on-dark .eyebrow::before { background: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 1.6em;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  color: var(--navy-deeper);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--line-on-navy);
}
.btn-outline:hover { border-color: var(--white); }

.btn-arrow::after {
  content: "→";
  transition: transform 0.15s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  border-bottom: 1px solid var(--line-on-navy);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand img { height: 46px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 400;
  font-size: 0.72rem;
  color: #b9c3d9;
  letter-spacing: 0.01em;
}
.header-cta { font-size: 0.85rem; padding: 0.8em 1.3em; }
.header-cta-mobile-hide {}

/* ==========================================================================
   Hero — panel dividido, sin degradado oscuro centrado
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.hero-copy {
  padding: 2.6rem var(--gutter) 2.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
  position: relative;
  z-index: 2;
}
@media (min-width: 900px) {
  .hero-copy { padding: 4.5rem clamp(2rem, 5vw, 4.5rem) 4.5rem var(--gutter); }
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.2;
  color: var(--white);
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--green);
}

.hero-sub {
  font-size: 1.08rem;
  color: #d3d9e6;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1.6rem 1.8rem;
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-on-navy);
}
.hero-stat dt,
.hero-stat dd {
  margin: 0;
}
.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  color: var(--green);
  line-height: 1;
  white-space: nowrap;
}
.hero-stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #aab4c9;
  letter-spacing: 0.02em;
  max-width: 14ch;
}

.hero-photo {
  position: relative;
  min-height: 260px;
}
@media (min-width: 900px) {
  .hero-photo {
    min-height: 320px;
    max-height: min(640px, 75vh);
  }
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 26, 51, 0.55) 0%, rgba(15, 26, 51, 0.05) 38%);
  pointer-events: none;
}
@media (min-width: 900px) {
  .hero-photo::after {
    background: linear-gradient(90deg, rgba(15, 26, 51, 0.85) 0%, rgba(15, 26, 51, 0) 22%);
  }
}
.hero-photo figcaption {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  background: rgba(13, 27, 56, 0.55);
  padding: 0.3em 0.6em;
  z-index: 2;
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
section { padding: 4.5rem 0; }
.section-tight { padding: 3.5rem 0; }

.section-head {
  max-width: 62ch;
  margin-bottom: 2.4rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-top: 0.5rem;
  color: var(--navy);
}
.section-head.on-dark h2 { color: var(--white); }

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-top: 0.9rem;
  max-width: 58ch;
}
.on-dark .lede { color: #c7cfe0; }

/* ==========================================================================
   El problema
   ========================================================================== */
.problem {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.problem-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  justify-items: center;
}
@media (min-width: 860px) {
  .problem-grid { grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; justify-items: stretch; }
}
.problem-figure {
  width: 100%;
  max-width: 320px;
  justify-self: center;
}
@media (min-width: 860px) {
  .problem-figure { justify-self: start; }
}
.problem-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  filter: drop-shadow(0 16px 26px rgba(31, 59, 115, 0.22));
}
.problem-figure figcaption {
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
.problem-figure figcaption strong { color: var(--navy); }

.problem-copy h2 {
  color: var(--navy);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
}
.problem-copy p {
  margin-top: 1.1rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 52ch;
}
.problem-copy p + p { margin-top: 0.9rem; }

/* ==========================================================================
   Cómo lo resolvemos — triptico de fotos reales
   ========================================================================== */
.process-photos { background: var(--paper); }

.triptych {
  display: grid;
  gap: 1.6rem;
}
@media (min-width: 760px) {
  .triptych { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
}

.triptych-item {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
}
.triptych-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.triptych-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.triptych-label {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  padding: 0.9rem 1.1rem 1.1rem;
}
.triptych-label b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--green-dark);
  line-height: 1;
}
.triptych-label span {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.triptych-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
@media (min-width: 760px) {
  .triptych { grid-template-columns: 1fr auto 1fr auto 1fr; }
  .triptych-arrow {
    display: flex;
    padding-bottom: 2.6rem;
  }
  .triptych-arrow svg { width: 40px; height: 40px; }
}

.process-note {
  margin-top: 2.2rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 60ch;
}
.process-note strong { color: var(--navy); }

/* ==========================================================================
   Los 4 pasos — numeración grande, sin tarjetas genéricas
   ========================================================================== */
.steps { background: var(--navy); color: var(--white); }
.steps .section-head { max-width: 44ch; }

.steps-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-on-navy);
}
@media (min-width: 760px) {
  .steps-list { grid-template-columns: repeat(4, 1fr); border-top: none; }
}

.step {
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line-on-navy);
  display: flex;
  gap: 1.2rem;
}
@media (min-width: 760px) {
  .step {
    flex-direction: column;
    gap: 0.6rem;
    padding: 0 1.6rem 0 0;
    border-bottom: none;
    border-left: 1px solid var(--line-on-navy);
    padding-left: 1.6rem;
  }
  .step:first-child { border-left: none; padding-left: 0; }
}

.step-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--green);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2ch;
}
.step-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--green);
}
.step-body h3 {
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.step-body p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #b9c3d9;
  font-family: var(--font-body);
  text-transform: none;
}

/* ==========================================================================
   Resultados medibles — cifras grandes
   ========================================================================== */
.results { background: var(--paper); }
.results-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 760px) {
  .results-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.result-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.2rem 1.8rem;
  text-align: left;
}
.result-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: var(--navy);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.15em;
}
.result-num .unit { font-size: 0.42em; color: var(--green-dark); }
.result-label {
  margin-top: 0.8rem;
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 26ch;
}
.result-card--accent { background: var(--green); }
.result-card--accent .result-num,
.result-card--accent .result-num .unit { color: var(--navy-deeper); }
.result-card--accent .result-label { color: var(--navy-deeper); }

/* ==========================================================================
   Por qué elegirnos — lista tipo ficha técnica + foto real como separador
   ========================================================================== */
.why { background: var(--white); border-top: 1px solid var(--line); }
.why-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .why-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.why-item {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.why-item-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.why-item-icon {
  width: 24px;
  height: 24px;
  color: var(--green);
}
.why-item-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--green-dark);
  line-height: 1;
}
.why-item h3 {
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.why-item p {
  margin-top: 0.5rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
  text-transform: none;
  font-family: var(--font-body);
}

.why-photo {
  position: relative;
}
.why-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.why-photo figcaption {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Dirigido a
   ========================================================================== */
.audience { background: var(--navy-deeper); color: var(--white); }
.audience-grid {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
@media (min-width: 700px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1050px) {
  .audience-grid { grid-template-columns: repeat(4, 1fr); }
}
.audience-item {
  background: var(--navy);
  padding: 2rem 1.7rem;
}
.audience-item b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green);
}
.audience-item p {
  margin-top: 0.8rem;
  font-size: 1.08rem;
  color: #d3d9e6;
  text-transform: none;
  font-family: var(--font-body);
}

/* ==========================================================================
   CTA final + contacto
   ========================================================================== */
.cta-final { background: var(--green); color: var(--navy-deeper); }
.cta-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 860px) {
  .cta-grid { grid-template-columns: 1.2fr 1fr; align-items: end; }
}
.cta-final h2 {
  color: var(--navy-deeper);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  max-width: 16ch;
}
.cta-final .lede { color: rgba(13,27,56,0.75); }
.cta-final .btn-primary {
  background: var(--navy-deeper);
  border-color: var(--navy-deeper);
  color: var(--white);
  margin-top: 1.6rem;
}
.cta-final .btn-primary:hover { background: var(--navy); border-color: var(--navy); }

.contact-block {
  border-top: 2px solid rgba(13,27,56,0.25);
  padding-top: 1.6rem;
  display: grid;
  gap: 1.1rem;
}
.contact-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.6rem;
  font-size: 0.98rem;
}
.contact-row dt {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(13,27,56,0.65);
}
.contact-row dd {
  margin: 0;
  font-weight: 600;
}
.contact-row a { text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-deeper);
  color: #8b97b3;
  padding: 2.4rem 0;
  font-size: 0.85rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-brand img { height: 30px; width: auto; opacity: 0.9; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: #aab4c9; }
.footer-links a:hover { color: var(--white); }
.footer-fine { margin-top: 1.4rem; color: #5c6785; font-size: 0.78rem; }

/* ==========================================================================
   Utilities
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem 0.8rem; }
  .hero-stat-label { max-width: none; }
  .contact-row { grid-template-columns: 6rem 1fr; }
  .brand-name small { display: none; }
  .brand-name { font-size: 1.02rem; }
  .brand img { height: 38px; }
  .header-cta { font-size: 0.72rem; padding: 0.7em 1em; }
}
