/* Cobertura en Vivo - Styles */

/* Hero */
.cobertura-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #1a365d 100%);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cobertura-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="50" opacity="0.03">❄️</text></svg>') repeat;
    background-size: 80px;
    animation: snowfall 20s linear infinite;
}
@keyframes snowfall { 0% { background-position: 0 0; } 100% { background-position: 100px 100px; } }
.cobertura-hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.cobertura-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(220, 38, 38, 0.9); color: white;
    padding: 8px 20px; border-radius: 25px;
    font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 20px; animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); } 50% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); } }
.cobertura-badge .live-dot { width: 10px; height: 10px; background: white; border-radius: 50%; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.cobertura-title { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: white; margin: 0 0 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.cobertura-subtitle { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin: 0; }
.cobertura-update { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-top: 15px; }
.quick-actions { display: flex; gap: 12px; justify-content: center; margin-top: 25px; flex-wrap: wrap; }
.quick-action-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 25px; font-weight: 700; font-size: 0.85rem; text-decoration: none; transition: all 0.3s; }
.quick-action-btn.radar { background: rgba(34, 197, 94, 0.9); color: white; }
.quick-action-btn.radar:hover { background: #16a34a; transform: translateY(-2px); }
.quick-action-btn.alertas { background: rgba(239, 68, 68, 0.9); color: white; }
.quick-action-btn.alertas:hover { background: #dc2626; transform: translateY(-2px); }
.quick-action-btn.recomendaciones { background: rgba(245, 158, 11, 0.9); color: white; }
.quick-action-btn.recomendaciones:hover { background: #d97706; transform: translateY(-2px); }

/* Winter Alerts Banner */
.winter-alerts-banner { background: linear-gradient(90deg, #7c2d12 0%, #9a3412 100%); padding: 12px 0; }
.alerts-banner-content { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.alerts-banner-icon { position: relative; font-size: 1.5rem; }
.alert-pulse { position: absolute; inset: -5px; background: rgba(239, 68, 68, 0.4); border-radius: 50%; animation: alertPulse 1.5s infinite; }
@keyframes alertPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0; } }
.alerts-banner-info { display: flex; flex-direction: column; gap: 6px; }
.alerts-banner-title { color: white; font-weight: 700; font-size: 1rem; }
.alerts-banner-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.alert-mini-tag { background: rgba(255,255,255,0.2); color: white; padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.alert-mini-tag.warning { background: rgba(239, 68, 68, 0.4); }
.alert-mini-tag.watch { background: rgba(245, 158, 11, 0.4); }
.alert-mini-tag.advisory { background: rgba(59, 130, 246, 0.4); }
.alerts-banner-btn { background: white; color: #9a3412; padding: 8px 20px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; text-decoration: none; transition: all 0.3s; }
.alerts-banner-btn:hover { background: #fef3c7; transform: scale(1.05); }

/* Airport Ticker */
.airport-ticker-banner { background: linear-gradient(90deg, #1e3a5f 0%, #2d4a6f 100%); overflow: hidden; }
.airport-ticker-header { background: rgba(0,0,0,0.2); padding: 10px 20px; display: flex; align-items: center; justify-content: center; gap: 10px; color: white; }
.airport-ticker-title { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.airport-ticker-container { height: 80px; position: relative; overflow: hidden; }
.airport-ticker-track { display: flex; position: absolute; animation: tickerScroll 45s linear infinite; }
.airport-ticker-track:hover { animation-play-state: paused; }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.airport-ticker-item { display: flex; align-items: center; gap: 15px; padding: 15px 30px; border-right: 1px solid rgba(255,255,255,0.1); min-width: max-content; }
.airport-ticker-code { font-size: 1.5rem; font-weight: 800; color: white; }
.airport-ticker-info { display: flex; flex-direction: column; gap: 2px; }
.airport-ticker-name { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.airport-ticker-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 10px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.airport-ticker-status.ok { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.airport-ticker-status.delay { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.airport-ticker-status.closed { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.airport-ticker-status .status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Sections */
.cobertura-section { padding: 50px 20px; }
.cobertura-section:nth-child(even) { background: #f8fafc; }
.section-header { text-align: center; margin-bottom: 35px; }
.section-icon { font-size: 2.5rem; margin-bottom: 10px; }
.section-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--text-primary); margin: 0 0 10px; }
.section-subtitle { color: var(--text-secondary); font-size: 1rem; max-width: 700px; margin: 0 auto; }

/* Radar */
.radar-container { max-width: 1200px; margin: 0 auto; background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.radar-header { background: linear-gradient(135deg, #059669 0%, #10b981 100%); padding: 15px 25px; display: flex; align-items: center; justify-content: space-between; color: white; }
.radar-title { font-weight: 700; font-size: 1.1rem; }
.radar-live-badge { background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 15px; font-size: 0.75rem; display: flex; align-items: center; gap: 5px; }
.radar-live-badge .pulse { width: 8px; height: 8px; background: #ff4444; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); opacity: 0.7; } }
.radar-frame { position: relative; width: 100%; padding-bottom: 56%; }
.radar-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* Maps Grid */
.national-maps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) { .national-maps-grid { grid-template-columns: 1fr; } }
.map-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: all 0.3s; cursor: pointer; }
.map-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.map-card-header { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); padding: 15px 20px; display: flex; align-items: center; gap: 10px; color: white; font-weight: 700; }
.map-card-image { width: 100%; height: auto; display: block; }

/* State Tabs */
.state-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.state-tab { padding: 12px 24px; background: white; border: 2px solid #e2e8f0; border-radius: 10px; font-weight: 700; color: var(--text-secondary); cursor: pointer; transition: all 0.3s; }
.state-tab:hover { border-color: #3b82f6; color: #3b82f6; }
.state-tab.active { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); border-color: transparent; color: white; }
.state-content { display: none; max-width: 1200px; margin: 0 auto; }
.state-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* State Alerts */
.state-alerts-banner { background: linear-gradient(135deg, #7c2d12 0%, #c2410c 100%); border-radius: 12px; padding: 15px 20px; margin-bottom: 20px; color: white; }
.state-alerts-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 700; font-size: 1rem; }
.state-alerts-list { display: flex; flex-wrap: wrap; gap: 8px; }
.alert-tag { background: rgba(255,255,255,0.2); padding: 5px 12px; border-radius: 15px; font-size: 0.8rem; font-weight: 600; }
.alert-tag.warning { background: rgba(239, 68, 68, 0.4); }
.alert-tag.watch { background: rgba(245, 158, 11, 0.4); }
.alert-tag.advisory { background: rgba(59, 130, 246, 0.4); }

/* State Info */
.state-info-header { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; padding: 20px; background: white; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.state-info-box { flex: 1; min-width: 200px; padding: 15px; background: #f8fafc; border-radius: 10px; text-align: center; }
.state-info-label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.state-info-value { font-size: 1.2rem; font-weight: 800; color: var(--text-primary); }
.state-info-value.traffic-slow { color: #f59e0b; }
.state-info-value.traffic-heavy { color: #ef4444; }

/* State Maps */
.state-maps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
@media (max-width: 992px) { .state-maps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .state-maps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .state-maps-grid { grid-template-columns: 1fr; } }
.state-map-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); cursor: pointer; transition: all 0.3s; }
.state-map-card:hover { transform: scale(1.02); box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.state-map-header { padding: 10px 15px; background: #f1f5f9; font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.state-map-image { width: 100%; height: auto; display: block; }

/* Snow Explainer */
.snow-explainer { background: linear-gradient(180deg, #1e3a5f 0%, #0f172a 100%) !important; color: white; }
.snow-explainer .section-title { color: white; }
.snow-explainer .section-subtitle { color: rgba(255,255,255,0.8); }
.precip-types-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto 40px; }
@media (max-width: 992px) { .precip-types-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .precip-types-grid { grid-template-columns: 1fr; } }
.precip-card { background: rgba(255,255,255,0.08); border-radius: 16px; padding: 25px 20px; text-align: center; border: 1px solid rgba(255,255,255,0.1); }
.precip-icon { font-size: 2.5rem; margin-bottom: 15px; }
.precip-card h3 { font-size: 1.1rem; margin: 0 0 10px; color: white; }
.precip-card p { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin: 0 0 15px; line-height: 1.5; }
.precip-condition { display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.precip-condition.cold { background: rgba(59, 130, 246, 0.3); color: #93c5fd; }
.precip-condition.mixed { background: rgba(168, 85, 247, 0.3); color: #c4b5fd; }
.precip-condition.danger { background: rgba(239, 68, 68, 0.3); color: #fca5a5; }
.precip-condition.warm { background: rgba(34, 197, 94, 0.3); color: #86efac; }

.atmosphere-diagram { background: rgba(59, 130, 246, 0.15); border-radius: 16px; padding: 30px; max-width: 700px; margin: 0 auto; }
.atmosphere-diagram h4 { text-align: center; margin: 0 0 25px; font-size: 1.1rem; }
.layers { display: flex; flex-direction: column; gap: 5px; }
.layer { padding: 15px 20px; border-radius: 10px; display: flex; flex-direction: column; gap: 5px; }
.layer.cloud { background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%); }
.layer.warm { background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%); color: #1e3a5f; }
.layer.surface { background: linear-gradient(90deg, #374151 0%, #4b5563 100%); }
.layer-label { font-weight: 700; font-size: 0.85rem; }
.layer-desc { font-size: 0.8rem; opacity: 0.9; }

/* Safety Section */
.safety-section { background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%) !important; }
.safety-section .section-title { color: white; }
.safety-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 992px) { .safety-columns { grid-template-columns: 1fr; } }
.safety-column { border-radius: 16px; overflow: hidden; }
.safety-column.casa { background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%); }
.safety-column.carretera { background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%); }
.safety-column.escuela { background: linear-gradient(180deg, #10b981 0%, #059669 100%); }
.safety-column-header { padding: 25px 20px 15px; text-align: center; }
.safety-column-icon { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.safety-column-header h3 { margin: 0; color: white; font-size: 1.3rem; }
.safety-list { list-style: none; padding: 0 20px 25px; margin: 0; }
.safety-list li { padding: 10px 0 10px 30px; position: relative; color: rgba(255,255,255,0.95); font-size: 0.9rem; line-height: 1.4; border-bottom: 1px solid rgba(255,255,255,0.1); }
.safety-list li:last-child { border-bottom: none; }
.safety-list li::before { content: '✓'; position: absolute; left: 0; color: rgba(255,255,255,0.8); font-weight: bold; }

/* News */
.news-grid-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 992px) { .news-grid-three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid-three { grid-template-columns: 1fr; } }

/* Videos Section */
.videos-section { background: #f8fafc; }
.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 992px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .videos-grid { grid-template-columns: 1fr; } }
.video-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: all 0.3s; position: relative; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.video-card.featured { border: 2px solid #3b82f6; }
.video-badge { position: absolute; top: 15px; left: 15px; background: linear-gradient(135deg, #ef4444, #dc2626); color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; z-index: 10; }
.video-wrapper { position: relative; padding-top: 56.25%; background: #1a1a2e; }
.video-placeholder { position: absolute; inset: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.video-play-btn { position: absolute; width: 70px; height: 70px; background: rgba(0,0,0,0.7); border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.video-placeholder:hover .video-play-btn { background: #ef4444; transform: scale(1.1); }
.video-iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.video-content { padding: 20px; }
.video-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin: 0 0 8px; line-height: 1.4; }
.video-content p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Modal */
.image-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 9999; align-items: center; justify-content: center; padding: 20px; }
.image-modal.active { display: flex; }
.image-modal img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.modal-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 2.5rem; cursor: pointer; opacity: 0.8; transition: opacity 0.3s; }
.modal-close:hover { opacity: 1; }
