/*
 * style-figma.css
 * Estilos para index-figma.html — Propuesta Desktop v4 (Figma 2206:6696)
 * NO modifica ningún archivo existente.
 * Complementa abastible-framework.css, abastible-grid.css y style.css.
 */

/* ─────────────────────────────────────────────
   1. HERO — Nueva versión Figma
   ───────────────────────────────────────────── */

.fn-hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #0D1B40;
}

.fn-video-mobile {
    display: none;
}

.fn-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dispositivos móviles (pantallas menores a 768px) */
@media (max-width: 767px) {
    .fn-video-desktop {
        display: none; /* Oculta el video cuadrado/apaisado */
    }
    
    .fn-video-mobile {
        display: block; /* Muestra el video vertical */
    }
}

.fn-hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(278deg, rgba(0, 0, 0, 0.00) 44.43%, rgba(0, 0, 0, 0.32) 55.24%, rgba(0, 0, 0, 0.50) 64.14%);
  z-index: 1;
}

.fn-hero .container.fn-hero-inner {
  position: relative;
  z-index: 2;
}

.fn-hero-inner {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;

  min-height: 600px;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 80px;
}

.fn-hero-copy {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.fn-hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 560px;
}

.fn-hero-title {
  color: #ffffff;
  font-family: var(--typography-font-family-family, "Ubuntu Sans"), sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.64px;
  margin: 0;
}

.fn-hero-title .fn-orange {
  color: #FE5000;
}

.fn-hero-subtitle {
  color: #ffffff;
  font-family: var(--typography-font-family-family, "Ubuntu Sans"), sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

.fn-hero-subtitle strong {
  font-weight: 700;
}

.fn-hero-legal {
  position: absolute;
  left: 0;
  bottom: -120px;
  max-width: 560px;
  margin: 0;  
  color: #ffffff;
  font-family: var(--typography-font-family-family, "Ubuntu Sans"), sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.fn-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fn-btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #FE5000;
  border: none;
  border-radius: 9999px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.fn-btn-hero-primary:hover { opacity: 0.9; }

.fn-btn-hero-primary:focus,
.fn-btn-hero-primary:focus-visible {
  outline: none;
  box-shadow: none;
}

.fn-btn-hero-primary:active {
  opacity: 0.85;
}

.fn-btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 9999px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s;
  white-space: nowrap;
}

.fn-btn-hero-secondary:hover { border-color: #ffffff; }

.fn-btn-hero-secondary:focus,
.fn-btn-hero-secondary:focus-visible {
  outline: none;
  box-shadow: none;
}

.fn-btn-hero-secondary:active {
  opacity: 0.85;
}

@media (max-width: 767px) {
  .fn-hero {
    align-items: flex-start;
    min-height: 600px;
  }

  .fn-hero-inner {
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 16px;
    min-height: 600px;
  }

  .fn-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(600px - 16px - 16px);
  }

  .fn-hero-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 12px;
    flex-grow: 1;
  }

  .fn-hero-title,
  .fn-hero-subtitle {
    text-align: center;
  }

  .fn-hero-actions {
    margin-top: auto;
    padding-bottom: 0;
  }

  .fn-hero-legal {
    position: static;
    margin-top: 5px;
    padding-bottom: 0;
    text-align: center;
    font-size: 11px;
  }
}

@media (min-width: 768px) {
  .fn-hero-actions {
    flex-direction: row;
    gap: 16px;
  }

  .fn-hero-title {
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -0.96px;
  }

  .fn-hero-subtitle {
    font-size: 22px;
  }
}

@media (min-width: 1366px) {
  .fn-hero-title {
    font-size: 52px;
  }
}

/* ─────────────────────────────────────────────
   2. BARRA CONTADOR DE GANADORES
   ───────────────────────────────────────────── */

.fn-counter-bar {
  background-color: #F5F5F5;
  border-bottom: 1px solid #E8E8E8;
  padding: 16px 0;
}

.fn-counter-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 16px;
}

.fn-counter-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #FE5000;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(254, 80, 0, 0.7);
  }
  50% {
    opacity: 0.4;
    box-shadow: 0 0 0 6px rgba(254, 80, 0, 0);
  }
}

