/* Estilos generales */
:root {
  --color-primary: #f7941d; /* Naranja/dorado */
  --color-secondary: #1e3799; /* Azul oscuro */
  --color-accent: #f39c12; /* Dorado */
  --color-background: #87ceeb; /* Celeste */
  --color-text: #333333;
  --color-text-light: #ffffff;
  --color-border: #e0e0e0;
  --border-radius: 15px;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Modificar el contenedor principal para asegurar que ocupe todo el ancho disponible */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Fondo cielo */
.sky-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #079197, #45a190, #68a17b, #b0a951, #eda105, #e08a02, #b76e1d);
  z-index: -2; /* Detrás de todo */
  overflow: hidden;
}

/* Contenedor de nubes, ocupa toda la pantalla y está detrás del contenido */
.clouds-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Las nubes no interfieren con clicks */
  z-index: -1;
  overflow: hidden;
}

/* Estilo base de cada nube */
.cloud {
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.6;
}

/* Animación: mueve una nube de izquierda a derecha */
@keyframes moveRight {
  from {
    transform: translateX(-120vw);
  }
  to {
    transform: translateX(120vw);
  }
}

/* Animación: mueve una nube de derecha a izquierda */
@keyframes moveLeft {
  from {
    transform: translateX(120vw);
  }
  to {
    transform: translateX(-120vw);
  }
}

/* Asegurar que el header ocupe todo el ancho */
header {
  background: transparent;
  display: flex;
  align-items: center;
  padding: 12px 40px;
  width: 100%;
  justify-content: center;
}

/* Contenedor interno para controlar alineación */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  
}

.logo img {
  max-height: 300px;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin-left: 120px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Secciones a los lados (íconos sociales / botones) */
.social-icons,
.auth-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Íconos sociales circulares */
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-icon:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
}

/* Botones base reutilizable */
.btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
}

/* Botón de login: contorno */
.btn-login {
  background-color: orange;
  color: black;
  border: 2px solid var(--color-primary);
}

