
.laeca-modalidades,
.laeca-modalidades *,
.laeca-modalidades *::before,
.laeca-modalidades *::after {
  box-sizing: border-box;
}

.laeca-modalidades h2,
.laeca-modalidades h3,
.laeca-modalidades p {
  margin: 0;
  padding: 0;
}

.laeca-modalidades {
  position: relative;
  width: 100%;
  padding: 6rem 0;
  border-top: 1px solid #f3f4f6;
  background: #f8fafc;
  font-family: "Inter", sans-serif;
}

.laeca-modalidades__container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.laeca-modalidades__header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.laeca-modalidades__eyebrow {
  display: block;
  margin-bottom: .75rem;
  color: #1a40ff;
  font-family: "Inter", sans-serif;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.laeca-modalidades__title {
  color: #1a40ff;
  font-family: "Barlow Condensed", "Inter", sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.laeca-modalidades__subtitle {
  max-width: 32rem;
  color: #6b7280;
  font-family: "Inter", sans-serif;
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.625;
}

/* Slider */
.laeca-modalidades__slider {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
}

.laeca-modalidades__track {
  display: flex;
  will-change: transform;
}

.laeca-modalidades__track.is-animating {
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}

.laeca-modalidades__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.laeca-modalidades__card {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15,23,42,.12);
}

.laeca-modalidades__image {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block;
  object-fit: cover;
  object-position: center;
  transition:
    transform .7s ease,
    filter .7s ease;
}

.laeca-modalidades__card:hover .laeca-modalidades__image {
  transform: scale(1.05);
  filter: blur(3px);
}

.laeca-modalidades__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    #0a1929 0%,
    rgba(10,25,41,.40) 52%,
    rgba(10,25,41,0) 100%
  );
}

.laeca-modalidades__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  padding: 2rem;
}

.laeca-modalidades__content h3 {
  margin-bottom: 1rem;
  color: #fff;
  font-family: "Barlow Condensed", "Inter", sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.laeca-modalidades__content p {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: #d1d5db;
  font-family: "Inter", sans-serif;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.625;
  transition:
    opacity .5s ease,
    max-height .5s ease;
}

.laeca-modalidades__card:hover .laeca-modalidades__content p {
  max-height: 16rem;
  opacity: 1;
}

/* Arrows */
.laeca-modalidades__arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #0a1929;
  cursor: pointer;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  transition:
    background .25s ease,
    color .25s ease,
    transform .25s ease;
}

.laeca-modalidades__arrow:hover {
  background: #1a40ff;
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.laeca-modalidades__arrow i {
  font-size: 1.5rem;
  line-height: 1;
}
.laeca-modalidades__arrow svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.laeca-modalidades__arrow--prev {
  left: 1rem;
}

.laeca-modalidades__arrow--next {
  right: 1rem;
}

/* Dots */
.laeca-modalidades__dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
}

.laeca-modalidades__dot {
  width: .55rem;
  height: .55rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: #cbd5e1;
  cursor: pointer;
  transition:
    background .3s ease,
    width .3s ease;
}

.laeca-modalidades__dot.is-active {
  width: 1.5rem;
  background: #1a40ff;
}

/* Tablet */
@media (min-width: 768px) {
  .laeca-modalidades {
    padding: 8rem 0;
  }

  .laeca-modalidades__container {
    padding: 0 3rem;
  }

  .laeca-modalidades__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .laeca-modalidades__title {
    font-size: 3rem;
  }

  .laeca-modalidades__subtitle {
    font-size: .875rem;
    text-align: right;
  }

  .laeca-modalidades__content {
    padding: 2.5rem;
  }
}

/* Desktop: 2 tarjetas visibles */
@media (min-width: 1024px) {
  .laeca-modalidades__slide {
    flex: 0 0 50%;
  }

  .laeca-modalidades__slide:not(:last-child) {
    padding-right: 1rem;
  }
}

/* Móvil */
@media (max-width: 767px) {
  .laeca-modalidades__desktop-br {
    display: none;
  }

  .laeca-modalidades__card {
    height: 420px;
  }

  .laeca-modalidades__content {
    padding: 1.5rem;
  }

  .laeca-modalidades__content h3 {
    font-size: 1.6rem;
  }

  .laeca-modalidades__content p {
    max-height: none;
    opacity: 1;
    font-size: .8rem;
  }

  .laeca-modalidades__image {
    filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .laeca-modalidades__track,
  .laeca-modalidades__image,
  .laeca-modalidades__content p,
  .laeca-modalidades__arrow,
  .laeca-modalidades__dot {
    transition: none !important;
  }
}

/* =========================================================
TÍTULOS DE LAS TARJETAS · TAMAÑO UNIFORME COMO LA REFERENCIA
========================================================= */
.laeca-modalidades__content h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* PC */
@media (min-width: 1024px) {
  .laeca-modalidades__content h3 {
    font-size: 48px;
    line-height: 52px;
    margin-bottom: 1rem !important;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .laeca-modalidades__content h3 {
    font-size: 42px;
    line-height: 46px;
  }
}

/* Móvil */
@media (max-width: 767px) {
  .laeca-modalidades__content h3 {
    font-size: 34px;
    line-height: 37px;
  }
}


/* =========================================================
MÓVIL · OCULTAR FLECHAS
========================================================= */
@media (max-width: 767px) {
  .laeca-modalidades__arrow {
    display: none !important;
  }
}


/* =========================================================
MÓVIL · PERMITIR DESLIZAR CON EL DEDO
========================================================= */
@media (max-width: 767px) {
  .laeca-modalidades__slider {
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
  }

  .laeca-modalidades__track {
    -webkit-user-select: none;
    user-select: none;
  }
}