.fn-counter-crown {
  width: 22px;
  height: 22px;
  color: #FE5000;
  flex-shrink: 0;
}

.fn-counter-label {
  font-size: 15px;
  font-weight: 600;
  color: #444444;
  font-family: var(--typography-font-family-family, "Ubuntu Sans"), sans-serif;
}

.fn-counter-digits {
  display: flex;
  gap: 4px;
}

.fn-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 36px;
  background: #FE5000;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 6px;
  font-family: var(--typography-font-family-family, "Ubuntu Sans"), monospace;
}

/* ─────────────────────────────────────────────
   3. SECCIÓN FORMULARIO (standalone, debajo del hero)
   ───────────────────────────────────────────── */

.fn-form-section {
  background-color: #ffffff;
  padding: 56px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.fn-form-card {
  width: 100%;
  max-width: 600px;
}

.fn-form-card .form-header {
  margin-bottom: 28px;
}

.fn-form-required-note {
  text-align: right;
  font-size: 12px;
  color: #FE5000;
  margin: 4px 0 8px 0;
}

.text-alert-blue {
  color: var(--text-functional-surface-info, #0766FF);
  /* body-text/Caption/regular */
  font-family: var(--typography-font-family-Family, "Ubuntu Sans");
  font-size: var(--typography-font-size-text-xs, 9px);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.popover-wrapper {
  position: relative;
}

.custom-popover {
    display: none; 
    position: absolute;
    top: calc(100% + 12px); 
    right: 0; /* Se ancla al borde derecho EXACTO del texto "¿Dónde está?" */
    width: 195px; 
    background-color: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.custom-popover.is-visible {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

/* El piquito apuntando hacia arriba */
.popover-arrow {
    position: absolute;
    top: -8px; 
    /* Como el popover está anclado a right: 0, le damos unos píxeles de margen 
       para que quede justo debajo del icono de interrogación (ajusta este número si es necesario) */
    right: 15px; 
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #ffffff; 
}

/* Estilos de los textos e imagen internos */
.popover-title {
  color: var(--fill-neutral-primary, #232323);
  /* body-text/M/medium */
  font-family: var(--typography-font-family-Family, "Ubuntu Sans");
  font-size: var(--typography-font-size-text-md, 16px);
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.popover-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Animación suave al aparecer */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 992px) {
  .fn-form-section {
    padding: 80px 32px;
  }
  .custom-popover {
    width: 280px; 
}
}

/* ─────────────────────────────────────────────
   4. SECCIÓN PREMIOS — Diseño Figma oscuro
   ───────────────────────────────────────────── */

.fn-prizes-section {
  background: radial-gradient(206.91% 58.93% at 50% 50%, #003B8B 0%, #031024 100%);
  padding: 64px 16px;
  width: 100%;
  box-sizing: border-box;
  min-height: 700px;
}

.fn-prizes-wrap {
  max-width: 1184px;
  margin: 0 auto;
}

.fn-prizes-heading {
  text-align: center;
  margin-bottom: 12px;
  color: #ffffff;
  font-family: var(--typography-font-family-family, "Ubuntu Sans"), sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.56px;
  margin-top: 0;
}

.fn-prizes-subheading {
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  margin: 0 0 40px;
}

/* Carrusel horizontal (collapse cards) */
.fn-prize-carousel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* ── Card base ── */
.fn-pc-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  height: 136px;
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  -webkit-tap-highlight-color: transparent;
}

.fn-pc-card.fn-pc-active {
  height: 430px;
  cursor: default;
}

/* ── Background ── */
.fn-pc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* ── Overlay ── */
.fn-pc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.45) 100%);
  transition: background 0.45s ease;
}

.fn-pc-card.fn-pc-active .fn-pc-overlay {
  background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.18) 65%);
}

/* ── Collapsed view ── */
.fn-pc-collapsed {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  opacity: 1;
  /* Reaparece con delay, cuando el shrink ya casi terminó */
  transition: opacity 0.25s ease 0.3s;
}

.fn-pc-card.fn-pc-active .fn-pc-collapsed {
  opacity: 0;
  pointer-events: none;
  /* Desaparece rápido al expandirse */
  transition: opacity 0.08s ease;
}

.fn-pc-mini-badge {
  display: inline-flex;
  align-items: center;
  background: #FE5000;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.fn-pc-mini-title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.2px;
}

/* ── Expanded content ── */
.fn-pc-expanded {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 20px 24px;
  opacity: 0;
  pointer-events: none;
  /* Fade-out casi instantáneo → el texto desaparece antes de que
     el shrink de la card lo desplace visualmente */
  transition: opacity 0.08s ease;
  width: 300px !important;
}

.fn-pc-card.fn-pc-active .fn-pc-expanded {
  opacity: 1;
  pointer-events: auto;
  /* Fade-in suave con delay, esperando que la card termine de expandirse */
  transition: opacity 0.35s ease 0.2s;
}

.fn-pc-badge {
  display: inline-flex;
  align-items: center;
  background: #FE5000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 6px 14px;
  width: fit-content;
}

.fn-pc-title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.56px;
  margin: 0;
}

