/* =========================
   MÓDULO 2: NUESTRAS SOLUCIONES
   RUPTEC - versión limpia
========================= */

.solutions-section {
  position: relative;
  width: 100%;
  padding: 100px 0;
  background:
    radial-gradient(circle at top left, rgba(29, 94, 180, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  overflow: hidden;
}

.solutions-section::before {
  content: "";
  position: absolute;
  top: 80px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(47, 123, 220, 0.12), transparent 65%);
  pointer-events: none;
}

.solutions-section::after {
  content: "";
  position: absolute;
  left: -160px;
  bottom: 40px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.10), transparent 65%);
  pointer-events: none;
}

.solutions-container {
  position: relative;
  z-index: 2;
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.solutions-header {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #1c5ca8;
  background: rgba(28, 92, 168, 0.08);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1c76d2;
  box-shadow: 0 0 14px rgba(28, 118, 210, 0.65);
}

.solutions-header h2 {
  margin: 0;
  color: #12233f;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.solutions-header p {
  margin: 20px auto 0;
  color: #617089;
  font-size: 1.04rem;
  line-height: 1.75;
}

/* Una fila de 5 soluciones en desktop */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.solution-card,
.solution-card-large,
.solution-card-wide,
.solution-card-passenger {
  grid-column: span 1;
}

.solution-card {
  position: relative;
  height: 485px;
  min-height: 485px;
  border: 1px solid rgba(22, 57, 101, 0.10);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.92));
  box-shadow:
    0 18px 48px rgba(28, 58, 102, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.solution-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(28, 118, 210, 0.10), transparent 44%),
    linear-gradient(135deg, rgba(28, 118, 210, 0.08), transparent 46%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.solution-card:hover {
  transform: translateY(-8px);
  border-color: rgba(28, 118, 210, 0.28);
  box-shadow:
    0 28px 70px rgba(28, 58, 102, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.solution-card:hover::before {
  opacity: 1;
}

/* =========================
   MEDIA PREMIUM
   Opción A + toque B
========================= */

.solution-image {
  position: relative;
  height: 185px;
  min-height: 185px;
  margin: 18px 18px 0;
  padding: 12px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.98) 0%, rgba(233, 244, 255, 0.96) 100%);
  border: 1px solid rgba(28, 118, 210, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -22px 38px rgba(28, 92, 168, 0.045),
    0 14px 28px rgba(27, 58, 107, 0.08);
  overflow: hidden;
  flex-shrink: 0;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

/* Brillo suave del contenedor, sin tapar el video */
.solution-image::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  height: 40%;
  border-radius: 20px 20px 10px 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 4;
}

/* Base luminosa para integrar el video con la card */
.solution-image::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 72%;
  height: 22px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(28, 92, 168, 0.18), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

.solution-media {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #edf5fc 0%, #e6f0fa 100%);
  box-shadow:
    inset 0 0 0 1px rgba(28, 92, 168, 0.08),
    0 10px 20px rgba(27, 58, 107, 0.09);
}

/* Esquinas tipo pantalla premium */
.solution-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 3;
}

.solution-media img,
.solution-media video,
.solution-image > img,
.solution-image > video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: 20px;
  background: #edf3f9;
  transform: scale(1.001);
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
}

.solution-card:hover .solution-image {
  border-color: rgba(28, 118, 210, 0.36);
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 1) 0%, rgba(232, 243, 255, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -22px 38px rgba(28, 92, 168, 0.055),
    0 20px 42px rgba(27, 58, 107, 0.13);
}

.solution-card:hover .solution-media img,
.solution-card:hover .solution-media video,
.solution-card:hover .solution-image > img,
.solution-card:hover .solution-image > video {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.03);
}

/* Ajuste especial del contador: llena igual que los demás sin quedar pequeño */
.solution-card-passenger .solution-media video {
  object-fit: cover;
  object-position: center center;
}

.solution-content {
  position: relative;
  z-index: 2;
  padding: 22px 20px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.solution-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  margin-bottom: 14px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #1b65b2;
  background: rgba(28, 118, 210, 0.08);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.solution-content h3 {
  margin: 0 0 12px;
  color: #10213b;
  font-size: clamp(1.32rem, 1.16vw, 1.55rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.04em;
  min-height: 32px;
}

.solution-content p {
  margin: 0;
  color: #5f6f88;
  font-size: 0.9rem;
  line-height: 1.55;
  overflow: visible;
}

.solution-content ul {
  display: none;
}

/* Animación scroll */
.reveal-up {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 980px) {
  .solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;

    overflow: visible;
    padding-bottom: 0;
  }

  .solution-card,
  .solution-card-large,
  .solution-card-wide,
  .solution-card-passenger {
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: none;
  }
}

@media (max-width: 680px) {
  .solutions-section {
    padding: 68px 0 74px;
  }

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

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

  .solution-card,
  .solution-card-large,
  .solution-card-wide,
  .solution-card-passenger {
    width: 100%;
    min-height: auto;
    border-radius: 22px;
  }

  .solution-image,
  .solution-card-large .solution-image,
  .solution-card-wide .solution-image {
    height: 200px;
  }

  .solution-content {
    padding: 20px;
  }
}