/* SELI — Home (referencia PW 1) */
:root {
  --seli-red: #d12027;
  --seli-red-dark: #a8181e;
  --seli-black: #1a1a1a;
  --seli-gray-dark: #2d2d2d;
  --seli-gray-mid: #4a4a4a;
  --seli-gray-light: #f2f2f2;
  --seli-white: #ffffff;
  --radius-pill: 999px;
  --radius-card: 16px;
  --radius-form: 20px;
  /* Base oscura bajo la foto de “Quiénes somos” (evita franjas blancas si el cover no llena) */
  --quienes-bg-fallback: #1e2024;
  /* Nunito Sans: cercana a Avenir Next (geométrica-humanista, legible) */
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--seli-black);
  background: var(--seli-white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ——— Top bar (fondo negro, iconos en cuadros rojos) ——— */
.top-bar {
  background: #000000;
  color: var(--seli-white);
  padding: 0.45rem 1.25rem;
}

.top-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.top-bar__icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.top-bar__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  flex-shrink: 0;
  background: var(--seli-red);
  color: var(--seli-white);
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.top-bar__icon-btn:hover {
  background: var(--seli-red-dark);
  transform: translateY(-1px);
}

.top-bar__icon-btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

body.nav-drawer-open {
  overflow: hidden;
}

/* ——— Header (banda roja logo + banda blanca menú) ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--seli-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header__shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 32%) 1fr;
  align-items: stretch;
  min-height: 4.25rem;
  width: 100%;
}

.header__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem 0.65rem 1.25rem;
  background: var(--seli-red);
  text-decoration: none;
  color: inherit;
}

.header__nav-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
  padding: 0.65rem 1.25rem 0.65rem 1rem;
  background: var(--seli-white);
  position: relative;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.logo__img {
  display: block;
  height: clamp(38px, 5.5vw, 52px);
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
}

.logo__img--header {
  height: clamp(40px, 5vw, 54px);
  max-width: min(260px, 78vw);
}

.logo--footer .logo__img {
  height: clamp(40px, 6vw, 56px);
  max-width: min(240px, 70vw);
}

.nav-backdrop {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  margin: -0.5rem;
  cursor: pointer;
  position: relative;
  z-index: 3;
}

.nav-toggle span:not(.visually-hidden) {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--seli-black);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--seli-black);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--seli-red);
}

@media (max-width: 900px) {
  .header__shell {
    grid-template-columns: 1fr auto;
  }

  .header__brand {
    justify-content: flex-start;
    padding-left: 1rem;
  }

  .header__nav-slot {
    flex-wrap: nowrap;
    align-items: center;
  }

  .nav-toggle {
    display: block;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
  }

  .nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(19rem, 86vw);
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 7.25rem) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
    background: var(--seli-white);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    z-index: 2;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    white-space: normal;
    font-size: 0.75rem;
  }

  .nav.is-open {
    transform: translateX(0);
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(82vh, 800px);
  background: var(--seli-black);
}

.hero__slides {
  position: relative;
  width: 100%;
  height: min(82vh, 800px);
  overflow: hidden;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.hero__slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

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

.hero__caption {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 5;
  max-width: min(480px, 92vw);
  background: rgba(34, 34, 34, 0.65);
  color: var(--seli-white);
  padding: 1.25rem 2rem;
  border-radius: var(--radius-pill);
  font-size: clamp(1.45rem, 3.6vw, 2rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
  transition: background 0.4s ease;
}

.hero__caption--red {
  background: var(--seli-red);
}

.hero__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}

.hero__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.hero__dots button.is-active {
  background: var(--seli-red);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: var(--seli-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero__arrow:hover {
  background: var(--seli-red);
}

.hero__arrow:focus-visible {
  outline: 2px solid var(--seli-white);
  outline-offset: 3px;
}

.hero__arrow--prev {
  left: max(0.65rem, env(safe-area-inset-left, 0px));
}

.hero__arrow--next {
  right: max(0.65rem, env(safe-area-inset-right, 0px));
}

.hero__arrow svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

/* Móvil: carrusel más alto para banners verticales / recortes móviles */
@media (max-width: 768px) {
  .hero {
    min-height: 0;
  }

  .hero__slides {
    min-height: 320px;
    height: 66vh;
    max-height: 720px;
  }

  .hero__slide img {
    object-fit: cover;
    object-position: center center;
  }

  .hero__slide img.hero__slide-img--right {
    object-position: right center;
  }

  .hero__arrow {
    width: 2.4rem;
    height: 2.4rem;
  }

  .hero__arrow svg {
    width: 1.15rem;
    height: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__arrow {
    transition: none;
  }
}

@media (max-width: 600px) {
  .hero__caption {
    left: 1rem;
    right: auto;
    bottom: 3rem;
    max-width: calc(100% - 2rem);
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }
}

/* ——— Section common ——— */
.section {
  padding: 4rem 1.25rem;
}

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--seli-red);
  margin: 0 0 1.25rem;
}

