
/* =========================================================
   Aguas Mandiaz - Página productos
   Mantiene menú + footer funcionales y centra el diseño en la grilla del Illustrator.
   ========================================================= */

:root {
  --azul-marca: #3e419b;
  --azul-profundo: #233f76;
  --azul-gota: #087bd8;
  --turquesa: #08c5cb;
  --verde: #05d979;
  --verde-hover: #02c96f;
  --negro: #050505;
  --blanco: #ffffff;
  --gris-card: #f2f2f2;
  --sombra-card: 0 18px 40px rgba(0, 0, 0, 0.16);
  --container: 1180px;
  --topbar-height: 38px;
  --font-main: "Figtree", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--azul-profundo);
  background: var(--blanco);
  font-family: var(--font-main);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 14px;
  color: var(--blanco);
  background: var(--azul-marca);
  border-radius: 999px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ===========================
   Barra superior + navegación
   =========================== */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--topbar-height);
  color: var(--blanco);
  background: #010101;
  border-bottom: 2px solid #13bce2;
  overflow: hidden;
}

.top-bar__inner {
  width: 100%;
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.top-bar p {
  margin: 0;
  color: var(--blanco);
  font-size: clamp(0.72rem, 1.1vw, 1.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: texto-corriendo 18s linear infinite;
}

.top-bar__icon {
  flex: 0 0 auto;
  color: #00cfd2;
}

.top-bar__icon svg {
  width: clamp(22px, 2.3vw, 39px);
  height: clamp(22px, 2.3vw, 39px);
  fill: currentColor;
}

@keyframes texto-corriendo {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

.site-header {
  position: sticky;
  top: var(--topbar-height);
  z-index: 999;
  background: var(--blanco);
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.05);
}

.main-nav {
  width: min(100% - 56px, 1780px);
  min-height: 68px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  width: clamp(145px, 10.5vw, 190px);
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2vw, 34px);
  color: #777777;
  font-size: clamp(1.02rem, 1.35vw, 1.48rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.main-nav__links > a:not(.quote-button) {
  position: relative;
  padding-block: 8px;
}

.main-nav__links > a:not(.quote-button)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--verde);
  border-radius: 999px;
  transition: width 240ms ease;
}

.main-nav__links > a:not(.quote-button):hover::after,
.main-nav__links > a:not(.quote-button):focus-visible::after {
  width: 100%;
}

.quote-button,
.product-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--blanco);
  background: var(--verde);
  box-shadow: none;
  cursor: pointer;
  transition: transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.quote-button {
  min-height: 47px;
  padding: 0 18px;
  gap: 8px;
  font-size: clamp(0.9rem, 1.05vw, 1.18rem);
  font-weight: 900;
  border-radius: 15px;
  white-space: nowrap;
}

.quote-button svg {
  width: 23px;
  fill: currentColor;
}

.quote-button:hover,
.product-card a:hover {
  transform: translateY(-2px);
  background: var(--verde-hover);
  box-shadow: 0 10px 24px rgba(5, 217, 121, 0.28);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--verde);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  margin: 5px 0;
  background: var(--blanco);
  border-radius: 999px;
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =================
   Grilla de productos
   ================= */

.products-page {
  min-height: calc(100vh - 106px);
  padding: clamp(72px, 9vw, 128px) 0 clamp(110px, 13vw, 190px);
  background: #ffffff;
}

.section-title {
  text-align: center;
}

