/* ==========================================================================
   Comercial Astorga — versión alternativa
   Fotografía protagonista, bordes rectos, shaders de puntos y rutas en mapa.
   ========================================================================== */

@font-face {
  font-family: Outfit;
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --ink: #f5f5f3;
  --muted: rgba(245, 245, 243, .66);
  --dim: rgba(245, 245, 243, .42);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --wine: #9c182b;
  --wine-2: #c32440;
  --green: #64a936;
  --green-2: #86c95a;
  --amb: #e3b161;
  --ref: #6fc0f2;
  --con: #a9b8ff;
  --paper: #f1eee8;
  --paper-2: #e7e2d9;
  --paper-ink: #151515;
  --paper-muted: #4f4b46;
  --max: 1240px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Outfit, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p, figure, blockquote { margin: 0; }
svg { flex: none; }
svg use, .ico, .ico-lg, .cat-ico, .temps svg, .ci-ico svg, .ci-go {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter;
}
svg.fill, svg.fill path { fill: currentColor; stroke: none; }
.ico { width: 18px; height: 18px; }
.ico-lg { width: 30px; height: 30px; stroke-width: 1.4; }

::selection { background: var(--wine-2); color: #fff; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.serif, em.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.015em; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000; background: #fff; color: #111; padding: 10px 15px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; }

.live {
  display: inline-block; width: 7px; height: 7px; background: var(--green-2); flex: none;
  box-shadow: 0 0 0 0 rgba(134, 201, 90, .6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(134, 201, 90, .55); }
  70% { box-shadow: 0 0 0 9px rgba(134, 201, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(134, 201, 90, 0); }
}

/* ---------- Eyebrow (como la original: barra verde + mayúsculas) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.eyebrow::before { content: ""; width: 30px; height: 3px; background: var(--green); }
.light .eyebrow { color: var(--wine); }

/* ---------- Botones ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px;
  font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.btn .ico { transition: transform .4s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-sm { --h: 44px; padding: 0 18px; font-size: .74rem; }
.btn-light { background: #fff; color: #111; }
.btn-light::before { background: var(--wine-2); }
.btn-light:hover { color: #fff; }
.btn-outline { border-color: var(--line-2); color: var(--ink); background: rgba(255, 255, 255, .03); }
.btn-outline::before { background: #fff; }
.btn-outline:hover { color: #111; border-color: #fff; }
.light .btn-outline { color: var(--paper-ink); border-color: rgba(0, 0, 0, .2); }
.light .btn-outline::before { background: var(--paper-ink); }
.light .btn-outline:hover { color: #fff; }
.btn-wine { background: var(--wine); color: #fff; }
.btn-wine::before { background: var(--wine-2); }

/* ---------- Topbar + cabecera ---------- */
.topbar { background: #050505; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: .76rem; color: #d8d8d8; position: relative; z-index: 51; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-inner > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.topbar-links { display: flex; gap: 22px; }
.topbar-links a:hover { color: #fff; }

.header {
  position: sticky; top: 0; z-index: 50; margin-bottom: -80px;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.header.is-scrolled {
  background: rgba(10, 10, 10, .82); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav { height: 80px; display: flex; align-items: center; gap: 28px; }
.nav-brand img { width: 150px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: .9rem; color: #d7d7d7; }
.nav-links a { position: relative; padding: 10px 0; transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--wine-2);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; }

/* ---------- Hero fotográfico ---------- */
.hero { position: relative; min-height: calc(100svh - 34px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: #070707; isolation: isolate; }
/* fundido superior: integra la barra superior y el menú con cualquier foto */
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 260px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #050505 0%, rgba(5, 5, 5, .82) 28%, rgba(5, 5, 5, .45) 62%, rgba(5, 5, 5, 0) 100%);
}
/* transición suave hacia la banda isométrica */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 230px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0) 0%, rgba(7, 7, 7, .55) 45%, rgba(7, 7, 7, .9) 78%, #070707 100%);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); filter: saturate(.85) contrast(1.05); }
.hero-slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hero-shader { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; }
.hero.has-shader .hero-shader { opacity: 1; }
.hero.has-shader .hero-slide { visibility: hidden; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 4, 4, .86) 0%, rgba(4, 4, 4, .6) 38%, rgba(4, 4, 4, .1) 72%, rgba(4, 4, 4, .28)),
    linear-gradient(0deg, rgba(4, 4, 4, .75), transparent 40%);
}
.hero-inner { padding: 150px 0 40px; }
.hero-title { margin: 24px 0 26px; font-size: clamp(3rem, 6vw, 6.2rem); line-height: .95; letter-spacing: -.052em; font-weight: 500; }
.hero-title .line { display: block; }
.hero-title .serif { font-size: 1.04em; letter-spacing: -.035em; color: rgba(255, 255, 255, .92); }
.hero-lead { max-width: 620px; font-size: clamp(1rem, 1.35vw, 1.18rem); color: rgba(255, 255, 255, .78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-foot { padding-bottom: 34px; }
.slides-nav { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); max-width: 760px; }
.slide-tab {
  position: relative; display: flex; gap: 12px; align-items: baseline; padding: 16px 16px 4px 0; text-align: left;
  background: none; border: 0; color: var(--dim); font: inherit; font-size: .84rem; cursor: pointer; transition: color .3s;
}
.slide-tab b { font-weight: 600; font-size: .74rem; letter-spacing: .12em; color: inherit; }
.slide-tab i { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--wine-2); transform: scaleX(0); transform-origin: left; }
.slide-tab.is-active { color: #fff; }
.slide-tab.is-active i { animation: slidebar var(--slide-ms, 7000ms) linear forwards; }
.slide-tab:hover { color: #fff; }
@keyframes slidebar { to { transform: scaleX(1); } }

/* ---------- Banda isométrica + cifras ---------- */
.city { position: relative; min-height: 760px; overflow: hidden; isolation: isolate; background: #070707; }
.city-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .4) 50px, #000 190px);
  mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .4) 50px, #000 190px);
}
.city-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, .95), rgba(7, 7, 7, 0) 32%, rgba(7, 7, 7, 0) 58%, rgba(7, 7, 7, .96) 86%),
    linear-gradient(90deg, rgba(7, 7, 7, .7), transparent 45%);
}
.city-inner { position: relative; min-height: 760px; display: grid; grid-template-rows: auto 1fr auto; padding: 90px 0 0; }
.city-head .section-title { max-width: 620px; }
.city-hud {
  position: absolute; right: 0; top: 96px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  font-size: .8rem; color: var(--muted); min-width: 250px;
}
.city-hud > div { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(10, 10, 10, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.city-hud b { margin-left: auto; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.hud-sq { width: 7px; height: 7px; border: 1.5px solid var(--wine-2); }
.hud-pin { width: 7px; height: 7px; background: #fff; }

.stats {
  list-style: none; margin: 0; padding: 0; grid-row: 3;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2); background: rgba(10, 10, 10, .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.stats li { display: grid; gap: 4px; padding: 30px 26px 34px; border-left: 1px solid var(--line); position: relative; }
.stats li:first-child { border-left: 0; }
.stats li::before { content: ""; position: absolute; left: -1px; top: -1px; width: 40px; height: 2px; background: var(--wine-2); }
.stats li:first-child::before { left: 0; }
.stats svg { color: var(--green-2); margin-bottom: 14px; }
.stats strong { font-size: clamp(1.4rem, 2.2vw, 1.95rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span:not([data-count]) { color: var(--muted); font-size: .92rem; }

/* ---------- Secciones ---------- */
.section { padding: 130px 0; position: relative; }
.section-head { margin-bottom: 56px; }
.split-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.section-title { margin: 18px 0 0; font-size: clamp(2.2rem, 4.4vw, 3.9rem); line-height: 1; letter-spacing: -.045em; }
.section-title em { color: rgba(255, 255, 255, .82); }
.light .section-title em { color: var(--wine); }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 560px; }

/* ---------- Catálogo (horizontal) ---------- */
.catalog { background: var(--bg); }
.catalog .section-head { margin-bottom: 44px; }
.temps { list-style: none; margin: 0; padding: 0; }
.temps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-bottom: 0; }
.temps-row li { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 10%, #0d0d0d), #0d0d0d 70%); position: relative; }
.temps-row li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.temps svg { width: 32px; height: 32px; color: var(--c); stroke-width: 1.6; }
.temps b { display: block; font-weight: 600; color: var(--c); }
.temps small { color: var(--muted); font-size: .86rem; }
.t-amb { --c: var(--amb); }
.t-ref { --c: var(--ref); }
.t-con { --c: var(--con); }

.catalog-grid { border: 1px solid var(--line); }
.cat-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.cat {
  position: relative; padding: 24px 24px 26px; background: var(--bg);
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 0 12px; overflow: hidden; isolation: isolate;
}
.cat::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(156, 24, 43, .22), rgba(156, 24, 43, 0) 80%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.cat::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--wine-2); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.cat:hover::before { opacity: 1; }
.cat:hover::after { transform: scaleX(1); }
.cat-n { font-size: .72rem; font-weight: 600; letter-spacing: .16em; color: var(--dim); }
.cat-ico { grid-row: 1 / 3; grid-column: 2; width: 44px; height: 44px; color: #fff; stroke-width: 1.8; opacity: .9; transition: transform .6s var(--ease), color .4s; }
.cat:hover .cat-ico { color: var(--green-2); transform: translateY(-3px); }
.cat h3 { grid-column: 1 / -1; margin-top: 22px; font-size: 1.06rem; line-height: 1.25; letter-spacing: -.015em; }
.cat p { grid-column: 1 / -1; margin-top: 6px; color: var(--muted); font-size: .88rem; line-height: 1.5; }

/* ---------- Marquesina ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 24px 0; background: #070707; }
.marquee-track {
  display: flex; align-items: center; gap: 36px; width: max-content;
  font-size: clamp(1.4rem, 2.6vw, 2.3rem); letter-spacing: -.03em; color: rgba(245, 245, 243, .82);
  animation: marquee 50s linear infinite;
}
.marquee-track i { width: 9px; height: 9px; background: var(--wine-2); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Logística + mapa ---------- */
.logistics { background: radial-gradient(70% 60% at 80% 40%, rgba(156, 24, 43, .14), transparent 70%), var(--bg); }
.logistics-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.logistics-copy .section-lead { margin-top: 22px; }
.steps { list-style: none; margin: 40px 0 38px; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.steps svg { color: var(--green-2); margin-top: 2px; }
.step-n { font-size: .7rem; font-weight: 600; letter-spacing: .16em; color: var(--wine-2); }
.steps h3 { font-size: 1.16rem; letter-spacing: -.015em; margin: 2px 0 6px; }
.steps p { color: var(--muted); font-size: .95rem; }

.map-panel { position: sticky; top: 100px; }
.map-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 6px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.map-bar > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.map-clock { font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; letter-spacing: .06em; font-size: 1.1rem; }
.map-wrap {
  position: relative; aspect-ratio: 1 / .84; margin: 0 -40px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(75% 70% at 50% 50%, #000 62%, transparent 100%);
}
.map-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 22px; }
.route-list li { font-size: .82rem; color: var(--muted); display: grid; gap: 7px; transition: color .3s; }
.route-list li.is-hot { color: #fff; }
.route-list b { font-weight: 500; color: inherit; display: flex; align-items: center; gap: 10px; }
.route-list b i { width: 18px; height: 3px; background: var(--c); }
.route-list .bar { height: 1px; background: var(--line-2); }
.route-list .bar span { display: block; height: 100%; width: 0; background: var(--c); box-shadow: 0 0 8px var(--c); }

/* ---------- Secciones claras ---------- */
.light { background: var(--paper); color: var(--paper-ink); }
.light p { color: var(--paper-muted); }

.history { padding-bottom: 90px; overflow: hidden; }
.history-year {
  position: absolute; top: 40px; right: -1vw; pointer-events: none;
  font-size: clamp(8rem, 22vw, 21rem); font-weight: 600; letter-spacing: -.07em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(156, 24, 43, .16); font-variant-numeric: tabular-nums;
}
.history-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.history-photo { position: relative; }
.history-photo picture { display: block; overflow: hidden; }
.history-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.history-photo.is-in img { transform: scale(1); }
.history-photo::before { content: ""; position: absolute; left: -16px; top: -16px; width: 120px; height: 120px; border-left: 3px solid var(--wine); border-top: 3px solid var(--wine); }
.photo-card { position: absolute; right: -32px; bottom: -32px; width: 230px; padding: 24px; background: #111; color: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.photo-card b { display: block; font-size: 3rem; font-weight: 600; letter-spacing: -.06em; line-height: 1; margin-bottom: 10px; }
.photo-card span { font-size: .92rem; color: rgba(255, 255, 255, .78); line-height: 1.4; display: block; }
.history-copy .section-title { margin-bottom: 26px; }
.history-copy > p { font-size: 1.04rem; margin-bottom: 16px; max-width: 580px; }
.claim { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(0, 0, 0, .14); font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.25; letter-spacing: -.025em; font-weight: 500; max-width: 580px; }
.claim em { color: var(--wine); }

.amh-section { padding-top: 40px; }
.amh { display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; background: #fff; border: 1px solid rgba(0, 0, 0, .08); box-shadow: 0 30px 80px rgba(0, 0, 0, .08); }
.amh-copy { padding: clamp(32px, 5vw, 64px); }
.amh-copy p { margin-top: 24px; max-width: 600px; }
.amh-card { display: grid; grid-template-rows: auto 1fr auto; padding: 28px; background: var(--paper-2); border-left: 1px solid rgba(0, 0, 0, .08); position: relative; overflow: hidden; isolation: isolate; }
.amh-card::before { content: ""; position: absolute; inset: 0; background: var(--paper-ink); z-index: -1; transform: translateY(101%); transition: transform .6s var(--ease); }
.amh-card img { width: min(300px, 80%); margin: 30px auto; align-self: center; transition: filter .6s var(--ease); }
.amh-label, .amh-cta { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-muted); transition: color .5s; }
.amh-cta { display: inline-flex; align-items: center; gap: 8px; justify-self: end; color: var(--wine); }
.amh-card:hover::before { transform: none; }
.amh-card:hover img { filter: brightness(0) invert(1); }
.amh-card:hover .amh-label, .amh-card:hover .amh-cta { color: #fff; }

/* ---------- Contacto ---------- */
.contact { border-top: 4px solid var(--wine); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.contact-photo { position: relative; overflow: hidden; align-self: stretch; min-height: 520px; }
.contact-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% center; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.contact-photo.is-in img { transform: scale(1); }
.contact-photo figcaption { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; background: rgba(10, 10, 10, .85); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-copy .section-lead { margin-top: 22px; }
.contact-list { margin-top: 34px; display: grid; border-top: 1px solid var(--line); }
.contact-item { display: flex; align-items: center; gap: 18px; padding: 18px 4px; border-bottom: 1px solid var(--line); position: relative; transition: padding .4s var(--ease), background .4s; }
.contact-item:hover { padding-left: 14px; background: rgba(255, 255, 255, .03); }
.ci-ico { width: 46px; height: 46px; display: grid; place-items: center; background: rgba(156, 24, 43, .18); border: 1px solid rgba(195, 36, 64, .45); color: #fff; }
.ci-ico svg { width: 20px; height: 20px; }
.is-wa .ci-ico { background: rgba(100, 169, 54, .16); border-color: rgba(100, 169, 54, .5); color: var(--green-2); }
.contact-item strong { display: block; font-weight: 600; font-size: 1.08rem; word-break: break-word; }
.contact-item small { color: var(--muted); font-size: .86rem; }
.ci-go { width: 18px; height: 18px; margin-left: auto; color: var(--dim); transition: transform .4s var(--ease), color .4s; }
.contact-item:hover .ci-go { color: #fff; transform: translateX(4px); }

.location { margin-top: 90px; display: grid; grid-template-columns: .75fr 1.25fr; border: 1px solid var(--line); background: #0d0d0d; }
.location-copy { padding: 36px; display: grid; gap: 18px; align-content: center; justify-items: start; }
.location h3 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; }
.location h3 svg { color: var(--wine-2); }
.location address { font-style: normal; color: var(--muted); line-height: 1.55; }
.hours { display: flex; gap: 12px; color: var(--muted); }
.hours svg { margin-top: 3px; color: var(--green-2); }
.hours b { display: block; color: #fff; font-weight: 600; }
.location-map { min-height: 340px; border-left: 1px solid var(--line); }
.location-map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 30px; overflow: hidden; background: linear-gradient(180deg, #0a0a0a, #120608); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand img { width: 170px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 300px; }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-cols div { display: grid; gap: 8px; align-content: start; }
.footer-cols h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .18em; color: var(--dim); margin-bottom: 6px; font-weight: 600; }
.footer-cols a, .footer-cols span { color: var(--muted); font-size: .95rem; transition: color .3s; }
.footer-cols a:hover { color: #fff; }
.footer-mega { position: relative; margin: 60px 0 34px; user-select: none; }
.mega-word {
  display: flex; justify-content: center; font-size: clamp(5rem, 21vw, 20rem); font-weight: 600; letter-spacing: -.075em; line-height: .8;
}
.mega-word span {
  display: inline-block; padding-right: .075em; margin-right: -.075em; padding-bottom: .06em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .03) 50%, #d02a49 50%, #6b0f1d 100%);
  background-size: 100% 200%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(40%); opacity: 0;
  transition: transform 1.2s var(--ease), opacity 1.2s var(--ease), translate .5s var(--ease);
  transition-delay: calc(var(--i) * 70ms), calc(var(--i) * 70ms), 0s;
}
.footer-mega.is-in .mega-word span { transform: none; opacity: 1; animation: megafill 9s var(--ease) infinite; animation-delay: calc(1.2s + var(--i) * .22s); }
.mega-word span:hover { translate: 0 -6%; }
@keyframes megafill {
  0%, 12% { background-position: 0 0; }
  32%, 52% { background-position: 0 100%; }
  72%, 100% { background-position: 0 0; }
}
.mega-road { position: relative; height: 1px; margin-top: 6px; background: linear-gradient(90deg, transparent, var(--line-2) 15%, var(--line-2) 85%, transparent); }
.mega-road::after {
  content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 0; background: linear-gradient(90deg, transparent, var(--wine-2));
  animation: megaroad 9s linear infinite;
}
.mega-truck { position: absolute; left: 0; bottom: 2px; width: 30px; height: 30px; color: var(--ink); stroke-width: 1.5; animation: megatruck 9s linear infinite; }
@keyframes megatruck { 0% { left: -4%; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes megaroad { 0% { width: 0; opacity: 1; } 100% { width: 100%; opacity: 0; } }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--dim); font-size: .84rem; padding-top: 22px; border-top: 1px solid var(--line); }

.floating-wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; display: grid; place-items: center; color: #fff; background: #25d366; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .35s var(--ease); }
.floating-wa svg { width: 28px; height: 28px; }
.floating-wa:hover { transform: translateY(-3px); }

/* ---------- Animaciones de entrada ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 50ms + var(--d, 0s)); }
.js [data-split].is-in .w > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .split-head, .logistics-grid, .history-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cat-list { grid-template-columns: repeat(2, 1fr); }
  .map-wrap { margin: 0 -20px; }
  .map-panel { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .photo-card { right: 16px; bottom: -24px; }
  .amh { grid-template-columns: 1fr; }
  .amh-card { border-left: 0; border-top: 1px solid rgba(0, 0, 0, .08); }
  .contact-photo { min-height: 380px; }
}

@media (max-width: 820px) {
  .topbar { display: none; }
  .nav { height: 70px; }
  .header { margin-bottom: -70px; }
  .nav-brand img { width: 120px; }
  .nav-cta { display: none; }
  .nav-toggle { display: grid; place-content: center; gap: 6px; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line-2); background: rgba(10, 10, 10, .5); cursor: pointer; }
  .nav-toggle span { width: 18px; height: 1.5px; background: #fff; transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 16px;
    background: rgba(10, 10, 10, .97); border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 15px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .hero { min-height: 100svh; }
  .hero-inner { padding: 120px 0 30px; }
  .hero-shade { background: linear-gradient(180deg, rgba(4, 4, 4, .65), rgba(4, 4, 4, .6) 45%, rgba(4, 4, 4, .92)); }
  .slides-nav span { display: none; }
  .city, .city-inner { min-height: 980px; }
  .city-hud { display: none; }
  .city-shade { background: linear-gradient(180deg, rgba(7, 7, 7, .95), rgba(7, 7, 7, 0) 22%, rgba(7, 7, 7, 0) 58%, rgba(7, 7, 7, .96) 70%); }
  .section { padding: 90px 0; }
  .location { grid-template-columns: 1fr; margin-top: 60px; }
  .location-map { border-left: 0; border-top: 1px solid var(--line); }
  .route-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .cat { padding: 20px 16px 22px; }
  .cat-ico { width: 36px; height: 36px; }
  .cat h3 { font-size: .98rem; margin-top: 16px; }
  .cat p { display: none; }
  .temps-row { grid-template-columns: 1fr; }
  .temps-row li { padding: 14px 18px; }
  .stats li { padding: 22px 16px; }
  .stats strong { font-size: 1.25rem; }
  .history-photo::before { display: none; }
  .footer-cols { gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
