/* =========================================================
   SISTEMA FALCO®
   FALCO® DESTACADOS
   Carrusel editorial institucional
========================================================= */

:root {
  --fd-navy-950: #06101f;
  --fd-navy-900: #09172a;
  --fd-navy-850: #0d1d33;
  --fd-navy-800: #112640;

  --fd-gold-500: #c9a861;
  --fd-gold-400: #d8bc7b;
  --fd-gold-300: #ead39a;

  --fd-text: #f7f9fc;
  --fd-text-soft: #c0cad6;
  --fd-muted: #8795a6;

  --fd-border: rgba(255, 255, 255, 0.08);
  --fd-border-gold: rgba(201, 168, 97, 0.23);

  --fd-transition: 520ms cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   CONTENEDOR GENERAL
========================================================= */

.falco-destacados {
  position: relative;
  z-index: 4;
  width: min(1380px, calc(100% - 8vw));
  margin: 34px auto 92px;
}

.falco-destacados__marco {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fd-border-gold);
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 84% 12%,
      rgba(201, 168, 97, 0.11),
      transparent 26%
    ),
    radial-gradient(
      circle at 18% 88%,
      rgba(46, 102, 151, 0.13),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(10, 27, 46, 0.98),
      rgba(4, 14, 26, 0.99)
    );
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.3);
  isolation: isolate;
}

.falco-destacados__marco::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px
    );
  background-size: 44px 44px;
  mask-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.8),
      transparent 80%
    );
  content: "";
}

.falco-destacados__marco::after {
  position: absolute;
  top: -190px;
  right: -130px;
  z-index: -1;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(201, 168, 97, 0.13),
      transparent 68%
    );
  pointer-events: none;
  content: "";
}


/* =========================================================
   CABECERA
========================================================= */

.falco-destacados__cabecera {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--fd-border);
  background: rgba(255, 255, 255, 0.018);
}

.falco-destacados__sello {
  color: var(--fd-gold-300);
  font-family: "Montserrat", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.falco-destacados__estado {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fd-muted);
  font-family: "Inter", sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.falco-destacados__estado > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fd-gold-500);
  box-shadow:
    0 0 0 5px rgba(201, 168, 97, 0.08);
}


/* =========================================================
   VIEWPORT Y TRACK
========================================================= */

.falco-destacados__viewport {
  position: relative;
  height: 205px;
  min-height: 205px;
  overflow: hidden;
}

.falco-destacados__track {
  position: relative;
  height: 205px;
  min-height: 205px;
}


/* =========================================================
   DIAPOSITIVAS
========================================================= */

.falco-destacado {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition:
    opacity var(--fd-transition),
    transform var(--fd-transition),
    visibility 0s linear 520ms;
}

.falco-destacado.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  transition:
    opacity var(--fd-transition),
    transform var(--fd-transition),
    visibility 0s;
}

.falco-destacado.is-leaving {
  visibility: visible;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-20px);
}

.falco-destacado__enlace {
  display: grid;
  align-items: center;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(185px, 0.30fr);

  gap: 30px;

  height: 205px;
  min-height: 205px;

  padding: 26px 36px;

  color: inherit;
  text-decoration: none;
}

.falco-destacado__enlace:focus-visible {
  outline: 2px solid var(--fd-gold-400);
  outline-offset: -7px;
}


/* =========================================================
   CONTENIDO
========================================================= */

.falco-destacado__contenido {
  position: relative;
  z-index: 3;
  max-width: 770px;
}

.falco-destacado__categoria {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: var(--fd-gold-400);
  font-family: "Montserrat", sans-serif;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.falco-destacado__categoria::before {
  width: 22px;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      var(--fd-gold-500),
      transparent
    );
  content: "";
}

