/* =============================================================================
   ESTILOS FIESTAS PATRIAS 2025 - GEOSATELITAL
   ============================================================================= */

/* Corazón con colores de la bandera peruana para Blog */
.heart-icon {
  position: relative;
  margin-left: 3px;
  animation: heartbeat 1.2s infinite;
  display: inline-block;
  font-size: 16px;
  background: linear-gradient(to right, 
    #dc2626 0%, #dc2626 35%, 
    #ffffff 35%, #ffffff 65%, 
    #dc2626 65%, #dc2626 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 0 3px rgba(220, 38, 38, 0.4))
          drop-shadow(0 0 6px rgba(220, 38, 38, 0.2));
}

.heart-icon::before {
  content: "❤️";
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(to right, 
    #dc2626 0%, #dc2626 35%, 
    #ffffff 35%, #ffffff 65%, 
    #dc2626 65%, #dc2626 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 1;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 3px rgba(220, 38, 38, 0.4))
            drop-shadow(0 0 6px rgba(220, 38, 38, 0.2));
  }
  14% {
    transform: scale(1.3);
    filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.6))
            drop-shadow(0 0 10px rgba(220, 38, 38, 0.3));
  }
  28% {
    transform: scale(1);
    filter: drop-shadow(0 0 3px rgba(220, 38, 38, 0.4))
            drop-shadow(0 0 6px rgba(220, 38, 38, 0.2));
  }
  42% {
    transform: scale(1.3);
    filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.6))
            drop-shadow(0 0 10px rgba(220, 38, 38, 0.3));
  }
  70% {
    transform: scale(1);
    filter: drop-shadow(0 0 3px rgba(220, 38, 38, 0.4))
            drop-shadow(0 0 6px rgba(220, 38, 38, 0.2));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 3px rgba(220, 38, 38, 0.4))
            drop-shadow(0 0 6px rgba(220, 38, 38, 0.2));
  }
}

/* Estilos para el popup secundario de términos y condiciones */
.popup-secundario-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

.popup-secundario-content {
  background: white;
  border-radius: 15px;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: popupSecundarioSlideIn 0.3s ease-out;
}

@keyframes popupSecundarioSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popup-secundario-header {
  background: #1e3a8a;
  color: white;
  padding: 25px 30px;
  border-radius: 15px 15px 0 0;
  position: relative;
  overflow: hidden;
}

.popup-secundario-header h2 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: bold;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.popup-secundario-header h2 .geopatrias-animado {
  display: inline-block;
  animation: textoGeopatriasPulso 2s ease-in-out infinite;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.5),
    0 0 10px #dc2626,
    0 0 20px #dc2626;
}

.popup-secundario-header h2 .geosatelital-celeste {
  background: transparent !important;
  background-color: transparent !important;
  color: white !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  display: inline !important;
  margin: 0 !important;
  text-shadow: 
    0 0 15px #38bdf8 !important,
    0 0 25px #0ea5e9 !important,
    0 0 35px #0284c7 !important,
    2px 2px 4px rgba(0, 0, 0, 0.5) !important;
  box-shadow: none !important;
}

