/*
 * css_/template/testimonios2.css
 *
 * Seccion "Movilidad Academica" con formato PARALLAX A TODO EL ANCHO.
 * Construido MOBILE FIRST. Un unico contenedor con fondo fijo
 * (img/parallax_fca.jpg) ocupa el 100% del ancho del viewport y envuelve
 * el titulo y las 3 tarjetas. El efecto parallax se logra con
 * background-attachment: fixed en escritorio; en moviles se usa scroll
 * normal (fixed no es fiable en iOS/Android).
 *
 * Reutiliza las variables institucionales definidas en css/style.css
 * (--primary, --secondary, --radius-lg, --shadow-md, etc.).
 */

/* ============================================
   CONTENEDOR GENERAL (a todo el ancho)
   ============================================ */
.mov-section {
  position: relative;
  width: 100%;
  margin: var(--spacing-lg) 0;
  overflow: hidden;
}

/* ============================================
   CONTENEDOR PARALLAX (full width, sin bordes)
   ============================================ */
.mov-parallax {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* En movil: scroll normal (fixed es inestable en moviles) */
  background-attachment: scroll;
  padding: var(--spacing-xl) var(--spacing-sm);
}

/* Capa de oscurecimiento para legibilidad del contenido */
.mov-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 42, 82, 0.55);
}

/* ============================================
   ENCABEZADO (dentro del parallax)
   ============================================ */
.mov-parallax-head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto var(--spacing-lg);
}

.mov-banner-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  margin: 0 0 var(--spacing-xs) 0;
  color: #fff;
}

.mov-banner-subtitle {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  color: #fff;
  opacity: 0.95;
}

/* ============================================
   CONTENEDOR DE TARJETAS (dentro del parallax)
   ============================================ */
.mov-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

/* ============================================
   TARJETA
   ============================================ */
.mov-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: var(--transition-slow);
}

.mov-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Imagen de la tarjeta */
.mov-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.mov-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mov-card:hover .mov-card-img img {
  transform: scale(1.05);
}

/* Cuerpo de la tarjeta */
.mov-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--spacing-lg) var(--spacing-md);
}

.mov-card-title {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 var(--spacing-sm) 0;
}

.mov-card-desc {
  color: var(--dark-gray);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 var(--spacing-lg) 0;
  flex: 1;
}

/* Boton */
.mov-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--secondary);
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  margin-top: auto;
}

.mov-card-btn:hover {
  background: var(--secondary-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.mov-card-btn svg {
  flex-shrink: 0;
}

/* ============================================
   TABLET (>= 768px)
   ============================================ */
@media (min-width: 768px) {
  .mov-parallax {
    /* Efecto PARALLAX: fondo fijo al hacer scroll */
    background-attachment: fixed;
    padding: var(--spacing-xxl) var(--spacing-lg);
  }

  .mov-banner-title {
    font-size: 2rem;
  }

  .mov-banner-subtitle {
    font-size: 1.05rem;
  }

  .mov-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 1000px;
  }

  .mov-card-img {
    height: 210px;
  }
}

/* ============================================
   DESKTOP (>= 992px)
   ============================================ */
@media (min-width: 992px) {
  .mov-parallax {
    padding: 4.5rem var(--spacing-lg);
  }

  .mov-parallax-head {
    margin-bottom: var(--spacing-xl);
  }

  .mov-banner-title {
    font-size: 2.4rem;
  }

  .mov-cards {
    max-width: 1100px;
  }

  .mov-card-img {
    height: 230px;
  }

  .mov-card-title {
    font-size: 1.25rem;
  }

  .mov-card-desc {
    font-size: 0.95rem;
  }
}

/* ============================================
   PANTALLAS MUY ANCHAS (>= 1400px)
   ============================================ */
@media (min-width: 1400px) {
  .mov-parallax {
    padding: 5rem var(--spacing-lg);
  }

  .mov-cards {
    max-width: 1200px;
  }

  .mov-card-img {
    height: 240px;
  }
}

/* ============================================
   ACCESIBILIDAD: respeta preferencia de movimiento reducido
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .mov-parallax {
    background-attachment: scroll !important;
  }
}