/* ——— Quienes somos ——— */
.quienes {
  position: relative;
  color: rgba(255, 255, 255, 0.94);
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  /* Mismo tono que el almacén: si la capa de imagen no cubre un píxel, no se ve blanco */
  background: var(--quienes-bg-fallback);
}

.quienes__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  min-height: 100%;
}

.quienes__media-img {
  position: absolute;
  inset: 0;
  min-height: 100%;
  background-color: var(--quienes-bg-fallback);
  /* Escritorio: arte con corte; móvil: otra toma (media query 768px abajo) */
  background-image: url("../assets/images/fondos/Fondo_Quienes_Somos1.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.quienes__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.quienes__top {
  display: grid;
  /* Más ancho a Misión/Visión: la intro ya lee bien un poco más estrecha */
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.14fr);
  gap: 2rem clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

@media (max-width: 900px) {
  .quienes__top {
    grid-template-columns: 1fr;
  }

  .quienes {
    /* Evita recortes raros del fondo en móvil; el color de respaldo ya es oscuro */
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: clamp(2.5rem, 7vw, 4rem);
  }

  .quienes__media,
  .quienes__media-img {
    /* La capa oscura acompaña al alto del bloque (contenido largo en columna única) */
    min-height: 100%;
  }

  .quienes__media-img {
    /* Prioriza la parte superior de la foto en pantallas altas / cover agresivo */
    background-position: center top;
  }

  .quienes__mvp {
    margin-bottom: 0.25rem;
  }
}

.quienes__intro .section__title {
  color: var(--seli-red);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.quienes__intro {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.quienes__intro strong {
  color: #fff;
  font-weight: 600;
}

.quienes__mvp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem clamp(0.75rem, 2vw, 1.1rem);
  align-content: start;
  min-width: 0;
}

@media (max-width: 600px) {
  .quienes__mvp {
    grid-template-columns: 1fr;
  }
}

.mvp-card--on-dark {
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 1.25rem 1.15rem;
  min-width: 0;
}

.mvp-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.mvp-card__icon--light {
  background: var(--seli-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.mvp-card__icon--light svg {
  width: 28px;
  height: 28px;
  fill: var(--seli-red);
}

.mvp-card__icon--light .mvp-card__icon-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.mvp-card__icon--solid {
  background: var(--seli-red);
  margin-bottom: 0;
}

.mvp-card__icon--solid svg {
  width: 26px;
  height: 26px;
  fill: var(--seli-white);
}

.mvp-card__icon--solid .mvp-card__icon-img--solid {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.mvp-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--seli-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quienes .mvp-card--on-dark h3 {
  color: #fff;
}

.quienes .mvp-card--on-dark p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.quienes .mvp-card--on-dark p + p {
  margin-top: 0.65rem;
}

/* Escritorio: menos padding lateral en las tarjetas para ganar línea útil de texto */
.quienes .mvp-card--on-dark {
  padding: 1.25rem 0.65rem;
}

/* Fila inferior: espacio oscuro + panel blanco superpuesto (Valores) */
.quienes__valores-row {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  gap: 0;
  margin-top: 2rem;
  align-items: stretch;
  min-height: 0;
}

@media (max-width: 900px) {
  .quienes__valores-row {
    grid-template-columns: 1fr;
    margin-top: 2.25rem;
    position: relative;
    z-index: 1;
  }

  .quienes__valores-spacer {
    display: none;
  }
}

.quienes__valores-spacer {
  min-height: 1px;
}

.quienes__valores-cut {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 0;
}

/* Foto a color con “corte” (solapa hacia la columna oscura), encima del panel Valores */
.quienes__valores-photo-cut {
  margin: 0;
  position: absolute;
  z-index: 4;
  top: clamp(0.35rem, 1.5vw, 1rem);
  right: 100%;
  /* Aire respecto al panel: margen + ligero desplazamiento a la franja oscura */
  margin-right: clamp(1.75rem, 5.5vw, 3.25rem);
  transform: translateX(calc(-1 * clamp(0.35rem, 1.75vw, 1.1rem)));
  width: min(100%, 400px);
  max-width: min(380px, 44vw);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
  /* Corte diagonal inferior (sello / contraste con el panel) */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.quienes__valores-photo-cut img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.quienes__valores-inset {
  padding: clamp(1.75rem, 4vw, 2.65rem) clamp(1.45rem, 4vw, 2.65rem) clamp(1.65rem, 3vw, 2.35rem)
    clamp(1.5rem, 3.5vw, 2.4rem);
}

.quienes__valores-panel {
  position: relative;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--seli-black);
}

.quienes__valores-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.quienes__valores-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--seli-black);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quienes__valores-text--lead {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.quienes__valores-text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--seli-black);
}

.quienes__valores-text:last-child {
  margin-bottom: 0;
}

/* Móvil: debe ir DESPUÉS de .quienes__valores-panel base o la cascada anula fondo/padding */
@media (max-width: 900px) {
  .quienes__valores-photo-cut {
    position: relative;
    right: auto;
    top: auto;
    margin: 0 auto 1.15rem;
    max-width: min(420px, 100%);
    width: 100%;
    margin-right: auto;
    transform: none;
  }

  .quienes__valores-cut {
    z-index: 1;
    margin-top: 0.5rem;
  }

  .quienes__valores-inset {
    padding: 0;
  }

  .quienes__valores-panel {
    background: var(--seli-white);
    border-radius: var(--radius-card);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
    padding: clamp(1.25rem, 4vw, 1.75rem) clamp(1.15rem, 4vw, 1.65rem);
  }

  /* Misión y Visión: mismo envolvente blanco que Valores */
  .quienes__mvp {
    gap: 1.15rem;
  }

  .quienes .mvp-card--on-dark {
    background: var(--seli-white);
    border-radius: var(--radius-card);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
    padding: clamp(1.25rem, 4vw, 1.75rem) clamp(1.15rem, 4vw, 1.65rem);
  }

  .quienes .mvp-card--on-dark h3 {
    color: var(--seli-black);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-shadow: none;
  }

  .quienes .mvp-card--on-dark p {
    color: var(--seli-black);
    font-size: 0.9rem;
    line-height: 1.65;
  }

  /* Icono legible sobre tarjeta blanca (antes círculo blanco sobre blanco) */
  .quienes .mvp-card--on-dark .mvp-card__icon--light {
    background: var(--seli-gray-light);
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }
}

.mvp-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ——— Zona ——— */
.zona {
  position: relative;
  overflow: hidden;
  color: var(--seli-white);
  background: #1a1c1e;
}

/* Fondo: contenedores (ajusta el banner si usas otra toma del material) */
.zona__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets/images/fondos/zona-deoperacion.jpg") center / cover no-repeat;
  pointer-events: none;
}

.zona__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 18, 0.58);
}

