/* =========================================================
   INNOVAR Diseño & Construcción S.A.S
   Colores y tipografías según Manual de Identidad Corporativa V.01
   ========================================================= */
:root {
  /* Rojo corporativo y su gama */
  --red: #BF1718;
  --red-dark: #8F1112;
  --red-300: #D97474;
  --red-200: #E5A2A3;
  --red-100: #F2D1D1;
  /* Azul oscuro institucional */
  --blue: #0E2232;
  --blue-800: #16334a;
  --blue-700: #1f4560;
  /* Neutros (blanco frisado y grises) */
  --white: #FFFFFF;
  --frisado: #F1F1F1;
  --gray-100: #EAEAEA;
  --gray-300: #B5B5B5;
  --gray-600: #797979;

  --font-title: "League Spartan", "Poppins", sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(14, 34, 50, .35);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--blue);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.05; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Iconografía ---------- */
.ico { --ic-ln: var(--blue); --ic-ac: var(--red); width: 44px; height: 44px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* Los estilos se aplican sobre el <symbol>; los colores llegan por variables heredadas */
symbol .ln { stroke: var(--ic-ln); fill: none; }
symbol .ac { stroke: var(--ic-ac); fill: none; }
.ico--white { --ic-ln: #fff; }

/* ---------- Elementos gráficos de marca ---------- */
/* Chevron (manual pág. 15) */
.chev {
  display: inline-block; width: 10px; height: 14px; background: var(--red);
  clip-path: polygon(0 0, 50% 0, 100% 50%, 50% 100%, 0 100%, 50% 50%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.eyebrow--light { color: var(--red-200); }
.title { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.title span { color: var(--red); }
.title--light { color: #fff; }
.title--light span { color: var(--red-300); }

/* Franja roja con paralelogramos (cabecera de piezas del manual) */
.band { display: flex; height: 14px; gap: 10px; position: relative; z-index: 2; }
.band::before { content: ""; flex: 1; background: var(--red); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.band i { width: 56px; background: var(--red); clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.band i:last-child { margin-right: 6vw; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--blue); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border: 2px solid transparent; border-radius: 8px;
  background: var(--bg); color: var(--fg);
  font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn::after {
  content: ""; width: 8px; height: 12px; background: currentColor;
  clip-path: polygon(0 0, 50% 0, 100% 50%, 50% 100%, 0 100%, 50% 50%);
  transition: transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(4px); }
.btn--red { --bg: var(--red); }
.btn--red:hover { --bg: var(--red-dark); }
.btn--ghost { --bg: transparent; --fg: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { --bg: var(--blue); --fg: #fff; }
.btn--white { --bg: #fff; --fg: var(--red); }
.btn--white:hover { --bg: var(--blue); --fg: #fff; }
.btn--block { width: 100%; }
:focus-visible { outline: 3px solid var(--red-300); outline-offset: 3px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--gray-100); box-shadow: 0 8px 24px -16px rgba(14, 34, 50, .3); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-weight: 500; font-size: .93rem; text-decoration: none; position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { padding: 11px 20px; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; background: var(--blue); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.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); }

/* ---------- Banner: zoom veloz de la vista aérea a la obra (main.js) ---------- */
.b3d {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  background: var(--blue);
}
.b3d__capa {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; will-change: transform, opacity;
}
.b3d__capa[data-capa="1"] { opacity: 1; animation: acercar 18s ease-in-out infinite alternate; }
.b3d--viajando .b3d__capa, .b3d--cerca .b3d__capa { animation: none; }
.b3d--cerca .b3d__capa[data-capa="2"] { opacity: 1; }
/* nubes de la vista aérea (assets/js/nubes.js): al explorar, la cámara las atraviesa */
.b3d__nubes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .7s ease-in, transform .9s ease-in; }
.b3d--viajando .b3d__nubes, .b3d--cerca .b3d__nubes, .b3d--quieto .b3d__nubes { opacity: 0; transform: scale(2.6); }
/* al explorar, la cámara atraviesa las nubes: aceleran hacia afuera al ritmo del zoom (1,6 s)
   y se desvanecen justo cuando entra la obra */
.b3d--viajando:not(.b3d--volviendo) .b3d__nubes { transition: transform 1s cubic-bezier(.55, 0, 1, .45), opacity .45s ease-in .5s; }
/* al volver, la animación de main.js lleva las nubes; aquí solo su estado final, sin transición */
.b3d--volviendo .b3d__nubes { opacity: 1; transform: none; transition: none; }
/* líneas de velocidad del zoom (solo visibles durante el vuelo) */
.b3d__velocidad {
  position: absolute; inset: -20%; opacity: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .6) 0deg .5deg, transparent .5deg 8deg);
  -webkit-mask-image: radial-gradient(circle, transparent 28%, rgba(0, 0, 0, .85) 75%);
  mask-image: radial-gradient(circle, transparent 28%, rgba(0, 0, 0, .85) 75%);
  filter: blur(1px);
}
@keyframes acercar { from { transform: scale(1); } to { transform: scale(1.08); } }
.b3d--quieto .b3d__capa { opacity: 0; animation: none; }
.b3d--quieto .b3d__capa[data-capa="2"] { opacity: 1; }
.b3d__velo {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 34, 50, .55) 0%, rgba(14, 34, 50, 0) 26%, rgba(14, 34, 50, 0) 45%, rgba(14, 34, 50, .82) 100%);
}
/* panel translúcido para que el texto se lea sobre cualquier foto */
.b3d__texto {
  position: absolute; left: max(20px, calc((100% - 1200px) / 2)); bottom: 7vh; max-width: 470px;
  padding: 22px 26px; border-radius: 16px; border-left: 5px solid var(--red);
  background: rgba(14, 34, 50, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
  color: #fff; transition: opacity .7s ease, transform .7s ease;
}
.b3d__kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-weight: 600; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red-200);
}
.b3d__titulo, .b3d__subtitulo { margin: 0 0 .35em; font-size: clamp(1.5rem, 2.6vw, 2.4rem); font-weight: 800; line-height: .98; text-transform: uppercase; letter-spacing: -.015em; text-shadow: 0 2px 24px rgba(14, 34, 50, .35); }
.b3d__titulo span, .b3d__subtitulo span { color: var(--red); }
.b3d__subtitulo { margin: 0; }
.b3d__explorar { margin-top: 14px; font-size: 1rem; padding: 14px 28px; animation: latido 2.2s ease-in-out infinite; }
.b3d__pista { margin: 14px 0 0; font-size: .88rem; color: #dfe6ec; }
.b3d__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.b3d__acciones .btn { padding: 12px 20px; font-size: .9rem; }
.btn--claro { --bg: transparent; --fg: #fff; border-color: #fff; }
.btn--claro:hover { --bg: #fff; --fg: var(--blue); }

/* marcador sobre la ciudad: también es un botón */
.b3d__marcador {
  position: absolute; left: 58%; top: 56%; z-index: 3; width: 0; height: 0; padding: 0; border: 0; background: none; cursor: pointer;
  transition: opacity .5s;
}
.b3d__pin {
  position: absolute; left: -22px; top: -60px; width: 44px; height: 50px; background: var(--red);
  clip-path: polygon(25% 0, 75% 0, 100% 40%, 50% 100%, 0 40%);
  animation: rebota 1.4s ease-in-out infinite;
}
.b3d__pin::after { content: ""; position: absolute; left: 14px; top: 10px; width: 16px; height: 16px; background: #fff; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.b3d__marcador::before {
  content: ""; position: absolute; left: -26px; top: -14px; width: 52px; height: 28px; border-radius: 50%;
  border: 3px solid var(--red); animation: onda 1.8s ease-out infinite;
}
.b3d__aviso {
  position: absolute; left: 34px; top: -64px; white-space: nowrap;
  background: #fff; color: var(--blue); border-radius: 999px; padding: 10px 18px;
  font: 600 .92rem var(--font-body); box-shadow: 0 10px 28px -10px rgba(14, 34, 50, .5);
}
@keyframes rebota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes onda { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes latido { 0%, 100% { box-shadow: 0 0 0 0 rgba(191, 23, 24, .55); } 50% { box-shadow: 0 0 0 14px rgba(191, 23, 24, 0); } }

/* estados: aéreo (por defecto) → viajando → cerca */
.b3d__texto--final { opacity: 0; transform: translateY(30px); pointer-events: none; }
.b3d--viajando .b3d__texto--intro, .b3d--cerca .b3d__texto--intro { opacity: 0; transform: translateY(-30px); pointer-events: none; }
.b3d--viajando .b3d__marcador, .b3d--cerca .b3d__marcador { opacity: 0; pointer-events: none; }
/* marcador para volver: a la derecha, sobre los árboles, solo en la vista de la obra */
.b3d__marcador--volver { left: 72%; top: 44%; opacity: 0; pointer-events: none; }
.b3d--cerca .b3d__marcador--volver { opacity: 1; pointer-events: auto; }
.b3d--cerca .b3d__texto--final { opacity: 1; transform: none; pointer-events: auto; }
/* con movimiento reducido: se muestra directamente la obra con el mensaje final */
.b3d--quieto .b3d__texto--intro, .b3d--quieto .b3d__marcador { display: none; }
.b3d--quieto .b3d__texto--final { opacity: 1; transform: none; pointer-events: auto; }

/* Header transparente mientras se ve el banner */
.header__logo .logo-blanco { display: none; }
.header.sobre-banner:not(.menu-abierto) { background: transparent; backdrop-filter: none; border-color: transparent; box-shadow: none; }
.header.sobre-banner:not(.menu-abierto) .logo-color { display: none; }
.header.sobre-banner:not(.menu-abierto) .logo-blanco { display: block; }
.header.sobre-banner:not(.menu-abierto) .burger span { background: #fff; }
@media (min-width: 861px) { .header.sobre-banner .nav a:not(.btn) { color: #fff; } }

/* ---------- Secciones ---------- */
.section { padding: 110px 0; }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__head > p:last-child { color: #4a5b6a; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section__head--row > p { max-width: 380px; color: var(--gray-300); margin: 0; }

/* Nosotros */
/* la foto ocupa exactamente el alto del texto: arriba alinea con «Quiénes somos» y abajo con la lista */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: stretch; }
.about__media { position: relative; min-height: 420px; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; width: 100%; height: 100%; position: absolute; inset: 0; z-index: 1; }
.about__dots {
  position: absolute; right: -26px; bottom: -26px; width: 120px; height: 120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M12 3l7 4v8l-7 4-7-4V7z' fill='%23BF1718'/%3E%3C/svg%3E");
  background-size: 24px 24px;
}
.about__text p { color: #3c4f60; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: .95rem; }
.checks li::before {
  content: ""; flex: none; margin-top: 6px; width: 9px; height: 13px; background: var(--red);
  clip-path: polygon(0 0, 50% 0, 100% 50%, 50% 100%, 0 100%, 50% 50%);
}

/* Servicios */
.services { background: var(--frisado); position: relative; }
/* una sola fila: número, ícono y título; al pasar el mouse la tarjeta se vuelve azul y el ícono se anima */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border-radius: var(--radius); padding: 26px 16px 24px; border: 1px solid var(--gray-100);
  cursor: default; outline: none;
  transition: transform .35s cubic-bezier(.2, .8, .3, 1), box-shadow .35s, background .35s, color .35s;
}
.card::before { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.card__num { font: 800 1.9rem/1 var(--font-title); color: var(--gray-100); margin-bottom: 14px; transition: color .35s, transform .35s; }
.card__icon {
  width: 76px; height: 76px; border-radius: 20px; background: var(--frisado); display: grid; place-items: center; margin-bottom: 18px;
  transition: background .35s, transform .5s cubic-bezier(.2, .8, .3, 1);
}
.card__icon .ico { width: 46px; height: 46px; transition: transform .5s cubic-bezier(.2, .8, .3, 1); }
/* títulos de dos líneas como máximo, todos a la misma altura */
.card h3 { font-size: 1rem; font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: .01em; margin: 0; min-height: 2.4em; display: flex; align-items: center; justify-content: center; transition: color .35s; }
.card:hover, .card:focus-visible { transform: translateY(-10px); box-shadow: var(--shadow); background: var(--blue); color: #fff; }
.card:hover::before, .card:focus-visible::before { transform: scaleX(1); }
.card:hover .card__num, .card:focus-visible .card__num { color: var(--red); transform: scale(1.15); }
.card:hover .card__icon, .card:focus-visible .card__icon { background: var(--blue-800); transform: rotate(-6deg) scale(1.08); }
.card:hover .ico, .card:focus-visible .ico { --ic-ln: #fff; transform: rotate(6deg); }

/* Franja deslizante */
.strip { background: var(--red); color: #fff; overflow: hidden; padding: 22px 0; }
.strip__track { display: flex; gap: 60px; width: max-content; animation: marquee 32s linear infinite; }
.strip__track span { display: flex; align-items: center; gap: 14px; font: 700 1.15rem/1 var(--font-title); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.strip__track .ico { width: 34px; height: 34px; }
.strip__track .ico { --ic-ac: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Proceso */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { position: relative; padding: 0 28px 0 0; }
.step::before { content: ""; display: block; height: 3px; background: var(--gray-100); margin: 0 0 26px; }
.step::after {
  content: ""; position: absolute; top: -6px; left: 0; width: 15px; height: 15px; background: var(--red);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.step__n { font: 800 3rem/1 var(--font-title); color: var(--red); display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.3rem; text-transform: uppercase; }
.step p { color: #4a5b6a; font-size: .93rem; }

/* Obras */
.works { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.works::before {
  content: ""; position: absolute; right: -80px; top: 60px; width: 380px; height: 380px; opacity: .08;
  background: url("../logo/isotipo-blanco.svg") center / contain no-repeat;
}
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 16px; position: relative; }
.g { margin: 0; position: relative; overflow: hidden; border-radius: 12px; background: var(--blue-800); }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g:hover img { transform: scale(1.06); }
.g figcaption {
  position: absolute; left: 0; bottom: 0; padding: 26px 18px 14px; width: 100%;
  background: linear-gradient(transparent, rgba(14, 34, 50, .9));
  font: 700 .95rem/1 var(--font-title); letter-spacing: .08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.g figcaption::before { content: ""; width: 8px; height: 12px; background: var(--red); clip-path: polygon(0 0, 50% 0, 100% 50%, 50% 100%, 0 100%, 50% 50%); }

/* CTA */
.cta { background: var(--red); color: #fff; padding: 60px 0; position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 40%;
  background: repeating-linear-gradient(-55deg, transparent 0 34px, rgba(255, 255, 255, .07) 34px 54px);
}
.cta__inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 32px; }
.cta__iso { width: 70px; flex: none; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); text-transform: uppercase; margin-bottom: 4px; }
.cta p { margin: 0; color: var(--red-100); }
.cta .btn { margin-left: auto; flex: none; }

/* Contacto */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact__info > p { color: #4a5b6a; }
.contact__list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__list small { display: block; color: var(--gray-600); font-size: .8rem; }
.contact__list a, .contact__list span:not(.contact__ic) { font-weight: 600; text-decoration: none; word-break: break-word; }
.contact__list a:hover { color: var(--red); }
.contact__ic { flex: none; width: 50px; height: 50px; border-radius: 12px; background: var(--frisado); display: grid; place-items: center; }
.contact__ic svg { width: 22px; height: 22px; fill: var(--red); }

.form { background: var(--frisado); border-radius: var(--radius); padding: 38px; border-top: 5px solid var(--red); }
.form h3 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 16px; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px;
  font: 400 .95rem var(--font-body); color: var(--blue);
  background: #fff; border: 1.5px solid var(--gray-100); border-radius: 8px; transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); }
.form .is-invalid { border-color: var(--red); }
.form textarea { resize: vertical; }
.form__note { margin: 12px 0 0; font-size: .85rem; color: var(--red); min-height: 1.2em; }

/* Footer */
.footer { background: var(--blue); color: #c6d0d8; padding: 0 0 26px; }
.band--top { transform: translateY(-1px); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 40px; padding: 64px 0 44px; }
.footer__logo { width: 170px; height: auto; }
.footer__nit { margin-top: 16px; font-size: .85rem; }
.footer h4 { color: #fff; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .92rem; }
.footer a { text-decoration: none; word-break: break-word; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid var(--blue-700); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
.footer__pillars { font: 700 .85rem/1 var(--font-title); letter-spacing: .16em; text-transform: uppercase; color: #fff; display: flex; align-items: center; gap: 12px; }
.footer__pillars i { width: 8px; height: 8px; background: var(--red); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }

/* WhatsApp flotante */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .35);
  transition: transform .2s;
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* Botón para volver arriba: aparece al bajar, encima del de WhatsApp */
.arriba {
  position: fixed; right: 29px; bottom: 92px; z-index: 40; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s;
}
.arriba.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.arriba:hover { background: var(--red-dark); transform: translateY(-3px); }
.arriba svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .contact__grid { gap: 40px; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 10px 20px 24px; border-bottom: 4px solid var(--red);
    transform: translateY(-120%); visibility: hidden; transition: transform .35s, visibility .35s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
  .nav__cta { margin-top: 16px; }

  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  /* celular: paneles compactos para que se vea la imagen */
  .b3d__texto { left: 16px; right: 16px; bottom: 92px; padding: 14px 16px; border-left-width: 4px; border-radius: 12px; }   /* por encima del botón de WhatsApp */
  .b3d__kicker { font-size: .66rem; letter-spacing: .12em; margin-bottom: 8px; }
  .b3d__titulo, .b3d__subtitulo { font-size: 1.35rem; margin-bottom: 0; }
  .b3d__explorar { margin-top: 10px; padding: 10px 20px; font-size: .9rem; }
  .b3d__pista { display: none; }
  .b3d__acciones { margin-top: 12px; gap: 8px; flex-wrap: nowrap; }
  .b3d__acciones .btn { flex: 1 1 0; min-width: 0; padding: 10px 4px; font-size: .69rem; white-space: nowrap; }
  .b3d__acciones .btn::after { display: none; }
  .b3d__marcador { left: 50%; top: 40%; }
  /* volver: más abajo y a la izquierda para no tapar el menú; la burbuja a la derecha del pin */
  .b3d__marcador--volver { left: 24%; top: 40%; }
  .b3d__marcador--volver .b3d__aviso { left: 30px; top: -62px; font-size: .82rem; padding: 8px 14px; }
  .b3d__aviso { left: -90px; top: -112px; }
  .about__dots { right: -8px; bottom: -14px; width: 90px; height: 90px; }
  .about__media { min-height: 0; aspect-ratio: 4 / 3.4; }
  .section { padding: 80px 0; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .cta .btn { margin-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps, .checks, .form__row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 10px; }
  .g--wide { grid-column: span 2; }
  /* en celular la foto alta ocupa todo el ancho para no dejar un hueco al lado */
  .gallery { grid-template-rows: 240px; }
  .g--tall { grid-column: span 2; grid-row: span 1; }
  .g figcaption { font-size: .78rem; letter-spacing: .05em; padding: 22px 12px 12px; gap: 8px; }
  .form { padding: 26px 20px; }
  .footer__grid { grid-template-columns: 1fr; }
  .band i { width: 34px; }
  .header__logo img { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .b3d__explorar, .b3d__pin, .b3d__marcador::before, .b3d__capa { animation: none; }
  html { scroll-behavior: auto; }
  .strip__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
