.section {
  padding: 0 150px;
}

* {
  font-family: "Raleway", sans-serif;
}

#spinner-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #00496b;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition:
    opacity 1s ease-out,
    visibility 1s ease-out;
}

#spinner-container.fade-out {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  position: absolute;
  width: 9px;
  height: 9px;
}

.spinner div {
  position: absolute;
  width: 50%;
  height: 150%;
  background: #bddb6b;
  transform: rotate(calc(var(--rotation) * 1deg)) translate(0, calc(var(--translation) * 1%));
  animation: spinner-fzua35 1s calc(var(--delay) * 1s) infinite ease;
}

.spinner div:nth-child(1) {
  --delay: 0.1;
  --rotation: 36;
  --translation: 150;
}

.spinner div:nth-child(2) {
  --delay: 0.2;
  --rotation: 72;
  --translation: 150;
}

.spinner div:nth-child(3) {
  --delay: 0.3;
  --rotation: 108;
  --translation: 150;
}

.spinner div:nth-child(4) {
  --delay: 0.4;
  --rotation: 144;
  --translation: 150;
}

.spinner div:nth-child(5) {
  --delay: 0.5;
  --rotation: 180;
  --translation: 150;
}

.spinner div:nth-child(6) {
  --delay: 0.6;
  --rotation: 216;
  --translation: 150;
}

.spinner div:nth-child(7) {
  --delay: 0.7;
  --rotation: 252;
  --translation: 150;
}

.spinner div:nth-child(8) {
  --delay: 0.8;
  --rotation: 288;
  --translation: 150;
}

.spinner div:nth-child(9) {
  --delay: 0.9;
  --rotation: 324;
  --translation: 150;
}

.spinner div:nth-child(10) {
  --delay: 1;
  --rotation: 360;
  --translation: 150;
}

@keyframes spinner-fzua35 {

  0%,
  10%,
  20%,
  30%,
  50%,
  60%,
  70%,
  80%,
  90%,
  100% {
    transform: rotate(calc(var(--rotation) * 1deg)) translate(0, calc(var(--translation) * 1%));
  }

  50% {
    transform: rotate(calc(var(--rotation) * 1deg)) translate(0, calc(var(--translation) * 1.5%));
  }
}

#contenido {
  display: none;
  padding: 20px;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  display: flex;
  background-color: #1c2c3900;
  z-index: 1000;
}

.login {
  width: auto;
  height: auto;
  height: auto;
  margin: 0 auto;
  padding: 6% 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #20b0c3;
}

.logo img {
  height: 100px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-left: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: #0d2d4d;
  font-weight: 700;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #0d2d4d;
}

.nav-links a:focus {
  color: #0d2d4d;
}

/* Sidebar base */
.sidebar {
  position: fixed;
  top: 50%;
  left: -70px;
  /* fuera de la pantalla */
  transform: translateY(-50%);
  width: 60px;
  background: #ffffff;
  backdrop-filter: blur(10px);
  border-radius: 0 10px 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  transition: left 0.4s ease;
  z-index: 999;
}

/* Mostrar el menú */
.sidebar.show {
  left: 0;
}

/* Logo */
.sidebar-logo img {
  width: 40px;
}