.zona__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 900px) {
  .zona__inner {
    grid-template-columns: 1fr;
  }
}

.zona__map-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.zona__map-wrap {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.45));
}

.zona__map-wrap img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.zona__text-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
}

.zona__title {
  margin: 0;
  color: var(--seli-white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.zona__box {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  padding: 1.75rem 2rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.zona__box p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ——— Te ofrecemos ——— */
.ofrecemos {
  background: var(--seli-gray-light);
}

.ofrecemos .section__title {
  text-align: center;
  margin-bottom: 2rem;
}

.carousel.coverflow {
  position: relative;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 3rem 0.5rem;
  box-sizing: border-box;
}

.coverflow__viewport {
  perspective: 1400px;
  perspective-origin: 50% 35%;
  min-height: clamp(380px, 52vw, 460px);
  position: relative;
  overflow: visible;
  width: 100%;
}

.coverflow__stage {
  position: relative;
  width: 100%;
  height: clamp(380px, 52vw, 460px);
  transform-style: preserve-3d;
}

.coverflow-card {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(300px, 78vw);
  margin: 0;
  transform-origin: center center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition:
    transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.45s ease,
    box-shadow 0.45s ease,
    filter 0.45s ease;
  will-change: transform;
}

.coverflow-card--left {
  transform: translate(-50%, -50%) translateX(var(--coverflow-shift, -220px)) rotateY(42deg) translateZ(-55px)
    scale(0.88);
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  filter: brightness(0.97);
}

.coverflow-card--center {
  transform: translate(-50%, -50%) translateX(0) rotateY(0deg) translateZ(40px) scale(1);
  z-index: 10;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
  filter: none;
}

.coverflow-card--right {
  transform: translate(-50%, -50%) translateX(var(--coverflow-shift-right, 220px)) rotateY(-42deg) translateZ(-55px)
    scale(0.88);
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  filter: brightness(0.97);
}

.coverflow-card--hidden {
  transform: translate(-50%, -50%) translateX(0) rotateY(0deg) translateZ(-200px) scale(0.75);
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  /* Evita scroll horizontal: tarjetas 3D del coverflow salían del viewport */
  .ofrecemos {
    overflow-x: hidden;
  }

  .ofrecemos .section__inner {
    max-width: 100%;
    overflow-x: hidden;
  }

  .carousel.coverflow {
    overflow-x: hidden;
    padding: 0 clamp(2.5rem, 10vw, 2.75rem);
    max-width: 100%;
  }

  .coverflow__viewport {
    perspective: 900px;
    min-height: 420px;
    overflow: hidden;
    border-radius: 4px;
  }

  .coverflow__stage {
    height: 420px;
  }

  .coverflow-card {
    width: min(240px, 68vw);
  }

  .coverflow-card--left {
    transform: translate(-50%, -50%) translateX(-90px) rotateY(24deg) translateZ(-35px) scale(0.8);
  }

  .coverflow-card--center {
    transform: translate(-50%, -50%) translateX(0) rotateY(0) translateZ(20px) scale(1);
  }

  .coverflow-card--right {
    transform: translate(-50%, -50%) translateX(90px) rotateY(-24deg) translateZ(-35px) scale(0.8);
  }
}

.ofrecemos-card {
  background: var(--seli-white);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.ofrecemos-card__img {
  background: var(--seli-white);
  padding: 1rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ofrecemos-card__img img {
  max-height: 200px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.ofrecemos-card__body {
  padding: 1rem 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ofrecemos-card__body h3 {
  margin: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--seli-gray-mid);
  text-transform: uppercase;
  min-height: 4.6em;
  text-align: center;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 1.25rem;
  background: var(--seli-red);
  color: var(--seli-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  align-self: center;
}

.btn:hover {
  background: var(--seli-red-dark);
}

.carousel__btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--seli-red);
  color: var(--seli-white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(209, 32, 39, 0.35);
}

.carousel__btn:hover {
  background: var(--seli-red-dark);
}

.carousel__btn--prev {
  left: 0;
}

.carousel__btn--next {
  right: 0;
}

.coverflow__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0 1rem;
}

.coverflow__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c8c8c8;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.coverflow__dots button:hover {
  background: #999;
}

.coverflow__dots button.is-active {
  background: #1a1a1a;
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .carousel.coverflow {
    padding-bottom: 0.25rem;
  }

  .carousel__btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* ——— Productos (infografía) ——— */
.productos {
  background: url("../assets/images/fondos/Fondo_Productos_y_Servicios.jpg") center / cover no-repeat;
  position: relative;
}

@media (max-width: 768px) {
  .quienes__media-img {
    background-image: url("../assets/images/fondos/Fondo_Quienes_Somos.jpg");
  }

  .zona__bg {
    background-image: url("../assets/images/fondo-movil-republica.png");
  }

  .productos {
    background-image: url("../assets/images/fondo-movil-productos-servicios.png");
  }
}

.productos .section__inner {
  position: relative;
  z-index: 1;
}

.productos__head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2.5rem;
}

.productos__head-badge {
  background: var(--seli-red);
  color: var(--seli-white);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Hubs productos (Equipos, Soluciones, Refacciones, Baterías) — SVG (misma forma en todos los anchos) */
.hub-equipos,
.hub-soluciones,
.hub-refacciones,
.hub-baterias {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.hub-equipos__svg,
.hub-soluciones__svg,
.hub-refacciones__svg,
.hub-baterias__svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 620px);
}

/* Iconos dentro de las píldoras: encajan completos (meet), sin recorte ni estiramiento */
.hub-equipos__svg .hub-pill-icon-img,
.hub-soluciones__svg .hub-pill-icon-img,
.hub-refacciones__svg .hub-pill-icon-img,
.hub-baterias__svg .hub-pill-icon-img {
  object-fit: contain;
  object-position: center;
}

.hub-equipos__mobile,
.hub-soluciones__mobile,
.hub-refacciones__mobile,
.hub-baterias__mobile {
  display: none;
}

@media (max-width: 960px) {
  .hub-equipos__svg,
  .hub-soluciones__svg,
  .hub-refacciones__svg,
  .hub-baterias__svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
  }

  .hub-equipos__mobile,
  .hub-soluciones__mobile,
  .hub-refacciones__mobile,
  .hub-baterias__mobile {
    display: none;
  }

  .productos__head {
    justify-content: center;
  }

  .infographic {
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  .hub-equipos__svg,
  .hub-soluciones__svg,
  .hub-refacciones__svg,
  .hub-baterias__svg {
    display: none;
  }

  .hub-equipos__mobile,
  .hub-soluciones__mobile,
  .hub-refacciones__mobile,
  .hub-baterias__mobile {
    display: block;
  }
}

.infographic {
  display: grid;
  gap: 2.5rem;
}

.infographic__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 900px) {
  .infographic__row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .infographic__row .infographic__list--right {
    order: 3;
  }
}

.infographic__list ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.infographic__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--seli-gray-mid);
}

.infographic__list--right ul {
  align-items: flex-end;
  text-align: right;
}

@media (max-width: 900px) {
  .infographic__list--right ul {
    align-items: center;
    text-align: center;
  }
}

.infographic__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--seli-red);
  flex-shrink: 0;
}

