/* =========================================================
   Botas Jaspe — Sistema de diseño
   Paleta tomada del logo y el catálogo impreso de la marca:
   rojo Jaspe #E22229 (muestreado del logo), carbón, acero.
   Motivo de marca: el rombo/diamante del material impreso.
   ========================================================= */

:root {
  --rojo: #e22229;
  --rojo-osc: #b4161e;
  --tinta: #14161a;
  --carbon: #1e2126;
  --carbon-2: #22262c;
  --acero: #575f68;
  --gris-texto: #2a2e33;
  --gris-claro: #c6cbd1;
  --niebla: #eef0f2;
  --papel: #ffffff;
  --linea: #dce0e4;
  --linea-osc: #31363d;
  --wa: #1fb355;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
  --sombra: 0 10px 30px rgba(15, 17, 20, 0.10);
  --notch: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.09rem;
  line-height: 1.68;
  color: var(--gris-texto);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 100;
  background: var(--rojo); color: #fff; padding: 0.6rem 1rem;
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 1rem; }

.wrap { width: min(1440px, 100% - 3rem); margin-inline: auto; }
/* el encabezado ocupa todo el ancho de la pantalla */
.wrap--full { width: 100%; max-width: none; padding-inline: clamp(1.25rem, 3vw, 3rem); margin-inline: 0; }