.fn-pc-sub {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
}

.fn-pc-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fn-pc-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.fn-pc-bullets li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #FE5000;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.fn-pc-legal {
  color: #ffffff;
  font-family: var(--typography-font-family-Family, "Ubuntu Sans");
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.fn-btn-orange-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FE5000;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
  max-width: 316px;
  width: 100%;
  align-self: flex-start;
}

.fn-btn-orange-solid:hover { background: #e04500; }

/* ── Desktop: carrusel horizontal ── */
@media (min-width: 768px) {
  .fn-prize-carousel {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    height: 412px; /* altura fija = la card activa; el eje central nunca se mueve */
  }

  .fn-pc-card {
    flex: 0 0 150px;
    height: 320px;
    transition: flex 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .fn-pc-card.fn-pc-active {
    flex: 1 0 0;
    height: 458px;
  }

  /* Collapsed desktop: solo título, centrado vertical, alineado a la izquierda */
  .fn-pc-collapsed {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    gap: 0;
  }

  /* Badge oculto en estado colapsado desktop */
  .fn-pc-collapsed .fn-pc-mini-badge {
    display: none;
  }

  .fn-pc-mini-title {
    font-size: 18px;
  }

  .fn-pc-title {
    font-size: 40px;
    letter-spacing: -0.8px;
  }

  .fn-pc-expanded {
    padding: 28px;
    gap: 16px;
  }
}

@media (min-width: 992px) {
  .fn-prizes-section {
    padding: 80px 32px;
  }

  .fn-prizes-heading {
    font-size: 36px;
  }
}

/* ─────────────────────────────────────────────
   5. SECCIÓN CÓMO PARTICIPAR — Tarjetas con foto
   ───────────────────────────────────────────── */

.fn-steps-section {
  background: #f3F3F3;
  padding: 64px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.fn-steps-header {
  text-align: center;
}

.fn-steps-heading {
  color: #1A1A1A;
  font-family: var(--typography-font-family-family, "Ubuntu Sans"), sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.52px;
  margin: 0 0 8px;
}

.fn-steps-subheading {
  color: #666666;
  font-size: 15px;
  margin: 0;
}

.fn-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 1184px;
}

.fn-step-photo-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 260px;
  background-color: #1a2a54;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
}

.fn-step-photo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.05) 55%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

.fn-step-caption {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.20);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px;
  text-align: center;
  margin: 0;
}

@media (min-width: 768px) {
  .fn-steps-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }

  .fn-step-photo-card {
    min-height: 320px;
  }

  .fn-steps-heading {
    font-size: 32px;
  }
}

@media (min-width: 992px) {
  .fn-steps-section {
    padding: 80px 32px;
  }

  .fn-step-photo-card {
    min-height: 360px;
  }
}

/* Backgrounds para los pasos */
.fn-step-1-bg {
  background-image: url('assets/images/images-figma/67ca0960a5fed804ad68e2895e451beeba90a081.png');
  background-position: center top;
}

.fn-step-2-bg {
  background-image: url('assets/images/images-figma/step-2.png');
  background-position: center;
}

.fn-step-3-bg {
  background-image: url('assets/images/images-figma/3b1608a546ccecfdd90cd33cf4b9d4899fa2c983.png');
  background-position: center;
}