/* Lista de iconos */
.sidebar-icons {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-icons li {
  position: relative;
  margin: 10px 0;
}

.sidebar-icons a {
  color: #062735;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  position: relative;
  text-decoration: none;
}

/* Tooltip desplegable */
.icon-label {
  position: absolute;
  left: 50px;
  background: #062735;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

/* Mostrar el tooltip al hover */
.sidebar-icons a:hover .icon-label {
  opacity: 1;
  transform: translateX(0);
}

/* Animación de hover en iconos */
.sidebar-icons a:hover {
  color: #bddb6b;
}

/* Ocultar header cuando está scrolleado */
.header.hide {
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  margin-top: 12px;
}

.bottom-nav {
  display: none;
}

.principal-title h1 {
  color: #ffffff;
  /* color general del h1 */
  font-family: "Raleway", sans-serif;
  font-size: 9rem;
  font-weight: 700;
  text-align: center;
}

.principal-title h1 span {
  color: inherit;
  /* hereda el color del h1 */
  font-style: italic;
  font-family: "Raleway", sans-serif;
  font-weight: 400;
}

.principal-title h1 .ciudad {
  font-style: normal;
  font-weight: 800;
  font-family: "Raleway", sans-serif;
  color: #ffffff;
  /* color diferente solo para "Ciudad" */
}

.principal {
  width: 100%;
  height: 140vh;
  background-image: url(/assets/image/chrismas-bg.png);
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
}

.principal-content {
  width: 100%;
  height: 100%;
}

.principal-title {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 99;
  padding: 15% 80px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  gap: 40px;
}

.logins-container {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.principal-logins {
  width: 250px;
  height: 40px;
background: 		#fccb45c5;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: 90px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.589);
}

.principal-img {
  width: 40%;
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
}

.principal-img img {
  width: 800px;
  height: auto;
  object-fit: contain;
}


/* Paleta base (ajustá a tu tema) */
:root {
  --cx-azul: #0d2d4d;
  /* color titular */
  --cx-naranja: #d94b2b;
  /* acento */
  --cx-text: #25323e;
  --cx-bg: #ffffff;
  /* muy claro cálido */
  --cx-line: #e9edf2;
}

.cx-flow {
  width: 100%;
  height: auto;
  background: var(--cx-bg);
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 20px solid #bddb6b;
  display: none;
}

.cx-wrap {
  margin: 0 auto;
}

.cx-flow h2 {
  color: var(--cx-azul);
  font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  margin: 0 0 .4rem;
  line-height: 1.2;
}

.cx-lead {
  margin: 0 0 1.8rem;
  color: var(--cx-text);
  max-width: 60ch;
}

.cx-steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cx-step {
  background: #fff;
  border: 1px solid var(--cx-line);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
}

.cx-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: .8rem;
  right: .8rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: var(--cx-azul);
}

.cx-icon {
  color: var(--cx-naranja);
}

.cx-step h3 {
  margin: .2rem 0;
  font-size: 1.05rem;
  color: var(--cx-azul);
}

.cx-step p {
  margin: 0 0 .4rem;
  color: var(--cx-text);
}

.cx-btn {
  display: inline-block;
  padding: .6rem .9rem;
  border-radius: 12px;
  border: 1px solid var(--cx-azul);
  text-decoration: none;
  color: var(--cx-azul);
  font-weight: 600;
  transition: transform .06s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.cx-btn:hover {
  transform: translateY(-1px);
}

.cx-btn.primary {
  background: var(--cx-naranja);
  border-color: var(--cx-naranja);
  color: #fff;
}

.cx-cta {
  margin-top: 1.4rem;
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

.secondary {
  position: relative;
  width: 100%;
  height: auto;
  background-color: white;
  padding-top: 40px;
  padding-bottom: 40px;
}

.secondary-grid {
  width: 100%;
  height: 50vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  grid-template-areas: "div1 div3 div3";
}

.div1 {
  grid-area: div1;
  background-color: #d94b2b;
  display: flex;
  flex-direction: row-reverse;
  border-radius: 24px 0 0 24px;
}

.div1-title {
  width: 100%;
  height: 80%;
  padding: 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.div1-btn {
  width: 100%;
  height: 20%;
  padding: 10px;
}

.div1-btn a {
  text-decoration: none;
}

.div1-btn button {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-style: none;
  background-color: #062735;
  border-radius: 24px;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 5%;
}

.div1-title h3 {
  font-size: 2.8rem;
  font-weight: 700;
  color: white;
}

.div3 {
  grid-area: div3;
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.noticia-slider-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 0 24px 24px 0;
}

.noticia-slider-container h2 {
  font-size: 2.2rem;
}

.noticia-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.noticia-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  color: white;
}

.noticia-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(6, 39, 53, 0.8), rgba(6, 39, 53, 0.4));
  z-index: 0;
}

.noticia-slide img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.noticia-slide-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.noticia-slide-content a {
  background-color: #bddb6b;
  color: #062735;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  width: fit-content;
}

.noticia-slide-content a:hover {
  background-color: #fff;
  color: #062735;
}

.noticia-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

.noticia-btn.prev {
  left: 10px;
}

.noticia-btn.next {
  right: 10px;
}

.rank {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  padding-right: 0;
  background-color: #252525;
  padding-top: 80px;
  padding-bottom: 80px;
  display: none;
}

.rank-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
}

.rank-content h4 {
  font-size: 3rem;
  font-weight: 400;
  background: linear-gradient(90deg, #f3eae8, #f3eae8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Fallback para navegadores modernos */
  text-fill-color: transparent;
  /* Estándar experimental */
  text-align: start;
}

.rank-content h2 {
  font-size: 6rem;
  font-weight: 700;
  color: white;
}

.rank-content p {
  color: white;
  font-size: 1.2rem;
}

.rank-content ul {
  color: white;
}

.rank-btn {
  width: 100%;
  background-color: #02002400;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 100px);
  grid-column-gap: 10px;
  grid-row-gap: 0;
}

.medal {
  width: 300px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.5s;
}

.medal h3 {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-size: 3rem;
}

.bronce {
  grid-area: 1 / 1 / 3 / 3;
  background-color: #b83f22;
  color: white;
}

.bronce:hover {
  background-color: white;
  color: #b83f22;
}

.silver {
  grid-area: 1 / 3 / 3 / 5;
  background-color: #00496b;
  color: white;
}

.silver:hover {
  background-color: white;
  color: #00496b;
}

.gold {
  grid-area: 1 / 5 / 3 / 7;
  background-color: #f98f05;
  color: white;
}

.gold:hover {
  background-color: #ffffff;
  color: #f98f05;
}

/* Contenedor de imagen y panel */
.rank-img {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Imagen visible por defecto */
.rank-img img {
  width: 600px;
  height: auto;
  object-fit: contain;
  transition: opacity 0.4s ease;
}

/* Panel de info oculto por defecto */
.rank-info-panel {
  position: absolute;
  width: 100%;
  max-width: 700px;
  height: 70%;
  background-color: #092c3d;
  color: white;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: slideIn 0.5s ease forwards;
  transition:
    background-color 0.4s ease,
    background 0.4s ease;
  border-radius: 20px 0 0 20px;
}

.rank-info-panel.active {
  display: flex;
}

/* Ocultar todas las secciones internas por defecto */
.rank-info-panel .info-content {
  display: none;
}

.rank-info-panel .info-content.active {
  display: block;
  padding: 0 40px;
}

.rank-info-panel h3 {
  font-size: 4rem;
  font-family: "Anton", sans-serif;
  margin-bottom: 1rem;
}

.rank-info-panel .info-content {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.rank-info-panel .info-content.active {
  display: block;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  position: relative;
}

/* Fondos personalizados para cada nivel */
.rank-info-panel.bronce-bg {
  background-color: #b83f22;
  /* o un gradiente suave */
  color: #ffffff;
}

.rank-info-panel.silver-bg {
  background-color: #00496b;
  color: #ffffff;
}

.rank-info-panel.gold-bg {
  background-color: #f98f05;
  color: #ffffff;
}

#info-bronce p {
  color: #ffffff;
}

#info-silver p {
  color: #ffffff;
}

#info-gold p {
  color: #ffffff;
}

/* Botón cerrar */
.close-panel {
  margin-top: 2rem;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
}

/* Animación */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.mapa {
  width: 100%;
  height: auto;
  background: #252525;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  padding-top: 80px;
  padding-bottom: 80px;
  display: none;
}

.mapa-container {
  width: 100%;
  height: 100%;
  background-color: #00364b00;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mapa-title {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 20px;
  padding-left: 150px;
  padding-right: 150px;
}

.mapa-title h2 {
  font-size: 4rem;
  color: white;
  font-weight: 700;
}

.mapa-title span {
  font-size: 2rem;
  color: white;
}

.mapa-title p {
  font-size: 1.2rem;
  color: white;
}

.mapa-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: 8px 8px 8px rgba(75, 75, 75, 0.5);
}