.hex-wrap {
  display: flex;
  justify-content: center;
}

.hex {
  width: 200px;
  height: 220px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--seli-white);
  border: 3px solid var(--seli-red);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.hex img {
  width: 85%;
  height: auto;
  object-fit: contain;
}

.hex__label {
  text-align: center;
  margin-top: 0.75rem;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--seli-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ——— Contacto ——— */
.contacto {
  background: var(--seli-gray-light);
}

.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contacto__grid {
    grid-template-columns: 1fr;
  }
}

.contacto__form-wrap {
  background: var(--seli-gray-dark);
  color: var(--seli-white);
  padding: 2rem;
  border-radius: var(--radius-form);
}

.contacto__form-wrap h2 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.form__row {
  margin-bottom: 1rem;
}

.form__row label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  opacity: 0.85;
}

.form__row input,
.form__row textarea,
.form__row select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 0;
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
  color: var(--seli-black);
}

.form__row textarea {
  min-height: 120px;
  resize: vertical;
}

.form__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.contacto__map h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--seli-red);
  font-size: 1.125rem;
  margin: 0 0 1rem;
}

.contacto__map h3 svg {
  width: 22px;
  height: 22px;
  fill: var(--seli-red);
}

.map-embed {
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 280px;
  background: #ddd;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.map-embed iframe {
  width: 100%;
  height: 280px;
  border: 0;
  filter: grayscale(0.2);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--seli-black);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 1.25rem 1.5rem;
  font-size: 0.875rem;
}

