/* =========================================================================
   Hielos de la Riviera — hoja de estilos
   Paleta tomada del logotipo original: azul #2d3692 y cian #19a8dd
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Marca */
  --brand: #2d3692;
  --brand-700: #242c79;
  --brand-800: #1b2160;
  --brand-900: #121740;
  --cyan: #19a8dd;
  --cyan-400: #3fb9e8;
  --cyan-200: #a9dcf3;
  --cyan-100: #d9eefa;

  /* Neutros */
  --ink: #0f1533;
  --ink-soft: #3b4463;
  --muted: #5c6688;
  /* #5c6688 sobre blanco = 5.66:1 — holgadamente sobre el mínimo AA (4.5:1) */
  --line: #e2eaf3;
  --line-strong: #cfdcea;
  --surface: #ffffff;
  --tint: #f4f9fd;
  --tint-2: #eaf4fb;

  /* Acentos funcionales */
  --wa: #25d366;
  --wa-dark: #1eb455;
  --danger: #c0392b;

  /* Tipografía */
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: clamp(1rem, 0.97rem + 0.13vw, 1.06rem);
  --fs-lead: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  --fs-h3: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --fs-h2: clamp(1.85rem, 1.5rem + 1.6vw, 2.9rem);
  --fs-h1: clamp(2.3rem, 1.5rem + 3.6vw, 4.4rem);

  /* Ritmo */
  --shell: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  /* Sombras: muy contenidas */
  --sh-1: 0 1px 2px rgba(15, 21, 51, .05), 0 2px 8px rgba(15, 21, 51, .04);
  --sh-2: 0 2px 4px rgba(15, 21, 51, .05), 0 12px 28px rgba(15, 21, 51, .07);
  --sh-3: 0 8px 20px rgba(15, 21, 51, .09), 0 28px 60px rgba(15, 21, 51, .1);
  --sh-brand: 0 10px 26px rgba(45, 54, 146, .22);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 82px;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.68;
  color: var(--ink-soft);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

/* Cualquier elemento con [hidden] debe desaparecer de verdad, aunque más
   abajo se le asigne un display propio (rejillas, botones del visor…).
   Sin esto, una capa invisible puede quedarse por encima y bloquear los clics. */
[hidden] {
  display: none !important;
}

img {
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .22s var(--ease);
}

a:hover {
  color: var(--cyan);
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--cyan-200);
  color: var(--brand-900);
}

.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-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-160%);
  padding: .7rem 1.1rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: transform .25s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: #fff;
}

.anchor-alias {
  display: block;
  position: relative;
  top: calc(var(--header-h) * -1);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 3. Bloques de sección ---------- */
.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tint {
  background: var(--tint);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(2.5rem, 1.6rem + 2.6vw, 4rem);
}

.section__title {
  font-size: var(--fs-h2);
  margin-bottom: .85rem;
}

.section__lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  /* flex-start para que el punto quede junto a la PRIMERA línea
     cuando el texto se parte en dos (móvil), no centrado entre ambas. */
  align-items: flex-start;
  gap: .55rem;
  margin-bottom: 1rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  margin-top: .52em;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
}

.eyebrow--light {
  color: var(--cyan-200);
}

.eyebrow--light .eyebrow__dot {
  background: var(--cyan-400);
}

/* ---------- 4. Botones ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .82rem 1.5rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-align: center;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
    background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
  will-change: transform;
}

.btn .ico {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex: none;
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--sh-1);
}

.btn--sm {
  padding: .6rem 1.15rem;
  font-size: .88rem;
}

.btn--lg {
  padding: 1rem 1.9rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  --btn-bg: var(--brand);
  box-shadow: var(--sh-brand);
}

.btn--primary:hover {
  --btn-bg: var(--brand-700);
}

.btn--wa {
  --btn-bg: var(--wa);
  --btn-fg: #06331a;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .26);
}

.btn--wa:hover {
  --btn-bg: var(--wa-dark);
  --btn-fg: #052b16;
}

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, .08);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .45);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  --btn-bg: #fff;
  --btn-fg: var(--brand-900);
  --btn-bd: #fff;
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--brand-900);
}

.btn--light:hover {
  --btn-bg: var(--cyan-100);
  --btn-fg: var(--brand-900);
}

/* ---------- 5. Encabezado ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 40, .58), rgba(10, 14, 40, 0));
  opacity: 1;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(15, 21, 51, .07);
}

.site-header.is-scrolled::before {
  opacity: 0;
}

.site-header__inner {
  position: relative;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  position: relative;
  /* Por encima del panel de menú móvil (z-index 99), para que el logotipo
     y el botón de cerrar sigan visibles con el menú desplegado. */
  z-index: 100;
  display: inline-flex;
  align-items: center;
  padding: .45rem .8rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15, 21, 51, .12);
  flex: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.brand:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
}

