/* ========================================================= */
/* TOKENS DE ESTILO Y VARIABLES (MANTENIDAS Y AMPLIADAS) */
/* ========================================================= */
:root {
    --bg-dark: #0d1117;
    --card-bg: #161b22;
    --border-color: #30363d;
    --text-light: #e6edf3;
    --accent-main: #ffc300; 
    --accent-live: #58a6ff; 
    --accent-gallery: #7ee787; 
    --accent-gear: #c993ff; 
    --accent-about: #ff7b72; 
    --accent-weather: #00bcd4;
    --glass-bg: rgba(22, 27, 34, 0.8);
}                

body {	    
    overflow-x: hidden;
    font-family: 'Inter', 'Arial', sans-serif;
    background-color: var(--bg-dark); 
    color: var(--text-light); 
    margin: 0;
    padding: 0; 
    background-image: radial-gradient(circle at 50% -20%, #1f2735 0%, #0d1117 80%);
}        

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px; 
}        

/* ========================================================= */
/* HERO SECTION - REDISEÑO CREATIVO */
/* ========================================================= */        
.hero-section {
    text-align: center;
    padding: 80px 20px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: var(--accent-main);
    filter: blur(150px);
    opacity: 0.15;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-logo {
    max-height: 80px;
    margin-bottom: 25px; 
    filter: drop-shadow(0 0 10px rgba(255, 195, 0, 0.3));
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, #fff 0%, var(--accent-main) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 auto;
    max-width: 900px;
    line-height: 1.1;
    font-weight: 800;
}

.hero-description {
    color: #8b949e; 
    font-size: 1.25em;
    max-width: 700px;
    margin: 25px auto 0;
    line-height: 1.6;
}

/* ========================================================= */
/* DASHBOARD - GRID DINÁMICO */
/* ========================================================= */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 60px 0 30px;
}

.section-header h2 {
    margin: 0;
    border: none;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
}

.section-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Tarjeta Destacada (Live Data) */
.feature-hero {
    grid-column: 1 / -1;
    background: linear-gradient(110deg, #161b22 0%, #1c2128 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.feature-hero:hover {
    border-color: var(--accent-main);
    transform: translateY(-5px);
}

.feature-hero-content { z-index: 2; max-width: 60%; }
.feature-hero-content h3 { color: var(--accent-main); font-size: 2rem; margin: 0 0 10px; }
.feature-hero-content p { color: #8b949e; font-size: 1.1rem; }

.cta-button {
    background: var(--accent-main);
    color: var(--bg-dark);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(255, 195, 0, 0.3);
}

/* Tarjetas Secundarias Estilo Moderno */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    background: #1c2128;
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-8px);
}

.glass-card i { font-size: 1.5rem; margin-bottom: 5px; }
.glass-card h3 { margin: 0; font-size: 1.2rem; }
.glass-card p { color: #8b949e; margin: 0; font-size: 0.95rem; line-height: 1.5; }

.card-footer-link {
    margin-top: auto;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
}

/* Colores de acento para tarjetas */
.c-gallery { border-top: 4px solid var(--accent-gallery); }
.c-wiki { border-top: 4px solid var(--accent-gear); }
.c-gear { border-top: 4px solid var(--accent-live); }
.c-about { border-top: 4px solid var(--accent-about); }

/* ========================================================= */
/* MENÚ, NAVEGACIÓN Y FOOTER (MANTENIDOS SEGÚN INSTRUCCIÓN) */
/* ========================================================= */
#nav-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    border-bottom: 2px solid var(--card-bg); 
    margin-bottom: 30px;
}
.nav-link-btn {
    background: transparent;
    border: none;
    padding: 15px 25px; 
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.2em;
    transition: color 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px; 
    border-bottom: 3px solid transparent; 
    font-weight: normal;
}


/* ========================================================= */
/* RASTREADOR Y CLIMA (LÓGICA E INTERFAZ PROTEGIDA) */
/* ========================================================= */
.tracker-card, .weather-card {
	background-color: var(--card-bg); 
	padding: 20px; 
	border-radius: 12px;
	border: 1px solid var(--border-color);
    width: 100%; 
    box-sizing: border-box; 
}
.tracker-card { border-left: 5px solid var(--accent-live); }
.weather-card { border-left: 5px solid var(--accent-weather); }
#tracker-and-weather-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
@media (min-width: 768px) { #tracker-and-weather-grid { grid-template-columns: repeat(2, 1fr); } }

#tracker-content-horizontal { display: flex; flex-direction: column; gap: 10px; }
#tracker-info-column { width: 100%; display: flex; flex-direction: column; gap: 10px; }
#tracker-map-column { width: 100%; }
@media (min-width: 768px) {
    #tracker-content-horizontal { flex-direction: row; justify-content: space-between; align-items: flex-start; }
    #tracker-info-column { width: 40%; }
    #tracker-map-column { width: 55%; }
    #sky-map { margin: 0; max-width: 100%; }
}

#sky-map {
    position: relative; width: 100%; max-width: 300px; aspect-ratio: 1 / 1; margin: auto;
    border: 2px solid var(--border-color); border-radius: 50%; overflow: hidden;
    background-image: linear-gradient(180deg, #1f2735 0%, var(--bg-dark) 100%);
}
#sun-bubble {
    position: absolute; width: 35px; height: 35px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, var(--accent-main)); 
    box-shadow: 0 0 10px 3px var(--accent-main), 0 0 30px 8px rgba(255, 195, 0, 0.7); 
    transition: all 0.5s ease-out; cursor: pointer; z-index: 10;
}
#moon-bubble {
    position: absolute; width: 25px; height: 25px; border-radius: 50%;
    background: radial-gradient(circle at 70% 30%, var(--text-light), #707070);
    box-shadow: 0 0 6px 2px var(--text-light); transition: all 0.5s ease-out; cursor: pointer; z-index: 10;
}
.azimuth-label { position: absolute; color: #909090; font-size: 0.65rem; font-weight: 600; white-space: nowrap; }
.alt-line { position: absolute; border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: 50%; box-sizing: border-box; pointer-events: none; }
#horizon { position: absolute; bottom: 0; left: 0; width: 100%; height: 50%; background-color: rgba(0, 0, 0, 0.5); border-top: 2px solid rgba(255, 255, 255, 0.5); }

#tracker-data-compact-list, #weather-data-compact-list { display: flex; flex-direction: column; gap: 8px; }
.tracker-data-box, .weather-data-box {
    background-color: var(--card-bg); border: 1px solid var(--border-color);
    padding: 8px 12px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center;
}
.tracker-data-box .box-title, .weather-data-box .box-title { font-size: 0.9em; font-weight: 600; color: #8b949e; display: flex; align-items: center; gap: 8px; }
.tracker-data-box span:not(.box-title), .weather-data-box span:not(.box-title) { font-weight: 700; font-family: monospace; font-size: 0.9em; }
.location-button {
	background-color: transparent; color: var(--accent-live); border: 2px solid var(--accent-live); 
	font-weight: 700; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px;
    width: 100%; padding: 8px 14px; border-radius: 8px; font-size: 0.9em; cursor: pointer;
}
.location-button:hover { background-color: var(--accent-live); color: var(--bg-dark); box-shadow: 0 0 20px rgba(88, 166, 255, 0.8); }

footer {
    margin-top: 60px; padding: 40px 0; border-top: 1px solid var(--border-color);
    font-size: 0.9em; color: #6a737d; text-align: center; display: flex;
    justify-content: center; align-items: center; gap: 20px;
}