.site-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h4 {
  color: var(--seli-white);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.site-footer a:hover {
  color: var(--seli-white);
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-contact p {
  margin: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  fill: var(--seli-red);
  flex-shrink: 0;
}

.site-footer__bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  opacity: 0.7;
  text-align: center;
}

/* ——— Product Modals ——— */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Sin resalte amarillo (mark / subrayado de edición) en ningún modal */
.product-modal__content mark,
.product-modal__content--privacy mark,
.product-modal__content u,
.product-modal__content--privacy u,
.product-modal__content ins,
.product-modal__content--privacy ins {
  background: none;
  background-color: transparent;
  text-decoration: none;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  padding: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.product-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.product-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.product-modal__container {
  position: relative;
  z-index: 1;
  /* Escritorio: modal más ancho y alto para que se vean mejor las fotos de equipos */
  width: min(1100px, 95vw);
  min-height: 0;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--radius-card);
  background-color: var(--seli-white);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-modal.is-open .product-modal__container {
  transform: translateY(0) scale(1);
}

.product-modal__figure {
  --pm-fig-h: clamp(120px, 16vw, 200px);
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* Fila de equipos: reparten el ancho del modal sin scroll horizontal */
.product-modal__figures-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.3rem, 1.2vw, 0.55rem);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  padding-bottom: 0.35rem;
}

.product-modal__figures-grid img {
  flex: 1 1 0;
  min-width: 0;
  display: block;
  width: 100%;
  height: var(--pm-fig-h);
  min-height: var(--pm-fig-h);
  max-height: var(--pm-fig-h);
  object-fit: contain;
  object-position: bottom center;
}

.product-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--seli-red);
  color: var(--seli-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.product-modal__close:hover {
  background: var(--seli-red-dark);
}

.product-modal__content {
  padding: 2.5rem 2.5rem 2rem;
  background: none;
  border-radius: var(--radius-card);
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.product-modal__title {
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  font-weight: 800;
  color: var(--seli-black);
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--seli-red);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.product-modal__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.product-modal__col p {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--seli-black);
  line-height: 1.45;
}

.product-modal__col ul {
  list-style: disc;
  padding-left: 1.15rem;
  margin: 0;
}

.product-modal__col li {
  font-size: 0.8rem;
  color: var(--seli-gray-mid);
  line-height: 1.55;
  margin-bottom: 0.3rem;
}

@media (max-width: 700px) {
  .product-modal__cols {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-modal__content {
    padding: 1.75rem 1.25rem 1.5rem;
    background: none;
  }

  .product-modal__container {
    width: 96vw;
    max-height: 92vh;
  }

  /* Galería: deslizar horizontalmente (sin JS) — antes overflow:hidden recortaba todo */
  .product-modal__figure {
    --pm-fig-h: min(32vh, 200px);
    text-align: left;
  }

  .product-modal__figures-grid {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    gap: 0.5rem;
    padding: 0 0 0.35rem 0;
    max-width: 100%;
  }

  .product-modal__figures-grid img {
    flex: 0 0 46%;
    min-width: 46%;
    max-width: 46%;
    width: 46%;
    height: var(--pm-fig-h);
    min-height: var(--pm-fig-h);
    max-height: var(--pm-fig-h);
    scroll-snap-align: start;
    object-fit: contain;
    object-position: bottom center;
  }
}

/* ——— Modal Aviso de Privacidad ——— */
.product-modal__container--privacy {
  background-image: none;
  width: min(780px, 92vw);
  min-height: 0;
}

.product-modal__content--privacy {
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.5rem 2.5rem 2rem;
}

.product-modal__content--privacy h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--seli-red);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 1.5rem 0 0.5rem;
}