/* Sobre el encabezado ya blanco, la placa del logotipo sobra. */
.site-header.is-scrolled .brand {
  padding-inline: 0;
  background: transparent;
  box-shadow: none;
}

.brand img {
  width: auto;
  height: 46px;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.3rem, 1.1vw, 1rem);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: .55rem .2rem;
  color: rgba(255, 255, 255, .92);
  font-weight: 600;
  font-size: .94rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: #fff;
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.site-header.is-scrolled .nav__link {
  color: var(--ink-soft);
}

.site-header.is-scrolled .nav__link:hover,
.site-header.is-scrolled .nav__link.is-active {
  color: var(--brand);
}

.site-header__actions {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: .7rem;
  flex: none;
}

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 13px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}

.nav-toggle__bar {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease), background-color .25s var(--ease);
}

.site-header.is-scrolled .nav-toggle {
  border-color: var(--line-strong);
  background: var(--tint);
}

.site-header.is-scrolled .nav-toggle__bar {
  background: var(--brand);
}

/* Con el menú abierto el panel es blanco, así que la equis debe
   oscurecerse aunque el encabezado siga en modo transparente. */
.nav-toggle[aria-expanded="true"] {
  border-color: var(--line-strong);
  background: var(--tint);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: var(--brand);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(10, 14, 40, .45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.nav-backdrop.is-open {
  opacity: 1;
}

/* ---------- 6. Portada ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(5rem, 9vw, 7rem);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 17, 46, .74) 0%, rgba(20, 28, 74, .6) 42%, rgba(45, 54, 146, .62) 100%),
    radial-gradient(90% 65% at 12% 28%, rgba(25, 168, 221, .32), transparent 62%);
}

.hero__inner {
  position: relative;
}

.hero__title {
  font-size: var(--fs-h1);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 17ch;
  text-shadow: 0 2px 30px rgba(8, 12, 36, .35);
}

.hero__title-em {
  background: linear-gradient(100deg, #ffffff 10%, var(--cyan-200) 55%, var(--cyan-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin-top: 1.3rem;
  max-width: 48ch;
  font-size: clamp(1.05rem, .98rem + .45vw, 1.3rem);
  color: rgba(255, 255, 255, .88);
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2.3rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.6rem, 1.4vw, 1rem);
  margin-top: clamp(3rem, 5vw, 4.5rem);
  max-width: 940px;
}

.stat {
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}

.stat:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .36);
}

.stat__value {
  display: block;
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}

.stat__label {
  display: block;
  margin-top: .4rem;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, .8);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .4);
  color: #fff;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
  animation: bob 2.6s var(--ease) infinite;
}

.hero__scroll svg {
  width: 22px;
  height: 22px;
}

.hero__scroll:hover {
  background: #fff;
  color: var(--brand);
  transform: translateY(2px);
}

@keyframes bob {

  0%,
  100% {
    translate: -50% 0;
  }

  50% {
    translate: -50% 7px;
  }
}

/* ---------- 7. ¿Quiénes somos? ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 4vw, 4rem);
}

.about__text {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 56ch;
}

.about__text strong {
  color: var(--brand);
  font-weight: 700;
}

.about__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
}

.card {
  position: relative;
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-1);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: var(--cyan-200);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--cyan-100), #fff);
  border: 1px solid var(--cyan-200);
  color: var(--brand);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: var(--fs-h3);
  margin-bottom: .6rem;
}

.card__text {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .3rem;
}

.tag {
  padding: .4rem .85rem;
  border-radius: 999px;
  background: var(--tint-2);
  border: 1px solid var(--line);
  color: var(--brand-700);
  font-size: .85rem;
  font-weight: 600;
  transition: background-color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}

.tag:hover {
  background: var(--cyan-100);
  border-color: var(--cyan-200);
  transform: translateY(-1px);
}

/* ---------- 8. Productos ---------- */
.products {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.1rem, 2vw, 1.8rem);
}

.product {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
}

.product img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  transition: transform .6s var(--ease);
}

