/* =========================================================
   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;
  height: calc(100vh - 76px);
  display: block;
}

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

/* Cada slide ocupa todo el área y se controla por opacity */
.zrx-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
}

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

.zrx-hero__img,
.zrx-hero__picture img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.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: 0;
  box-sizing: border-box;
}

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

.zrx-robot-panel--2,
.zrx-robot-panel--4 {
  border-right: none;
}

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

/* Degradados */
.zrx-robot-panel--1 {
  background: linear-gradient(to bottom, #008fb0 0%, #0ab4dd 45%, #7de8ff 100%);
}
.zrx-robot-panel--2 {
  background: linear-gradient(to top, #008fb0 0%, #0ab4dd 45%, #7de8ff 100%);
}
.zrx-robot-panel--3 {
  background: linear-gradient(to bottom, #008fb0 0%, #0ab4dd 45%, #7de8ff 100%);
}
.zrx-robot-panel--4 {
  background: linear-gradient(to top, #008fb0 0%, #0ab4dd 45%, #7de8ff 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;
  display: block;
}

.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;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  margin-left: auto;
  margin-right: auto;
}

.zrx-robot-panel__text {
  font-size: 1.05rem;
  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;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  box-sizing: border-box;
}

.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;
  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, #008fb0 0%, #0ab4dd 45%, #7de8ff 100%);
}
.zrx-robot-card--2 {
  background: linear-gradient(to bottom, #008fb0 0%, #0ab4dd 45%, #7de8ff 100%);
}
.zrx-robot-card--3 {
  background: linear-gradient(to top, #008fb0 0%, #0ab4dd 45%, #7de8ff 100%);
}

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

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

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

.zrx-robot-card__title {
  font-size: 2.1rem;
  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 (DESKTOP) - TRANSICIONES
   ========================================================= */

.zrx-robot-rotator {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 480px;
  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 0.6s ease-in-out;
  z-index: 1;
  pointer-events: none;
}

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

/* Nova: alineación desktop */
.zrx-robot-panel--1 .zrx-robot-panel__img-wrap {
  flex: 0 0 38%;
  justify-content: center;
  align-items: flex-end;
  padding-right: 0;
}

/* Ocultar imágenes de fondo cuando hay frames (SOLO EN DESKTOP) */
@media (min-width: 768px) {
  .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 centrado */
.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;
}

/* =========================================================
   AJUSTE SOLO PARA MINI (panel 2)
   ========================================================= */

.zrx-robot-panel--2 .zrx-robot-panel__img-wrap {
  overflow: hidden;
}

.zrx-robot-panel--2 .zrx-robot-rotator__img {
  transform: scale(0.8);
  transform-origin: bottom center;
}

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

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

  .zrx-robot-panel {
    padding: 35px 40px;
    gap: 22px;
    min-height: 480px;
    max-height: 540px;
    overflow: hidden;
  }

  .zrx-robot-rotator {
    max-width: 360px;
    height: 380px;
  }

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

  .zrx-robot-panel__title {
    font-size: 1.8rem;
  }

  .zrx-robot-panel__text {
    font-size: 0.95rem;
    max-width: 300px;
  }

  .zrx-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
  }
}

/* =========================================================
   TABLET (≤ 991px)
   ========================================================= */
@media (max-width: 991px) {

  .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;
  }
}

/* =========================================================
   MOBILE GENERAL (≤ 767px)
   ========================================================= */
@media (max-width: 767px) {

  .zrx-hero {
    height: 70vh;
  }

  .zrx-robots-2x2 {
    grid-template-columns: 1fr;
  }

  .zrx-robot-panel {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 26px 16px 28px;
  }

  .zrx-robot-panel__img-wrap {
    flex: 0 0 auto;
    width: 100%;
    max-width: 240px;
    margin: 0 auto 8px;
  }

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

  .zrx-robot-panel__tag {
    font-size: 0.9rem;
  }

  .zrx-robot-panel__title {
    font-size: 1.6rem;
  }

  .zrx-robot-panel__text {
    font-size: 0.95rem;
    max-width: 100%;
  }

  /* BOTONES: mismo ancho para los 4 primeros y los 3 últimos */
  .zrx-robot-panel__actions,
  .zrx-robot-card__actions {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .zrx-robot-panel__actions .zrx-btn,
  .zrx-robot-card__actions .zrx-btn {
    width: 80%;
    max-width: 280px;
  }

  /* Reforzamos específicamente los últimos 3 robots */
  .zrx-robots-bottom .zrx-robot-card__actions .zrx-btn {
    width: 80% !important;
    max-width: 280px !important;
  }

  .zrx-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .zrx-robot-rotator {
    max-width: 260px;
    height: 280px;
  }

  .zrx-robots-3 {
    grid-template-columns: 1fr;
  }

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

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

  .zrx-robot-card__title {
    font-size: 1.6rem;
  }

  .zrx-robot-card__text {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .zrx-robot-card__img-wrap {
    height: auto;
    min-height: 200px;
  }

  .zrx-robots-bottom .zrx-robot-rotator {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 0 auto 10px;
    max-width: 240px;
    height: 240px;
  }

  .zrx-robot-card__actions {
    margin-top: 16px;
  }

  /* =========================================================
     FIX: EN MOBILE TAMBIÉN USAMOS LOS FRAMES CUANDO EXISTEN
     ========================================================= */

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

/* =========================================================
   MOBILE PEQUEÑO (≤ 575px)
   ========================================================= */
@media (max-width: 575px) {

  .zrx-strip__img {
    height: 38px;
  }

  .zrx-robot-panel {
    padding: 24px 14px 26px;
  }

  .zrx-robot-card {
    padding: 24px 14px 32px;
  }

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

  .zrx-robot-rotator {
    max-width: 220px;
    height: 260px;
  }

  .zrx-robots-bottom .zrx-robot-rotator {
    max-width: 220px;
    height: 220px;
  }
}

/* =========================================================
   MOBILE EXTRA PEQUEÑO (≤ 480px)
   ========================================================= */
@media (max-width: 480px) {

  .zrx-robot-panel__title,
  .zrx-robot-card__title {
    font-size: 1.4rem;
  }

  .zrx-robot-panel__text,
  .zrx-robot-card__text {
    font-size: 0.9rem;
  }

  .zrx-robot-panel__actions .zrx-btn,
  .zrx-robot-card__actions .zrx-btn {
    width: 80%;
    max-width: 260px;
  }

  .zrx-btn {
    justify-content: center;
  }
}

/* =========================================================
   FIX: mostrar texto y botones de NOVA en mobile
   ========================================================= */
@media (max-width: 767px) {

  .zrx-robot-panel--1 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: visible !important;
  }

  .zrx-robot-panel--1 .zrx-robot-panel__img-wrap {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 240px !important;
    margin: 0 auto 12px !important;
  }

  .zrx-robot-panel--1 .zrx-robot-panel__content {
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 0 !important;
  }

  .zrx-robot-panel--1 .zrx-robot-panel__actions {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
}

/* =========================================================
   FIX FINAL — FORZAR ANCHO CORRECTO BOTÓN COMPRAR (ULTIMOS 3)
   ========================================================= */
@media (max-width: 767px) {
    .zrx-robots-bottom .zrx-robot-card__actions {
        width: 100% !important;
        max-width: none !important;
        display: flex !important;
        justify-content: center !important;
    }
}

/* Margen lateral extra para descripciones en mobile */
@media (max-width: 767px) {
  .zrx-robot-panel__text,
  .zrx-robot-card__text {
    padding-left: 40px;
    padding-right: 40px;
    max-width: 100%; /* mantenemos el ancho actual */
    margin-left: auto;
    margin-right: auto;
  }
}