.product-modal__content--privacy p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--seli-gray-mid);
  margin: 0 0 0.75rem;
}

.product-modal__content--privacy ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 0.75rem;
}

.product-modal__content--privacy li {
  font-size: 0.82rem;
  color: var(--seli-gray-mid);
  line-height: 1.55;
  margin-bottom: 0.25rem;
}

.product-modal__content--privacy a {
  color: var(--seli-red);
  text-decoration: underline;
}

.product-modal__content--privacy a:hover {
  color: var(--seli-red-dark);
}

.privacy-date {
  margin-top: 1.5rem;
  font-weight: 700;
  color: var(--seli-black);
  font-style: italic;
}

.footer-privacy-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-privacy-link:hover {
  color: var(--seli-white);
}

/* ——— Scroll animations for infographic pills ——— */
.hub-pill-animated {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hub-pill-animated.is-visible {
  opacity: 1;
}

/* ——— Productos mobile cards ——— */
.hub-equipos__mobile,
.hub-soluciones__mobile,
.hub-refacciones__mobile,
.hub-baterias__mobile {
  text-align: center;
}

.hub-equipos__hex-m,
.hub-soluciones__hex-m,
.hub-refacciones__hex-m,
.hub-baterias__hex-m {
  width: 130px;
  height: 130px;
  margin: 0 auto 0.75rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-equipos__hex-m::before,
.hub-soluciones__hex-m::before,
.hub-refacciones__hex-m::before,
.hub-baterias__hex-m::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  top: 0;
  left: 0;
  background: var(--seli-black);
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  transform: rotate(30deg);
}

.hub-equipos__hex-m::after,
.hub-soluciones__hex-m::after,
.hub-refacciones__hex-m::after,
.hub-baterias__hex-m::after {
  content: "";
  position: absolute;
  width: 118px;
  height: 118px;
  top: 6px;
  left: 6px;
  background: var(--seli-white);
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  transform: rotate(30deg);
}

.hub-equipos__hex-m img,
.hub-soluciones__hex-m img,
.hub-refacciones__hex-m img,
.hub-baterias__hex-m img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.hub-equipos__title-m,
.hub-soluciones__title-m,
.hub-refacciones__title-m,
.hub-baterias__title-m {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--seli-black);
  margin: 0 0 1rem;
}