/* La foto de la bolsa trae su propio fondo blanco, así que la tarjeta
   va en blanco para que se fundan sin dejar un recuadro visible. */
.product--cutout {
  background: #fefefe;
}

.product--cutout img {
  object-fit: contain;
  padding: clamp(1rem, 2.2vw, 1.8rem);
}

.product--cutout:hover img {
  transform: scale(1.035);
}

.product--photo img {
  object-fit: cover;
}

.product--photo:hover img {
  transform: scale(1.05);
}

.presentations {
  margin-top: clamp(2.2rem, 3.5vw, 3.4rem);
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--sh-1);
}

.presentations__title {
  font-size: var(--fs-h3);
  margin-bottom: 1.2rem;
}

.presentations__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .7rem;
}

.presentation {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .95rem 1.15rem;
  border-radius: var(--radius);
  background: var(--tint);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.presentation:hover {
  background: var(--cyan-100);
  border-color: var(--cyan-200);
  transform: translateY(-2px);
}

.presentation__mark {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex: none;
  background: linear-gradient(140deg, var(--cyan), var(--brand));
  rotate: 45deg;
}

/* ---------- 9. Galería ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: clamp(1.6rem, 2.5vw, 2.4rem);
}

.filter {
  padding: .6rem 1.25rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .92rem;
  transition: background-color .25s var(--ease), color .25s var(--ease),
    border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}

.filter:hover {
  border-color: var(--cyan);
  color: var(--brand);
  transform: translateY(-2px);
}

.filter.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--sh-brand);
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(.8rem, 1.5vw, 1.25rem);
}

.gallery__item {
  min-width: 0;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.gallery__item.is-hidden {
  display: none;
}

.gallery__item.is-entering {
  opacity: 0;
  transform: scale(.97);
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--tint-2);
  box-shadow: var(--sh-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.tile__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 17, 46, 0) 42%, rgba(12, 17, 46, .78) 100%);
  opacity: .65;
  transition: opacity .35s var(--ease);
}

.tile__meta {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.15rem;
}

.tile__cat {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  transform: translateY(4px);
  opacity: .9;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}

.tile__plus {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .4);
  backdrop-filter: blur(6px);
  color: #fff;
  opacity: 0;
  transform: scale(.75);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .3s var(--ease);
}

.tile__plus svg {
  width: 20px;
  height: 20px;
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--sh-3);
  border-color: var(--cyan-200);
}

.tile:hover img,
.tile:focus-visible img {
  transform: scale(1.07);
}

.tile:hover .tile__veil,
.tile:focus-visible .tile__veil {
  opacity: 1;
}

.tile:hover .tile__cat,
.tile:focus-visible .tile__cat {
  transform: translateY(0);
  opacity: 1;
}

.tile:hover .tile__plus,
.tile:focus-visible .tile__plus {
  opacity: 1;
  transform: scale(1);
}

.tile__plus:hover {
  background: var(--cyan);
}

.gallery__empty {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
}

/* ---------- 10. Llamada a la acción ---------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4rem, 3rem + 4vw, 6.5rem);
  text-align: center;
}

.cta__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(27, 33, 96, .92), rgba(45, 54, 146, .84) 48%, rgba(25, 168, 221, .78));
}

.cta__title {
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem);
  color: #fff;
}

.cta__text {
  margin: .9rem auto 0;
  max-width: 44ch;
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, .9);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
  margin-top: 2.2rem;
}

/* ---------- 11. Fábricas ---------- */
.plants {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}

.plant {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.plant img {
  width: 100%;
  aspect-ratio: 3 / 4;
  /* Con 2 fotos por fila, en pantallas grandes no deben pasar de una pantalla de alto */
  max-height: 640px;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.plant:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-3);
}

.plant:hover img {
  transform: scale(1.05);
}

/* ---------- 12. Contacto ---------- */
.info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  margin-bottom: clamp(2rem, 3vw, 3rem);
}