/* ─────────────────────────────────────────────
   6. PREMIOS ENTREGADOS + ÚLTIMOS GANADORES
   ───────────────────────────────────────────── */

.fn-awarded-section {
  background: #ffffff;
  padding: 56px 16px 64px;
  border-top: 1px solid #F0F0F0;
}

.fn-awarded-wrap {
  max-width: 1184px;
  margin: 0 auto;
}

/* Header de la sección */
.fn-awarded-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.fn-awarded-title {
  font-size: 22px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0;
}

.fn-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffe7d8;
  border: 1px solid #FE5000;
  color: #FE5000;
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.fn-live-badge::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #FE5000;
  border-radius: 50%;
  animation: fn-pulse 1.4s ease-in-out infinite;
}

@keyframes fn-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Tarjetas de contador por tipo de premio */
.fn-prize-counters {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* Suaviza el scroll en iOS */
  gap: 12px;
  margin-bottom: 56px;
  padding-bottom: 12px; /* Espacio para que no se corte la sombra si la hubiera */
  
  /* Ocultar scrollbars para un diseño más limpio */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE y Edge */
}

.fn-prize-counters::-webkit-scrollbar {
  display: none; /* Chrome, Safari y Opera */
}

/* Ajuste del tamaño de cada tarjeta en el carrusel móvil */
.fn-prize-counters .fn-counter-card {
  flex: 0 0 80vw; /* Ocupa el 80% del ancho para que se asome la siguiente tarjeta */
  max-width: 226px;
  scroll-snap-align: start; /* Alinea la tarjeta al inicio al hacer scroll */
}

/* En Desktop (768px o más), vuelve a ser grilla de 4 columnas */
@media (min-width: 768px) {
  .fn-prize-counters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow-x: visible; /* Desactiva el scroll */
    gap: 16px;
    padding-bottom: 0;
  }
  
  .fn-prize-counters .fn-counter-card {
    flex: auto;
    max-width: none;
  }
}

.fn-counter-card {
    background-color: #001A4D;
    background-size: cover;
    background-position: right center;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 169px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    justify-content: space-between;
}

.fn-counter-card-content {
  position: relative;
  z-index: 2;
  padding: 16px;
  color: #ffffff;
}

.fn-counter-card-crown {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  margin: 0;
}

.fn-counter-card-crown svg {
  width: 16px;
  height: 16px;
  color: #FE5000;
}

.fn-counter-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: 12px;
}

.fn-counter-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.fn-counter-ya-van {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.fn-counter-number {
  background-color: #FE5000;
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  display: inline-block;
  min-width: 50px;
  text-align: center;
}

.fn-counter-ganadores {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  font-weight: 700;
}

/* Bg images para tarjetas de contadores */
.fn-cc-vale  { background-image: url('assets/images/images-figma/0a4ded71af536f2eedaef1289bc8ad10c52e7413.png'); }
.fn-cc-cine  { background-image: url('assets/images/images-figma/5b97a210c10b014f0c94b820e93e37e452c15566.png'); }
.fn-cc-jva   { background-image: url('assets/images/images-figma/85eba561fa51007062ae3b3bf92a118a16f7402d.png'); }
.fn-cc-estufa { background-image: url('assets/images/images-figma/4761d846b88ca642fbd9673d47cdd5e1df89b219.png'); }

/* Últimos Ganadores — encabezado */
.fn-winners-heading-block {
  text-align: center;
  margin-bottom: 32px;
}

.fn-winners-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 8px;
}

.fn-winners-heading svg {
  color: #FE5000;
}

.fn-winners-subheading {
  color: #666666;
  font-size: 14px;
  margin: 0;
}

/* Feed de Instagram — cabecera */
.fn-ig-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 20px;
  border-top: 1px solid #EEEEEE;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 12px;
}

.fn-ig-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fn-ig-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FE5000;
  background: #eeeeee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.fn-ig-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fn-ig-name {
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
}

.fn-btn-follow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #FE5000;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.fn-btn-follow:hover { background: #e04500; }

.fn-btn-follow svg {
  width: 16px;
  height: 16px;
}

