:root {
    --space-black: #050505;
    --orbit-blue: #00d4ff;
    --star-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.08);
    --tag-gray: rgba(255, 255, 255, 0.15);
}

body {
    background-color: var(--space-black);
    color: var(--star-white);
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Navbar */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid #222; position: sticky; top: 0; z-index: 1000;
}

.nav-left { display: flex; align-items: center; gap: 15px; position: relative; }
.logo { font-weight: bold; font-size: 1.1rem; color: var(--star-white); letter-spacing: 1px; white-space: nowrap; }

/* Buscador e Inteligencia */
.search-container { position: relative; }
.search-box {
    display: flex; align-items: center; background: var(--glass);
    border-radius: 20px; padding: 5px 12px; border: 1px solid #333; transition: 0.3s;
}
.search-box:focus-within { border-color: var(--orbit-blue); box-shadow: 0 0 10px rgba(0, 212, 255, 0.2); }
.search-box input {
    background: transparent; border: none; color: white; padding: 5px;
    outline: none; width: 70px; transition: width 0.4s; font-size: 0.9rem;
}
.search-box input:focus { width: 150px; }

.suggestions-list {
    position: absolute; top: 45px; left: 0; width: 100%;
    background: rgba(10, 10, 10, 0.95); border: 1px solid #333;
    border-radius: 10px; display: none; flex-direction: column;
    z-index: 1001; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.suggestion-item { padding: 12px 15px; font-size: 0.9rem; cursor: pointer; border-bottom: 1px solid #222; transition: 0.2s; }
.suggestion-item:hover { background: var(--orbit-blue); color: black; }

/* Menu */
.hamburger { cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.hamburger span { width: 22px; height: 2px; background: var(--star-white); border-radius: 2px; }

.menu-overlay {
    position: fixed; top: 0; right: -100%; width: 75%; height: 100%;
    background: rgba(5, 5, 5, 0.98); backdrop-filter: blur(15px);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: 0.5s; z-index: 999; border-left: 1px solid var(--orbit-blue);
}
.menu-overlay.active { right: 0; }
.menu-overlay a { color: white; text-decoration: none; font-size: 1.5rem; margin: 20px 0; }

/* Hero APOD */
#apod-section {
    height: 65vh; display: flex; flex-direction: column;
    justify-content: flex-end; align-items: center; text-align: center;
    background-size: cover; background-position: center;
}
.apod-content {
    background: linear-gradient(transparent, var(--space-black) 90%);
    width: 100%; padding: 40px 20px; box-sizing: border-box;
}
.apod-badge {
    font-size: 0.65rem; background: var(--orbit-blue); color: black;
    padding: 3px 10px; border-radius: 50px; font-weight: bold;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: inline-block;
}
#apod-title { font-size: 1.4rem; margin: 0; text-shadow: 0 0 10px rgba(0,0,0,0.5); }

/* Secciones y Cards */
.section-container { padding: 30px 20px; }
h2 { font-size: 1.1rem; border-left: 4px solid var(--orbit-blue); padding-left: 10px; margin-bottom: 20px; text-transform: uppercase; }

.card { 
    background: var(--glass); padding: 20px; border-radius: 12px; 
    border: 1px solid #333; margin-bottom: 15px; display: block;
    text-decoration: none; color: white;
}

.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.company-tag { 
    font-size: 0.65rem; background: var(--tag-gray); color: var(--star-white);
    padding: 2px 8px; border-radius: 4px; border: 1px solid #444; font-weight: bold;
}

.btn-map {
    padding: 15px 40px; background: transparent; color: var(--orbit-blue);
    border: 2px solid var(--orbit-blue); font-size: 1rem; font-weight: bold;
    border-radius: 50px; cursor: pointer; width: 100%;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}
/* Footer */
footer {
    background: linear-gradient(to top, #000, var(--space-black));
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 20px;
}

.footer-quote {
    font-style: italic;
    color: var(--orbit-blue);
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-credits {
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-copy {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #444;
}

/* Status Dot Parpadeante */
.status-dot {
    height: 8px;
    width: 8px;
    background-color: #ff9800; /* Naranja */
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    box-shadow: 0 0 8px #ff9800;
    animation: pulse-orange 1.5s infinite;
    vertical-align: middle;
}

@keyframes pulse-orange {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 152, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
}
