/* ======================================================
   Carrier Expo - CSS nativo
   Archivo organizado por bloques:
   1. Variables / reset
   2. Promociones
   3. Header
   4. Series dinámicas
   5. Tarjetas
   6. Footer promociones
   7. Secciones legacy
   8. Social footer actual
   9. Responsive
====================================================== */

/* ======================================================
   1. VARIABLES GLOBALES
====================================================== */

:root {
  --carrier-blue-dark: #020861;
  --carrier-blue: #001a95;
  --carrier-blue-bright: #0058ff;
  --carrier-cyan: #00a7e1;
  --carrier-pink: #ec0b73;
  --carrier-yellow: #dde819;
  --white: #ffffff;

  --max-width: 1400px;
  --section-x: clamp(18px, 3vw, 48px);
  --card-radius: 16px;
  --transition: 220ms ease;
}

/* ======================================================
   2. RESET GENERAL
====================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--carrier-blue-dark);
  overflow-x: hidden;
}

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

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

.site-page {
  width: 100%;
  min-height: 100vh;
}

/* ======================================================
   3. SECCIÓN PRINCIPAL DE PROMOCIONES
====================================================== */

.promo-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  clip-path: inset(0);
  isolation: isolate;
  background: var(--carrier-blue-dark);
}

/* Fondo fijo original de promociones.
   Se conserva porque puede usarse en otra versión/página. */
.promo-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image: url("https://www.refrigeracionparatransporte.com/assets/img/fondos/f7ef38_232ec59ecfa244b189b87178e15030d1~mv2-convertido-de-avif.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Video de fondo legacy.
   Se conserva porque pediste no borrar este bloque. */
.promo-bg-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;

  background: #06154a;
}

/* Overlay del video/fondo legacy. */
.promo-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(180deg,
      rgba(0, 18, 75, 0.72),
      rgba(0, 18, 75, 0.58));

  pointer-events: none;
}

/* Contenedor principal */
.promo-container {
  position: relative;
  z-index: 2;

  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding: clamp(50px, 7vw, 92px) var(--section-x) clamp(58px, 8vw, 96px);
}

/* ======================================================
   4. ENCABEZADO PRINCIPAL
====================================================== */

.promo-header {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(42px, 6vw, 72px);
}

.title-frame {
  width: min(100%, 650px);

  display: grid;
  grid-template-rows: auto auto auto;
  gap: 18px;

  text-align: center;
}

.title-frame span {
  height: 2px;
  background:
    linear-gradient(90deg,
      transparent,
      rgba(0, 167, 225, 0.85),
      transparent);
}

.title-frame h1 {
  margin: 0;

  font-size: clamp(24px, 2.5vw, 60px);
  line-height: 1.35;
  letter-spacing: 1.2px;
  font-weight: 800;
  text-transform: uppercase;

  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.32);
}

.title-frame strong {
  display: block;
  margin-top: 8px;
  font: inherit;
}

/* ======================================================
   5. SERIES DINÁMICAS
   Estas clases son generadas por app.js.
====================================================== */

.series-container {
  display: grid;
  gap: clamp(70px, 9vw, 118px);
}

.series-block {
  display: grid;
  gap: clamp(28px, 3.5vw, 52px);
}

.series-heading {
  width: min(100%, 750px);
  margin-inline: auto;

  display: grid;
  grid-template-columns: 1.2fr auto 1.25fr;
  align-items: center;
  gap: 0;
}

.series-line {
  height: 2px;
  background:
    linear-gradient(90deg,
      transparent,
      rgba(0, 167, 225, 0.75),
      rgba(0, 167, 225, 0.25));
}

.series-line:last-child {
  background:
    linear-gradient(90deg,
      rgba(0, 167, 225, 0.25),
      rgba(0, 167, 225, 0.75),
      transparent);
}

