
:root {
  --globalWhite: #ffffff;
  --globalBlack: black;
  --primaryColor: #1c7293;
  --secondaryColor: #065a82;
  --bordesTabla: #FFD700;
  --verdeJugada:#00AB1E;
}

body {
  text-align: center;
  color: #333;
  background: var(--globalWhite);
}

#sorteo-mundial{
  padding-right: 2%;
  padding-left: 2%;
}

@media (min-width: 768px) {
  .c-detail__title__h1{
  margin-top: 25px;
  color: var(--globalWhite);
  background: #2d545e;
  }
}



.c-detail__title__h1 {
        

  margin-bottom: 25px;
  font-size: 2rem;
  font-weight: bold;
  color: var(--globalWhite);
  background: #2d545e;
}

.buttons {
  margin-bottom: 15px;
}

.buttonSorteo {
  
  padding: 12px 40px;
  margin: 0 6px;
  border: none;
  background: url("https://imagenes.primicias.ec/uploads/2025/10/27/68ff848d9035b.png") center/cover no-repeat;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.buttonSorteo:hover {
  transform: scale(1.05);
}

/* === Tarjetas de GRUPOS === */
.grupos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* === Tarjetas de GRUPOS estilo moderno === */
.grupo {
  position: relative;
  border-radius: 1.5rem;
  padding: 15px;
  color: black;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  text-align: left;
  max-width: 22rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Glow/borde animado */
.grupo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 4px;
  background: var(--verdeJugada);
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#a6da7c 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: borderGlow 6s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes borderGlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header dentro de cada tarjeta grupo */
.grupo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: url("https://imagenes.primicias.ec/uploads/2025/10/27/68ff84adef6cd.png") center/cover no-repeat;
  padding: 0.8rem 1rem;
  border-radius: 20px 20px 20px 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.grupo-header h2 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #222;
  margin: 0;
        

}

.grupo-header img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}


.grupo-icon {
  width: 30px;   /* ajusta tamaño */
  height: 30px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.grupo-icon:hover {
  transform: rotate(90deg);
  filter: brightness(1.2);
}



/* Contenido del grupo */
.grupo h2 {
        

  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;  /* dorado */
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 2;
  border-bottom: none;
}

.grupo ul {
  list-style: none;
  padding: 10px;
  margin: 0;
  position: relative;
  z-index: 2;

}

.grupo li {
        

  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--globalBlack);
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.grupo li:last-child {
  border-bottom: none;
}

.grupo:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(31, 235, 24, 0.4);
}
/* === RESPONSIVE MOVIL=== */

  @media (min-width: 901px) {

    #sorteo-mundial{
      padding-right: 2%;
      padding-left: 2%;
    padding-top: 2%;

    }

    .partidos-list .info  {
      font-size: 15px;
      color: #000;
      margin-left: 1rem;
      text-align: start;
        

    }

    .textoApertura{
        font-size: 23px;
        padding: 2rem;
    }

    .infoPais{
      text-align: start;
      padding-bottom: 1rem;
        font-size: 18px;
      font-weight: 600;
      
    }

    .modal-header h2 {
      
      font-size: 2rem;
      margin: 0;
      text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
    }




  }


@media (max-width: 900px) {

    .partidos-list .info  {
    font-size: 13px;
        

    color: #000;
    margin-left: 1rem;
    text-align: start;
  }

  .infoPais{
        

  text-align: start;
  padding-bottom: 1rem;
  font-weight: 600;
  font-size: 15px;
}

  .modal-header h2 {
    
    font-size: 1.2rem;
      margin: 0;
      text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  }

    .grupo::before {
      border-radius: 22px 22px 22px 22px;
      pointer-events: none;
    }


      .grupos {
        grid-template-columns: 1fr; /* SOLO 1 columna */
        gap: 12px;
      }

      .grupo {
        max-width: 100%;
      }

      .grupo-header {
          flex-direction: row;
            justify-content: space-between;
            margin: -2.5px -2.5px 2.5px -2px;

        }

        .textoApertura{
        font-size: 18px;
        padding: 1.5rem 0.5rem 1.5rem 0.5rem;
        
      }

     

  }

  .grupo-header h2 {
    font-size: 1.5rem;
    
  }

  .grupo-header img {
    width: 25px !important;
    height: 25px !important;
  }

  .grupo li {
        

    font-size: 0.8rem;
    gap: 6px;
    padding: 5px 0;
  }

/* === Tarjetas de BOMBOS === */
.bombos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 50px;
  margin-bottom: 35px;
}

/* === Bordes animados dorados para TODOS los BOMBOS === */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.bombo {
  --border-width: 3px;
  --border-radius: 12px;
  --borde-clr: #00AB1E;   /* Dorado fijo */
  --glow-offset: -20px;

  position: relative;
  border-radius: var(--border-radius);
  padding: 12px;
  background: white;
  overflow: hidden;
  /* sombra sutil base */
  box-shadow: 0 0 10px 0 #00AB1E;

}


/* Asegurar contenido encima */
.bombo > * {
  position: relative;
  z-index: 2;
}