.btn-login:hover {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Botón de registro: sólido */
.btn-register {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-register:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Asegurar que el main ocupe todo el ancho */
main {
  padding: 40px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-title {
  text-align: center;
  color: var(--color-secondary);
  margin-bottom: 40px;
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mejorar la distribución de los paneles de sorteo */
.sorteos-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.sorteo-panel {
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
  margin-bottom: 20px;
}

.sorteo-imagen {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.sorteo-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.sorteo-panel:hover .sorteo-imagen img {
  transform: scale(1.1);
  filter: blur(3px) brightness(0.7);
}

.sorteo-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: white;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sorteo-panel:hover .sorteo-info {
  opacity: 1;
}

.sorteo-info h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.sorteo-info p {
  margin-bottom: 20px;
}

.btn-participar {
  background-color: var(--color-primary);
  color: white;
  padding: 12px 25px;
}

.btn-participar:hover {
  background-color: var(--color-secondary);
}

.sorteo-titulo {
  padding: 15px;
  text-align: center;
  background: linear-gradient(to right, var(--color-primary), var(--color-accent));
  color: white;
}

/* Asegurar que el footer ocupe todo el ancho */
footer {
  background-color: transparent;
  color: white;
  padding: 40px 0 20px;
  margin-top: 60px;
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--color-primary);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--color-primary);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal de verificación de edad */
.modal-edad {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-contenido {
  background-color: white;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
  background: linear-gradient(to right, var(--color-primary), var(--color-accent));
  color: white;
  padding: 20px;
  text-align: center;
}

.logo-modal {
  height: 60px;
  margin-bottom: 10px;
}

.modal-body {
  padding: 30px;
  text-align: center;
}

.modal-body p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.botones-edad {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-secondary);
}

.btn-secondary {
  background-color: #e74c3c;
  color: white;
}

.btn-secondary:hover {
  background-color: #c0392b;
}

/* Estilos para los títulos principales */
.hero-title {
  text-align: center;
  color: white;
  margin: 40px 0;
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: 2px;
}



/* Asegurar que los tabs estén centrados */
.tabs-container {
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.tabs-header {
  display: flex;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  flex-wrap: wrap;
}

.tab-button {
  padding: 15px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  color: #495057;
  flex: 1;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  min-width: 120px;
}

.tab-button:hover {
  background-color: #f1f3f5;
  color: var(--color-primary);
}

.tab-button.active {
  color: var(--color-primary);
  background-color: white;
}

.tab-button.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
}

.tab-content {
  display: none;
  padding: 20px;
}

.tab-content.active {
  display: block;
}

/* Asegurar que los resultados se distribuyan correctamente */
.resultados-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  width: 100%;
}

.resultado-card {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 15px;
  transition: transform 0.3s ease;
  margin-bottom: 10px;
}

.resultado-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.resultado-numero-container {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
}

.resultado-numero {
  font-size: 1.8rem;
  font-weight: bold;
}

.resultado-info {
  flex-grow: 1;
}

.resultado-tipo {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.resultado-fecha,
.resultado-ganador,
.resultado-premio {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 3px;
}

/* Historial en formato de acordeón */
.accordion {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.accordion-header {
  background-color: #f8f9fa;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: #f1f3f5;
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion.active .accordion-content {
  max-height: 500px;
}

/* Tabla de historial mejorada */
.historial-table-container {
  width: 100%;
  overflow-x: auto;
}

.historial-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.historial-table th,
.historial-table td {
  padding: 12px 15px;
  text-align: left;
}

.historial-table th {
  background-color: #f8f9fa;
  font-weight: bold;
  color: #333;
  position: sticky;
  top: 0;
}

.historial-table tr {
  border-bottom: 1px solid #f1f3f5;
}

.historial-table tr:last-child {
  border-bottom: none;
}

.historial-table tr:hover {
  background-color: #f8f9fa;
}

/* Próximos sorteos con diseño de tarjetas */
.proximo-sorteo {
  background: white;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.proximo-sorteo:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.proximo-sorteo h4 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.proximo-sorteo p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.countdown {
  font-weight: bold;
  color: var(--color-primary);
}

/* Ajustar el contenedor de autenticación */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 20px 0;
  width: 100%;
}

.auth-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
}

.auth-header {
  background: linear-gradient(to right, var(--color-primary), var(--color-accent));
  color: white;
  padding: 25px 30px;
  text-align: center;
}

.auth-header h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.auth-header p {
  opacity: 0.9;
  font-size: 1rem;
}

.auth-form {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}

.input-icon input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 1rem;
  transition: all 0.3s;
}

.input-icon input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.2);
  outline: none;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.remember {
  display: flex;
  align-items: center;
}

.remember input {
  margin-right: 8px;
}

.forgot-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn-auth {
  width: 100%;
  padding: 12px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-auth:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.auth-separator {
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.auth-separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 30px;
  right: 30px;
  height: 1px;
  background-color: #ddd;
}

.auth-separator span {
  position: relative;
  background-color: white;
  padding: 0 15px;
  color: #888;
}

.social-auth {
    margin-top: 25px;
   display: flex;
    justify-content: center;
    width: 100%; /* Asegura que social-auth ocupe el ancho disponible si es necesario */
    margin-bottom: 15px; /* Para mantener un espacio similar al que tenía antes el auth-separator */
}


.btn-google {
  width: 100%;
  background-color: white;
  color: #333;
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-google i {
  color: #db4437;
  margin-right: 10px;
  font-size: 1.2rem;
}

.btn-google:hover {
  background-color: #f8f8f8;
  border-color: #ccc;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.auth-footer {
  text-align: center;
  padding: 20px 30px;
  border-top: 1px solid #eee;
  color: #666;
}

.auth-footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 15px;
  border-radius: 5px;
  margin: 0 30px 20px;
  font-size: 0.9rem;
}

/* Badges para tipos de sorteo */
.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-diario {
  background-color: rgba(247, 148, 29, 0.2);
  color: var(--color-primary);
}

.badge-semanal {
  background-color: rgba(64, 192, 87, 0.2);
  color: #40c057;
}

.badge-quincenal {
  background-color: rgba(255, 146, 43, 0.2);
  color: #ff922b;
}

/* Responsive */
@media (max-width: 992px) {
  .sorteos-container {
    flex-direction: column;
  }

  .sorteo-panel {
    margin-bottom: 30px;
    min-width: 100%;
  }

  .tabs-container {
    width: 100%;
  }
}

@media (max-width: 768px) {
  header {
    padding: 12px 20px;
  }

  .header-container {
    flex-direction: column;
    gap: 15px;
  }

  .social-icons,
  .auth-buttons {
    width: 100%;
    justify-content: center;
  }

  .main-title {
    font-size: 2rem;
  }

  .footer-content {
    flex-direction: column;
  }

  .tabs-header {
    flex-direction: column;
  }

  .resultado-card {
    min-width: 100%;
  }

  .historial-table {
    font-size: 0.9rem;
  }

  .historial-table th,
  .historial-table td {
    padding: 8px 10px;
  }

  .auth-card {
    max-width: 100%;
  }

  .remember-forgot {
    flex-direction: column;
    align-items: flex-start;
  }
    .title-container-2
   {
        text-align: center;
        margin-bottom: 30px;
        max-width: 70%; /* Puedes ajustar este porcentaje según necesites */
        height: auto;
        display: flex;
        justify-content: center;
    }
}



@media (max-width: 480px) {

  .title-container-2
   {
        text-align: center;
        margin-bottom: 30px;
        max-width: 70%; /* Puedes ajustar este porcentaje según necesites */
        height: auto;
        display: flex;
        justify-content: center;
    }
  .logo img {
  max-height: 150px;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin-left: 0;
}

  .auth-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-login,
  .btn-register {
    width: 100%;
    text-align: center;
  }

  .resultado-numero-container {
    width: 60px;
    height: 60px;
  }

  .resultado-numero {
    font-size: 1.4rem;
  }
}
