/* Countdown section - diseño mínimo y responsive */
.countdown-section {
  max-width: 90rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
  font-family: inherit;
}

.countdown-hero-section {
  position: relative;
}

.countdown-hero-row {
  /* En móvil es bloque; en desktop flex para imagen | contenido */
}

.countdown-header {
  margin-bottom: 1.5rem;
}

.countdown-header .countdown-title {
  margin: 0;
}

.countdown-shell {
  max-width: 42rem;
  margin: 0 auto;
}

.countdown-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-content .poll-section {
  align-self: center;
}

.countdown-hero {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.countdown-title {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #1a1a1a;
}

.countdown-description {
  font-size: 1rem;
  color: #444;
  margin: 0 0 2rem;
  line-height: 1.5;
}

.ad-slot-inline {
  width: 100%;
  max-width: 46rem;
  margin: 1.25rem 0;
}

/* Síguenos (después de la encuesta) */
.social-follow {
  max-width: 42rem;
  margin: 2rem auto 1.5rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9ecef;
}

.social-follow-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.social-follow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-follow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.15s;
}

.social-follow-link:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.social-follow-link-ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-follow-link-x {
  background: #000;
  color: #fff;
}

.social-follow-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  min-width: 4.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.countdown-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #111;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-top: 0.25rem;
}

/* Tablet y PC: título arriba a todo ancho; debajo imagen izquierda y contenido derecha */
@media (min-width: 768px) {
  .countdown-section {
    padding: 2rem;
  }

  .countdown-hero-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
  }

  .countdown-shell {
    max-width: none;
    flex: 1;
    min-width: 0;
  }

  .countdown-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .countdown-layout {
    display: block;
    text-align: left;
  }

  .countdown-hero {
    flex: 0 0 45%;
    max-width: 45%;
    width: auto;
    height: auto;
    margin-bottom: 0;
    align-self: stretch;
    max-height: 80vh;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .countdown-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .countdown {
    justify-content: center;
  }
}

@media (min-width: 1200px) {
  .countdown-shell {
    max-width: 64rem;
  }
}

@media (max-width: 480px) {
  .countdown-title {
    font-size: 1.4rem;
  }
  .countdown-item {
    min-width: 3.5rem;
    padding: 0.5rem 0.75rem;
  }
  .countdown-value {
    font-size: 1.25rem;
  }
}

/* Móvil: imagen como fondo y contenido encima con transparencia */
@media (max-width: 767px) {
  .countdown-section {
    padding: 0;
  }

  .countdown-hero-section {
    position: relative;
  }

  .countdown-hero-row {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1rem 1rem 2rem;
  }

  .countdown-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    z-index: 0;
  }

  .countdown-hero-row::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1;
    pointer-events: none;
  }

  .countdown-header,
  .countdown-shell {
    position: relative;
    z-index: 2;
  }

  .countdown-header {
    margin-bottom: 1rem;
    padding-top: 0.5rem;
  }

  /* Título igual que desktop: negro, sin forzar blanco */
  .countdown-title {
    font-size: clamp(1.25rem, 5vw, 1.6rem);
  }

  .countdown-description {
    color: rgba(248, 250, 252, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }

  /* Leve transparencia en countdown y encuesta para que se vea el fondo */
  .countdown-item {
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  }

  .countdown-content .poll-section {
    margin-top: 20rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #1a1a1a;
  }

  .countdown-content .poll-section h2 {
    color: #1a1a1a;
  }

  .countdown-content .social-follow {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.5);
  }
}
