/* =========================================================
   GOTHAM SOLO PARA LA LANDING DE VENTAS
   ========================================================= */

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/gotham/Gotham-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/gotham/GOTHAM-MEDIUM.TTF') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/gotham/GOTHAM-BOLD.TTF') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ======== BASE ======== */
.zrx-landing {
  font-family: 'Gotham', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #00243a;
}

/* ======== CINTILLO SUPERIOR ======== */
.zrx-strip {
  background: #0ab4dd;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zrx-strip__img {
  height: 52px;
  width: auto;
  display: block;
}

/* ======== HERO / SLIDER ======== */
.zrx-hero {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.zrx-hero__slider {
  position: relative;
  width: 100%;
  margin: 0;
  height: 900px;
}

.zrx-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.zrx-hero__slide.is-active {
  opacity: 1;
  z-index: 2;
}

.zrx-hero__img {
  width: 100%;
  height: 900px;
  display: block;
  object-fit: cover;
}

.zrx-hero__dots {
  display: none;
  padding: 0;
  margin: 0;
}

/* ======== SECCIÓN ROBOTS GLOBAL ======== */
.zrx-robots {
  background: #0ab4dd;
  padding: 0;
  margin: 0;
}

/* =========================================================
   BLOQUE 2x2 (PANELS GRANDES)
   ========================================================= */

.zrx-robots-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  background: #0ab4dd;
  border-top: 16px solid #ffffff;
  box-sizing: border-box;
}

.zrx-robot-panel {
  display: flex;
  align-items: center;
  gap: 28px;                    /* más compacto */
  padding: 40px 50px 55px;      /* más compacto */
  color: #ffffff;
  box-sizing: border-box;
  border-right: 16px solid #ffffff;
  border-bottom: 16px solid #ffffff;
}

/* sin borde derecho segunda columna */
.zrx-robot-panel--2,
.zrx-robot-panel--4 {
  border-right: none;
}

/* sin borde abajo última fila */
.zrx-robot-panel--3,
.zrx-robot-panel--4 {
  border-bottom: none;
}