.mapa-frame iframe {
  width: 100%;
  height: 100vh;
}

.flow-steps {
  width: 100%;
  height: auto;
  background: #252525;
  background: linear-gradient(180deg, rgba(37, 37, 37, 1) 50%, rgba(255, 255, 255, 1) 50%);
  color: #fff;
}

.flow-steps__inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  margin: 0 auto;
  display: none;
}

.flow-steps__title {
  margin: 0 0 28px;
  font-weight: 700;
}

/* Contenedor de pasos */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
}

/* Línea conectora (solo en pantallas anchas) */
@media (min-width: 900px) {
  .steps::before {
    content: "";
    position: absolute;
    left: 40px;
    /* arranca después de la primera medalla */
    right: 40px;
    top: 42px;
    /* alineada con las medallas */
    height: 2px;
    background: linear-gradient(90deg, var(--acento), #fff);
    opacity: 0.6;
    z-index: 0;
  }
}

.step {
  flex: 1 1 calc(25% - 20px);
  min-width: 320px;
  height: 300px;
  background: var(--card-bg);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  text-align: center;
  padding: 20px 16px 18px;
  position: relative;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Medalla numérica */
.step__badge {
  position: absolute;
  left: 16px;
  top: -18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--acento);
  color: #051937;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

/* Ícono (reemplazá por tus PNG/SVG) */
.step__icon {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin: 10px auto 15px;
}

.step__title {
  font-size: 1rem;
  margin: 8px 0 6px;
  line-height: 1.3;
}

.step__text {
  font-size: 0.95rem;
  opacity: 0.85;
  margin: 0;
}

/* Responsive: 2 columnas en tablet, 1 en móvil */
@media (max-width: 899px) {
  .step {
    flex: 1 1 calc(50% - 20px);
  }

  .steps::before {
    display: none;
  }

  /* ocultamos línea conectora */
}

@media (max-width: 560px) {
  .step {
    flex: 1 1 100%;
  }
}

.faq-section {
  width: 100%;
  margin: 0;
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: #00364b;
  display: flex;
  flex-direction: row-reverse;
}

.faqs-main {
  width: 70%;
}

.faq-title {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
}

.faq-title h2 {
  font-size: 4rem;
  font-weight: 700;
  color: white;
}

.faq-title p {
  font-size: 1.2rem;
  color: white
}

.faq-title img {
  position: absolute;
  left: 0;
  width: 600px;
  height: auto;
  padding: 0;
}

.faq-category {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 30px;
  color: #ffffff;
  border-bottom: 2px solid #00496b;
  padding-bottom: 5px;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  margin-top: 10px;
  overflow: hidden;
}

.faq-question {
  cursor: pointer;
  padding: 12px;
  background-color: #f0f0f0;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.3s;
}

.faq-question:hover {
  background-color: #e0e0e0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  background-color: #fafafa;
  padding: 0 12px;
}

.faq-answer p {
  font-size: 1rem !important;
  color: #000 !important;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  /* suficiente para la mayoría */
  padding: 12px;
}

.faq-answer p,
.faq-answer ul {
  margin: 10px 0;
}

footer {
  width: 100%;
  height: 250px;
  display: flex;
  padding: 20px;
  padding-left: 10%;
  padding-right: 10%;
  background-color: #062735;
}

.footer-container {
  width: 100%;
  height: 80%;
  margin: 20px;
  background-color: #00aebe00;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contact {
  width: 100%;
  height: 80%;
  margin: 20px;
  background-color: #00aebe00;
}

.footer-contact a {
  display: block;
}

.footer-social {
  display: flex;
  flex-direction: column;
  color: white;
}

.social {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: white;
  margin: 10px;
  border-radius: 10px;
  padding: 5px;
  display: flex;
  align-items: center;
}

#btn-back-to-top {
  position: fixed;
  bottom: 120px;
  right: 40px;
  display: none;
  background-color: #062735;
  border-color: #062735;
  border-radius: 50%;
}

/* Estilo del contenedor */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Centrar la lupa */
  padding-left: 20px;
  /* Sin desplazamiento extra */
}