.falco-destacado h2 {
  margin: 0 0 12px;
  color: var(--fd-text);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.falco-destacado p {
  max-width: 700px;
  margin: 0;
  color: var(--fd-text-soft);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  line-height: 1.72;
}

.falco-destacado__accion {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 21px;
  color: var(--fd-gold-300);
  font-family: "Inter", sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
}

.falco-destacado__accion > span {
  transition:
    transform 220ms ease;
}

.falco-destacado__enlace:hover
.falco-destacado__accion > span {
  transform: translateX(4px);
}


/* =========================================================
   VISUAL
========================================================= */

.falco-destacado__visual {
  position: relative;
  display: grid;
  place-items: center;

  width: 205px;
  max-width: 205px;
  height: 138px;

  justify-self: end;
  overflow: hidden;

  border: 1px solid rgba(201, 168, 97, 0.16);
  border-radius: 19px;

  background:
    radial-gradient(
      circle at center,
      rgba(201, 168, 97, 0.1),
      rgba(24, 61, 100, 0.08) 45%,
      rgba(5, 16, 28, 0.9) 78%
    );

  box-shadow:
    inset 0 0 35px rgba(255, 255, 255, 0.018),
    0 18px 40px rgba(0, 0, 0, 0.21);

  transition:
    border-color 260ms ease,
    transform 420ms ease,
    box-shadow 260ms ease;
}

.falco-destacado__visual::before,
.falco-destacado__visual::after {
  position: absolute;
  border: 1px solid rgba(201, 168, 97, 0.08);
  border-radius: 50%;
  content: "";
}

.falco-destacado__visual::before {
  width: 86px;
  height: 86px;
}

.falco-destacado__visual::after {
  width: 130px;
  height: 130px;
}

.falco-destacado__enlace:hover
.falco-destacado__visual {
  border-color: rgba(201, 168, 97, 0.3);
  box-shadow:
    inset 0 0 35px rgba(255, 255, 255, 0.02),
    0 25px 55px rgba(0, 0, 0, 0.27);
  transform: translateY(-3px);
}

.falco-destacado__numero {
  position: absolute;
  top: 14px;
  right: 17px;
  color: rgba(255, 255, 255, 0.12);
  font-family: "Montserrat", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.falco-destacado__icono {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;

  width: 76px;
  height: 76px;

  border: 1px solid rgba(201, 168, 97, 0.22);
  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(201, 168, 97, 0.14),
      rgba(201, 168, 97, 0.035)
    );

  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.22);

  font-size: 1.9rem;
}


/* =========================================================
   VARIACIONES MUY SUTILES
========================================================= */

.falco-destacado__visual--danio {
  background:
    radial-gradient(
      circle at center,
      rgba(68, 111, 153, 0.16),
      rgba(24, 61, 100, 0.08) 46%,
      rgba(5, 16, 28, 0.92) 78%
    );
}

.falco-destacado__visual--campus {
  background:
    radial-gradient(
      circle at center,
      rgba(201, 168, 97, 0.14),
      rgba(47, 99, 144, 0.09) 50%,
      rgba(5, 16, 28, 0.94) 80%
    );
}

.falco-destacado__visual--comunidad {
  background:
    radial-gradient(
      circle at center,
      rgba(96, 131, 158, 0.15),
      rgba(24, 61, 100, 0.07) 46%,
      rgba(5, 16, 28, 0.94) 80%
    );
}

.falco-destacado__visual--consulta {
  background:
    radial-gradient(
      circle at center,
      rgba(201, 168, 97, 0.16),
      rgba(78, 95, 116, 0.08) 48%,
      rgba(5, 16, 28, 0.94) 80%
    );
}


/* =========================================================
   CONTROLES
========================================================= */

.falco-destacados__controles {
  position: relative;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  min-height: 24px;
  padding: 0 18px 1px;

  border-top: 1px solid var(--fd-border);
  background: rgba(255, 255, 255, 0.014);
}

.falco-destacados__flecha {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--fd-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: var(--fd-text-soft);
  cursor: pointer;
  font-size: 0.78rem;
  transition:
    border-color 200ms ease,
    background 200ms ease,
    color 200ms ease,
    transform 200ms ease;
}

.falco-destacados__flecha:hover {
  border-color: var(--fd-border-gold);
  background: rgba(201, 168, 97, 0.07);
  color: var(--fd-gold-300);
  transform: translateY(-1px);
}

.falco-destacados__indicadores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.falco-destacados__indicadores button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition:
    width 250ms ease,
    background 250ms ease,
    box-shadow 250ms ease;
}

.falco-destacados__indicadores button:hover {
  background: rgba(201, 168, 97, 0.45);
}

.falco-destacados__indicadores button.is-active {
  width: 24px;
  background: var(--fd-gold-500);
  box-shadow:
    0 0 0 4px rgba(201, 168, 97, 0.07);
}


/* =========================================================
   PROGRESO PREMIUM
========================================================= */

.falco-destacados__progreso {
  position: absolute;

  left: 50%;
  bottom: 4px;

  width: 170px;
  height: 2px;

  transform: translateX(-50%);

  overflow: hidden;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.08);

  z-index: 20;
}

