/* === NOTICIAS.CSS  === */

body {
  background-color: #000; 
  color: #fff;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

/* === Header y navegación === */
.site-header {
  background-color: #000;
  border-bottom: 1px solid #111;
}

/* === Sección principal === */
.hero-section {
  background: linear-gradient(180deg, 
    rgba(5, 8, 15, 0.98) 0%,
    rgba(10, 16, 32, 0.95) 50%,
    rgba(5, 8, 15, 0.98) 100%
  );
  color: #fff;
  text-align: center;
  padding: 3rem 1rem 2rem;
  position: relative;
  z-index: 1 !important;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(30, 144, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(100, 255, 218, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

/* Título */
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e90ff 0%, #64ffda 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(30, 144, 255, 0.2);
}

/* Subtítulo */
.lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
  letter-spacing: 0.3px;
}

/* === Contenedor de noticia del día === */
#noticia-dia {
  background: linear-gradient(135deg, 
    rgba(30, 144, 255, 0.05) 0%,
    rgba(10, 10, 15, 0.6) 100%
  );
  border: 1px solid rgba(30, 144, 255, 0.2);
  border-radius: 15px;
  max-width: 980px;
  width: calc(100% - 2rem);
  margin: 0 auto 2rem;
  padding: 1.5rem;
  box-shadow: 
    0 4px 20px rgba(30, 144, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  min-height: auto;
  display: block;
  transition: all 0.3s ease;
}

#noticia-dia:hover {
  border-color: rgba(30, 144, 255, 0.35);
  box-shadow: 
    0 6px 25px rgba(30, 144, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Grid de imágenes NASA: columnas con ancho máximo fijo para evitar espacios enormes cuando hay pocas tarjetas */
.nasa-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  align-items: start;
}

.nasa-image-card {
  background: linear-gradient(135deg, 
    rgba(30, 144, 255, 0.04) 0%,
    rgba(10, 10, 15, 0.5) 100%
  );
  border: 1px solid rgba(30, 144, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.nasa-image-card:hover {
  transform: translateY(-5px);
  border-color: rgba(30, 144, 255, 0.3);
  box-shadow: 
    0 8px 25px rgba(30, 144, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.image-container {
  width: 100%;
  height: 130px; /* más compacto */
  overflow: hidden;
}

.nasa-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nasa-image-card:hover img {
  transform: scale(1.05);
}

.image-info {
  padding: 1.2rem;
}

.image-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, #1e90ff 0%, #64ffda 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.image-info h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.image-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* === Noticias adicionales === */
#news-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  display: grid;
  gap: 1.5rem;
  background: none;
}

/* cards de noticia */
.news-card {
  background: linear-gradient(135deg, 
    rgba(30, 144, 255, 0.04) 0%,
    rgba(10, 10, 15, 0.5) 100%
  );
  border: 1px solid rgba(30, 144, 255, 0.15);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 2px 10px rgba(30, 144, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 144, 255, 0.35);
  box-shadow: 
    0 6px 25px rgba(30, 144, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.news-card img {
  width: 130px;
  height: 85px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.news-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-title {
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, #1e90ff 0%, #64ffda 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  font-size: 1.05rem;
}

.news-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.news-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.5;
}

.news-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, #1e90ff 0%, #64ffda 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.news-card a {
  color: #64ffda;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.2rem 0;
}

.news-card a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #1e90ff, #64ffda);
  transition: width 0.3s ease;
}

.news-card a:hover {
  color: #1e90ff;
}

.news-card a:hover::after {
  width: 100%;
}

/* Botón de recarga */
.reload-button {
  background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%);
  color: white;
  border: 1px solid rgba(30, 144, 255, 0.3);
  border-radius: 25px;
  padding: 0.7rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 15px rgba(30, 144, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.reload-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.reload-button:hover {
  background: linear-gradient(135deg, #0066cc 0%, #1e90ff 100%);
  border-color: rgba(30, 144, 255, 0.5);
  box-shadow: 
    0 6px 20px rgba(30, 144, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.reload-button:hover::before {
  width: 300px;
  height: 300px;
}

.reload-button:active {
  transform: translateY(0) scale(0.98);
}