/* ---------- tipografía ---------- */
.h1, .h2, .h3 { font-family: var(--display); text-transform: uppercase; margin: 0; }
.h1 {
  font-size: clamp(2.7rem, 6.2vw, 4.6rem);
  font-weight: 700; line-height: 0.95; letter-spacing: 0.01em; color: #fff;
}
.h1 em { font-style: normal; color: var(--rojo); }
.h1--page { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.h1--pdp { font-size: clamp(2rem, 4.2vw, 2.9rem); color: var(--tinta); line-height: 1; }
.h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600; line-height: 1.05; letter-spacing: 0.01em; color: var(--tinta);
}
.h2--sm { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.section--dark .h2, .cta-band .h2 { color: #fff; }

.eyebrow {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--acero); margin: 0 0 0.9rem;
}
.eyebrow--light { color: var(--gris-claro); }

/* El rombo: motivo de marca (del catálogo impreso) */
.dm {
  width: 9px; height: 9px; background: var(--rojo);
  transform: rotate(45deg); flex: 0 0 auto; display: inline-block;
}

/* ---------- botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none;
  padding: 0.78rem 1.7rem; border: 0; cursor: pointer;
  clip-path: var(--notch);
  transition: background 0.18s, transform 0.18s, color 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--rojo); color: #fff; }
.btn--red:hover { background: var(--rojo-osc); }
.btn--ghost {
  background: transparent; color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
  clip-path: none;
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn--ghost-dark { color: var(--tinta); box-shadow: inset 0 0 0 2px var(--tinta); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #178f44; }
.btn .ic { width: 20px; height: 20px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; color: var(--rojo); text-decoration: none;
}
.link-arrow .ic { width: 18px; height: 18px; transition: transform 0.18s; }
.link-arrow:hover .ic { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

.ic { width: 22px; height: 22px; flex: 0 0 auto; }
.ic--lg { width: 34px; height: 34px; }

/* ---------- encabezado ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: var(--tinta);
  border-bottom: 1px solid var(--linea-osc);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.brand__mark { height: 46px; width: auto; }
.brand__boot { height: 46px; width: auto; }
.nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) {
  font-family: var(--display); font-size: 1.02rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--gris-claro); text-decoration: none; padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--rojo); }
.nav__cta { font-size: 0.95rem; padding: 0.6rem 1.2rem; }
.nav-toggle { display: none; }

/* ---------- héroe ---------- */
.hero, .page-hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(226, 34, 41, 0.07), transparent 45%),
    linear-gradient(180deg, var(--tinta), var(--carbon));
  color: #fff;
  overflow: hidden;
}
.hero__in {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: 3rem;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(5rem, 10vw, 7.5rem);
}
.hero__sub, .page-hero__sub {
  max-width: 38rem; color: var(--gris-claro);
  font-size: 1.15rem; margin: 1.2rem 0 1.8rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__art { position: relative; justify-self: center; }
.hero__frame {
  width: min(30rem, 42vw); aspect-ratio: 1 / 1;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--carbon-2);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__d { position: absolute; display: block; transform: rotate(45deg); }
.hero__d--red { width: 3.4rem; height: 3.4rem; background: var(--rojo); left: 4%; bottom: 10%; }
.hero__d--line { width: 5.2rem; height: 5.2rem; border: 2px solid rgba(255, 255, 255, 0.28); right: 2%; top: 6%; }

/* costura diagonal entre secciones (guiño al collage angular del catálogo) */
.hero__seam {
  position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(2.2rem, 5vw, 4rem);
  background: var(--papel);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.page-hero .wrap { padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(4.4rem, 9vw, 6.4rem); }
.page-hero__sub { margin-bottom: 0; }
.page-hero--404 .wrap { padding-bottom: clamp(6rem, 12vw, 9rem); }
.page-hero--404 .hero__actions { margin-top: 1.6rem; }

/* ---------- barra de confianza ---------- */
.trust { background: var(--papel); border-bottom: 1px solid var(--linea); }
.trust__in {
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 1.6rem 0 1.9rem; gap: 1rem;
}
.trust__item { text-align: center; padding: 0 0.6rem; position: relative; }
.trust__item + .trust__item::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 1px; background: var(--linea);
}
.trust__item strong {
  display: block; font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700; color: var(--tinta); line-height: 1.1;
}
.trust__item span { font-size: 0.95rem; color: var(--acero); }

/* ---------- secciones ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.section--dark { background: var(--carbon); color: var(--gris-claro); }
.section__head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}

.grid { display: grid; gap: 1.6rem; }
.grid--cards { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- tarjetas de producto ---------- */
/* [hidden] debe imponerse sobre display:flex (bug del filtro) */
.pcard[hidden] { display: none !important; }
.pcard {
  background: var(--papel); border: 1px solid var(--linea);
  display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s;
}
.pcard:hover { box-shadow: var(--sombra); transform: translateY(-3px); }
.pcard__media { background: #fff; border-bottom: 1px solid var(--linea); }
.pcard__media img { width: 100%; height: 240px; object-fit: contain; padding: 1.1rem; }
.pcard__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.pcard__tag {
  display: flex; align-items: center; gap: 0.5rem; margin: 0;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--acero);
}
.pcard__tag .dm { width: 7px; height: 7px; }
.pcard__title { font-family: var(--display); font-size: 1.45rem; font-weight: 600; text-transform: uppercase; line-height: 1.05; margin: 0; }
.pcard__title a { color: var(--tinta); text-decoration: none; }
.pcard__title a:hover { color: var(--rojo); }
.pcard__model { margin: 0; font-size: 0.86rem; color: var(--acero); }
.pcard__use { margin: 0.2rem 0 0.6rem; font-size: 1.01rem; }
.pcard__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; margin-top: auto; padding-top: 0.7rem; border-top: 1px solid var(--linea);
}
.pcard__sizes { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--acero); }
.pcard__sizes .ic { width: 17px; height: 17px; }
.pcard .link-arrow { margin-top: 0.7rem; font-size: 0.95rem; }