/* Estilo de la lupa */
.search-icon {
  background: none;
  /* Sin fondo */
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
}

.search-icon i {
  color: white;
  /* Color blanco para la lupa */
}

/* Contenedor del input */
.search-input-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Input */
#searchInput {
  width: 0;
  opacity: 0;
  padding: 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding-right: 30px;
  /* Espacio para la equis */
  transition: all 0.3s ease;
}

/* Mostrar input cuando se activa */
#searchInput.active {
  width: 200px;
  opacity: 1;
  padding: 10px;
}

/* Botón de la equis dentro del input */
.clear-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  color: #888;
  cursor: pointer;
  display: none;
}

.clear-icon:hover {
  color: #555;
}

/* Contenedor de resultados */
.search-results {
  position: absolute;
  top: 100%;
  /* Aparecen justo debajo del input */
  left: 20%;
  background-color: white;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  width: 200px;
  /* Ajuste según el ancho del input */
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* Sombra para destacar */
}

.search-results a {
  text-decoration: none;
  display: block;
  padding: 10px;
  color: black;
  border-bottom: 1px solid #eee;
}

.search-results a:hover {
  background-color: #f0f0f0;
}

.sorteos-container {
  max-width: 100%;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding-top: 80px;
  padding-bottom: 80px;
}