.direccionlogoFooter p{
  margin-bottom: .3rem !important;
}
.series-center {
  min-width: min(100vw - 60px, 680px);

  display: grid;
  grid-template-columns: clamp(160px, 22vw, 320px) minmax(390px, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 36px);

  padding: 0 18px;
}

.series-label {
  min-height: 54px;

  display: flex;
  justify-content: center;
  align-items: center;

  color: #ffffff;
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 0.95;
  font-weight: 400;
  text-align: center;
  white-space: pre-line;
}

.series-icon {
  width: 100%;
  max-width: 320px;
  height: auto;

  display: block;
  justify-self: end;

  object-fit: contain;
}

.series-title-wrap {
  position: relative;
  min-width: 0;
  justify-self: start;
}

.new-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 4px;

  color: #ffffff;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  text-transform: uppercase;

  transform: translateX(-4px);
}

.new-ribbon::before {
  content: "";

  width: 12px;
  height: 38px;

  background: #ffdc00;
  transform: skew(-12deg);
}

.new-ribbon::after {
  content: "";

  width: 145px;
  height: 2px;

  background: linear-gradient(90deg, var(--carrier-pink), transparent);
}

.series-title {
  margin: 0;

  font-size: clamp(25px, 2.4vw, 38px);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;

  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.series-subtitle {
  margin: 6px 0 0;

  font-size: clamp(22px, 2.2vw, 36px);
  line-height: 1;
  font-weight: 400;
}

/* ======================================================
   6. GRID DE PRODUCTOS
====================================================== */

.products-grid {
  --cols: 3;

  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: clamp(22px, 3.5vw, 70px);

  justify-items: center;
  align-items: start;
}

.products-grid.cols-4 {
  --cols: 4;
  gap: clamp(18px, 2vw, 32px);
}

.products-grid.cols-1 {
  --cols: 1;
}

.products-grid.cols-4 .equipment-card {
  width: min(100%, 270px);
}

.products-grid.cols-4 .equipment-card__brand {
  top: 58px;
}

.products-grid.cols-4 .equipment-card__brand img {
  max-height: 50px;
}

.products-grid.cols-4 .equipment-card__product {
  bottom: 46px;
  width: 78%;
  max-height: 118px;
}

.products-grid.cols-4 .equipment-card__spec {
  right: 18px;
  bottom: 17px;
  font-size: 21px;
}




/* ======================================================
   GRID / FLEX DE PRODUCTOS
   Se usa flex-wrap para que las tarjetas sobrantes
   de la última fila queden centradas.
====================================================== */

.products-grid {
  --card-gap: clamp(22px, 3.5vw, 70px);

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;

  gap: var(--card-gap);
}

/* 3 tarjetas por fila visualmente */
.products-grid.cols-3 .equipment-card {
  width: min(100%, 305px);
}

/* 4 tarjetas por fila visualmente */
.products-grid.cols-4 {
  --card-gap: clamp(18px, 2vw, 32px);
}

.products-grid.cols-4 .equipment-card {
  width: min(100%, 270px);
}

/* 1 tarjeta centrada */
.products-grid.cols-1 .equipment-card {
  width: min(100%, 305px);
}




.equipment-card {
  position: relative;
  isolation: isolate;

  width: min(100%, 305px);
  aspect-ratio: 305 / 295;

  border-radius: 14px;
  overflow: hidden;
}

/* ======================================================
   7. TARJETAS DE PRODUCTOS
====================================================== */

.equipment-card {
  position: relative;
  isolation: isolate;

  width: min(100%, 305px);
  aspect-ratio: 305 / 295;

  border-radius: 14px;
  overflow: hidden;
}

.equipment-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.38);
  filter: saturate(1.05);
}

