/* ====================================
   ASTROWEATHER - STYLES RESTRUCTURED
   Estructura nueva siguiendo especificaciones
   ==================================== */

/* ============= VARIABLES CSS ============= */
:root {
    /* Colores principales */
    --primary-color: #1a237e;
    --secondary-color: #3f51b5;
    --accent-color: #00bcd4;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --info-color: #2196f3;
    
    /* Colores de fondo */
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-tertiary: #2c3456;
    --bg-light: #f8f9fa;
    --bg-dark: #1e1e1e;
    
    /* Colores de texto */
    --text-primary: #ffffff;
    --text-secondary: #b0bec5;
    --text-muted: #78909c;
    --text-dark: #263238;
    
    /* Fuentes */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-base: 16px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 3rem;
    
    /* Bordes y sombras */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --box-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}
html, body {
  overflow-x: hidden;
}
/* ============= ESTILOS GLOBALES ============= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
}

.container-fluid {
    max-width: 1400px;
}

/* ============= HEADER STYLES ============= */
.navbar-glass {
  background: rgba(10, 12, 20, 0.35);
  backdrop-filter: blur(6px);
}
.navbar-brand {
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.brand-text {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);

    
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ============= MAIN CONTENT ============= */
#main-content {
   
    min-height: calc(100vh - 80px);
}

/* =========================================================
   HERO (con imagen original y superposición)
========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  background: url("../assets/img/bg.png") center/cover no-repeat fixed;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
/* Degradado para mejorar contraste del texto sobre la imagen */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(rgba(0,0,0,.05), rgba(0,0,0,.55));
}
.hero .container { position: relative; z-index: 1; }
.hero-title {
  font-weight: 800; letter-spacing: .04em;
  text-shadow: 0 6px 24px rgba(0,0,0,.55);
}
.hero-sub { opacity: .95; }

/* Estrellas decorativas (no interferirán con lectores) */
.star {
  position: absolute; width: 2px; height: 2px; background: #fff;
  border-radius: 50%; opacity: .8;
  animation: twinkle 2.4s infinite ease-in-out;
}
@keyframes twinkle {
  0%,100% { opacity:.2; transform: scale(.8); }
  50%     { opacity:1;  transform: scale(1.2); }
}

/* Botón primario, respetando el color original */
.btn-astro {
  --bs-btn-bg: var(--accent-color);
  --bs-btn-border-color: var(--accent-color);
  --bs-btn-hover-bg: #0284c7;
  --bs-btn-hover-border-color: #0284c7;
  color: #fff;
  font-weight: 600;
  
}


/* ============= DASHBOARD SECTION ============= */
.dashboard-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.datetime-display {
    text-align: right;
}

.current-time {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
}

.current-date {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

/* ============= PANEL STYLES ============= */
.weather-data-panel,
.map-panel,
.sports-panel,
.nasa-panel {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.weather-data-panel:hover,
.map-panel:hover,
.sports-panel:hover,
.nasa-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: rgba(255, 255, 255, 0.2);
}

.panel-title {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
}

.panel-title i {
    color: var(--accent-color);
}

/* ============= WEATHER DATA GRID ============= */
.location-input-group {
    display: flex;
    gap: var(--spacing-sm);
}

.location-input-group .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    border-radius: var(--border-radius);
}

.location-input-group .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.25);
}

.location-input-group .form-control::placeholder {
    color: var(--text-muted);
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.weather-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.weather-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.weather-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    border-radius: 50%;
    margin-right: var(--spacing-md);
}

.weather-icon i {
    color: white;
    font-size: 1.2rem;
}

.weather-info {
    display: flex;
    flex-direction: column;
}

.weather-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
}

.weather-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
}

/* ============= INTERACTIVE MAP ============= */
.interactive-map {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.map-controls {
    text-align: center;
}

/* ============= SPORTS PANEL ============= */
.sports-form .form-label {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-sm);
}

.sports-form .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    border-radius: var(--border-radius);
}

.sports-form .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
}

.sports-form .form-select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.sports-results {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sport-score {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--success-color) 0deg, var(--success-color) 270deg, rgba(255, 255, 255, 0.2) 270deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-lg);
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: 50%;
    z-index: -1;
}

.score-circle span {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.score-circle small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.score-details h5 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.score-details p {
    color: var(--text-secondary);
    margin: 0;
}

.sport-tips h6 {
    color: var(--accent-color);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
}

.sport-tips ul {
    list-style: none;
    padding: 0;
}

.sport-tips li {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    padding-left: var(--spacing-lg);
    position: relative;
}

.sport-tips li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ============= NASA CHART PANEL ============= */
.chart-container {
    position: relative;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
}

.chart-controls {
    display: flex;
    gap: var(--spacing-sm);
}

/* ============= PRECISION WARNING ============= */
.precision-warning {
    margin-top: var(--spacing-xl);
}

.precision-warning .alert {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: var(--text-primary);
    border-radius: var(--border-radius);
}

/* ============= ABOUT SECTION ============= */
.about-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
}