@keyframes spin {
  from { --angle: 0deg; }
  to   { --angle: 360deg; }
}

/* Header sólido dentro de los bombos */
.bombo-header {
  background: url("https://imagenes.primicias.ec/uploads/2025/10/27/68ff848d9035b.png") center/cover no-repeat;
  padding: 0.8rem 1rem;
  text-align: center;
  border-radius: 8px 8px 0 0;
  position: relative;
  overflow: hidden;
}

/* Capa semitransparente para mejorar legibilidad */


.bombo-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
  
  color: #fff;
  position: relative;
  z-index: 1; /* encima del overlay */
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}



.bombo h2 {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--globalWhite);
  padding-bottom: 5px;
  
}

.bombo ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bombo li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 5px 0px 5px;
  border-bottom: 2px solid var(--verdeJugada);
  font-size: 0.95rem;
  color: var(--globalBlack);
        

}

.bombo li:last-child {
  border-bottom: none;
}

/* === Banderas === */
.bombo img {
   width: 30px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 3px;
  object-fit: cover;
}

.grupos img{
    width: 30px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 3px;
  object-fit: cover;
}



/* === RESPONSIVE MOVIL=== */
@media (max-width: 900px) {

    .modal-auspicio-content {
    padding: 1.5rem;
  }
  .auspicio-header {
    font-size: 1.1rem;
        

  }
  .auspicio-logo {
    width: 120px;
  }


 .grupos {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }


   .bombos {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .flip-inner-grupo {
  min-height: 100px;
}




}

@media (max-width: 680px) {


  h1 {
    font-size: 1.4rem;
    margin-bottom: 15px;
        

  }

  .grupos, .bombos {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .bombo {
    padding: 8px;
  }


  .bombo h2 {
    font-size: 1.2rem;
    
  }
    .grupo h2 {
    font-size: 1rem;
    
  }

  .grupo li, .bombo li {
    font-size: 0.85rem;
    padding: 0 7px 0;
        

  }

  .buttonSorteo {
    width: 100%;
    margin: 5px 0;
    font-size: 1.6rem;
        

    padding: 10px 20px;
  background: url("https://imagenes.primicias.ec/uploads/2025/10/27/68ff84303dfd9.png") center/cover no-repeat;

  }


}

/* Flip Cards */
.flip-card {
  perspective: 1000px;
  cursor: pointer;
}

.flip-card.ecuador .flip-front {
  font-weight: 900;
  border-radius: 6px;
  text-shadow: 0 0 1px rgb(0 0 0);
}



.flip-inner {
  position: relative;
  width: 100%;
  height: 40px;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-front, .flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  border-radius: 4px;
  font-weight: 600;
  line-height: 1.1;
  font-size: 1rem;
  text-align: left;
  
}

.flip-front img {
  margin-right: 6px;
}

.flip-back {
        

  background: #D7EDD1;
  color: black;
  transform: rotateY(180deg);
  font-size: 0.9rem;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
}




/* HOLAAAAA */

/* === MODAL DE PARTIDOS === */
.modal-partidos {
  position: fixed !important;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999 !important;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #fff;
  border-radius: 1rem;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 10px 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  border: 3px solid var(--verdeJugada);
  animation: zoomIn 0.25s ease;
}


.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: url("https://imagenes.primicias.ec/uploads/2025/10/27/68ff845a04943.png") center/cover no-repeat;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}




.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
        

}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.partidos-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.partidos-list li {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #aedfac;
  padding: 0.6rem 0.8rem;
  font-size: 12px;
        

}

.partidos-list .num {
  font-weight: bold;
  color: var(--verdeJugada);
  font-size: 1.8rem;
  margin-right: 8px;
  width: 50px;
  text-align: start;
        

}




.partidos-list .ciudad {
  font-size: 0.8rem;
  color: #555;
  text-align: right;
  min-width: 100px;
        

}


/* banner verde */

.banner {
  position: relative;
  width: 100%;
  height: 200px; /* puedes ajustar: 250px, 350px, etc. */
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  background: url("https://imagenes.primicias.ec/uploads/2025/10/27/68ff846bd894e.png") center center / cover no-repeat;
  overflow: hidden;
  
}




/* === MODAL AUSPICIO === */
.modal-auspicio {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  animation: fadeIn 0.3s ease;
}

.modal-auspicio-content {
  background: #ffffff;
  border-radius: 1rem;
  text-align: center;
  padding: 2rem;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  border: 3px solid #d4af37;
  animation: zoomIn 0.25s ease;
}

.auspicio-header {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--verdeJugada);
  margin-bottom: 1rem;
        

}

.auspicio-logo {
  max-width: 60%;
  margin-bottom: 1rem;
}

/* Spinner */
.spinner {
  border: 5px solid #eee;
  border-top: 5px solid #d4af37;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0.5rem auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.countdown {
        

  font-size: 1.8rem;
  font-weight: bold;
  color: #d4af37;
  margin-top: 0.5rem;
}




#vista-descarga ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#vista-descarga li::marker {
  content: none;
}
#vista-descarga {
  background: white !important;
  font-family: "Arial", sans-serif;
}