.sorteos-title {
  width: 100%;
  height: auto;
  margin-bottom: 3rem;
  color: #333;
}

.sorteos-title h2 {
  font-size: 4rem;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #00364b;
}

.sorteos-title span {
  display: block;
  font-size: 1.2rem;
  color: #e74c3c;
  margin-bottom: 1rem;
  font-weight: 600;
}

.sorteos-title p {
  font-size: 1.2rem;
  color: #00364b;
  margin: 0;
  line-height: 1.6;
}

.lista-sorteos {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: start;
}

.lista-sorteos>div {
  display: flex;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 700px;
  min-height: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lista-sorteos>div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.lista-sorteos img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.lista-sorteos>div>div:last-child {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lista-sorteos h2 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.lista-sorteos p {
  color: #555;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.lista-sorteos p:last-of-type {
  color: #e74c3c;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .sorteos-title h2 {
    font-size: 2rem;
  }

  .lista-sorteos>div {
    flex-direction: column;
    max-width: 400px;
  }

  .lista-sorteos img {
    width: 100%;
    height: 180px;
  }

  .lista-sorteos>div>div:last-child {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 1rem 0;
  }

  .sorteos-title {
    margin-bottom: 2rem;
  }

  .sorteos-title h2 {
    font-size: 1.8rem;
  }

  .lista-sorteos {
    gap: 1rem;
  }
}



.fiestas {
  width: 100%;
  height: auto;
  background: #B8251B;
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10%;
}
.fiestas-title{
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.fiestas-title img{
  width: 250px;
  height: auto;
  object-fit: contain;
}
.fiestas-title h2{
  font-size: 5rem;
  font-weight: 700;
  background-image: radial-gradient(circle,rgba(235, 209, 151, 1) 0%, rgb(228, 184, 65) 100%); /* Gradiente de izquierda a derecha */
  -webkit-background-clip: text; /* Para compatibilidad con Safari */
  background-clip: text;
  color: transparent;
    font-style: italic;
  font-family: "Raleway", sans-serif;
  text-align: center;
}
.sorteo-container {
  width: 100%;
  height: auto;
  display: flex;
  gap: 20px;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 10% 10%;
}

.sorteo-card {
  width: 300px;
  height: 500px;
  background: #ffffff;
  border-radius: 32px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  padding: 8px;
  position: relative; /* Necesario para posicionar la imagen */
  overflow: visible;   /* Permite que la imagen se salga */
}

.card-container {
  width: 100%;
  height: 100%;
  background-color: #00364b;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding: 50px 10px;
  box-sizing: border-box;
}

/* Imagen inferior que se sale */
.card-img {
  position: absolute;
  bottom: -150px; /* Se sale hacia afuera */
  left: 50%;
  transform: translateX(-50%);
  width: 420px;       /* Tamaño controlado */
  z-index: 5;
  pointer-events: none;
    /* Transición suave */
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 1;
}
.sorteo-card:hover .card-img {
  transform: translateX(-50%) scale(1.08); /* ligero zoom */
  opacity: 1;

  /* Delay para que comience después */
  transition-delay: 0.15s;
}
.sorteo-card:hover {
  transform: translateY(-5px);
}

.sorteo-icon {
  font-size: 34px;
  margin-bottom: 10px;
  color: white;
}

.sorteo-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.sorteo-text {
  font-size: 0.95rem;
  color: #eee;
  max-width: 80%;
}

.sorteoButton{
  width: 50%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F7921E;
  border-style: none;
  border-radius: 32px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 2rem;
  color: white;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.589);
}

.premios{
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #B8251B;
}

.premios-list{
  width: 60%;
  height: 100%;
  background-color: #B8251B;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: 5%;
}
.premios-list ul{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.premios-list li{
  list-style: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 40px;
  border-bottom: 4px solid  white;
}
.list-content{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}
.premios-img{
  width: 40%;
  height: 100%;
  background-color: #B8251B;
}
.premios-img img{
  width: 100%;
  height: auto;
}
.sorteo-icon {
  font-size: 6rem;
  margin-bottom: 10px;
  color: white;
}
.premiosButton{
  width: 70%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-style: none;
  border-radius: 24px;
  background-color: #F7921E;
  color: white;
  font-weight: bold;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.589);
}