
/* ==============================================
   SUBASTAS OABI - ESTILOS INDEPENDIENTES
   ============================================== */

:root {
  --sub-blue: #224F9D;
  --sub-deep: #071d40;
  --sub-orange: #f26522;
  --sub-ink: #15243b;
  --sub-muted: #64718a;
}

html {
  scroll-behavior: smooth;
}

.subastas-page {
  font-family: Poppins, Arial, sans-serif;
  color: var(--sub-ink);
  overflow: hidden;
}

.subastas-page * {
  box-sizing: border-box;
}

.subastas-container {
  max-width: 1240px;
  padding: 0 28px;
  margin: auto;
}

/* PORTADA Y SLIDER */

.subastas-hero {
  position: relative;
  background: var(--sub-deep);
  color: white;
  min-height: 570px;
}

.subastas-hero-slides {
  position: relative;
  min-height: 570px;
}

.subastas-slide {
  display: none;
  min-height: 570px;
  position: relative;
  background:
    radial-gradient(circle at 79% 37%, #2466ad 0, transparent 37%),
    linear-gradient(115deg, #06172e 0%, #123f7e 70%, #09284f 100%);
}

.subastas-slide:nth-child(2) {
  background:
    radial-gradient(circle at 75% 20%, #175ca3 0, transparent 42%),
    linear-gradient(115deg, #071d40, #0b356d);
}

.subastas-slide:nth-child(3) {
  background:
    radial-gradient(circle at 85% 70%, #1c63a9 0, transparent 40%),
    linear-gradient(115deg, #06172e, #154e8f);
}

.subastas-slide.is-active {
  display: flex;
  animation: subFade .5s ease;
}

@keyframes subFade {
  from { opacity: .35; }
  to { opacity: 1; }
}

.subastas-hero-inner {
  width: min(1240px, 100%);
  margin: auto;
  padding: 75px 28px 100px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 38px;
  align-items: center;
}

.subastas-eyebrow,
.subastas-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.subastas-eyebrow {
  color: #a9d3ff;
}

.subastas-hero h1,
.subastas-hero h2 {
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.04em;
  margin: 22px 0;
}

.subastas-hero h1 em,
.subastas-hero h2 em {
  font-style: normal;
  color: #ff8a43;
}

.subastas-hero p {
  font-size: 16px;
  line-height: 1.85;
  color: #d9e6f7;
  max-width: 540px;
  margin: 0 0 28px;
}

/* BOTONES */

.subastas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.subastas-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 23px;
  border-radius: 7px;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s, background .2s;
}

.subastas-btn:hover {
  transform: translateY(-2px);
}

.subastas-btn-orange {
  background: var(--sub-orange);
  color: #fff !important;
}

.subastas-btn-orange:hover {
  background: #d94f12;
}

.subastas-btn-outline {
  color: #fff !important;
  border: 1px solid #ffffff65;
}

/* LOGOTIPO Y ELEMENTOS VISUALES */

.subastas-hero-art {
  min-height: 315px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.subastas-hero-art img {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 25px 45px #0005);
  background: #fff;
  border-radius: 16px;
  padding: 28px;
}

.subastas-orbit {
  position: absolute;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  width: 380px;
  height: 380px;
}

.orbit-two {
  width: 300px;
  height: 300px;
}

.subastas-hero-number {
  font-size: clamp(100px, 13vw, 190px);
  font-weight: 800;
  letter-spacing: -.08em;
  color: #ffffff20;
  line-height: .8;
}

.subastas-hero-number span {
  display: block;
  font-size: 15px;
  letter-spacing: .3em;
  color: #fff;
  text-align: center;
  margin-top: 28px;
}

/* CONTROLES DEL SLIDER */

.subastas-hero-controls {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1184px, calc(100% - 56px));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subastas-dots {
  display: flex;
  gap: 9px;
}

.subastas-dots button {
  width: 26px;
  height: 4px;
  border: 0;
  border-radius: 8px;
  background: #ffffff65;
  cursor: pointer;
  padding: 0;
}

.subastas-dots button.is-active {
  width: 48px;
  background: var(--sub-orange);
}

.subastas-arrows {
  display: flex;
  gap: 8px;
}

.subastas-arrows button {
  background: #ffffff1a;
  color: #fff;
  border: 1px solid #ffffff60;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 20px;
}

/* FRANJA INFORMATIVA */

.subastas-ribbon {
  background: var(--sub-orange);
  color: #fff;
}

.subastas-ribbon .subastas-container {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  min-height: 55px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}

/* SECCIONES */

.subastas-section,
.subastas-faq {
  padding: 90px 0;
}

.subastas-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.subastas-kicker {
  color: var(--sub-orange);
}

.subastas-heading h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -.035em;
  margin: 12px 0 16px;
  color: var(--sub-deep);
}

.subastas-heading h2 strong {
  color: var(--sub-blue);
}

.subastas-heading p {
  line-height: 1.85;
  color: var(--sub-muted);
  font-size: 15px;
}

/* MODALIDADES DE SUBASTA */

.subastas-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.subastas-mode {
  border: 1px solid #e4e9f2;
  border-radius: 15px;
  padding: 34px;
  box-shadow: 0 16px 45px #1b3d7110;
  transition: transform .2s;
}

.subastas-mode:hover {
  transform: translateY(-4px);
}

.subastas-mode-top {
  display: flex;
  justify-content: space-between;
  color: var(--sub-orange);
  font-weight: 800;
  font-size: 15px;
}

.subastas-mode-symbol {
  font-size: 36px;
  color: var(--sub-blue);
}

.subastas-mode h3 {
  font-size: 22px;
  color: var(--sub-deep);
  margin: 32px 0 14px;
}

.subastas-mode p,
.subastas-info-card p {
  font-size: 14px;
  color: var(--sub-muted);
  line-height: 1.8;
}

.subastas-mode a {
  display: inline-block;
  color: var(--sub-blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 18px;
}

/* INFORMACIÓN Y REQUISITOS */

.subastas-information {
  background: #f5f8fc;
}

.subastas-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.subastas-info-card {
  background: white;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid #e6edf6;
}

.subastas-info-icon {
  display: inline-flex;
  background: #eaf2ff;
  color: var(--sub-blue);
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-weight: 800;
}

.subastas-info-card h3 {
  font-size: 18px;
  color: var(--sub-deep);
  margin: 24px 0 10px;
}

/* PREGUNTAS FRECUENTES */

.subastas-faq-placeholder {
  padding: 26px;
  border: 1px dashed #c4cfe0;
  border-radius: 12px;
  color: var(--sub-muted);
  font-size: 14px;
}

/* PLATAFORMA EXTERNA */

.subastas-cta {
  background: linear-gradient(115deg, #071d40, #224f9d);
  color: white;
  padding: 55px 0;
}

.subastas-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.subastas-cta h2 {
  font-size: clamp(24px, 3vw, 35px);
  margin: 8px 0 12px;
  color: white;
}

.subastas-cta p {
  color: #d5e5fa;
  font-size: 14px;
}

.subastas-cta .subastas-btn {
  flex-shrink: 0;
}

/* CATÁLOGO: OCULTO HASTA SU ACTIVACIÓN */

.subastas-catalogo {
  padding: 80px 0;
  background: #fff;
}

.subastas-catalogo[hidden] {
  display: none !important;
}

/* TABLET */

@media (max-width: 850px) {
  .subastas-hero-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 60px 25px 105px;
  }

  .subastas-hero-art {
    min-height: 190px;
  }

  .subastas-hero-art img {
    max-width: 300px;
    padding: 18px;
  }

  .subastas-orbit {
    width: 240px;
    height: 240px;
  }

  .orbit-two {
    width: 180px;
    height: 180px;
  }

  .subastas-hero-number {
    font-size: 95px;
  }

  .subastas-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .subastas-ribbon .subastas-container {
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .subastas-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* MÓVIL */

@media (max-width: 600px) {
  .subastas-container {
    padding: 0 20px;
  }

  .subastas-hero h1,
  .subastas-hero h2 {
    font-size: 35px;
  }

  .subastas-hero p {
    font-size: 14px;
  }

  .subastas-hero-art {
    min-height: 155px;
  }

  .subastas-hero-art img {
    max-width: 220px;
  }

  .subastas-orbit {
    width: 190px;
    height: 190px;
  }

  .orbit-two {
    width: 140px;
    height: 140px;
  }

  .subastas-mode-grid,
  .subastas-info-grid {
    grid-template-columns: 1fr;
  }

  .subastas-section,
  .subastas-faq {
    padding: 65px 0;
  }

  .subastas-mode {
    padding: 25px;
  }

  .subastas-ribbon .subastas-container span:nth-child(n+3) {
    display: none;
  }

  .subastas-hero-controls {
    width: calc(100% - 40px);
  }

  .subastas-btn {
    width: 100%;
  }
}

/* =============================================
   SUBASTAS OABI - CINTA PUBLICITARIA ANIMADA
   PC / TABLET / MÓVIL
============================================= */

.subastas-page .subastas-ribbon-publicitaria {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 0 !important;
  margin: 0;
  overflow: hidden;
  background: #f26522;
  position: relative;
}

/* Contenedor en movimiento */
.subastas-ribbon-movimiento {
  display: flex;
  width: max-content;
  max-width: none;
  flex-wrap: nowrap;
  align-items: center;
  animation: oabi-cinta-publicitaria 85s linear infinite;
  will-change: transform;
}

/* Grupos idénticos */
.subastas-ribbon-grupo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: nowrap;
  width: max-content;
}

/* Mensajes */
.subastas-ribbon-grupo span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  white-space: nowrap;
  gap: 28px;
  padding: 0 30px;
  color: #ffffff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.6px;
}

/* Separadores entre mensajes */
.subastas-ribbon-grupo span::after {
  content: "✦";
  display: inline-block;
  color: #ffffff;
  font-size: 14px;
  opacity: 0.85;
}

/* Movimiento continuo hacia la izquierda */
@keyframes oabi-cinta-publicitaria {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Pausa al colocar el cursor */
.subastas-ribbon-publicitaria:hover
.subastas-ribbon-movimiento {
  animation-play-state: paused;
}

/* TABLET */
@media (max-width: 1024px) {

  .subastas-page .subastas-ribbon-publicitaria {
    min-height: 54px;
  }

  .subastas-ribbon-grupo span {
    font-size: 12px;
    padding: 0 24px;
    gap: 22px;
  }

}

/* MÓVIL */
@media (max-width: 767px) {

  .subastas-page .subastas-ribbon-publicitaria {
    min-height: 48px;
  }

  .subastas-ribbon-grupo span {
    font-size: 11px;
    font-weight: 700;
    padding: 0 18px;
    gap: 18px;
    letter-spacing: 0.3px;
  }

  .subastas-ribbon-movimiento {
    animation-duration: 85s;
  }

}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .subastas-ribbon-movimiento {
    animation: none !important;
  }

  .subastas-page .subastas-ribbon-publicitaria {
    overflow-x: auto;
  }
}
