/**
 * Estilos para Noticias y Redes Sociales (UBICATEC)
 * 
 * Este archivo contiene los estilos compartidos para la visualización de noticias
 * y tarjetas de redes sociales.
 * 
 * Índice:
 * 1. Variables y Configuración Base
 * 2. Navbar Styles
 * 3. Hero Section
 * 4. News/Social Cards
 * 5. Floating Mobile Navigation
 * 6. Responsive Design
 */

/* =========================================
   1. Variables y Configuración Base
   ========================================= */
:root {
    --primary-color: #1e40af;
    --secondary-color: #1e3a8a;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   2. Navbar Styles
   ========================================= */
/* Estilos para la navbar con transparencia */
#header-navbar {
    background-color: #042962 !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

#header-navbar .nav-link, #header-navbar .dropdown-toggle {
    font-weight: bold !important;
    font-family: 'Lato', sans-serif !important;
    font-size: 15px !important;
}

#header-navbar .navbar-brand img {
    height: 35px !important;
}

body {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Lato', sans-serif;
}

/* =========================================
   3. Hero Section
   ========================================= */
/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                #042962;
    color: white;
    padding: 100px 0 60px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* News Section */
.news-section {
    padding: 60px 0;
}

.news-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.3;
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
    gap: 8px;
}

/* Floating Mobile Navigation */
.floating-mobile-nav {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 95%;
    max-width: 400px;
}

.floating-mobile-nav .nav-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
}

.floating-mobile-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s;
}

.floating-mobile-nav .nav-item.active {
    color: var(--primary-color);
    background: rgba(30, 64, 175, 0.1);
}

.floating-mobile-nav .nav-icon {
    color: #ffffff !important;
    font-size: 20px;
    margin-bottom: 4px;
}

.floating-mobile-nav .nav-label {
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 600;
}

/* =========================================
   6. Responsive Design
   ========================================= */
@media (max-width: 768px) {
    #header-navbar {
        display: none !important;
    }
    .floating-mobile-nav {
        display: block;
    }
    .hero-section {
        padding: 60px 0 40px 0;
    }
    .hero-title {
        font-size: 2rem;
    }
}