/* Degradados */
.zrx-robot-panel--1 {
  background: linear-gradient(to top right, #0ab4dd 0%, #5fd5f0 100%);
}
.zrx-robot-panel--2 {
  background: linear-gradient(to top left, #0ab4dd 0%, #5fd5f0 100%);
}
.zrx-robot-panel--3 {
  background: linear-gradient(to top right, #0ab4dd 0%, #5fd5f0 100%);
}
.zrx-robot-panel--4 {
  background: linear-gradient(to top left, #0ab4dd 0%, #5fd5f0 100%);
}

/* Imagen */
.zrx-robot-panel__img-wrap {
  flex: 0 0 38%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.zrx-robot-panel__img {
  max-width: 260px;
  width: 100%;
  height: auto;
}

.zrx-robot-panel__img--bg {
  max-width: 260px;
  width: auto;
  height: auto;
  display: block;
}

/* Contenido */
.zrx-robot-panel__content {
  flex: 1;
  text-align: center;
}

.zrx-robot-panel__tag {
  font-size: 1rem;
  color: #e0faff;
  margin: 0 0 4px;
  text-align: center;
  width: 100%;
  display: block;
  font-weight: 700;
}

.zrx-robot-panel__title {
  font-size: 2.1rem;            /* ↓ título compacto */
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  margin-left: auto;
  margin-right: auto;
}

.zrx-robot-panel__text {
  font-size: 1.05rem;           /* ↓ cuerpo compacto */
  line-height: 1.35;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 20px;
  max-width: 340px;
  letter-spacing: 0.04em;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   BOTONES
   ========================================================= */

.zrx-robot-panel__actions,
.zrx-robot-card__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  justify-content: center;
}

.zrx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;           /* ↓ botones más pequeños */
  border-radius: 999px;
  font-weight: 500;
  font-size: 1.05rem;           /* ↓ tamaño de fuente */
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  box-sizing: border-box;
}

/* 2x2: botones */
.zrx-robot-panel .zrx-btn--primary {
  background: #1894b1;
  color: #ffffff;
  border: 2px solid #ffffff;
}
.zrx-robot-panel .zrx-btn--primary:hover {
  background: #ffffff;
  color: #1894b1;
  border-color: #1894b1;
  transform: translateY(-2px);
}

.zrx-robot-panel .zrx-btn--outline {
  background: #ffffff;
  color: #1894b1;
  border: 2px solid #1894b1;
}
.zrx-robot-panel .zrx-btn--outline:hover {
  background: #1894b1;
  color: #ffffff;
  transform: translateY(-2px);
}

/* =========================================================
   BLOQUE INFERIOR 3 ROBOTS
   ========================================================= */

.zrx-robots-bottom {
  padding-bottom: 0;
}

.zrx-robots-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  border-top: 16px solid #ffffff;
  box-sizing: border-box;
}

.zrx-robot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 45px 30px 60px;      /* ↓ padding */
  color: #ffffff;
  box-sizing: border-box;
  border-right: 16px solid #ffffff;
}

.zrx-robot-card--3 {
  border-right: none;
}

.zrx-robot-card--1 {
  background: linear-gradient(to top right, #0ab4dd 0%, #5fd5f0 100%);
}
.zrx-robot-card--2 {
  background: linear-gradient(to top left, #0ab4dd 0%, #5fd5f0 100%);
}
.zrx-robot-card--3 {
  background: linear-gradient(to top right, #0ab4dd 0%, #5fd5f0 100%);
}

.zrx-robot-card__img-wrap {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 240px;                /* ↓ un poco */
  position: relative;
}

.zrx-robot-card__img {
  max-height: 220px;
  width: auto;
}

.zrx-robot-card__img--bg {
  max-height: 220px;
  width: auto;
  display: block;
}

.zrx-robot-card__title {
  font-size: 2.1rem;            /* igual que arriba */
  font-weight: 700;
  margin: 10px 0 14px;
  color: #ffffff;
}

.zrx-robot-card__text {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 400;
  margin: 0 0 22px;
  max-width: 320px;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.zrx-robot-card__actions {
  margin-top: auto;
}

.zrx-robot-card .zrx-btn--primary {
  background: #1894b1;
  color: #ffffff;
  border: 2px solid #ffffff;
}
.zrx-robot-card .zrx-btn--primary:hover {
  background: #ffffff;
  color: #1894b1;
  border-color: #1894b1;
  transform: translateY(-2px);
}

/* =========================================================
   MINI SLIDERS
   ========================================================= */

.zrx-robot-rotator {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 480px;                /* ↓ altura: cabe todo en el panel */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.zrx-robot-rotator__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.zrx-robot-rotator__img.is-active {
  opacity: 1;
  z-index: 2;
}

/* Nova: MISMO ancho que los demás (alineación) */
.zrx-robot-panel--1 .zrx-robot-panel__img-wrap {
  flex: 0 0 38%;
  justify-content: center;
  align-items: flex-end;
  padding-right: 0;
}

.zrx-robot-panel--has-frames .zrx-robot-panel__img--bg {
  display: none;
}
.zrx-robot-card--has-frames .zrx-robot-card__img--bg {
  display: none;
}

/* Robots de la fila inferior: mini-slider más pequeño y centrado abajo */
.zrx-robots-bottom .zrx-robot-rotator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 240px;
}

/* ====== BOTÓN VER MÁS ====== */
.zrx-robot-card__more,
.zrx-robot-panel__more {
  font-weight: 700;
  text-decoration: underline;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.zrx-robot-card__more:hover,
.zrx-robot-panel__more:hover {
  opacity: 0.8;
}

/* Quitar franja blanca entre slider y 2x2 */
.zrx-robots-2x2 {
  border-top: 0 !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199px) {
  .zrx-hero__img {
    height: 700px;
  }
}

@media (max-width: 991px) {
  .zrx-hero__img {
    height: 520px;
  }

  .zrx-robots-2x2 {
    grid-template-columns: 1fr;
    border-top-width: 12px;
  }

  .zrx-robot-panel {
    border-right: none;
    border-bottom: 12px solid #ffffff;
    padding: 40px 30px;
  }

  .zrx-robot-panel--4 {
    border-bottom: none;
  }

  .zrx-robots-3 {
    grid-template-columns: 1fr;
    border-top-width: 12px;
  }

  .zrx-robot-card {
    border-right: none;
    border-bottom: 12px solid #ffffff;
  }

  .zrx-robot-card--3 {
    border-bottom: none;
  }

  .zrx-robot-panel__actions,
  .zrx-robot-card__actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .zrx-robot-panel--1 .zrx-robot-panel__img-wrap {
    flex: 0 0 100%;
    padding-right: 0;
    justify-content: center;
  }

  .zrx-robot-rotator {
    max-width: 400px;
    height: 520px;
  }
}

@media (max-width: 575px) {
  .zrx-strip__img {
    height: 38px;
  }

  .zrx-hero__img {
    height: 420px;
  }

  .zrx-robot-panel {
    flex-direction: column;
    text-align: center;
    padding: 30px 18px;
  }

  .zrx-robot-panel__content {
    text-align: center;
  }

  .zrx-robot-panel__text {
    margin-left: auto;
    margin-right: auto;
  }

  .zrx-robot-card {
    padding: 30px 18px 40px;
  }

  .zrx-robot-card__img-wrap {
    height: 220px;
  }

  .zrx-robot-card__actions {
    justify-content: center;
  }

  .zrx-robot-rotator {
    max-width: 320px;
    height: 420px;
  }
}

/* =========================================================
   FIX ESPECIAL: DESBORDES ENTRE 1280px → 992px
   ========================================================= */
@media (max-width: 1280px) and (min-width: 992px) {

  /* Panel más compacto */
  .zrx-robot-panel {
    padding: 35px 40px;
    gap: 22px;
  }

  /* Máxima altura permitida del panel */
  .zrx-robot-panel {
    min-height: 480px;
    max-height: 540px; /* evita desbordes */
    overflow: hidden;  /* corta lo que se sale */
  }

  /* Reducir el robot */
  .zrx-robot-rotator {
    max-width: 360px;
    height: 380px; /* ↓ más compacto */
  }

  .zrx-robot-panel__img {
    max-width: 210px;
  }

  /* Títulos más compactos */
  .zrx-robot-panel__title {
    font-size: 1.8rem;
  }

  /* Texto más compacto */
  .zrx-robot-panel__text {
    font-size: 0.95rem;
    max-width: 300px;
  }

  /* Botones más pequeños */
  .zrx-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
  }
}

/* =========================================================
   AJUSTE SOLO PARA MINI (panel 2) – hacer el robot más pequeño
   ========================================================= */

/* Aseguramos que nada se salga del cuadro */
.zrx-robot-panel--2 .zrx-robot-panel__img-wrap {
  overflow: hidden;
}

/* Escalamos SOLO las imágenes del slider de Mini */
.zrx-robot-panel--2 .zrx-robot-rotator__img {
  transform: scale(0.8);           /* ajusta si quieres más pequeño/grande */
  transform-origin: bottom center; /* que se “encoja” hacia adentro */
}