.info__box {
  padding: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.info__box:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: var(--cyan-200);
}

.info__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--cyan-100), #fff);
  border: 1px solid var(--cyan-200);
  color: var(--brand);
}

.info__icon svg {
  width: 23px;
  height: 23px;
}

.info__title {
  font-size: 1.05rem;
  margin-bottom: .4rem;
}

.info__text {
  color: var(--muted);
  font-size: .96rem;
  word-break: break-word;
}

.info__text a {
  color: var(--muted);
}

.info__text a:hover {
  color: var(--brand);
}

/* Los dos teléfonos, cada uno con su etiqueta.
   Si la tarjeta se estrecha, la etiqueta baja bajo el número
   en lugar de salirse de la caja. */
.info__phones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
}

.info__phone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .55rem;
}

.info__phones a {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.info__tag {
  padding: .18rem .55rem;
  border-radius: 999px;
  background: var(--tint-2);
  border: 1px solid var(--line);
  color: var(--brand-700);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2rem);
  align-items: stretch;
}

.contact__map {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  min-height: 340px;
  background: var(--tint-2);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

.contact__form-wrap {
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-1);
}

.form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.field {
  margin-bottom: 1rem;
}

.form__row .field {
  margin-bottom: 0;
}

.field__label {
  display: block;
  margin-bottom: .42rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.field__input {
  width: 100%;
  padding: .85rem 1rem;
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: var(--tint);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .22s var(--ease), background-color .22s var(--ease), box-shadow .22s var(--ease);
}

.field__input::placeholder {
  color: #9aa4c0;
}

.field__input:hover {
  border-color: var(--cyan-200);
}

.field__input:focus {
  outline: none;
  background: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(25, 168, 221, .16);
}

.field__input:user-invalid {
  border-color: var(--danger);
}

textarea.field__input {
  resize: vertical;
  min-height: 130px;
}

.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status p {
  margin: 0 0 1rem;
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 600;
}

.form__loading {
  background: var(--tint-2);
  color: var(--brand-700);
}

.form__error {
  background: #fdecea;
  color: var(--danger);
}

.form__sent {
  background: #e7f8ee;
  color: #12734a;
}

/* ---------- 13. Pie ---------- */
.footer {
  background:
    radial-gradient(90% 120% at 8% 0%, rgba(25, 168, 221, .22), transparent 58%),
    linear-gradient(180deg, var(--brand-900), #0b0f30);
  color: rgba(255, 255, 255, .72);
  padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 3vw, 3rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.footer__logo {
  display: inline-flex;
  padding: .6rem .9rem;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 1.3rem;
}

.footer__logo img {
  width: auto;
  height: 58px;
}

.footer__address {
  line-height: 1.75;
  margin-bottom: 1rem;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .94rem;
  word-break: break-word;
}

.footer__contact strong {
  color: #fff;
  font-weight: 700;
}

.footer__legal {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .84rem;
  color: rgba(255, 255, 255, .58);
}

.footer a {
  color: rgba(255, 255, 255, .78);
}

.footer a:hover {
  color: var(--cyan-200);
}

.footer__heading {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.1rem;
  position: relative;
  padding-bottom: .7rem;
}

.footer__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: .62rem;
  font-size: .94rem;
}

.footer__list a {
  display: inline-block;
  transition: transform .22s var(--ease), color .22s var(--ease);
}

.footer__list a:hover {
  transform: translateX(3px);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .87rem;
}

.footer__copy strong {
  color: #fff;
}

.footer__copy,
.footer__credits {
  margin: 0;
}

/* ---------- 14. Flotantes ---------- */
.fab {
  position: fixed;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: none;
  border-radius: 50%;
  box-shadow: var(--sh-3);
  transition: transform .28s var(--ease), opacity .28s var(--ease), background-color .28s var(--ease);
}

.fab svg {
  width: 26px;
  height: 26px;
}

.fab:hover {
  transform: translateY(-3px) scale(1.04);
}

.fab--wa {
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  background: var(--wa);
  color: #fff;
}

.fab--wa svg {
  fill: currentColor;
}

.fab--wa:hover {
  background: var(--wa-dark);
}

.fab--top {
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: calc(clamp(1rem, 2.5vw, 1.75rem) + 66px);
  background: var(--brand);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.fab--top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab--top:hover {
  background: var(--brand-700);
}

/* ---------- 15. Visor de imagen ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.4rem, 2vw, 1.5rem);
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(8, 11, 32, .93);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .28s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.lightbox__img {
  max-width: 100%;
  max-height: 78svh;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transform: scale(.97);
  transition: transform .3s var(--ease);
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__caption {
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background-color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}

.lightbox__close svg,
.lightbox__nav svg {
  width: 24px;
  height: 24px;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .5);
  transform: scale(1.06);
}

.lightbox__close {
  position: absolute;
  top: clamp(.9rem, 2.5vw, 1.6rem);
  right: clamp(.9rem, 2.5vw, 1.6rem);
  z-index: 2;
}

body.is-locked {
  overflow: hidden;
}

/* ---------- 16. Animación de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 17. Puntos de ruptura ---------- */
@media (min-width: 560px) {
  .presentations__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 680px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 15 fotos: 5 filas completas de 3 desde tablet, sin ninguna suelta */
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* 2 fotos de fábrica: una junto a la otra desde tablet */
  .plants {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card--values {
    grid-column: span 2;
  }
}

@media (min-width: 900px) {
  .presentations__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__top {
    grid-template-columns: 1.7fr 1fr 1.2fr 1fr;
  }
}

@media (min-width: 1040px) {
  .about__grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }

  .about__intro {
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
  }
}

/* --- Navegación móvil --- */
@media (max-width: 979px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 99;
    margin: 0;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 1.75rem;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(15, 21, 51, .14);
    transform: translateY(-102%);
    transition: transform .4s var(--ease);
    visibility: hidden;
  }

  .nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
  }

  .nav__link,
  .site-header.is-scrolled .nav__link {
    display: block;
    padding: .9rem .25rem;
    font-size: 1.05rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .nav__link::after {
    display: none;
  }

  .nav__link:hover,
  .nav__link.is-active,
  .site-header.is-scrolled .nav__link:hover,
  .site-header.is-scrolled .nav__link.is-active {
    color: var(--brand);
  }

  .nav__list li:last-child .nav__link {
    border-bottom: none;
  }
}

@media (max-width: 639px) {
  :root {
    --header-h: 72px;
  }

  .brand img {
    height: 38px;
  }

  .site-header__actions .btn--wa span {
    display: none;
  }

  .site-header__actions .btn--wa {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 13px;
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .hero__scroll {
    display: none;
  }

  .fab {
    width: 50px;
    height: 50px;
  }

  .lightbox {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "figure"
      "nav";
    align-content: center;
  }

  .lightbox__figure {
    grid-area: figure;
  }

  .lightbox__nav--prev,
  .lightbox__nav--next {
    grid-area: nav;
    justify-self: center;
  }

  .lightbox__nav--prev {
    justify-self: end;
    margin-right: 40px;
  }

  .lightbox__nav--next {
    justify-self: start;
    margin-left: 40px;
  }

  .footer__bottom {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- 18. Preferencias del sistema ---------- */
/* Solo se desactiva lo intrusivo: el contenido sigue siendo visible y usable. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__scroll {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media print {

  .site-header,
  .fab,
  .hero__scroll,
  .lightbox,
  .filters {
    display: none !important;
  }

  body {
    color: #000;
  }
}