.falco-destacados__progreso span {
  display: block;
  width: 0;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      rgba(201, 168, 97, 0.35),
      var(--fd-gold-500),
      var(--fd-gold-300)
    );
  transform-origin: left center;
}


/* =========================================================
   ESTADOS DE PAUSA
========================================================= */

.falco-destacados.is-paused
.falco-destacados__estado > span {
  background: var(--fd-muted);
  box-shadow:
    0 0 0 5px rgba(135, 149, 166, 0.07);
}


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

@media (max-width: 980px) {

  .falco-destacados {
    width: calc(100% - 48px);
    margin-bottom: 78px;
  }

  .falco-destacado__enlace {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(180px, 0.34fr);
    gap: 26px;
    padding-right: 28px;
    padding-left: 28px;
  }

  .falco-destacado__visual {
    max-width: 220px;
  }

}


@media (max-width: 720px) {

  .falco-destacados {
    width: calc(100% - 32px);
    margin-top: 24px;
    margin-bottom: 62px;
  }

  .falco-destacados__marco {
    border-radius: 21px;
  }

  .falco-destacados__cabecera {
    padding-right: 17px;
    padding-left: 17px;
  }

  .falco-destacados__estado {
    display: none;
  }

  .falco-destacados__viewport,
  .falco-destacados__track {
    min-height: 355px;
  }

  .falco-destacado__enlace {
    align-content: center;
    grid-template-columns: 1fr;
    gap: 19px;
    min-height: 355px;
    padding: 27px 22px;
    text-align: center;
  }

  .falco-destacado__contenido {
    max-width: none;
  }

  .falco-destacado__categoria {
    justify-content: center;
  }

  .falco-destacado p {
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
    font-size: 0.74rem;
  }

  .falco-destacado__visual {
    width: 170px;
    max-width: none;
    justify-self: center;
    order: -1;
    aspect-ratio: 1.45;
    border-radius: 17px;
  }

  .falco-destacado__visual::before {
    width: 95px;
    height: 95px;
  }

  .falco-destacado__visual::after {
    width: 140px;
    height: 140px;
  }

  .falco-destacado__icono {
    width: 57px;
    height: 57px;
    border-radius: 17px;
    font-size: 1.45rem;
  }

  .falco-destacados__controles {
    gap: 13px;
  }

}


@media (max-width: 430px) {

  .falco-destacados {
    width: calc(100% - 22px);
  }

  .falco-destacados__cabecera {
    min-height: 44px;
    padding: 10px 14px;
  }

  .falco-destacados__sello {
    font-size: 0.55rem;
  }

  .falco-destacados__viewport,
  .falco-destacados__track {
    min-height: 380px;
  }

  .falco-destacado__enlace {
    min-height: 380px;
    padding: 25px 17px;
  }

  .falco-destacado h2 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .falco-destacado p {
    font-size: 0.7rem;
    line-height: 1.65;
  }

  .falco-destacado__accion {
    font-size: 0.62rem;
  }

  .falco-destacado__visual {
    width: 150px;
  }

  .falco-destacados__flecha {
    width: 32px;
    height: 32px;
  }

  .falco-destacados__indicadores {
    gap: 5px;
  }

  .falco-destacados__indicadores button {
    width: 6px;
    height: 6px;
  }

  .falco-destacados__indicadores button.is-active {
    width: 18px;
  }

}


/* =========================================================
   DISPOSITIVOS TÁCTILES
========================================================= */

@media (hover: none) {

  .falco-destacado__enlace:hover
  .falco-destacado__visual,
  .falco-destacados__flecha:hover {
    transform: none;
  }

}


/* =========================================================
   REDUCCIÓN DE MOVIMIENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .falco-destacado,
  .falco-destacado__visual,
  .falco-destacado__accion > span,
  .falco-destacados__flecha,
  .falco-destacados__indicadores button {
    transition-duration: 0.01ms !important;
  }

}


/* =========================================================
   ESCUELA PARA PADRES FALCO®
========================================================= */

.falco-destacado__visual--escuela {
  background:
    radial-gradient(
      circle at center,
      rgba(201, 168, 97, 0.13),
      rgba(75, 116, 145, 0.13) 43%,
      rgba(16, 38, 58, 0.14) 62%,
      rgba(5, 16, 28, 0.96) 82%
    );
}

