/* ===== Tipografía de marca ===== */
@font-face {
  font-family: 'Bernina Condensed';
  src: url('fonts/BerninaSans-CondensedExtrabold.otf') format('opentype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Bernina';
  src: url('fonts/BerninaSans-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ===== Colores de marca (tomados del logo) ===== */
:root {
  --yellow: #f0b419;
  --yellow-dark: #d99e06;
  --gray: #5f6062;
  --charcoal: #2e2f31;
  --charcoal-2: #3a3b3e;
  --light: #f3f3f1;
  --line: #e2e2df;
  --text: #45464a;
  --white: #fff;

  --display: 'Bernina Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'Bernina', 'Segoe UI', Arial, sans-serif;
  --header-h: 84px;

  /* ===== Vidrio esmerilado ===== */
  /* el radio vive en una sola variable: ponla en 0 y todo vuelve a ser cuadrado */
  --glass-radius: 12px;
  --glass-blur: blur(18px) saturate(140%);
  --glass-bg: rgba(255,255,255,.58);
  --glass-bg-hi: rgba(255,255,255,.74);
  --glass-border: 1px solid rgba(255,255,255,.7);
  --glass-shadow: 0 14px 38px rgba(46,47,49,.12), inset 0 1px 0 rgba(255,255,255,.85);
  --glass-bg-dark: rgba(255,255,255,.08);
  --glass-bg-dark-hi: rgba(255,255,255,.14);
  --glass-border-dark: 1px solid rgba(255,255,255,.16);
  --glass-shadow-dark: 0 16px 38px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.14);
  /* halos de fondo: sin algo detras, el vidrio no tiene que desenfocar */
  --ambient-light: radial-gradient(52rem 34rem at 10% -8%, rgba(240,180,25,.22), transparent 62%), radial-gradient(46rem 32rem at 95% 110%, rgba(95,96,98,.14), transparent 64%);
  --ambient-dark: radial-gradient(50rem 34rem at 8% 0%, rgba(240,180,25,.16), transparent 60%), radial-gradient(44rem 30rem at 100% 100%, rgba(255,255,255,.08), transparent 62%);
}

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

/* ===== Cursor: mini camión Mumor ===== */
/* el punto de clic va en la trompa, así el camión queda atrás del puntero */
body { cursor: url('img/cursor-camion.png') 32 13, auto; }
body { cursor: -webkit-image-set(url('img/cursor-camion.png') 1x, url('img/cursor-camion@2x.png') 2x) 32 13, auto; }
input, textarea, select { cursor: text; }
select { cursor: pointer; }
/* en pantallas táctiles no hay cursor que reemplazar */
@media (hover: none), (pointer: coarse) { body, input, textarea, select { cursor: auto; } }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--body); font-style: italic; font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; font-style: normal; color: var(--charcoal); line-height: 1.02; letter-spacing: .01em; text-wrap: balance; }
h2 span, h1 span { color: var(--yellow); }
p { margin: 0; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { position: relative; padding-block: clamp(4.5rem, 9vw, 7.5rem); background-color: var(--white); }
.section, .section-light { background-image: var(--ambient-light); background-repeat: no-repeat; }
.section-light { background-color: var(--light); }
.section-dark { background-color: var(--charcoal); background-image: var(--ambient-dark); background-repeat: no-repeat; }
.section-dark h2, .section-dark h3 { color: var(--white); }

.kicker { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .9rem; font-family: var(--display); font-style: normal; font-size: .88rem; letter-spacing: .06em; color: var(--gray); }
/* triángulo del tagline del logo */
.kicker::before, .tagline::before { content: ''; width: 0; height: 0; border-block: .38em solid transparent; border-left: .5em solid var(--yellow); }
.section-dark .kicker { color: #b9babc; }
.kicker-dark { color: var(--charcoal); }
.kicker-dark::before { border-left-color: var(--charcoal); }

.section-head { max-width: 860px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }

/* ===== Botones ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.6rem; border: 2px solid transparent; font-family: var(--display); font-style: normal; font-size: .98rem; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-yellow { background: var(--yellow); color: var(--charcoal); }
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-outline { border-color: var(--gray); color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

/* ===== Header ===== */
/* siempre transparente; la letra cambia a gris cuando atrás hay una sección clara */
.header { position: fixed; inset: 0 0 auto; z-index: 50; background: transparent; transition: none; }
.nav { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.nav-logo { position: relative; display: block; }
.nav-logo img { height: 54px; width: auto; transition: opacity .25s; }
/* halo suave: el logo va sobre video y fotos, no solo sobre color plano */
.nav-logo .logo-light { filter: drop-shadow(0 1px 10px rgba(0,0,0,.45)); }
.nav-logo .logo-dark { filter: drop-shadow(0 1px 9px rgba(255,255,255,.9)); }
.nav-logo .logo-dark { position: absolute; inset: 0; opacity: 0; }
.header.on-light .logo-light { opacity: 0; }
.header.on-light .logo-dark { opacity: 1; }
.nav-links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav-links a { font-family: var(--display); font-style: normal; font-size: .97rem; letter-spacing: .02em; text-decoration: none; color: var(--white); text-shadow: 0 1px 12px rgba(0,0,0,.5); padding-block: .4rem; border-bottom: 3px solid transparent; transition: color .25s, border-color .2s; }
.nav-links a:hover { color: var(--yellow); border-color: var(--yellow); }
.header.on-light .nav-links a { color: var(--gray); text-shadow: 0 1px 10px rgba(255,255,255,.8); }
.header.on-light .nav-links a:hover { color: var(--charcoal); border-color: var(--yellow); }
.nav-cta { min-height: 46px; padding: .6rem 1.4rem; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; margin: 5px auto; background: var(--white); box-shadow: 0 1px 6px rgba(0,0,0,.35); transition: transform .2s, opacity .2s, background .25s; }
.header.on-light .burger span, .header.menu-open .burger span { background: var(--charcoal); box-shadow: none; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* con el menú abierto sí hace falta fondo, si no las opciones no se leerían */
.header.menu-open { background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.header.menu-open .logo-light { opacity: 0; }
.header.menu-open .logo-dark { opacity: 1; }
.mobile-nav { display: grid; gap: .2rem; padding: 1rem 24px 1.5rem; border-top: 1px solid rgba(255,255,255,.6); background: transparent; }
.mobile-nav a:not(.btn) { padding: .65rem 0; font-family: var(--display); font-style: normal; font-size: 1.1rem; text-decoration: none; color: var(--charcoal); border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 1rem; }

/* ===== Hero ===== */
.hero { position: relative; display: flex; align-items: center; min-height: 100svh; padding-block: calc(var(--header-h) + 3rem) 5rem; overflow: hidden; background: var(--charcoal); color: var(--white); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
/* velo oscuro para que el texto se lea sobre el video */
.hero-veil { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,21,22,.92) 0%, rgba(20,21,22,.78) 38%, rgba(20,21,22,.42) 70%, rgba(20,21,22,.55) 100%); }
.hero-copy { position: relative; z-index: 1; max-width: 62rem; }
.tagline { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.2rem; font-size: 1.08rem; color: #e6e7e8; }
.hero h1 { font-size: clamp(2.4rem, 5.1vw, 4.4rem); color: var(--white); max-width: 15ch; }
.hero-lead { max-width: 34rem; margin-top: 1.4rem; font-size: 1.05rem; color: #dcdddf; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.btn-ghost { border-color: rgba(255,255,255,.75); color: var(--white); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--charcoal); }
.hero-scroll { position: absolute; z-index: 1; left: 50%; bottom: 2rem; display: grid; place-items: center; width: 46px; height: 46px; margin-left: -23px; border: 2px solid rgba(255,255,255,.5); border-radius: 50%; animation: heroScroll 2.2s ease-in-out infinite; }
.hero-scroll svg { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-scroll:hover { border-color: var(--yellow); }
@keyframes heroScroll { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ===== Cifras ===== */
/* ===== Prensa (franja bajo el hero) ===== */
.press { padding-block: clamp(3rem, 5.5vw, 4.2rem); background-color: var(--charcoal); background-image: var(--ambient-dark); background-repeat: no-repeat; color: var(--white); }
.press-head { max-width: 780px; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.press-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--white); }
.press-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.press-card { display: flex; flex-direction: column; padding: 1.5rem 1.4rem 1.4rem; background: var(--glass-bg-dark); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: var(--glass-border-dark); border-radius: var(--glass-radius); box-shadow: var(--glass-shadow-dark); text-decoration: none; transition: background .25s, transform .25s, border-color .25s; }
.press-card:hover, .press-card:focus-visible { background: var(--glass-bg-dark-hi); border-color: rgba(240,180,25,.55); transform: translateY(-3px); }

.press-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; font-family: var(--display); font-style: normal; font-size: .78rem; letter-spacing: .04em; }
.press-outlet { padding: .2rem .55rem; background: var(--yellow); border-radius: 4px; color: var(--charcoal); }
.press-meta time { color: #a9aaad; }

.press-card h3 { margin: .95rem 0 .55rem; font-size: 1.05rem; line-height: 1.16; color: var(--white); }
.press-line { margin-bottom: 1.3rem; font-size: .9rem; line-height: 1.45; color: #bfc0c3; }

.press-cta { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; font-family: var(--display); font-style: normal; font-size: .88rem; letter-spacing: .03em; color: var(--yellow); }
.press-cta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; transition: transform .25s; }
.press-card:hover .press-cta svg, .press-card:focus-visible .press-cta svg { transform: translateX(4px); }

/* ===== Nosotros ===== */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 7vw, 6rem); align-items: center; }
.about-photo { position: relative; margin: 0; }
.about-photo::before { content: ''; position: absolute; inset: 2rem -1.2rem -1.2rem 2rem; background: var(--yellow); }
.about-photo img { position: relative; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 45%; }
.about-copy h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 1.6rem; }
.about-copy p + p { margin-top: 1rem; }
.about-claim { margin-top: 1.4rem !important; padding-left: 1.1rem; border-left: 4px solid var(--yellow); font-size: 1.06rem; color: var(--charcoal); }

/* ===== Cadena de suministro: donde participamos ===== */
.chain { --chain-gap: clamp(.6rem, 1.3vw, 1.05rem); margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.chain-head { max-width: 780px; margin: 0 auto clamp(3.2rem, 5vw, 4.2rem); text-align: center; }
.chain-head .kicker { justify-content: center; }
.chain-head h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.chain-head h3 span { color: var(--yellow); }

.chain-flow { display: grid; grid-template-columns: repeat(5, 1fr); column-gap: var(--chain-gap); align-items: end; }

/* banda que marca los pasos 3-5 (el tramo que opera Mumor) */
.chain-band { grid-column: 3 / -1; grid-row: 1; position: relative; margin: 0 0 1.35rem; padding: .5rem .9rem; background: var(--yellow); border-radius: 10px; font-family: var(--display); font-style: normal; font-size: .9rem; letter-spacing: .05em; color: var(--charcoal); text-align: center; }
/* las dos patitas del corchete que abraza los pasos destacados */
.chain-band::before, .chain-band::after { content: ''; position: absolute; top: 100%; width: 2px; height: .85rem; background: var(--yellow); }
.chain-band::before { left: 0; }
.chain-band::after { right: 0; }
.chain-band-hint { display: none; }

.chain-steps { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(5, 1fr); column-gap: var(--chain-gap); margin: 0; padding: 0; list-style: none; }

.chain-step { position: relative; display: flex; flex-direction: column; padding: 2.4rem 1.2rem 1.6rem; background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: var(--glass-border); border-top: 3px solid var(--line); border-radius: var(--glass-radius); box-shadow: var(--glass-shadow); transition: transform .25s, background .25s; }
.chain-step:hover { background: var(--glass-bg-hi); transform: translateY(-3px); }
.chain-step svg { width: 40px; height: 40px; fill: none; stroke: var(--gray); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.chain-step h4 { margin: .95rem 0 .35rem; font-size: 1.04rem; line-height: 1.12; }
.chain-step p { font-size: .92rem; line-height: 1.4; }

.chain-num { position: absolute; top: -.9rem; left: 1.2rem; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; background: var(--white); border: 2px solid var(--line); border-radius: 50%; font-family: var(--display); font-style: normal; font-size: 1rem; color: var(--gray); }

/* flechita de enlace entre un paso y el siguiente */
.chain-step:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: calc(var(--chain-gap) / -2); width: 9px; height: 9px; margin-top: -5px; border-top: 2px solid var(--line); border-right: 2px solid var(--line); transform: translateX(50%) rotate(45deg); }

/* pasos donde participa Mumor */
.chain-step.is-scope { border-top-color: var(--yellow); }
.chain-step.is-scope svg { stroke: var(--yellow-dark); }
.chain-step.is-scope .chain-num { background: var(--yellow); border-color: var(--yellow); color: var(--charcoal); }
.chain-step.is-scope::after { border-color: var(--yellow); }

.chain-note { max-width: 860px; margin: clamp(2rem, 4vw, 2.8rem) auto 0; padding-top: 1.4rem; border-top: 1px solid var(--line); text-align: center; color: var(--charcoal); }
.chain-note strong { font-style: normal; }

/* ===== Unidades ===== */
.units { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.unit { display: flex; flex-direction: column; overflow: hidden; background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: var(--glass-border); border-bottom: 5px solid var(--yellow); border-radius: var(--glass-radius); box-shadow: var(--glass-shadow); }
.unit-img { overflow: hidden; }
.unit-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s; }
.unit:first-child .unit-img img { object-position: center 70%; }
.unit:hover .unit-img img { transform: scale(1.04); }
.unit-body { padding: 2rem 2rem 2.2rem; }
.unit-tag { display: inline-block; padding: .25rem .7rem; background: var(--charcoal); color: var(--yellow); font-family: var(--display); font-style: normal; font-size: .8rem; letter-spacing: .03em; }
.unit h3 { margin: .8rem 0 1.2rem; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.specs { display: grid; gap: 0; margin: 0; }
.specs > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.specs dt { font-family: var(--display); font-style: normal; font-size: .95rem; letter-spacing: .01em; color: var(--charcoal); }
.specs dd { margin: 0; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.service { padding: 1.5rem 1.4rem 1.7rem; background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: var(--glass-border); border-top: 3px solid var(--charcoal); border-radius: var(--glass-radius); box-shadow: var(--glass-shadow); }
.service svg, .reason svg { width: 44px; height: 44px; fill: none; stroke: var(--yellow-dark); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.service h3 { margin: .9rem 0 .45rem; font-size: 1.18rem; }
.service p { font-size: .98rem; }

/* ===== Por qué ===== */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.reason { padding: 2.4rem 2rem; background: var(--glass-bg-dark); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: var(--glass-border-dark); border-radius: var(--glass-radius); box-shadow: var(--glass-shadow-dark); transition: background .25s, transform .25s; }
.reason:hover { background: var(--glass-bg-dark-hi); transform: translateY(-3px); }
.reason svg { stroke: var(--yellow); }
.reason h3 { margin: 1.1rem 0 .5rem; font-size: 1.25rem; }
.reason p { color: #bfc0c3; }

/* ===== Certificaciones ===== */
.certs { display: grid; grid-template-columns: 1fr 1fr; background: var(--yellow); }
.certs-img img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.certs-body { padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 5rem); color: var(--charcoal); max-width: 680px; }
.certs-body h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 1.2rem; }
.cert-list { display: grid; gap: .9rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.cert-list li { padding: .9rem 1.1rem .95rem 1.2rem; background: rgba(255,255,255,.34); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-left: 4px solid var(--charcoal); border-radius: 0 var(--glass-radius) var(--glass-radius) 0; box-shadow: 0 10px 26px rgba(46,47,49,.1), inset 0 1px 0 rgba(255,255,255,.55); }
.cert-list strong { display: block; font-family: var(--display); font-style: normal; font-size: 1.02rem; letter-spacing: .02em; }

/* ===== Clientes ===== */
.clients { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.clients li { display: grid; place-items: center; height: 140px; padding: 1.4rem; background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: var(--glass-border); border-radius: var(--glass-radius); box-shadow: var(--glass-shadow); }
.clients img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.clients li:hover img { filter: none; opacity: 1; }

/* ===== Destinos ===== */
.dest-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.dest-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 1.2rem; }
.regions { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.2rem; }
.regions h3 { font-size: 1.12rem; padding-bottom: .5rem; margin-bottom: .5rem; border-bottom: 3px solid var(--yellow); }
.regions p { font-size: .98rem; }
.dest-map { position: relative; margin: 0; padding: 1.5rem 1rem; background: var(--glass-bg-hi); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: var(--glass-border); box-shadow: 0 20px 50px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.85); }
/* esquinas en diagonal, como la franja de la portada */
.dest-map::before, .dest-map::after { content: ''; position: absolute; width: 74px; height: 74px; background: var(--yellow); }
.dest-map::before { top: 0; left: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.dest-map::after { right: 0; bottom: 0; clip-path: polygon(100% 100%, 100% 0, 0 100%); }
.map-stage { position: relative; }
.map-svg { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: visible; }
.map-land path { fill: #d9d9d4; stroke: var(--white); stroke-width: 1.2; stroke-linejoin: round; transition: fill .3s; }
.map-pin path { fill: var(--yellow); stroke: var(--charcoal); stroke-width: 1.4; }
.map-pin circle { fill: var(--charcoal); }
.map-city { font-family: var(--display); font-size: 17px; letter-spacing: .01em; fill: var(--charcoal); paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; }

/* ===== Mapa interactivo: cada destino es un punto que responde ===== */
.map-point { transition: opacity .25s ease; }
.map-point .map-marker { transition: opacity .25s ease; }
/* zona de clic generosa e invisible sobre el pin */
.map-hit { fill: transparent; }
/* el pin grande vive debajo y sólo aparece cuando el punto se activa */
.map-pin-big { opacity: 0; transition: opacity .2s ease; }
.map-point.is-on .map-pin:not(.map-pin-big) { opacity: 0; }
.map-point.is-on .map-pin-big { opacity: 1; }
.map-point.is-on .map-city { fill: var(--charcoal); stroke-width: 5px; font-size: 19px; }
.map-city { transition: font-size .2s ease; }
/* latido amarillo, como el de un radar de rastreo */
.map-pulse { fill: var(--yellow); opacity: 0; transform-box: fill-box; transform-origin: center; }
.map-point.is-on .map-pulse { animation: mapPulse 1.6s ease-out infinite; }
@keyframes mapPulse {
  0%   { opacity: .55; transform: scale(.5); }
  70%  { opacity: 0;   transform: scale(2.6); }
  100% { opacity: 0;   transform: scale(2.6); }
}
/* al resaltar un destino (o una región) los demás se atenúan */
.map-svg.is-focused .map-point:not(.is-on) { opacity: .28; }
.map-svg.is-focused .map-land path { fill: #e2e2dd; }
.map-point:focus { outline: none; }
.map-point:focus-visible .map-city { stroke: var(--yellow); stroke-width: 6px; }

/* globo de información: mismos colores y tipografías del sitio */
.map-tip { position: absolute; z-index: 3; left: 0; top: 0; display: grid; gap: .1rem; min-width: 148px; padding: .7rem .9rem .75rem; background: rgba(35,36,38,.82); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: var(--glass-border-dark); border-radius: var(--glass-radius); color: var(--white); box-shadow: 0 14px 30px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.14); transform: translate(-50%, calc(-100% - 16px)); opacity: 0; transition: opacity .18s ease; pointer-events: none; }
.map-tip.is-visible { opacity: 1; }
.map-tip::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: rgba(35,36,38,.88); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.map-tip.is-below { transform: translate(-50%, 24px); }
.map-tip.is-below::after { top: -7px; bottom: auto; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.map-tip-city { font-family: var(--display); font-style: normal; font-size: 1.12rem; letter-spacing: .02em; line-height: 1.1; }
.map-tip-state { font-size: .86rem; color: #c9cacb; }
.map-tip-region { margin-top: .45rem; justify-self: start; padding: .16rem .5rem; background: var(--yellow); color: var(--charcoal); font-family: var(--display); font-style: normal; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.map-hint { margin-top: .9rem; font-size: .84rem; color: var(--gray); text-align: center; }

/* las regiones del texto encienden sus ciudades en el mapa */
.region { padding: 1.1rem 1.2rem 1.2rem; background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: var(--glass-border); border-radius: var(--glass-radius); box-shadow: var(--glass-shadow); transition: opacity .25s ease, background .25s ease; }
.region.is-on { background: var(--glass-bg-hi); }
.regions.is-focused .region:not(.is-on) { opacity: .45; }
.region h3 { transition: border-color .25s ease; }
.region.is-on h3 { border-bottom-color: var(--charcoal); }
.map-sea { font-family: var(--body); font-style: italic; font-size: 17px; fill: #a9aaa7; letter-spacing: .04em; }
.map-title { font-family: var(--display); font-size: 34px; letter-spacing: .02em; fill: var(--charcoal); }
.map-subtitle { font-family: var(--body); font-style: italic; font-size: 17px; fill: var(--gray); }
.map-rule { stroke: var(--yellow); stroke-width: 4; }

/* ===== CTA ===== */
.cta { position: relative; padding-block: clamp(5rem, 11vw, 8.5rem); background: linear-gradient(90deg, rgba(30,31,33,.92) 0%, rgba(30,31,33,.72) 50%, rgba(30,31,33,.32) 100%), url('img/cta-camion.jpg') center 66% / cover no-repeat; color: var(--white); }
.cta-inner { max-width: 1200px; }
.cta h2 { max-width: 16ch; font-size: clamp(2.1rem, 4.2vw, 3.4rem); color: var(--white); }
.cta p { max-width: 32rem; margin: 1.2rem 0 1.8rem; font-size: 1.02rem; color: #e1e2e3; }

/* ===== Contacto ===== */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 2rem; }
.contact-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: grid; gap: .1rem; padding: .9rem 0; border-top: 1px solid var(--line); color: var(--charcoal); font-size: 1.02rem; }
.contact-list span { font-family: var(--display); font-style: normal; font-size: .85rem; letter-spacing: .03em; color: var(--gray); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--yellow-dark); }
.contact-form { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 4vw, 2.6rem); background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: var(--glass-border); border-top: 5px solid var(--yellow); border-radius: var(--glass-radius); box-shadow: var(--glass-shadow); }
.contact-form h3 { font-size: 1.45rem; margin-bottom: .3rem; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { display: grid; gap: .3rem; font-family: var(--display); font-style: normal; font-size: .86rem; letter-spacing: .02em; color: var(--charcoal); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: .85rem .9rem; background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(8px) saturate(130%); backdrop-filter: blur(8px) saturate(130%); border: 1px solid rgba(46,47,49,.14); border-radius: max(0px, calc(var(--glass-radius) - 4px)); box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 4px 14px rgba(46,47,49,.06); font: italic 1rem var(--body); color: var(--charcoal); text-transform: none; letter-spacing: 0; transition: background .2s, border-color .2s; }
.contact-form input:hover, .contact-form select:hover, .contact-form textarea:hover { background: rgba(255,255,255,.7); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--yellow); outline-offset: 0; background: rgba(255,255,255,.82); border-color: var(--yellow); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }

/* ===== Footer ===== */
.footer { background: #232426; color: #b9babc; padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { width: 220px; }
.footer h4 { margin-bottom: .9rem; font-size: .95rem; letter-spacing: .03em; color: var(--yellow); }
.footer-grid > div { display: flex; flex-direction: column; gap: .5rem; font-size: .98rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.social { display: inline-flex; align-items: center; gap: .55rem; }
.social svg { width: 20px; height: 20px; fill: var(--yellow); flex-shrink: 0; transition: fill .2s; }
.social:hover svg { fill: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }

/* ===== WhatsApp flotante ===== */
.wa-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; box-shadow: 0 8px 22px rgba(0,0,0,.25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; fill: var(--white); }

/* ===== Animación de entrada ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: .95rem; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .nav-logo img { height: 46px; }
  .press-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .dest-grid, .contact-grid, .certs { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; }
  .chain-flow, .chain-steps { grid-template-columns: repeat(3, 1fr); }
  .chain-band { grid-column: 1 / -1; justify-self: center; margin-bottom: 1.8rem; padding-inline: 1.4rem; border-radius: 999px; }
  .chain-band::before, .chain-band::after { display: none; }
  .chain-band-hint { display: inline; }
  .chain-band-hint::before { content: ':'; margin-right: .32em; }
  .chain-steps { row-gap: 2.2rem; }
  /* en vertical la flecha lateral no aplica a fin de fila: se apaga y manda el numero */
  .chain-step:nth-child(3n)::after, .chain-step:last-child::after { display: none; }
  /* en pantallas chicas los nombres del mapa no se alcanzan a leer:
     se ocultan y la lista de ciudades de arriba hace ese trabajo */
  .map-city, .map-sea { display: none; }
  .map-hit { r: 30px; }
  .map-pin path { stroke-width: 2.6; }
  .map-title { font-size: 52px; }
  .map-subtitle { font-size: 24px; }
  .map-rule { stroke-width: 6; }
  .dest-map { padding: 1rem .6rem; }
  .dest-map::before, .dest-map::after { width: 54px; height: 54px; }
  .units { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .certs-img img { min-height: 280px; max-height: 380px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .mobile-nav { padding-inline: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .about-photo::before { inset: 1.2rem -.8rem -.8rem 1.2rem; }
  .specs > div { grid-template-columns: 1fr; gap: .1rem; }
  .unit-body { padding: 1.5rem 1.3rem 1.8rem; }
  .services, .reasons, .regions, .contact-form .row { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: 1fr; }
  .chain-flow, .chain-steps { grid-template-columns: 1fr; }
  .chain-step::after { display: none !important; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .contact-form .btn { justify-self: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .map-point.is-on .map-pulse { animation: none; opacity: .35; }
  .map-tip, .map-city, .map-pin-big, .map-land path { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ===== Vidrio: ajustes finales ===== */
/* en telefonos el desenfoque se aligera: consume bateria y GPU */
@media (max-width: 600px) {
  :root { --glass-blur: blur(12px) saturate(135%); }
}
/* si el navegador no sabe desenfocar el fondo, los paneles se vuelven opacos
   para que el texto nunca pierda contraste */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  :root {
    --glass-bg: rgba(255,255,255,.9);
    --glass-bg-hi: rgba(255,255,255,.95);
    --glass-bg-dark: rgba(255,255,255,.1);
    --glass-bg-dark-hi: rgba(255,255,255,.16);
  }
  .cert-list li { background: rgba(255,255,255,.62); }
  .map-tip { background: rgba(35,36,38,.96); }
  .header.menu-open { background: var(--white); }
  .contact-form input, .contact-form select, .contact-form textarea { background: rgba(255,255,255,.92); }
}
