@media (max-width: 1366px){
  .section {
  padding-left:  100px;
  padding-right: 100px;
}
 .principal-title h1 {
  font-size: 6rem;
  text-align: center;
}

.principal-title {
  padding: 0;
  background-size: 70%;
}

.principal-logins a{
  font-size: 1rem;
}
.principal-img{
  display: flex;
  align-items: end;
  justify-content: start;
}
.principal-img img{
  width: 500px;
}
.secondary {
  padding-top: 40px;
  padding-bottom: 40px;
  gap: 80px;
}

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

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

.div1-btn button {
  font-size: 1rem;
}

.div1-title h3 {
  font-size: 2rem;
}

.rank {
  padding-top: 40px;
  align-items: start;
  padding-right: 0;
}

.rank-content h2 {
  font-size: 3rem;
}

.rank-content h4 {
  font-size: 1.2rem;
}

.rank-content li {
  font-size: 1rem;
}

.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: 200px;
  height: 150px;
}

.medal h3 {
  font-size: 2rem;
  margin: 0;
}

/* Imagen visible por defecto */
.rank-img img {
  width: 400px;
}

/* Panel de info oculto por defecto */
.rank-info-panel {
  max-width: 400px;
}

.rank-info-panel h3 {
  font-size: 3rem;
  font-family: "Anton", sans-serif;
  margin-bottom: 1rem;
}
.rank-content p{
  font-size: 1rem;
}
.step {
  min-width: 200px;
  max-width: 300px;
  height: 200px;
}

/* Ícono (reemplazá por tus PNG/SVG) */
.step__icon {
  width: 64px;
  height: 64px;
}

.step__text {
  font-size: .90rem;
}

.agenda {
  padding-top: 100px;
  padding-bottom: 100px;
}