/* muestras de color: rombos, como el motivo de marca */
.swatches { display: inline-flex; align-items: center; gap: 0.55rem; }
.sw {
  width: 13px; height: 13px; transform: rotate(45deg); display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.22);
}
.sw--negro { background: #17181a; }
.sw--marron { background: #6b4a2f; }
.sw--colonial { background: #8a4b25; }
.sw--natural { background: #c9a25e; }
.sw--beige { background: #c8b088; }
.sw--blanco { background: #fff; }
.swatches--named { font-size: 0.92rem; gap: 0.4rem; }

/* ---------- por qué / valores ---------- */
.why__grid { margin-top: 2.2rem; }
.why__item h3 {
  font-family: var(--display); font-size: 1.3rem; font-weight: 600;
  text-transform: uppercase; color: #fff; margin: 0.9rem 0 0.5rem;
}
.why__item p { margin: 0; font-size: 1.03rem; }
.why__item .ic--lg { color: var(--rojo); }
.why__item--light h3 { color: var(--tinta); }
.why__item--light { color: var(--gris-texto); }

/* ---------- banda de certificados ---------- */
.certs { background: var(--niebla); padding: clamp(2.6rem, 6vw, 4.2rem) 0; }
.certs__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.certs__txt p:not(.eyebrow) { max-width: 32rem; }
.certs__badges {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  justify-items: stretch; align-items: stretch;
}
.certs__badges li {
  background: #fff; border: 1px solid var(--linea);
  padding: 1rem 0.9rem 0.8rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  min-width: 0;
}
.certs__badges img { height: 64px; width: auto; object-fit: contain; }
.certs__badges span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; color: var(--acero); text-transform: uppercase; }
.certs--compact { padding: clamp(2rem, 4.5vw, 3rem) 0; }

/* ---------- historia (inicio) ---------- */
.story__in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; }
.story__media { margin: 0; position: relative; }
.story__media img { border: 1px solid var(--linea); }
.story__media::after {
  content: ""; position: absolute; right: -14px; bottom: -14px;
  width: 3rem; height: 3rem; background: var(--rojo); transform: rotate(45deg); z-index: -1;
}
.story__media figcaption { font-size: 0.92rem; color: var(--acero); margin-top: 0.6rem; }
.story__copy p:not(.eyebrow) { max-width: 36rem; margin: 1rem 0 1.4rem; }

/* ---------- franja instagram ---------- */
.ig { border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.ig__in { display: flex; align-items: center; justify-content: center; gap: 0.9rem; padding: 1.4rem 0; }
.ig .ic--lg { color: var(--rojo); }
.ig p { margin: 0; font-size: 1.05rem; }
.ig a { font-weight: 600; color: var(--tinta); }

/* ---------- banda CTA ---------- */
.cta-band {
  background:
    linear-gradient(115deg, rgba(226, 34, 41, 0.12), transparent 50%),
    var(--carbon);
  color: var(--gris-claro);
}
.cta-band__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; padding: clamp(2.6rem, 6vw, 4rem) 0;
}
.cta-band p { margin: 0.7rem 0 0; max-width: 36rem; }
.cta-band__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- filtros del catálogo ---------- */
.filters { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; }
.filters__group { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.filters__label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--acero); margin-right: 0.4rem;
}
.filters__label .ic { width: 17px; height: 17px; }
.chip {
  font-family: var(--display); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: #fff; color: var(--gris-texto);
  border: 1.5px solid var(--linea); padding: 0.42rem 0.95rem; cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--acero); }
.chip.is-active { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.filters__empty { padding: 1.4rem; background: var(--niebla); border-left: 4px solid var(--rojo); }
.catalog-note { margin-top: 2.2rem; color: var(--acero); font-size: 0.95rem; }
.catalog-note a { color: var(--rojo); font-weight: 600; }

/* ---------- página de producto ---------- */
.pdp { padding: 1.6rem 0 0; }
.crumbs { font-size: 0.86rem; color: var(--acero); margin-bottom: 1.6rem; }
.crumbs a { color: var(--acero); text-decoration: none; }
.crumbs a:hover { color: var(--rojo); }
.pdp__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: start; }
.pdp__photo { background: #fff; border: 1px solid var(--linea); padding: 1.2rem; transition: background 0.2s; }
.pdp__photo--gris { background: var(--niebla); }
.pdp__photo img { width: 100%; height: auto; max-height: 460px; object-fit: contain; }
.pdp__thumbs { display: flex; gap: 0.7rem; margin-top: 0.8rem; }
.pdp__thumb {
  background: var(--niebla); border: 1.5px solid var(--linea);
  padding: 0.3rem; cursor: pointer; width: 92px;
}
.pdp__thumb img { width: 100%; height: 64px; object-fit: contain; }
.pdp__thumb.is-active { border-color: var(--rojo); }
.pdp__model { color: var(--acero); margin: 0.5rem 0 1rem; }
.pdp__desc { max-width: 34rem; }
.pdp__facts { border-top: 1px solid var(--linea); margin: 1.4rem 0; }
.pdp__facts > div {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.65rem 0; border-bottom: 1px solid var(--linea); font-size: 0.97rem;
}
.pdp__facts > div > span:first-child {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--acero);
}
.pdp__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.pdp__ficha {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; color: var(--tinta); text-decoration: none;
  border-bottom: 2px solid var(--rojo); padding-bottom: 2px;
}
.pdp__ficha:hover { color: var(--rojo); }

.specs { background: var(--papel); }
.specs__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.speclist { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.speclist li {
  display: flex; gap: 0.85rem; align-items: start;
  padding: 0.85rem 1rem; background: var(--niebla);
}
.speclist .ic { color: var(--rojo); margin-top: 0.1rem; }
.spectable { width: 100%; border-collapse: collapse; margin-top: 1.4rem; font-size: 1.01rem; }
.spectable th, .spectable td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--linea); vertical-align: top; }
.spectable th {
  width: 34%; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--acero);
}