.hub-soluciones__title-line1,
.hub-baterias__title-line1 {
  display: block;
}

.hub-soluciones__title-line2,
.hub-baterias__title-line2 {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.hub-equipos__list-m,
.hub-soluciones__list-m,
.hub-refacciones__list-m,
.hub-baterias__list-m {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hub-equipos__list-m li,
.hub-soluciones__list-m li,
.hub-refacciones__list-m li,
.hub-baterias__list-m li {
  background: var(--seli-black);
  color: var(--seli-white);
  padding: 0.65rem 1rem;
  clip-path: polygon(4% 50%, 10% 5%, 90% 5%, 96% 50%, 90% 95%, 10% 95%);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 60px;
  padding-left: 8%;
  padding-right: 12%;
}

.list-m__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
  padding: 8px;
  position: relative;
  z-index: 1;
}

.hub-equipos__list-m li,
.hub-soluciones__list-m li,
.hub-refacciones__list-m li,
.hub-baterias__list-m li {
  position: relative;
}

.hub-equipos__list-m li .list-m__icon-wrap,
.hub-soluciones__list-m li .list-m__icon-wrap,
.hub-refacciones__list-m li .list-m__icon-wrap,
.hub-baterias__list-m li .list-m__icon-wrap {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-m__icon-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--seli-red);
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  transform: rotate(30deg);
}

/* ——— Scroll animations for mobile product cards ——— */
.list-m__animated {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.list-m__animated.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Botón flotante WhatsApp ——— */
.whatsapp-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--seli-white);
  outline-offset: 3px;
}

.whatsapp-float__icon {
  width: 1.85rem;
  height: 1.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }

  .whatsapp-float:hover {
    transform: none;
  }
}

body.cookie-banner-visible .whatsapp-float {
  bottom: max(6.5rem, calc(5.25rem + env(safe-area-inset-bottom, 0px)));
}

/* ——— Aviso de cookies ——— */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 115;
  padding: max(0.75rem, env(safe-area-inset-left, 0px)) max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__inner {
  pointer-events: auto;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--seli-white);
  border-radius: var(--radius-card);
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.cookie-consent__text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--seli-gray-mid);
}

.cookie-consent__text strong {
  color: var(--seli-black);
  font-weight: 700;
}

.cookie-consent__privacy {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--seli-red);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-consent__privacy:hover {
  color: var(--seli-red-dark);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-consent__btn {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__btn--reject {
  background: var(--seli-white);
  color: var(--seli-gray-mid);
  border-color: rgba(0, 0, 0, 0.15);
}

.cookie-consent__btn--reject:hover {
  border-color: var(--seli-black);
  color: var(--seli-black);
}

.cookie-consent__btn--accept {
  background: var(--seli-red);
  color: var(--seli-white);
}

.cookie-consent__btn--accept:hover {
  background: var(--seli-red-dark);
}

@media (max-width: 600px) {
  .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent__actions {
    justify-content: stretch;
  }

  .cookie-consent__btn {
    flex: 1;
    text-align: center;
  }
}