.equipment-card__background {
  position: absolute;
  inset: 0;
  z-index: -1;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.equipment-card__availability {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;

  width: 130px;

  color: var(--carrier-yellow);
  font-size: 12px;
  line-height: 0.88;
  font-weight: 900;
  font-style: italic;
  text-align: center;

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
}

.equipment-card__brand {
  position: absolute;
  top: 68px;
  left: 50%;
  z-index: 2;

  width: 84%;

  display: grid;
  justify-items: center;

  text-align: center;

  transform: translateX(-50%);
}

.equipment-card__brand img {
  width: min(100%, 210px);
  max-height: 58px;
  object-fit: contain;
}

.equipment-card__brand strong {
  color: #030303;

  font-size: 34px;
  line-height: 0.9;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 3px;
}

.equipment-card__brand span {
  margin-top: -2px;

  color: #58ad31;
  font-size: 25px;
  line-height: 0.9;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
}

.equipment-card__product {
  position: absolute;
  left: 50%;
  bottom: 47px;
  z-index: 2;

  width: 78%;
  max-height: 130px;

  object-fit: contain;

  filter: drop-shadow(0 12px 10px rgba(0, 0, 0, 0.18));
  transform: translateX(-50%);
}

.equipment-card__spec {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 2;

  color: #1c3f8f;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.5px;
}

.equipment-card--product-big .equipment-card__product {
  bottom: 39px;
  width: 88%;
  max-height: 150px;
}

.equipment-card--tall .equipment-card__brand {
  top: 58px;
}

.equipment-card--tall .equipment-card__product {
  bottom: 36px;
  width: 58%;
  max-height: 170px;
}

/* ======================================================
   8. FOOTER DE PROMOCIONES
====================================================== */

.promo-footer {
  margin-top: clamp(72px, 8vw, 110px);
  margin-bottom: clamp(20px, 4vw, 55px);

  text-align: center;
}

.promo-footer p {
  max-width: 760px;
  margin: 0 auto 28px;

  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.35;
  font-style: italic;
  letter-spacing: 0.4px;
}

/* ======================================================
   9. BOTONES
====================================================== */

.btn-back,
.btn-primary {
  min-height: 48px;

  display: inline-flex;
  justify-content: center;
  align-items: center;

  border: 0;
  border-radius: 8px;

  font-weight: 800;
  letter-spacing: 0.7px;

  cursor: pointer;

  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.btn-back {
  min-width: 220px;

  background: var(--carrier-pink);
  color: #ffffff;

  font-size: 14px;
}

.btn-primary {
  min-width: 190px;
  padding: 0 28px;

  background: #0757ff;
  color: #ffffff;

  font-size: 14px;
}

.btn-back:hover,
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

/* ======================================================
   10. BANNER CARRIER LEGACY
   Se conserva porque se usa en otra página.
====================================================== */

.carrier-banner {
  position: relative;

  min-height: 240px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
    url("../img/banner-carretera.png") center / cover no-repeat;
}

.carrier-banner__overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(90deg,
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.08));
}

.carrier-banner__content {
  position: relative;
  z-index: 1;

  width: min(100%, var(--max-width));
  padding: 38px var(--section-x);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 120px);

  text-align: center;
}

.carrier-banner h2 {
  margin: 0;

  font-size: clamp(25px, 2.2vw, 36px);
  line-height: 1.1;
  font-weight: 900;

  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* ======================================================
   11. SOCIAL SECTION LEGACY
   Se conserva porque se usa en otra página.
====================================================== */

.social-section {
  position: relative;

  min-height: 440px;

  overflow: hidden;

  background:
    linear-gradient(90deg, #1d67ae 0%, #204f95 54%, #17377b 100%),
    url("../img/fondo-social.png") center / cover no-repeat;
}

.social-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(90deg,
      rgba(19, 60, 119, 0.88),
      rgba(16, 44, 104, 0.35));
}

.social-content {
  position: relative;
  z-index: 1;

  width: min(100%, var(--max-width));
  min-height: 440px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 76px) var(--section-x);

  display: grid;
  grid-template-columns: minmax(330px, 520px) 1fr;
  align-items: center;
  gap: 28px;
}