@keyframes textoGeopatriasPulso {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.close-popup-secundario {
  position: absolute;
  top: 10px;
  right: 15px;
  background: #1e3a8a;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
  z-index: 3;
}

.close-popup-secundario:hover {
  background: #1e40af;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.6);
}

.popup-secundario-body {
  padding: 20px 30px 30px 30px;
  line-height: 1.6;
  color: #374151;
  font-size: 1.17em;
}

.popup-secundario-body h1.prize-highlight-secundario {
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  padding: 20px;
  border-radius: 12px;
  margin: 0 0 20px 0;
  border-left: 5px solid #f59e0b;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
  font-size: 1.5rem;
  text-align: center !important;
}

.popup-secundario-body h1.prize-highlight-secundario strong {
  color: #92400e;
}

.popup-secundario-body h2 {
  color: #1e3a8a;
  margin: 20px 0 10px 0;
  font-size: 1.5em;
  font-weight: bold;
  text-align: left !important;
}

.popup-secundario-body h2:first-of-type {
  margin-top: 0;
}

.popup-secundario-body p {
  margin: 10px 0;
  text-align: justify;
  font-size: 1.17em;
}

.popup-secundario-body ul {
  margin: 10px 0;
  padding-left: 30px;
  list-style-type: disc !important;
}

.popup-secundario-body li {
  margin: 8px 0;
  line-height: 1.6;
  display: list-item !important;
  list-style-type: disc !important;
  font-size: 1.17em !important;
}

.popup-secundario-footer {
  background: #f9fafb;
  padding: 25px 30px;
  border-radius: 0 0 15px 15px;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

.accept-terms-secundario-btn {
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.accept-terms-secundario-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

/* Ícono de contrato escrito brillante celeste en el slide del sorteo */
.sorteo-slide {
  cursor: pointer;
  position: relative;
}

.sorteo-slide::after {
  content: "\f15c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  bottom: 30px !important;
  right: 30px !important;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9) !important;
  color: #ffffff !important;
  width: 70px !important;
  height: 70px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 2.5rem !important;
  font-style: normal !important;
  box-shadow: 
    0 6px 20px rgba(56, 189, 248, 0.5) !important,
    0 0 30px rgba(56, 189, 248, 0.4) !important,
    inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
  animation: brilloContratoEscrito 2s ease-in-out infinite !important;
  z-index: 50 !important;
  border: 3px solid rgba(255, 255, 255, 0.4) !important;
  filter: brightness(1.3) !important;
}

@keyframes brilloContratoEscrito {
  0%, 100% {
    transform: scale(1) !important;
    box-shadow: 
      0 6px 20px rgba(56, 189, 248, 0.5) !important,
      0 0 30px rgba(56, 189, 248, 0.4) !important,
      inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
  }
  50% {
    transform: scale(1.15) !important;
    box-shadow: 
      0 8px 25px rgba(56, 189, 248, 0.7) !important,
      0 0 40px rgba(56, 189, 248, 0.6) !important,
      0 0 50px rgba(14, 165, 233, 0.4) !important,
      inset 0 2px 0 rgba(255, 255, 255, 0.5) !important;
  }
}

/* Efecto de brillo adicional */
.sorteo-slide::before {
  content: "" !important;
  position: absolute !important;
  bottom: 30px !important;
  right: 30px !important;
  width: 70px !important;
  height: 70px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, transparent 70%) !important;
  animation: resplandorContratoEscrito 3s ease-in-out infinite !important;
  z-index: 49 !important;
}

@keyframes resplandorContratoEscrito {
  0%, 100% {
    opacity: 0.6 !important;
    transform: scale(1) !important;
  }
  50% {
    opacity: 1 !important;
    transform: scale(1.8) !important;
  }
}

/* Responsive para el popup secundario */
@media (max-width: 768px) {
  .popup-secundario-content {
    margin: 10px;
    max-height: 85vh;
  }
  
  .popup-secundario-header {
    padding: 20px;
  }
  
  .popup-secundario-header h2 {
    font-size: 2.2rem;
  }
  
  .popup-secundario-body {
    padding: 15px 20px 20px 20px;
    font-size: 1.17em;
  }
  
  .popup-secundario-body h1.prize-highlight-secundario {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
  }
  
  .popup-secundario-body h2 {
    font-size: 1.5em;
  }
  
  .popup-secundario-body p {
    font-size: 1.17em;
  }
  
  .popup-secundario-body li {
    font-size: 1.17em !important;
  }
  
  .popup-secundario-footer {
    padding: 20px;
  }
  
  .close-popup-secundario {
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }
  
  .accept-terms-secundario-btn {
    padding: 12px 25px;
    font-size: 1.3rem;
  }

  /* Ícono de contrato escrito grande en móvil también */
  .sorteo-slide::after {
    bottom: 20px !important;
    right: 20px !important;
    width: 60px !important;
    height: 60px !important;
    font-size: 2rem !important;
  }

  .sorteo-slide::before {
    bottom: 20px !important;
    right: 20px !important;
    width: 60px !important;
    height: 60px !important;
  }
}