/* ── Cuadrícula de tarjetas de ganadores ── */
.fn-winners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .fn-winners-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

/* ── Winner card (Instagram-style, Figma 2462:9283) ── */
.fn-winner-ig-card {
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 454px;
  padding: 16px;
  position: relative;
  background-size: cover;
  background-position: center top;
}

.fn-winner-ig-card.fn-winner-generic {
  background-image: url('assets/images/card-ganadores-all.png');
}

/* ── Top: separator lines + header ── */
.fn-winner-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fn-winner-sep-lines {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.fn-sep-line {
  flex: 1;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
}
.fn-sep-line.fn-sep-dim { opacity: 0.2; }

/* Stories header */
.fn-ig-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.fn-ig-post-account {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

/* Gradient ring (Instagram stories style) */
.fn-ig-stories-ring {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd600 0%, #ff7a00 25%, #ff0069 50%, #d300c5 75%, #7638fa 100%);
  padding: 2.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fn-ig-stories-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  object-fit: cover;
  box-sizing: border-box;
}

.fn-ig-post-username {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fn-ig-post-time {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.fn-ig-post-dots {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Bottom: glass panel + social row ── */
.fn-winner-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Glassmorphism panel (rgba(98,98,98,0.3) per Figma) */
.fn-winner-glass-panel {
  background: rgba(51, 51, 51, 0.60);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 24px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 138px;
  position: relative;
}

.fn-winner-glass-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.fn-winner-panel {
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}

/* Crown icon box */
.fn-winner-crown-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fn-winner-crown-icon svg {
  width: 24px;
  height: 24px;
  color: #FE5000;
}

/* Name + prize text */
.fn-winner-info-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}
.fn-ig-winner-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-align: center;
  width: 100%;
}
.fn-ig-winner-prize {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  text-align: center;
  width: 100%;
}

/* Social buttons row */
.fn-winner-social-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* "Ver en Instagram" — dark glass pill (Figma) */
.fn-btn-ver-ig {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  padding: 0 12px;
  height: 38px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s;
}
.fn-btn-ver-ig:hover { background: rgba(0, 0, 0, 0.45); }

.fn-ig-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.fn-ig-action {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 50%;
  transition: color 0.15s;
}
.fn-ig-action:hover { color: #ffffff; }
.fn-ig-action svg { width: 20px; height: 20px; }

/* CTA "Ver todos los ganadores" */
.fn-winners-cta {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

@media (max-width: 767px) {
  .fn-winners-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 12px;
    grid-template-columns: unset;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .fn-winners-grid::-webkit-scrollbar {
    display: none;
  }

  .fn-winner-ig-card {
    flex: 0 0 80vw;
    max-width: 265px;
    scroll-snap-align: start;
  }

  .fn-counter-card-crown {
    font-size: 14px;
  }
}

/* ─────────────────────────────────────────────
   6b. MODAL — Todos los Ganadores (Figma 2348:24526)
   ───────────────────────────────────────────── */

.fn-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6000;
  padding: 20px;
}
.fn-modal-overlay.hidden { display: none; }

.fn-winners-modal {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0px 6px 12px 0px rgba(0,0,0,0.14);
  padding: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90svh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

/* Modal header */
.fn-wm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.fn-wm-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fn-wm-trophy {
  color: #FE5000;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.fn-wm-title {
  font-size: 24px;
  font-weight: 700;
  color: #232323;
  letter-spacing: -0.48px;
  margin: 0;
  white-space: nowrap;
}
.fn-wm-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #555;
  transition: background 0.2s;
}
.fn-wm-close:hover { background: #e0e0e0; }
.fn-wm-close svg { width: 16px; height: 16px; }

.result-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

/* Search */
.fn-wm-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.fn-wm-search-input {
  width: 100%;
  height: 48px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 0 44px 0 16px;
  font-size: 14px;
  font-family: inherit;
  color: #232323;
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.fn-wm-search-input::placeholder { color: #aaa; }
.fn-wm-search-input:focus { border-color: #FE5000; }
.fn-wm-search-icon {
  position: absolute;
  right: 14px;
  color: #aaa;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* Filter chips */
.fn-wm-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.fn-wm-filters:active {
  cursor: grabbing;
}

.fn-wm-filters::-webkit-scrollbar { display: none; }
.fn-wm-chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  color: #232323;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.fn-wm-chip:hover { border-color: #FE5000; color: #FE5000; }
.fn-wm-chip.fn-wm-chip-active {
  background: #FE5000;
  border-color: #FE5000;
  color: #ffffff;
}

/* Results count */
.fn-wm-count-text {
  font-size: 13px;
  color: #888;
  margin: 0;
  flex-shrink: 0;
}

/* Results list (scrollable) */
.fn-wm-list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* Each winner row */
.fn-wm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.fn-wm-row:last-child { border-bottom: none; }

.fn-wm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #555;
  flex-shrink: 0;
}

.fn-wm-info {
  flex: 1;
  min-width: 0;
}
.fn-wm-name {
  font-size: 15px;
  font-weight: 700;
  color: #232323;
  margin: 0 0 2px;
}
.fn-wm-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #888;
  margin: 0;
}
.fn-wm-date svg { width: 12px; height: 12px; color: #aaa; flex-shrink: 0; }

.fn-wm-badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 9999px;
  background: rgba(254, 80, 0, 0.10);
  color: #FE5000;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.fn-wm-empty {
  padding: 40px 0;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

.fn-btn-outline-orange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FE5000;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.fn-btn-outline-orange:hover { background: #e04500; }

/* ─────────────────────────────────────────────
   7. FAQ — Overrides para nueva sección
   ───────────────────────────────────────────── */

.fn-faq-section {
  background-color: #F4F5F7;
  padding: 64px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.fn-faq-header {
  text-align: center;
}

.fn-faq-heading {
  color: #1A1A1A;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.52px;
  margin: 0 0 8px;
}

.fn-faq-subheading {
  color: #666666;
  font-size: 15px;
  margin: 0;
}

.fn-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 860px;
}

.fn-faq-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  border: none;
  cursor: pointer;
}

.fn-faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  color: #1A1A1A;
  cursor: pointer;
  list-style: none;
  gap: 16px;
}

.fn-faq-summary::-webkit-details-marker { display: none; }

.fn-faq-chevron {
  flex-shrink: 0;
  color: #FE5000;
  transition: transform 0.3s ease;
}

.fn-faq-item[open] .fn-faq-summary {
  color: #FE5000;
  border-bottom: 1px solid #EEEEEE;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.fn-faq-item[open] .fn-faq-chevron {
  transform: rotate(180deg);
}

.fn-faq-content {
  color: #555555;
  font-size: 14px;
  line-height: 1.6;
}

@media (min-width: 992px) {
  .fn-faq-section {
    padding: 80px 32px;
  }

  .fn-faq-heading {
    font-size: 32px;
  }

  .fn-faq-list {
    max-width: 1000px;
  }
}


.fn-tyc-modal {
  max-height: 90vh;
  max-width: 864px;
}

.fn-tyc-content {
  max-height: 65vh;
  overflow-y: auto;
  padding: 20px 24px;
  line-height: 1.55;
  font-size: 14px;
  color: #333;
}

/* Opcional: mejora visual del scroll */
.fn-tyc-content::-webkit-scrollbar {
  width: 8px;
}

.fn-tyc-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.fn-tyc-content::-webkit-scrollbar-thumb {
  background: #c7c7c7;
  border-radius: 10px;
}

.fn-tyc-content::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Ocultar desde el sexto elemento en adelante por defecto */
.fn-faq-list details:nth-child(n+6) {
    display: none;
}

/* Esta clase se agregará con JS para mostrar todo */
.fn-faq-list.mostrar-todos details:nth-child(n+6) {
    display: block; /* o 'flex' dependiendo de cómo esté estructurado tu .fn-faq-item original */
    animation: fadeInFaq 0.3s ease-in-out; /* Opcional: una pequeña animación al aparecer */
}

/* Animación opcional para que no aparezcan de golpe */
@keyframes fadeInFaq {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────
   WhatsApp FAB
   ───────────────────────────────────────────── */

.fn-whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fn-whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.fn-whatsapp-fab svg {
  width: 28px;
  height: 28px;
  color: #ffffff;
}