.social-left h2 {
  margin: 0 0 35px;

  font-size: clamp(27px, 2.3vw, 36px);
  line-height: 1.15;
  font-weight: 900;
}

.social-icons {
  margin-bottom: 24px;

  display: grid;
  grid-template-columns: repeat(3, 70px);
  gap: 34px;
  align-items: center;
}

.social-icons a {
  width: 62px;
  height: 62px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  transition: transform var(--transition);
}

.social-icons a:hover {
  transform: scale(1.08);
}

.social-icons img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.qr-grid {
  margin-bottom: 62px;

  display: grid;
  grid-template-columns: repeat(3, 92px);
  gap: 30px;
}

.qr-grid img {
  width: 92px;
  height: 92px;
  padding: 5px;

  object-fit: cover;

  border-radius: 12px;
  background: #ffffff;
}

.app-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 38px;
  align-items: center;
}

.app-row h3 {
  margin: 0;

  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.05;
  font-weight: 900;
}

.btn-small {
  min-width: 160px;
  min-height: 45px;
}

.social-truck {
  width: min(58vw, 730px);
  margin-right: -70px;
  margin-bottom: -80px;

  align-self: end;
  justify-self: end;
}

.social-truck img {
  width: 100%;
  filter: drop-shadow(-16px 18px 32px rgba(0, 0, 0, 0.26));
}

/* ======================================================
   12. SOCIAL FOOTER ACTUAL
====================================================== */

.social-footer-container {
  --sf-blue: #022efd;
  --sf-blue-dark: #000c3b;
  --sf-cyan: #01f7fd;
  --sf-white: #ffffff;

  position: relative;

  width: 100%;
  padding: clamp(52px, 6vw, 80px) 20px clamp(34px, 5vw, 60px);

  display: flex;
  flex-direction: column;
  align-items: center;

  overflow: hidden;

  color: var(--sf-white);

  background:
    url("../img/fondos/f7ef38_eb8e1769e0924363a7ae931d9c13e074~mv2-convertido-de-avif.png") center / cover no-repeat;
}

.social-footer-container::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 0;

  background:
    radial-gradient(circle at 18% 25%, rgba(1, 247, 253, 0.18), transparent 32%),
    radial-gradient(circle at 82% 70%, rgba(2, 46, 253, 0.22), transparent 34%);

  pointer-events: none;
}

.social-footer-container>* {
  position: relative;
  z-index: 1;
}

.social-footer-container .social-title {
  margin: 0 0 clamp(30px, 4vw, 48px);

  color: var(--sf-white);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  font-weight: 900;
  text-align: center;

  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.social-footer-container .social-grid {
  width: min(100%, 620px);
  margin-bottom: clamp(46px, 6vw, 72px);

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 4vw, 48px);
  justify-items: center;
  align-items: start;
}