.agenda-container {
background: linear-gradient(0deg, #ffffff 0%, #ffffff 50%, #ffffff 100%), url(/assets/image/cordillera-bg.png);
background-size: contain;
}

.agenda-title h2{
  font-size: 2rem;
}
.mapa {
  padding-top: 100px;
  padding-bottom: 100px;
}
.mapa-title h2{
  font-size: 3rem;
}
.mapa-title span {
  font-size: 1.5rem;
}

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

.faqs-main {
  width: 70%;
}

.faq-title {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
}
.faq-title h2{
  font-size: 3rem;
}
.faqs-content{
  width: 100%;
}
.faq-title h2 {
  color: #ffffff;
}

.faq-title p {
  color: #ffffff;
}

.faq-title a {
  font-weight: 700;
  color: #ffffff;
}

.faq-title img {
  display: none;
}

.faq-answer {
  padding: 0 20px;
}


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

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

@media (max-width: 600px) {
  /* .header {
    display: none;
  } */

  .login {
    padding: 0.5rem 1rem;
  }

  .logo img {
    height: 50px;
  }

  .sidebar {
    display: none;
  }

  /* .principal {
    width: 100%;
    height: 120vh;
    background: #FBF9F3;
    overflow: hidden;
  }

  .principal-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    gap: 40px;
    background: #FBF9F3;
    background: linear-gradient(0deg, #FBF9F3 0%, #FBF9F3 50%, #FBF9F3 100%), url(/assets/image/ciudad-bg.png);
  }
  .principal-title h1 {
  color: #0d2d4d; 
  font-family: "Raleway", sans-serif;
  font-size: 4rem;
  font-weight: 700;
}

.principal-title h1 span {
  color: inherit; 
  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: #d94b2b; 
}
  .principal-content {
    display: flex;
    flex-direction: column;
  }

  .principal-img {
    height: auto;
    display: block;
    display: flex;
    justify-content: start;
  }

  .principal-img img {
    width: 400px;
  }

  .principal-title {
    padding: 20px;
  } */
  .logins-container{
    display: flex;
    flex-direction: column;
  }
  .principal-logins {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: start;
    gap: 20px;
    padding: 10px;
    font-size: 1rem;
  }

  .cx-flow {
    padding: 0 20px;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .secondary {
    padding: 0;
  }

  .secondary-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: "div1" "div3";
    height: auto;
  }

  .div1 {
    border-radius: 0;
    padding: 10px;
  }

  .div1-btn button {
    width: 100%;
    border-radius: 10px;
    font-size: 1rem;
  }
  .div1 {
  height: 100%;
  grid-area: div1;
  background-color: #D2491B;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.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;
}

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

  .principal-bottom {
    display: none;
  }

  .rank {
    flex-direction: column;
    padding: 40px 20px;
    border-top: 20px solid #bddb6b;
  }
  .rank-content{
    gap: 20px;
  }
  .rank-content ul{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }
  .rank-content li {
  font-size: 1rem;
  font-weight: 300;
  list-style: none;
  color: white;
}
.rank-img{
  justify-content: center;
}
  .rank-img img {
    width: 100%;
    max-width: 400px;
  }

  .rank-btn {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* espacio entre niveles */
    align-items: center;
    /* centra horizontalmente */
    padding: 20px 0;
  }

  .medal {
    width: 100%;
    height: 100px;
  }

  .medal h3 {
    margin: 0;
  }

  .rank-content h2 {
    font-size: 3rem;
  }

  .rank-content h4 {
    font-size: 1.8rem;
  }
.rank-info-panel {
  max-width: 100%;
  height: 400px;
}
  .step {
    display: none;
  }
  .agenda{
    padding: 20px;
  }
  .agenda-title h2{
    font-size: 3rem;
  }
  .agenda-container{
      background: #ffffff;
background: linear-gradient(0deg, #ffffff 0%, #ffffff 50%, #ffffff 100%), url(/assets/image/cordillera-bg.png);
  }

  .mapa{
    padding: 20px;
    height: auto;
  }
  .mapa-frame {
    width: 100%;
    height: 100vh;
  }
  .mapa-title{
    padding: 0;
  }
  .mapa-title h2{
  font-size: 3rem;
}
.mapa-title span {
  font-size: 1.5rem;
}
.mapa-title p{
  font-size: 1rem;
}
  .noticia-slide-content {
    padding: 0 10px;
  }

  .noticia-slide-content a {
    font-size: 0.9rem;
    padding: 10px 16px;
  }
  .faqs-main{
    width: 100%;
  }
    .faq-section {
    flex-direction: column-reverse;
    padding: 40px 20px;
  }

  .faq-title img {
    position: static;
    width: 100%;
    display: none;
  }
  footer {
    width: 100%;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background-color: #062735;
    position: relative;
    z-index: 33333;
  }
  .footer-container {
    width: 100%;
    background-color: #00aebe00;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .footer-social {
    width: 100%;
    height: 100px;
    position: relative;
    z-index: 1;
  }
  .footer-social p {
    display: none;
  }
  .social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
  }
  .social-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    margin: 10px;
    border-radius: 10px;
    padding: 5px;
    display: flex;
    align-items: center;
  }
  .footer-contact{
    width: 100%;
        display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

/* -------- RESPONSIVE -------- */
@media (max-width: 1370px){
.principal {
  width: 100%;
  height: 140vh;
  /* En producción, los assets de /public se sirven desde la raíz, por eso la ruta correcta es /assets/... */
  background-image: url(/assets/image/chrismas-bg.png);
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
}
.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;
}
.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;
}

.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: -50px; /* Se sale hacia afuera */
  left: 50%;
  transform: translateX(-50%);
  width: 320px;       /* 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: 50px;
  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: 120vh;
  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: end;
  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;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.589);
}
}
@media (max-width: 1024px) {
  .principal {
  height: 100vh;
}
  .principal-title {
  justify-content: center;
}
.fiestas-title{
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10% 10px;
}
.fiestas-title img{
  display: none;
}
.fiestas-title h2{
  font-size: 4rem;
  text-align: center;
}
  .sorteo-container {
    flex-direction: column;
    align-items: center;
    padding: 5% 5%;
  }

  .sorteo-card {
    width: 90%;
    height: 500px;
    margin-bottom: 120px; /* espacio para la imagen que sobresale */
  }

  .card-container {
    height: 50%;
    padding: 40px 20px;
    justify-content: center;
  }

  .card-img {
    width: 50%;
    bottom: -100px;
  }

  .sorteoButton {
    width: 80%;
    height: 70px;
    font-size: 1.8rem;
    margin-top: 40px;
  }

  /* SECCIÓN PREMIOS */
  .premios {
    flex-direction: column;
    height: auto;
    padding: 40px 0;
  }

  .premios-list {
    width: 90%;
    height: auto;
    padding: 0;
    align-items: center;
  }

  .premios-list ul {
    width: 100%;
    gap: 40px;
    padding: 0;
  }

  .premios-list li {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 3px solid white;
    padding-bottom: 20px;
    text-align: center;
  }

  .sorteo-icon {
    margin-bottom: 10px;
  }

  .list-content {
    align-items: center;
    text-align: center;
  }

  .premios-img {
    width: 80%;
    margin-top: 40px;
    display: flex;
    justify-content: center;
  }

  .premios-img img {
    width: 100%;
  }

  .premiosButton {
    width: 70%;
    height: 50px;
    font-size: 1.2rem;
    margin-top: 30px;
  }
    footer {
    width: 100%;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background-color: #062735;
    position: relative;
    z-index: 33333;
  }
  .footer-container {
    width: 100%;
    background-color: #00aebe00;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .footer-social {
    width: 100%;
    height: 100px;
    position: relative;
    z-index: 1;
  }
  .footer-social p {
    display: none;
  }
  .social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
  }
  .social-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    margin: 10px;
    border-radius: 10px;
    padding: 5px;
    display: flex;
    align-items: center;
  }
  .footer-contact{
    width: 100%;
        display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}
