* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 50%, #2d1b69 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #64ffda;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Navigation Menu */
.nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.nav-menu.active {
    right: 0;
}

.nav-menu li {
    list-style: none;
    margin: 1rem 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #64ffda;
}

/* Additional mobile-specific styles */
.alerta-baja {
    color: #4ade80;
    font-weight: 500;
}

.alerta-media {
    color: #fbbf24;
    font-weight: 500;
}

.alerta-alta {
    color: #f87171;
    font-weight: 500;
}

/* Mobile navigation improvements */
.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu ul li:last-child {
    border-bottom: none;
}

/* Touch-friendly improvements */
.cta-button, .card, .hamburger {
    -webkit-tap-highlight-color: rgba(100, 255, 218, 0.3);
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #64ffda;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #ffffff;
    }
    
    .hamburger span {
        background: #ffffff;
    }
}

/* Main Content */
.main-content {
    margin-top: 70px;
    padding: 2rem 1rem;
}

.hero-section {
    text-align: center;
    padding: 3rem 0;
    background: radial-gradient(circle at center, rgba(100, 255, 218, 0.1) 0%, transparent 50%);
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #64ffda, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(45deg, #64ffda, #4fc3f7);
    color: #0f0f23;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Content Sections */
.content-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #64ffda;
}

.section-content {
    line-height: 1.6;
    opacity: 0.9;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: #64ffda;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background: rgba(15, 15, 35, 0.8);
    margin-top: 3rem;
}

/* Simple and elegant Known Meteorites background for mobile */
#conocidos {
  background: 
    linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%),
    radial-gradient(circle at center, rgba(100, 255, 218, 0.04) 0%, transparent 60%);
  position: relative;
  border-top: 1px solid rgba(100, 255, 218, 0.1);
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

#conocidos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(1px 1px at 30px 30px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 80px 80px, rgba(255, 255, 255, 0.15), transparent);
  background-size: 120px 120px, 160px 160px;
  opacity: 0.5;
  pointer-events: none;
}

/* Ensure content stays above background */
#conocidos > * {
  position: relative;
  z-index: 2;
}

/* Responsive Design */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        position: static;
        flex-direction: row;
        height: auto;
        background: none;
        padding: 0;
        width: auto;
        right: 0;
    }
    
    .nav-menu li {
        margin: 0 1rem;
    }
    
    .nav-menu a {
        border-bottom: none;
        padding: 0.5rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (min-width: 1024px) {
    .main-content {
        max-width: 1200px;
        margin: 70px auto 0;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}