.falco-destacado__visual--escuela
.falco-destacado__icono {
  font-size: 1.65rem;
}

.falco-destacado__visual--evaluacion{
    background:
    radial-gradient(
        circle at center,
        rgba(96,143,181,.15),
        rgba(32,74,115,.10) 45%,
        rgba(5,16,28,.95) 80%
    );
}

.falco-destacado__visual--informes{
    background:
    radial-gradient(
        circle at center,
        rgba(201,168,97,.15),
        rgba(72,94,122,.10) 45%,
        rgba(5,16,28,.95) 80%
    );
}

/* =========================================================
   FALCO® ACTUALIDAD
========================================================= */

.falco-destacado__visual--actualidad{

    background:
    radial-gradient(
        circle at center,
        rgba(201,168,97,.14),
        rgba(79,112,147,.12) 45%,
        rgba(6,17,30,.96) 82%
    );

}

.falco-destacado__badge{

    position:absolute;

    top:16px;

    left:16px;

    padding:6px 10px;

    border-radius:999px;

    background:rgba(201,168,97,.14);

    border:1px solid rgba(201,168,97,.35);

    color:#ead39a;

    font-size:.55rem;

    font-weight:700;

    letter-spacing:.08em;

    text-transform:uppercase;

    backdrop-filter:blur(8px);

}


/* ==========================================
   BIBLIOTECA
========================================== */

.falco-destacado__visual--biblioteca{

background:
radial-gradient(
circle at center,
rgba(201,168,97,.15),
rgba(77,118,156,.10) 45%,
rgba(5,16,28,.95) 80%
);

}


/* ==========================================
   LIBRO
========================================== */

.falco-destacado__visual--libro{

background:
radial-gradient(
circle at center,
rgba(201,168,97,.17),
rgba(64,82,112,.10) 45%,
rgba(5,16,28,.96) 82%
);

}







/* =========================================================
   FALCO® DESTACADOS
   AJUSTE COMPACTO Y CONTROLES MINIMALISTAS
========================================================= */

@media (min-width: 721px) {

  /* Cuerpo azul más compacto */

  .falco-destacados__viewport,
  .falco-destacados__track {
    height: 185px;
    min-height: 185px;
  }

  .falco-destacado {
    height: 185px;
  }

  .falco-destacado__enlace {
    height: 185px;
    min-height: 185px;
    padding: 20px 36px;
  }

  /* Visual derecho más delicado */

  .falco-destacado__visual {
    width: 170px;
    max-width: 170px;
    height: 110px;
    border-radius: 16px;
  }

  .falco-destacado__visual::before {
    width: 76px;
    height: 76px;
  }

  .falco-destacado__visual::after {
    width: 112px;
    height: 112px;
  }

  .falco-destacado__icono {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 1.3rem;
  }

  /* Zona inferior mucho más baja */

  .falco-destacados__controles {
    position: relative;
    z-index: 25;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 34px;
    padding: 2px 18px 8px;

    margin-top: 0;

    border-top: 1px solid var(--fd-border);
    background: rgba(255, 255, 255, 0.012);
  }

  /* Flechas sin círculos */

  .falco-destacados__flecha {
    width: auto;
    height: auto;
    min-width: 24px;

    padding: 3px 5px;

    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;

    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
  }

  .falco-destacados__flecha:hover {
    border: 0;
    background: transparent;
    color: var(--fd-gold-300);
    transform: translateX(0);
  }

  #falcoDestacadoAnterior:hover {
    transform: translateX(-3px);
  }

  #falcoDestacadoSiguiente:hover {
    transform: translateX(3px);
  }

  /* Indicadores un poco más compactos */

  .falco-destacados__indicadores {
    gap: 6px;
  }

  .falco-destacados__indicadores button {
    width: 6px;
    height: 6px;
  }

  .falco-destacados__indicadores button.is-active {
    width: 20px;
  }

  /* Línea corta, centrada y casi pegada a los controles */

 .falco-destacados__progreso {
  position: relative;

  right: auto;
  bottom: auto;
  left: auto;

  width: 150px;
  height: 2px;

  margin: -5px auto 2px;

  overflow: hidden;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.08);

  transform: none;
  z-index: 7;
}

  .falco-destacados__progreso span {
    display: block;
    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
      linear-gradient(
        90deg,
        rgba(201, 168, 97, 0.35),
        var(--fd-gold-500),
        var(--fd-gold-300)
      );
  }

}