.social-footer-container .social-item {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.social-footer-container .social-item>a {
  width: clamp(58px, 6vw, 74px);
  height: clamp(58px, 6vw, 74px);

  display: grid;
  place-items: center;

  border-radius: 50%;

  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.social-footer-container .social-item>a:hover {
  transform: translateY(-4px) scale(1.06);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.social-footer-container .social-icon-circle {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-footer-container .qr-box {
  width: clamp(92px, 9vw, 122px);
  height: clamp(92px, 9vw, 122px);
  padding: 8px;

  display: grid;
  place-items: center;

  background: var(--sf-white);
  border-radius: 16px;

  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(2, 46, 253, 0.08);
}

.social-footer-container .qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-footer-container .locator-banner {
  width: min(100%, 900px);
  padding: clamp(22px, 3vw, 34px) clamp(20px, 4vw, 52px);

  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 5vw, 70px);

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;

  background: rgba(0, 12, 59, 0.28);
  backdrop-filter: blur(5px);
}

.social-footer-container .locator-text {
  margin: 0;

  color: var(--sf-white);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.15;
  font-weight: 900;
  text-align: center;

  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
}

.social-footer-container .btn-locator-search {
  min-width: 160px;
  min-height: 46px;
  padding: 0 34px;

  display: inline-flex;
  justify-content: center;
  align-items: center;

  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;

  background: var(--sf-blue);
  color: var(--sf-white);

  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-decoration: none;
  text-transform: uppercase;

  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);

  transition:
    transform 220ms ease,
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.social-footer-container .btn-locator-search:hover {
  transform: translateY(-3px);
  background: var(--sf-white);
  color: var(--sf-blue);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

/* ======================================================
   13. RESPONSIVE: TABLET / DESKTOP MEDIANO
====================================================== */

@media (max-width: 1120px) {

  .products-grid,
  .products-grid.cols-4 {
    --cols: 2;
    gap: 34px;
  }

  .series-heading {
    width: min(100%, 560px);
  }

  .series-center {
    min-width: min(100vw - 60px, 390px);
    grid-template-columns: 95px minmax(160px, 1fr);
  }
}

/* ======================================================
   14. RESPONSIVE: TABLET Y MÓVIL GENERAL
====================================================== */

@media (max-width: 768px) {
  .promo-background {
    background-size: cover;
    background-position: center top;
    background-attachment: scroll;
  }

  .social-footer-container {
    padding: 48px 18px 42px;
    background-position: center;
  }

  .social-footer-container .social-grid {
    width: min(100%, 460px);
    gap: 22px;
  }

  .social-footer-container .locator-banner {
    width: min(100%, 520px);
    flex-direction: column;
    gap: 22px;
    padding: 26px 20px;
  }

  .social-footer-container .btn-locator-search {
    width: min(100%, 220px);
  }
}

/* ======================================================
   15. RESPONSIVE: MÓVIL
====================================================== */

@media (max-width: 760px) {
  .promo-container {
    padding-top: 42px;
  }

  .series-container {
    gap: 68px;
  }

  .series-heading {
    /*grid-template-columns: 1fr*/
    gap: 12px;
  }

  .series-line {
    width: 70%;
    margin-inline: auto;
  }

  .series-label {
    font-size: 16px;
  }

  .series-center {
    min-width: 0;
    width: 100%;

    grid-template-columns: clamp(140px, 38vw, 230px) minmax(160px, 1fr);
    gap: 18px;

    padding: 0;
  }

  .series-icon {
    width: 100%;
    max-width: 230px;
    height: auto;
  }

  .products-grid,
  .products-grid.cols-4 {
    --cols: 1;
  }

  .product-card {
    width: min(100%, 330px);
  }

  .carrier-banner__content {
    flex-direction: column;
  }

  .social-content {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .social-icons {
    grid-template-columns: repeat(3, 58px);
    gap: 22px;
  }

  .social-icons img {
    width: 52px;
    height: 52px;
  }

  .qr-grid {
    grid-template-columns: repeat(3, 76px);
    gap: 18px;
    margin-bottom: 42px;
  }

  .qr-grid img {
    width: 76px;
    height: 76px;
  }

  .app-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .social-truck {
    width: min(100%, 520px);
    margin: 10px auto -55px;
    justify-self: center;
  }
}

/* ======================================================
   16. RESPONSIVE: MÓVIL PEQUEÑO
====================================================== */

@media (max-width: 480px) {
  .social-footer-container .social-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .social-footer-container .social-item {
    gap: 12px;
  }

  .social-footer-container .qr-box {
    width: 118px;
    height: 118px;
  }

  .social-footer-container .locator-text {
    font-size: 18px;
  }
}

@media (max-width: 440px) {
  .series-center {
    grid-template-columns: 1fr;
    justify-items: center;

    text-align: center;
  }

  .series-icon {
    justify-self: center;
    max-width: 260px;
  }

  .series-title-wrap {
    justify-self: center;
    text-align: center;
  }

  .new-ribbon {
    justify-content: center;
  }

  .new-ribbon::after {
    width: 90px;
  }

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