.section-title h1 {
  margin: 0;
  color: var(--azul-marca);
  font-size: clamp(2.85rem, 4.9vw, 5.1rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.title-divider {
  width: min(100%, 330px);
  margin: clamp(14px, 1.4vw, 20px) auto 0;
  display: grid;
  grid-template-columns: 1fr 34px 1fr;
  align-items: center;
  gap: 20px;
}

.title-divider span {
  height: 3px;
  background: #4340ff;
  border-radius: 999px;
}

.title-divider i {
  width: 18px;
  height: 28px;
  margin-inline: auto;
  background: var(--azul-gota);
  border-radius: 70% 30% 70% 30% / 70% 70% 30% 30%;
  transform: rotate(45deg);
}

.products-grid {
  width: min(100% - 48px, 830px);
  margin: clamp(56px, 5vw, 74px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 22px;
}

.product-card {
  overflow: hidden;
  background: var(--blanco);
  border-radius: 14px;
  box-shadow: var(--sombra-card);
}

.product-card__image {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 18px 16px 0;
  background: var(--blanco);
}

.product-card__image img {
  width: 100%;
  height: 205px;
  object-fit: contain;
}

.product-card__content {
  padding: 12px 16px 14px;
  background: rgba(242, 242, 242, 0.94);
}

.product-card h2 {
  margin: 0;
  color: #050505;
  font-size: clamp(1.12rem, 1.4vw, 1.36rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.product-card p {
  min-height: 34px;
  margin: 6px 0 12px;
  color: #222222;
  font-size: clamp(0.7rem, 0.86vw, 0.83rem);
  font-weight: 500;
  line-height: 1.05;
  text-transform: uppercase;
}

.product-card a {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  font-size: clamp(1rem, 1.25vw, 1.28rem);
  font-weight: 500;
  text-transform: uppercase;
}

/* ======
   Footer
   ====== */

.site-footer {
  background: var(--blanco);
}

.footer-features {
  width: min(100% - 56px, 1100px);
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  align-items: start;
  justify-items: center;
  text-align: center;
}

.footer-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.footer-feature img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.footer-feature p {
  margin: 0;
  color: var(--azul-profundo);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
}

.footer-final {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background: #f7fbfc;
}

.footer-final__content {
  position: relative;
  width: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer-final__wave {
  position: absolute;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.footer-final__wave--left {
  left: 0;
  width: min(48vw, 720px);
}

.footer-final__wave--right {
  right: 0;
  width: min(32vw, 480px);
}

.footer-final__logo {
  position: relative;
  z-index: 3;
  width: min(44vw, 430px);
  display: block;
}

.footer-final__logo img {
  width: 100%;
  height: auto;
}

.footer-final__whatsapp {
  position: fixed;
  right: clamp(22px, 4vw, 70px);
  bottom: clamp(22px, 4vw, 55px);
  z-index: 9999;
  width: clamp(72px, 7vw, 110px);
  display: block;
  transition: transform 220ms ease;
}

.footer-final__whatsapp:hover {
  transform: scale(1.06);
}

.footer-final__whatsapp img {
  width: 100%;
  height: auto;
}

.footer-final__bottom {
  position: relative;
  z-index: 2;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 24px;
  background: #101f21;
  text-align: center;
}

.footer-final__bottom p {
  margin: 0;
  color: #ffffff;
  font-size: clamp(0.9rem, 1.1vw, 1.15rem);
  font-weight: 400;
}

/* ==========
   Animaciones
   ========== */

.reveal {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 780ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left { transform: translateX(-54px); }
.reveal-right { transform: translateX(54px); }
.reveal-up { transform: translateY(52px); }
.reveal-down { transform: translateY(-52px); }
.reveal-zoom { transform: scale(0.92); }

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* ==========
   Responsive
   ========== */

@media (max-width: 1024px) {
  :root { --container: 900px; }

  .main-nav {
    width: min(100% - 36px, 940px);
    min-height: 82px;
  }

  .main-nav__links {
    gap: 18px;
    font-size: 1rem;
  }

  .quote-button {
    min-height: 42px;
    padding-inline: 14px;
  }

  .brand {
    width: clamp(184px, 14.5vw, 288px);
  }

  .products-grid {
    width: min(100% - 48px, 820px);
  }
}

@media (max-width: 768px) {
  :root { --topbar-height: 36px; }

  .top-bar p {
    font-size: 0.9rem;
  }

  .top-bar__icon:last-child {
    display: none;
  }

  .main-nav {
    min-height: 74px;
  }

  .brand {
    width: 176px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 100;
  }

  .main-nav__links {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    width: auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
    align-items: center;
    gap: 0;
    padding: 24px 18px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .main-nav__links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav__links a {
    width: auto;
    min-width: auto;
    justify-self: center;
    justify-content: center;
    text-align: center;
    padding: 12px 0;
  }

  .main-nav__links .quote-button {
    width: fit-content;
    min-width: 260px;
    margin: 16px auto 0;
    padding: 0 18px;
    justify-self: center;
  }

  .products-page {
    padding: 62px 0 90px;
  }

  .section-title h1 {
    font-size: 3rem;
  }

  .products-grid {
    width: min(100% - 36px, 620px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
    margin-top: 46px;
  }

  .product-card__image {
    min-height: 210px;
  }

  .product-card__image img {
    height: 195px;
  }

  .footer-features {
    width: min(100% - 36px, 620px);
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 24px;
    margin-bottom: 50px;
  }

  .footer-final__content {
    min-height: 220px;
  }

  .footer-final__logo {
    width: min(68vw, 320px);
  }

  .footer-final__wave--left {
    width: 72vw;
  }

  .footer-final__wave--right {
    width: 54vw;
  }

  .footer-final__whatsapp {
    right: 18px;
    bottom: 18px;
    width: 72px;
  }

  .footer-final__bottom {
    min-height: 72px;
    padding: 20px 70px 20px 20px;
  }
}

@media (max-width: 480px) {
  :root { --topbar-height: 34px; }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .top-bar p {
    font-size: 0.78rem;
  }

  .main-nav {
    width: min(100% - 28px, 460px);
  }

  .brand {
    width: 145px;
  }

  .section-title h1 {
    font-size: 2.45rem;
  }

  .title-divider {
    width: min(100%, 260px);
    gap: 12px;
  }

  .products-grid {
    width: min(100% - 28px, 420px);
    grid-template-columns: 1fr;
  }

  .product-card {
    max-width: 320px;
    margin-inline: auto;
  }

  .footer-features {
    grid-template-columns: repeat(2, 1fr);
    width: min(100% - 28px, 420px);
  }

  .footer-feature:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .footer-final__content {
    min-height: 190px;
  }

  .footer-final__logo {
    width: 250px;
  }

  .footer-final__whatsapp {
    right: 14px;
    bottom: 14px;
    width: 64px;
  }

  .footer-final__bottom p {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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


/* Estado activo unificado del menú principal */
.main-nav__links > a[aria-current="page"]::after {
  width: 100%;
}

/* ==================================================
   FOOTER UNIFICADO - MISMO DISEÑO QUE INICIO
   ================================================== */
.site-footer {
  background: #ffffff;
}

.footer-features {
  width: min(100% - 56px, 1100px);
  margin: 80px auto 60px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  align-items: start;
  justify-items: center;
  text-align: center;
}

.footer-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.footer-feature img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.footer-feature p {
  margin: 0;
  color: var(--azul-profundo);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
}

.footer-final {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
}

.footer-final__content {
  position: relative;
  width: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer-final__wave {
  position: absolute;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.footer-final__wave--left {
  left: 0;
  width: min(48vw, 720px);
}

.footer-final__wave--right {
  right: 0;
  width: min(32vw, 480px);
}

.footer-final__logo {
  position: relative;
  z-index: 3;
  width: min(44vw, 430px);
  display: block;
}

.footer-final__logo img {
  width: 100%;
  height: auto;
}

.footer-final__whatsapp {
  position: fixed;
  right: clamp(22px, 4vw, 70px);
  bottom: clamp(22px, 4vw, 55px);
  z-index: 9999;
  width: clamp(72px, 7vw, 110px);
  display: block;
  transition: transform 220ms ease;
}

.footer-final__whatsapp img {
  width: 100%;
  height: auto;
}

.footer-final__whatsapp:hover {
  transform: scale(1.06);
}

.footer-final__bottom {
  position: relative;
  z-index: 2;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 24px;
  background: #101f21;
  text-align: center;
}

.footer-final__bottom p {
  margin: 0;
  color: #ffffff;
  font-size: clamp(0.9rem, 1.1vw, 1.15rem);
  font-weight: 400;
}

@media (max-width: 768px) {
  .footer-features {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 28px;
    width: min(100% - 36px, 620px);
  }

  .footer-final__content {
    min-height: 260px;
  }

  .footer-final__logo {
    width: min(44vw, 430px);
  }

  .footer-final__wave--left {
    width: min(48vw, 720px);
  }

  .footer-final__wave--right {
    width: min(32vw, 480px);
  }

  .footer-final__whatsapp {
    right: clamp(22px, 4vw, 70px);
    bottom: clamp(22px, 4vw, 55px);
    width: clamp(72px, 7vw, 110px);
  }

  .footer-final__bottom {
    min-height: 82px;
    padding: 22px 24px;
  }
}

@media (max-width: 480px) {
  .footer-features {
    grid-template-columns: repeat(2, 1fr);
    width: min(100% - 28px, 420px);
  }

  .footer-feature:last-child {
    grid-column: auto;
    justify-self: center;
  }

  .footer-feature img {
    width: 58px;
    height: 58px;
  }

  .footer-feature p {
    font-size: 0.82rem;
  }

  .footer-final__content {
    min-height: 260px;
  }

  .footer-final__logo {
    width: min(44vw, 430px);
  }

  .footer-final__whatsapp {
    right: clamp(22px, 4vw, 70px);
    bottom: clamp(22px, 4vw, 55px);
    width: clamp(72px, 7vw, 110px);
  }

  .footer-final__bottom p {
    font-size: clamp(0.9rem, 1.1vw, 1.15rem);
  }
}


/* =========================================================
   AJUSTES CLIENTE - PÁGINA PRODUCTOS
   ========================================================= */
:root {
  --font-title: "Figtree", Arial, sans-serif;
}

.products-page {
  min-height: auto !important;
  padding: clamp(72px, 9vw, 128px) 0 42px !important;
}

.section-title h1,
#productos-titulo {
  font-family: var(--font-title) !important;
  font-weight: 800 !important;
  font-size: clamp(3.2rem, 5.8vw, 6rem) !important;
  line-height: 0.95 !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
}

.products-grid {
  width: min(100% - 48px, 1080px) !important;
  margin: clamp(56px, 5vw, 74px) auto 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 30px 22px !important;
}

.product-card {
  width: calc((100% - 44px) / 3) !important;
  max-width: 286px;
}

.product-card a {
  font-weight: 600 !important;
}

.site-footer {
  padding-top: 0 !important;
}

.footer-features {
  display: none !important;
}

.footer-final {
  margin-top: 6px !important;
}

.footer-final__content {
  min-height: 132px !important;
  padding: 0 !important;
  align-items: flex-end !important;
}

.footer-final__logo {
  width: min(34vw, 340px) !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

.footer-final__wave--left {
  width: min(34vw, 520px) !important;
}

.footer-final__wave--right {
  width: min(24vw, 360px) !important;
}

@media (max-width: 1024px) {
  .products-page {
    padding-bottom: 36px !important;
  }

  .products-grid {
    width: min(100% - 48px, 920px) !important;
  }

  .product-card {
    width: calc((100% - 22px) / 2) !important;
    max-width: 320px;
  }

  .footer-final__content {
    min-height: 120px !important;
  }

  .footer-final__logo {
    width: min(42vw, 300px) !important;
  }
}

@media (max-width: 768px) {
  .products-page {
    padding: 62px 0 34px !important;
  }

  .products-grid {
    width: min(100% - 36px, 620px) !important;
    gap: 24px 18px !important;
    margin-top: 46px !important;
  }

  .product-card {
    width: calc((100% - 18px) / 2) !important;
    max-width: 320px;
  }

  .footer-final__content {
    min-height: 108px !important;
  }

  .footer-final__logo {
    width: min(52vw, 250px) !important;
    margin-bottom: 8px !important;
  }
}

@media (max-width: 480px) {
  .products-grid {
    width: min(100% - 28px, 420px) !important;
  }

  .product-card {
    width: 100% !important;
    max-width: 320px !important;
    margin-inline: auto !important;
  }

  .footer-final__content {
    min-height: 96px !important;
  }

  .footer-final__logo {
    width: min(62vw, 230px) !important;
    margin-bottom: 6px !important;
  }
}


/* =========================================================
   AJUSTE FINO CLIENTE - TÍTULO EXACTO + TARJETAS MEJORADAS
   ========================================================= */
.section-title {
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
}

.section-title h1,
#productos-titulo {
  margin: 0 !important;
  color: var(--azul-marca) !important;
  font-family: var(--font-title) !important;
  font-size: clamp(3.2rem, 5.8vw, 6rem) !important;
  font-weight: 800 !important;
  line-height: 0.95 !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
}

.products-grid {
  width: min(100% - 48px, 1120px) !important;
  gap: 34px 26px !important;
}

.product-card {
  width: calc((100% - 52px) / 3) !important;
  max-width: 325px !important;
  border-radius: 18px !important;
  display: flex !important;
  flex-direction: column !important;
}

.product-card__image {
  min-height: 270px !important;
  padding: 24px 22px 8px !important;
  align-items: end !important;
}

.product-card__image img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 235px !important;
  object-fit: contain !important;
  margin-inline: auto !important;
}

.product-card__content {
  padding: 14px 18px 16px !important;
}

.product-card h2 {
  font-size: clamp(1.25rem, 1.45vw, 1.52rem) !important;
}

.product-card p {
  min-height: 42px !important;
  margin: 8px 0 14px !important;
  font-size: clamp(0.78rem, 0.9vw, 0.9rem) !important;
  line-height: 1.08 !important;
}

.product-card a {
  min-height: 46px !important;
  border-radius: 9px !important;
  font-size: clamp(1rem, 1.12vw, 1.18rem) !important;
}

@media (max-width: 1024px) {
  .products-grid {
    width: min(100% - 42px, 940px) !important;
    gap: 28px 20px !important;
  }

  .product-card {
    width: calc((100% - 20px) / 2) !important;
    max-width: 360px !important;
  }

  .product-card__image {
    min-height: 255px !important;
  }

  .product-card__image img {
    max-height: 220px !important;
  }
}

@media (max-width: 768px) {
  .section-title {
    width: min(100% - 36px, 620px);
  }

  .section-title h1,
  #productos-titulo {
    font-size: clamp(3rem, 12vw, 4.65rem) !important;
  }

  .products-grid {
    width: min(100% - 36px, 620px) !important;
    gap: 24px 18px !important;
  }

  .product-card {
    width: calc((100% - 18px) / 2) !important;
    max-width: 320px !important;
  }

  .product-card__image {
    min-height: 232px !important;
    padding: 20px 18px 6px !important;
  }

  .product-card__image img {
    max-height: 198px !important;
  }
}

@media (max-width: 480px) {
  .section-title {
    width: min(100% - 28px, 420px);
  }

  .section-title h1,
  #productos-titulo {
    font-size: clamp(3rem, 14vw, 4.2rem) !important;
  }

  .products-grid {
    width: min(100% - 28px, 420px) !important;
  }

  .product-card {
    width: 100% !important;
    max-width: 340px !important;
  }

  .product-card__image {
    min-height: 245px !important;
  }

  .product-card__image img {
    max-height: 205px !important;
  }
}


/* =========================================================
   AJUSTE RÁPIDO CLIENTE - MENOS ESPACIO ENTRE MENÚ Y TÍTULO
   ========================================================= */
.products-page {
  padding-top: clamp(32px, 4vw, 56px) !important;
}

.section-title {
  margin-top: 0 !important;
}

.products-grid {
  margin-top: clamp(40px, 4vw, 56px) !important;
}

@media (max-width: 768px) {
  .products-page {
    padding-top: 46px !important;
  }

  .products-grid {
    margin-top: 40px !important;
  }
}

@media (max-width: 480px) {
  .products-page {
    padding-top: 38px !important;
  }

  .products-grid {
    margin-top: 34px !important;
  }
}

/* ===== Ajuste final mobile: logo WhatsApp completo y sin recorte ===== */
.footer-final__whatsapp {
  overflow: visible !important;
}

.footer-final__whatsapp img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

@media (max-width: 768px) {
  .footer-final__whatsapp {
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: 16px !important;
    width: 62px !important;
  }
}

@media (max-width: 480px) {
  .footer-final__whatsapp {
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: 12px !important;
    width: 58px !important;
  }
}


/* ===== Fondo web unificado con Inicio ===== */
:root {
  --fondo-web-global: #f5f9ff;
}

body,
main,
.products-page,
.site-footer,
.footer-final,
.footer-final__content {
  background: var(--fondo-web-global) !important;
}

/* =========================================================
   FIX CONFIRMADO 2026-07-11: eliminar corte/franja blanca en tarjetas de producto mobile
   ========================================================= */
@media (max-width: 768px) {
  .products-page .product-card {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: rgba(242, 242, 242, 0.94) !important;
  }

  .products-page .product-card__image {
    flex: 0 0 auto !important;
    margin: 0 !important;
    background: #ffffff !important;
  }

  .products-page .product-card__content {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    background: rgba(242, 242, 242, 0.94) !important;
    border-radius: 0 0 18px 18px !important;
  }

  .products-page .product-card__content a {
    margin-top: auto !important;
  }
}


/* =========================================================
   AJUSTE FINAL PRODUCTOS 2026-07-12
   - títulos en una sola línea
   - eliminar franja/corte blanco inferior en tarjetas cortas
   ========================================================= */
.products-page .product-card {
  overflow: hidden !important;
}

.products-page .product-card__content {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.products-page .product-card__content a {
  margin-top: auto !important;
}

.products-page .product-card h2 {
  white-space: nowrap !important;
  font-size: clamp(1.08rem, 1.18vw, 1.18rem) !important;
  line-height: 1 !important;
}

.products-page .product-card p {
  min-height: 36px !important;
}

@media (max-width: 1024px) {
  .products-page .product-card h2 {
    font-size: clamp(1.02rem, 1.55vw, 1.14rem) !important;
  }
}

@media (max-width: 768px) {
  .products-page .product-card h2 {
    font-size: clamp(1.08rem, 4vw, 1.3rem) !important;
  }
}

/* =========================================================
   FICHAS TÉCNICAS EN POP-UP — PRODUCTOS
   ========================================================= */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.product-card__more {
  width: 100%;
  min-height: 45px;
  margin-top: auto;
  border: 0;
  border-radius: 8px;
  background: #08d37c;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.product-card__more:hover,
.product-card__more:focus-visible {
  filter: brightness(.96);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(8, 211, 124, .25);
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.5vw, 34px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

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

.product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 23, 43, .58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.product-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1380px, 96vw);
  max-height: 92vh;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .34),
    0 0 34px rgba(76, 139, 255, .18);
  overflow: hidden;
  transform: translateY(12px) scale(.985);
  transition: transform .22s ease;
}

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

.product-modal__viewport {
  position: relative;
  max-height: 92vh;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
}

.product-modal__image {
  display: block;
  width: 100%;
  height: auto;
}

.product-modal__close {
  position: absolute;
  z-index: 20;
  top: clamp(10px, 1.6vw, 24px);
  right: clamp(10px, 1.6vw, 24px);
  width: clamp(42px, 4vw, 58px);
  aspect-ratio: 1;
  border: 1px solid rgba(17, 39, 75, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #0d2346;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

.product-modal__cta {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: clamp(18px, 2.2vw, 34px);
  transform: translateX(-50%);
  width: clamp(260px, 28%, 420px);
  min-height: clamp(48px, 4.5vw, 66px);
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #06a94f;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  box-shadow: 0 10px 24px rgba(6, 169, 79, .28);
}

.product-modal__cta:hover,
.product-modal__cta:focus-visible {
  background: #078f45;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .product-modal {
    padding: 8px;
    align-items: center;
  }

  .product-modal__dialog {
    display: flex;
    flex-direction: column;
    width: min(100%, 720px);
    max-height: 96vh;
    padding-top: 54px;
    border-radius: 12px;
    overflow: hidden;
  }

  /* La ficha queda completa y en un área independiente para permitir zoom. */
  .product-modal__viewport {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(96vh - 118px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y pinch-zoom;
  }

  .product-modal__image {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
    transform-origin: top center;
  }

  /* La X queda en una franja superior, fuera de la imagen. */
  .product-modal__close {
    top: 7px;
    right: 10px;
    width: 40px;
    font-size: 1.9rem;
    background: #fff;
  }

  /* El CTA queda debajo de la ficha, sin tapar contenido. */
  .product-modal__cta {
    position: static;
    flex: 0 0 auto;
    transform: none;
    width: calc(100% - 24px);
    min-height: 52px;
    margin: 8px 12px 12px;
    font-size: 1rem;
    border-radius: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-modal,
  .product-modal__dialog,
  .product-card__more {
    transition: none !important;
  }
}


/* === Tipografía unificada: Figtree === */
body, p, li, a, label, input, textarea, select {
  font-family: var(--font-main);
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
button, .btn, .button, [class*="cta"],
input[type="submit"], input[type="button"] {
  font-family: var(--font-title);
  font-weight: 900;
}

/* =========================================================
   Ajuste final aprobado: ancla del formulario + WhatsApp discreto
   ========================================================= */
#contacto {
  scroll-margin-top: calc(var(--topbar-height, 38px) + 84px);
}

.footer-final__whatsapp {
  width: clamp(34px, 3vw, 55px) !important;
  right: clamp(8px, 1.5vw, 24px) !important;
  bottom: max(6px, env(safe-area-inset-bottom)) !important;
}

@media (max-width: 768px) {
  .footer-final__whatsapp {
    width: 31px !important;
    right: max(7px, env(safe-area-inset-right)) !important;
    bottom: max(5px, env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 480px) {
  .footer-final__whatsapp {
    width: 29px !important;
    right: max(6px, env(safe-area-inset-right)) !important;
    bottom: max(4px, env(safe-area-inset-bottom)) !important;
  }
}



/* =========================================================
   Ajuste final: WhatsApp visible sin bloquear la navegación
   ========================================================= */
.footer-final__whatsapp {
  width: clamp(58px, 5vw, 78px) !important;
  right: clamp(10px, 1.6vw, 24px) !important;
  bottom: max(9px, env(safe-area-inset-bottom)) !important;
}

@media (max-width: 768px) {
  .footer-final__whatsapp {
    width: 54px !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 480px) {
  .footer-final__whatsapp {
    width: 48px !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: max(7px, env(safe-area-inset-bottom)) !important;
  }
}