.section-title i {
    color: var(--accent-color);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: var(--success-color);
    margin-right: var(--spacing-sm);
}

.data-sources {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.source-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.source-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-top: var(--spacing-xs);
}

.source-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.source-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.team-badges {
    margin-top: var(--spacing-lg);
}

.team-badges .badge {
    font-size: 0.9rem;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
}

/* ============= FOOTER ============= */
.astro-footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.astro-footer i {
    color: var(--accent-color);
}

.astro-footer p,
.astro-footer small {
    color: var(--text-secondary) !important;
    margin-bottom: 0;
}

.astro-footer strong {
    color: var(--text-primary) !important;
}

/* ============= LOADING OVERLAY ============= */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.loading-content {
    text-align: center;
    color: var(--text-primary);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============= BUTTON STYLES ============= */
.btn {
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-sm) var(--spacing-lg);
    transition: var(--transition-fast);
    /* border: none; */
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-success {
    background: linear-gradient(45deg, var(--success-color), #66bb6a);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-outline-primary,
.btn-outline-success {
    border: 2px solid;
    background: transparent;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline-success {
    border-color: var(--success-color);
    color: var(--success-color);
}

.btn-outline-success:hover {
    background: var(--success-color);
    color: white;
}

.container-equipo{
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    
}



.container-equipo-texto{
    display: flex;
    justify-content: center;
    align-items: left;
    flex-direction:column;
    width: 400px;
    font-weight: 400;
}
.container-equipo-imagen{
    display:flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.container-equipo-imagen img{

}

/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 460px) {
.container-equipo-imagen img{
    height: 200px;
}
    .container-equipo-texto{
        width: 300px;
    }
}


/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 768px) {
.container-equipo-imagen img{
    max-height: 600px;
}
    .container-equipo-texto{
    align-items: center;
}

    .container-equipo{
        padding-left: 3rem;
        padding-right: 3rem;
    }


    .container-equipo-texto{
        width: 450px;
}

    .dashboard-title {
        font-size: 2rem;
    }
    
    .current-time {
        font-size: 1.5rem;
    }
    
    .datetime-display {
        text-align: center;
        margin-top: var(--spacing-md);
    }
    
    .weather-grid {
        grid-template-columns: 1fr;
    }
    
    .interactive-map {
        height: 300px;
    }
    
    .sport-score {
        flex-direction: column;
        text-align: center;
    }
    
    .score-circle {
        margin-right: 0;
        margin-bottom: var(--spacing-md);
    }
    
    .data-sources .source-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .dashboard-header {
        padding: var(--spacing-md);
    }
    
    .weather-data-panel,
    .map-panel,
    .sports-panel,
    .nasa-panel {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .team-badges .badge {
        display: block;
        margin-bottom: var(--spacing-sm);
    }
}

/* ============= ANIMATIONS ============= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============= CUSTOM SCROLLBAR ============= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00acc1;
}
#just{
    text-align: justify;
}

/** ESTILOS GOOGLE TRANSLATE **/
#google_translate_element{
    background-color: transparent;
}
.card {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #313855;
  color: #fff;
  padding: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  margin-bottom: 10px;
}

.card:hover {
  background-color: #2b3b63;
  transform: scale(1.02);
}

.icon {
  font-size: 1.6em;
}

.content{
    text-align: center;
}
h3 {
  margin: 0;
  font-size: 1.1em;
}

p {
  margin: 2px 0 0;
  font-size: 0.9em;
  color: #cfd8ff;
}
#foto{
    color: #c3c4cb;
}

.nasa-panel .panel-title {
  font-weight: 600;
  font-size: 1.2rem;
  color: #82cfff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.nasa-panel .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    border-radius: var(--border-radius);
}

.nasa-panel  .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
}

.nasa-panel  .form-select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.nasa-panel .chart-container {
  background: #10131a;
  border-radius: 12px;
  padding: 15px;
  box-shadow: inset 0 0 8px rgba(130, 207, 255, 0.2);
}

.chart-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9; /* Mantiene proporción */
  background: #10131a;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: inset 0 0 8px rgba(130, 207, 255, 0.2);
  margin-bottom: 1rem;
}

/* Mejora visual en pantallas pequeñas */
@media (max-width: 768px) {
  .chart-container {
    aspect-ratio: 4 / 3;
    padding: 0.5rem;
  }
}

.panel-title{
     color: #82cfff;
}

.form-map div:nth-child(1){
    
}

.form-map{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.input-container{
    display: flex;
   align-items: center;
}




.fecha-input{
    
    display: block;
    
}


.btn-form{
    height: 37.6px;
    width: 100%;
    
}

.exportbtn{
    color: white;
    font-weight: 700;
}
.skiptranslate > iframe{
 height: 0px;
}