/* ---------- calidad ---------- */
.qcards { align-items: stretch; }
.qcard { border: 1px solid var(--linea); padding: 1.8rem 1.6rem; background: #fff; }
.qcard__badge { height: 96px; display: flex; align-items: center; margin-bottom: 1.1rem; }
.qcard__badge img { max-height: 96px; width: auto; }
.qcard h2 {
  font-family: var(--display); font-size: 1.45rem; font-weight: 600;
  text-transform: uppercase; color: var(--tinta); margin: 0 0 0.6rem;
}
.qcard p { margin: 0; font-size: 1.03rem; }
.qdocs { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.qdocs p { max-width: 36rem; margin: 0.7rem 0 0; }
.qdocs__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- nosotros ---------- */
.historia__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
.historia__txt p { max-width: 38rem; }
.historia__fotos { display: grid; gap: 1.4rem; align-content: start; }
.historia__fotos figure { margin: 0; }
.historia__fotos img { border: 1px solid var(--linea); }
.historia__fotos figcaption { font-size: 0.92rem; color: var(--acero); margin-top: 0.5rem; }

.timeline { list-style: none; margin: 2.4rem 0 0; padding: 0; position: relative; display: grid; gap: 1.4rem; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: var(--linea-osc);
}
.timeline li { position: relative; padding-left: 2.2rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 12px; background: var(--rojo); transform: rotate(45deg);
}
.timeline strong {
  display: block; font-family: var(--display); font-size: 1.35rem;
  font-weight: 700; text-transform: uppercase; color: #fff;
}
.timeline span { font-size: 1.05rem; }

/* ---------- contacto ---------- */
.contacto__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: start; }
.form { background: #fff; border: 1px solid var(--linea); padding: 2rem; }
.form .h2--sm { margin-bottom: 1.4rem; }
.form__row { margin-bottom: 1.1rem; }
.form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label {
  display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--acero); margin-bottom: 0.35rem;
}
.form label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--gris-texto);
  border: 1.5px solid var(--linea); background: #fff;
  padding: 0.65rem 0.8rem; border-radius: 0;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(226, 34, 41, 0.14);
}
.form input.is-invalid, .form textarea.is-invalid { border-color: var(--rojo); }
.form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; top: -9999px; }
.form__privacy { font-size: 0.85rem; color: var(--acero); }
.form__submit { width: 100%; justify-content: center; font-size: 1.15rem; }
.form__submit[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.form__status { margin: 0.9rem 0 0; font-weight: 600; min-height: 1.4em; }
.form__status.is-ok { color: #157a3d; }
.form__status.is-error { color: var(--rojo-osc); }

.contacto__cards { display: grid; gap: 1rem; }
.ccard {
  display: flex; align-items: center; gap: 1.1rem;
  border: 1px solid var(--linea); background: #fff;
  padding: 1.1rem 1.3rem; text-decoration: none; color: var(--gris-texto);
  transition: box-shadow 0.18s, transform 0.18s;
}
a.ccard:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.ccard .ic--lg { color: var(--rojo); }
.ccard strong { display: block; font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; }
.ccard span { font-size: 0.93rem; color: var(--acero); display: block; }
.ccard--static { align-items: start; }
.ccard--static .link-arrow { font-size: 0.92rem; margin-top: 0.4rem; }

/* ---------- pie ---------- */
.footer { background: var(--tinta); color: var(--gris-claro); font-size: 1.01rem; }
.footer__grid {
  display: grid; grid-template-columns: 1.3fr 0.7fr 0.9fr 1.3fr;
  gap: 2.4rem; padding: clamp(2.8rem, 6vw, 4rem) 0 2rem;
}
.footer__brand img { width: 120px; margin-bottom: 1rem; }
.footer__brand p { max-width: 26rem; margin: 0; }
.footer__h {
  font-family: var(--display); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin: 0 0 0.9rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer a { color: var(--gris-claro); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__contact li { display: flex; gap: 0.6rem; align-items: start; }
.footer__contact .ic { width: 18px; height: 18px; margin-top: 0.2rem; color: var(--rojo); }
.footer__base {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--linea-osc); padding: 1.2rem 0 1.6rem;
  font-size: 0.83rem; color: #8b929b;
}
.footer__base p { margin: 0; }

/* ---------- botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s;
}
.wa-float .ic { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.55s ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .pcard:hover, a.ccard:hover, .wa-float:hover { transform: none; }
}

/* ---------- responsivo ---------- */
@media (max-width: 1020px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .trust__in { grid-template-columns: repeat(3, 1fr); row-gap: 1.4rem; }
  .trust__item:nth-child(4)::before { display: none; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; z-index: 55;
    background: var(--tinta); border-bottom: 1px solid var(--linea-osc);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.6rem 1.4rem 1.4rem;
    transform: translateY(-130%); transition: transform 0.25s ease;
  }
  .nav.is-open { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a:not(.btn) { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--linea-osc); font-size: 1.15rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--rojo); }
  .nav__cta { margin-top: 1rem; justify-content: center; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 10px;
    background: transparent; border: 1.5px solid var(--linea-osc); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: #fff; transition: transform 0.22s, opacity 0.22s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__in { grid-template-columns: 1fr; gap: 2.4rem; padding-bottom: clamp(4.4rem, 12vw, 6rem); }
  .hero__art { order: -1; }
  .hero__frame { width: min(22rem, 78vw); }
  .grid--cards { grid-template-columns: repeat(2, 1fr); }
  .certs__in, .story__in, .pdp__grid, .specs__grid, .historia__grid, .contacto__grid { grid-template-columns: 1fr; }
  .certs__badges { justify-content: start; }
  .story__media { max-width: 26rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .grid--cards, .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .trust__in { grid-template-columns: repeat(2, 1fr); }
  .trust__item::before { display: none; }
  .form__two { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section__head { align-items: start; flex-direction: column; }
  .hero__d--line { display: none; }
  .pcard__media img { height: 210px; }
  .form { padding: 1.4rem; }
}


/* ---------- mosaico de fotos historicas (Nosotros) ---------- */
.mosaico { margin-top: 2.6rem; display: grid; gap: 1rem; }
.mosaico__bloque { display: grid; gap: 1rem; }
.mosaico__bloque--cuatro { grid-template-columns: repeat(2, 1fr); }
.mosaico__bloque--dos    { grid-template-columns: repeat(2, 1fr); }
.mosaico__bloque--tres   { grid-template-columns: repeat(3, 1fr); }
.mosaico__bloque--una    { grid-template-columns: 1fr; }
.mosaico figure { margin: 0; position: relative; }
.mosaico img {
  width: 100%; height: 100%; object-fit: cover;
  border: 1px solid var(--linea); background: var(--niebla);
}
.mosaico__bloque--cuatro img { aspect-ratio: 4 / 3; }
.mosaico__bloque--dos img    { aspect-ratio: 4 / 3; }
.mosaico__bloque--tres img   { aspect-ratio: 4 / 3; }
.mosaico__bloque--una img    { aspect-ratio: 16 / 10; }
.mosaico figcaption {
  font-size: 0.9rem; color: var(--acero); margin-top: 0.45rem; line-height: 1.4;
}
.mosaico__destacada { position: relative; }
.mosaico__destacada::after {
  content: ""; position: absolute; right: -12px; bottom: -12px;
  width: 2.4rem; height: 2.4rem; background: var(--rojo);
  transform: rotate(45deg); z-index: -1;
}
.galeria-nota { margin-top: 1.6rem; color: var(--acero); font-size: 0.95rem; }

@media (max-width: 700px) {
  .mosaico__bloque--cuatro, .mosaico__bloque--dos, .mosaico__bloque--tres { grid-template-columns: 1fr 1fr; }
  .mosaico figcaption { font-size: 0.84rem; }
}
