:root {
  --naranja: #f06024;
  --rojo: #e23b12;
  --ink: #25262a;
  --ink-soft: #5b5e64;
  --paper: #fff;
  --cream: #f7f4f0;
  --line: #ece7e1;
  --max: 1160px;
  --r: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.kicker {
  color: var(--naranja);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .72rem;
}
h1, h2 { line-height: 1.12; letter-spacing: -.03em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: linear-gradient(135deg, var(--naranja), var(--rojo));
  color: #fff; text-decoration: none; font-weight: 700; border-radius: 999px;
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }


.site-header {
  position: sticky; top: 0; z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 20px;
}
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 6px; font-size: .9rem; font-weight: 600; }
.nav a {
  text-decoration: none; color: #4a4a49;
  padding: 8px 16px; border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover {
  background: color-mix(in srgb, var(--naranja) 16%, #fff);
  color: var(--rojo);
}

.hero {
  display: grid; grid-template-columns: 1.05fr .95fr;
  min-height: min(78vh, 680px);
  background: var(--ink); color: #fff;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px;
  background: var(--naranja);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px 8%; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); margin: 14px 0 16px; }
.hero p { color: #d4d2cd; font-size: 1.08rem; max-width: 40ch; }
.hero .chips { margin-top: 28px; color: #b8b5b0; letter-spacing: .04em; }
.hero-media { overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }

.seccion { padding: 80px 0; border-top: 1px solid var(--line); }
.seccion.cream { background: var(--cream); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img {
  width: 100%; height: 360px; object-fit: cover;
  border-radius: var(--r);
}
.split h2 { font-size: clamp(1.6rem, 2.4vw, 2.25rem); margin: 10px 0 14px; }
.tag {
  display: inline-block;
  background: color-mix(in srgb, var(--naranja) 14%, #fff);
  color: var(--rojo);
  font-size: .68rem; font-weight: 800; letter-spacing: .1em;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 8px;
}
.lista { margin-top: 16px; }
.lista li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-bottom: 1px solid var(--line);
}
.lista li:last-child { border-bottom: 0; }
.lista li::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  position: absolute; left: 0; top: 15px;
  background: #ffb56a;
  animation: dotRise 2.2s linear infinite;
}
.lista li:nth-child(4n+1)::before { animation-delay: 0s; }
.lista li:nth-child(4n+2)::before { animation-delay: -.55s; }
.lista li:nth-child(4n+3)::before { animation-delay: -1.1s; }
.lista li:nth-child(4n+4)::before { animation-delay: -1.65s; }
@keyframes dotRise {
  0%, 24.9% { background: #ffb56a; }
  25%, 49.9% { background: #f47a2a; }
  50%, 74.9% { background: #ef4823; }
  75%, 100% { background: #c41e0a; }
}

.cta { padding: 72px 0; background: var(--cream); border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 10px 0 16px; }
.cta-grid { display: grid; grid-template-columns: 1fr .7fr; gap: 32px; align-items: center; }
.cta-grid img { width: 100%; height: 280px; object-fit: cover; border-radius: var(--r); }

.site-footer {
  color: #fff;
  background: #1a1a1a url("../img/footer-fondo.webp") center/cover no-repeat;
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,18,18,.72), rgba(10,10,10,.88));
}
.site-footer .wrap, .site-footer .pie { position: relative; z-index: 1; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px;
  padding: 64px 0 36px;
}
.site-footer h3 { margin-bottom: 16px; font-size: 1.1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--naranja); }
.site-footer p, .site-footer li { color: #d7d4cf; font-size: .95rem; }
.site-footer li { padding: 5px 0; }
.pie {
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; padding: 16px 0 22px;
  font-size: .78rem; color: #b9b6b1;
}
.credit { display: inline-flex; align-items: center; gap: 8px; color: #cfcbc5; text-decoration: none; }
.credit img { height: 22px; width: auto; opacity: 1; }
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  background: #25d366; color: #fff; text-decoration: none;
  width: 58px; height: 58px; padding: 0; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

@media (max-width: 900px) {
  .hero, .split, .cta-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero::before { display: none; }
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: calc(100% + 1px);
    background: #fff; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 10px 8px 14px;
    border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 18px 40px rgba(37,38,42,.12);
    z-index: 40;
  }
  .nav.open { display: flex; }
  .nav a { display: block; }
}


.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 18px;
}
.card strong { display: block; margin-bottom: 8px; }
.pasos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 28px 0; }
.paso {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 10px; text-align: center; font-weight: 700; font-size: .9rem;
}
.paso span {
  display: block; color: var(--naranja); font-size: 1.15rem; margin-bottom: 4px;
}

.hero-media { overflow: hidden; position: relative; }
.hero-media img {
  width: 100%; height: 100%; min-height: 340px; object-fit: cover;
  transform: scale(1.12);
  will-change: transform;
}

.reveal {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .75s ease, transform .85s cubic-bezier(.2,.75,.2,1);
}
.reveal.from-left { transform: translateX(-40px); }
.reveal.in { opacity: 1; transform: none; }

.wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 58px; height: 58px; padding: 0; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.wa svg, .wa img { width: 30px; height: 30px; display: block; border: 0; }
.wa:hover { transform: scale(1.06); }

.contacto-linea { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.contacto-linea svg { flex: 0 0 18px; margin-top: 3px; opacity: .9; }

@media (max-width: 900px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .header-bar { min-height: 64px; }
  .brand img { height: 34px; }
  .hero { min-height: auto; }
  .hero-copy { padding: 40px 22px 28px; }
  .hero h1 { font-size: 1.85rem; }
  .hero-media img { min-height: 240px; max-height: 280px; }
  .seccion { padding: 52px 0; }
  .split img, .cta-grid img { height: 240px; }
  .grid-4, .pasos { grid-template-columns: 1fr 1fr; }
  .reveal, .reveal.from-left { transform: translateX(18px); }
  .reveal.in { transform: none; }
  .pie { justify-content: center; text-align: center; }
  .wa { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}
@media (max-width: 560px) {
  .grid-4, .pasos { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.from-left { opacity: 1; transform: none; }
  .hero-media img { transform: none !important; }
  .lista li::before { animation: none; background: var(--naranja); }
}

.card {
  position: relative;
  padding: 26px 22px 22px;
  box-shadow: 0 10px 28px rgba(37,38,42,.08);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.card.reveal { transition-delay: var(--d, 0s); }
.card.reveal.in, .card:hover { transition-delay: 0s; }
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 40px rgba(37,38,42,.14);
}
.card-num {
  display: block;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  color: var(--naranja); margin-bottom: 14px;
}
.card-ico {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--naranja) 12%, #fff);
  color: var(--rojo);
}
.card-ico svg { width: 22px; height: 22px; }
.card strong { font-size: 1.12rem; }
.cierre-vision {
  margin-top: 28px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span {
  font-size: .62rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
  color: #f3c09a; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.menu-btn {
  display: none; width: 42px; height: 42px; border: 0; background: none;
  padding: 9px 8px; cursor: pointer;
}
.menu-btn span {
  display: block; height: 2px; background: var(--ink); margin: 6px 0; border-radius: 2px;
}
.site-header { position: sticky; }
.header-bar { position: relative; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
}

.foto {
  position: relative;
  display: block;
}
.foto-clip {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--r);
  box-shadow: 0 12px 28px rgba(37, 38, 42, .16);
}
.foto-clip img {
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
}


.pasos { position: relative; }
.paso-track {
  position: absolute;
  left: 8%; right: 8%;
  top: 28px;
  height: 3px;
  background: var(--line);
  border-radius: 99px;
  z-index: 0;
  pointer-events: none;
}
.paso-track::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, #ffb56a, var(--naranja), var(--rojo));
  border-radius: inherit;
  animation: pasoFill 4.8s ease-in-out infinite;
}
.paso-dot {
  position: absolute;
  top: 50%; left: 0;
  width: 12px; height: 12px;
  margin: 0;
  background: var(--naranja);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--naranja) 22%, #fff);
  animation: pasoDot 4.8s ease-in-out infinite;
}
.paso { position: relative; z-index: 1; box-shadow: 0 8px 20px rgba(37,38,42,.07); }
.cta-btn { text-align: center; margin-top: 8px; }
@keyframes pasoFill {
  0% { width: 0; }
  80%, 100% { width: 100%; }
}
@keyframes pasoDot {
  0% { left: 0; }
  80%, 100% { left: 100%; }
}
@media (max-width: 900px) {
  .paso-track { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .paso-track::before, .paso-dot { animation: none; }
  .paso-track::before { width: 100%; }
  .paso-dot { left: 100%; }
}

.foto-sombra { display: none !important; }

.hero-copy, .split > div:not(.foto), .cta .wrap {
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy, .split > div:not(.foto), .cta .wrap { transform: none !important; }
}

.hero-copy .kicker, .hero-copy h1, .hero-copy p {
  will-change: transform;
}