@media (max-width: 790px) {
    .principal {
  height: 100vh;
}
  .principal-title {
  justify-content: center;
}
.principal-title h1 {
  font-size: 4rem;
  font-weight: 700;
  text-align: center;
}
.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);
}

  .sorteo-container {
    flex-direction: column;
    align-items: center;
    padding: 5% 5%;
  }

  .sorteo-card {
    width: 90%;
    height: 500px;
    margin-bottom: 120px; /* espacio para la imagen que sobresale */
  }

  .card-container {
    height: 50%;
    padding: 40px 20px;
    justify-content: center;
  }

  .card-img {
    width: 70%;
    bottom: -100px;
  }

  .sorteoButton {
    width: 80%;
    height: 70px;
    font-size: 1.8rem;
    margin-top: 40px;
  }

  /* SECCIÓN PREMIOS */
  .premios {
    flex-direction: column;
    height: auto;
    padding: 40px 0;
  }

  .premios-list {
    width: 90%;
    height: auto;
    padding: 0;
    align-items: center;
  }

  .premios-list ul {
    width: 100%;
    gap: 40px;
    padding: 0;
  }

  .premios-list li {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 3px solid white;
    padding-bottom: 20px;
    text-align: center;
  }

  .sorteo-icon {
    margin-bottom: 10px;
  }

  .list-content {
    align-items: center;
    text-align: center;
  }

  .premios-img {
    width: 80%;
    margin-top: 40px;
    display: flex;
    justify-content: center;
  }

  .premios-img img {
    width: 100%;
  }

  .premiosButton {
    width: 70%;
    height: 50px;
    font-size: 1.2rem;
    margin-top: 30px;
  }
  footer {
    width: 100%;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background-color: #062735;
    position: relative;
    z-index: 33333;
  }
  .footer-container {
    width: 100%;
    background-color: #00aebe00;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .footer-social {
    width: 100%;
    height: 100px;
    position: relative;
    z-index: 1;
  }
  .footer-social p {
    display: none;
  }
  .social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
  }
  .social-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    margin: 10px;
    border-radius: 10px;
    padding: 5px;
    display: flex;
    align-items: center;
  }
  .footer-contact{
    width: 100%;
        display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 580px) {

  .sorteo-container {
    flex-direction: column;
    align-items: center;
    padding: 5% 5%;
  }

  .sorteo-card {
    width: 90%;
    height: 300px;
    margin-bottom: 120px; /* espacio para la imagen que sobresale */
  }

  .card-container {
    height: auto;
    padding: 40px 20px;
    justify-content: center;
  }

  .card-img {
    width: 70%;
    bottom: -100px;
  }

  .sorteoButton {
    width: 80%;
    height: 70px;
    font-size: 1.8rem;
    margin-top: 40px;
  }

  /* SECCIÓN PREMIOS */
  .premios {
    flex-direction: column;
    height: auto;
    padding: 40px 0;
  }

  .premios-list {
    width: 90%;
    height: auto;
    padding: 0;
    align-items: center;
  }

  .premios-list ul {
    width: 100%;
    gap: 40px;
    padding: 0;
  }

  .premios-list li {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 3px solid white;
    padding-bottom: 20px;
    text-align: center;
  }

  .sorteo-icon {
    margin-bottom: 10px;
  }

  .list-content {
    align-items: center;
    text-align: center;
  }

  .premios-img {
    width: 80%;
    margin-top: 40px;
    display: flex;
    justify-content: center;
  }

  .premios-img img {
    width: 100%;
  }

  .premiosButton {
    width: 70%;
    height: 50px;
    font-size: 1.2rem;
    margin-top: 30px;
  }
}
