/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Open+Sans:wght@300;400;600&display=swap');

/* Variables Institucionales */
:root {
    --primary: #003380; 
    --accent: #d4af37; 
    --bg-content: #ffffff;
    --bg-body: #f4f6f9;
}

/* General */
body {
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    background: var(--bg-body);
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, #6c757d 0%, #495057 50%, #343a40 100%);
    color: #ffffff;
    padding: 30px 120px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.header-container h1 {
    flex-grow: 1;
    text-align: center;
    margin: 0;
    font-size: 38px;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-left, .logo-right { width: 80px; height: 80px; }
.logo-left .logo-img, .logo-right .logo-img { width: 100%; height: 100%; object-fit: contain; }

/* Banner House Shower */
.banner-houseshower {
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 30%, #b8941f 70%, #a67c00 100%);
    color: white;
    text-align: center;
    padding: 30px 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    position: relative;
    z-index: 5;
    margin: 20px auto;
    max-width: 900px;
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.3);
}

.banner-houseshower:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5); }
.banner-houseshower a, .banner-houseshower { color: white; text-decoration: none; font-weight: 700; font-size: 1.5rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.2); }
.banner-houseshower .emoji { font-size: 2rem; margin-right: 15px; vertical-align: middle; }

/* Layout Principal */
.main-wrapper {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    min-height: calc(100vh - 300px);
    gap: 30px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Sidebar Escritorio */
.sidebar {
    width: 260px;
    background: var(--primary);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    height: fit-content;
}

.sidebar ul { list-style: none; padding: 0; margin: 0 0 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar ul:last-child { border-bottom: none; }
.sidebar li a { display: block; color: #ffffff; text-decoration: none; padding: 15px 25px; font-size: 15px; font-weight: 600; border-left: 4px solid transparent; transition: all 0.3s ease; }
.sidebar li a:hover, .sidebar li a.activo { background: rgba(255, 255, 255, 0.1); color: var(--accent); border-left-color: var(--accent); padding-left: 30px; }

/* Contenido Central */
.content {
    flex: 1;
    background: var(--bg-content);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    text-align: center;
    padding: 30px 20px;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.2);
    margin-top: 40px;
}

.social-icons { display: flex; justify-content: center; gap: 40px; margin-top: 20px; }
.social-icons a { display: flex; flex-direction: column; align-items: center; color: white; text-decoration: none; font-size: 14px; gap: 8px; transition: transform 0.3s; }
.social-icons a:hover { transform: scale(1.1); color: var(--accent); }

/* Menú Hamburguesa Móvil */
.menu-toggle { display: none; position: fixed; top: 15px; left: 15px; z-index: 1001; background: var(--primary); border: none; border-radius: 8px; padding: 10px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.menu-toggle span { display: block; width: 25px; height: 3px; background: var(--accent); border-radius: 3px; margin: 5px 0; }
.mobile-menu-panel { position: fixed; top: 0; left: -280px; width: 280px; height: 100vh; background: var(--primary); box-shadow: 2px 0 20px rgba(0,0,0,0.3); transition: left 0.3s ease; z-index: 1000; overflow-y: auto; }
.mobile-menu-panel.active { left: 0; }
.mobile-menu-header { background: var(--accent); color: #2c3e50; padding: 20px; text-align: center; font-weight: bold; font-size: 18px; position: relative; }
.mobile-menu-close { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.3); border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: 18px; font-weight: bold; }
.mobile-menu-panel ul { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-menu-panel ul li a { display: block; color: #fff; text-decoration: none; padding: 15px 25px; border-left: 4px solid transparent; }
.mobile-menu-panel ul li a:hover { color: var(--accent); border-left-color: var(--accent); background: rgba(255,255,255,0.05); }
.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.menu-overlay.active { opacity: 1; visibility: visible; }

/* ============================================================== */
/* ESTILOS DE LA SECCIÓN DE NOTICIAS (Importados de noticias.php) */
/* ============================================================== */
.noticias-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 25%, #3a3a3a 50%, #4a4a4a 75%, #5a5a5a 100%);
    padding: 60px 20px;
    position: relative;
    font-family: 'Georgia', 'Times New Roman', serif;
    overflow: hidden;
    border-radius: 12px; /* Se adapta a la caja content */
}

/* Partículas animadas de fondo */
.noticias-container::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 53, 173, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    animation: floatParticles 20s ease-in-out infinite; z-index: 0; pointer-events: none;
}
@keyframes floatParticles {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.seccion-titulo-noticias {
    text-align: center;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.8rem;
    color: white;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3), 2px 2px 4px rgba(212, 175, 55, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}
.seccion-titulo-noticias::after {
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 100px; height: 2px; background: linear-gradient(90deg, transparent, #d4af37, transparent);
}
@keyframes titleGlow {
    0% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3), 2px 2px 4px rgba(212, 175, 55, 0.3); }
    100% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 4px 8px rgba(0, 0, 0, 0.3), 2px 2px 4px rgba(212, 175, 55, 0.6); }
}

.noticias-intro {
    text-align: center; color: rgba(255, 255, 255, 0.95); font-size: 1.1rem; font-style: italic; max-width: 800px;
    margin: 0 auto 30px auto; line-height: 1.8; position: relative; z-index: 2; padding: 20px 25px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 15px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1);
}

.noticias-grid {
    display: flex; flex-direction: column; max-width: 800px; margin: 0 auto; position: relative; z-index: 2;
}

.noticia-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease; position: relative; border: 1px solid rgba(0, 0, 0, 0.1);
    border-left: 4px solid #d4af37; margin-bottom: 15px; display: flex; flex-direction: row; height: 140px;
    text-decoration: none; /* Asegura que el enlace no se subraye */
}

.noticia-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, transparent, rgba(212, 175, 55, 0.1)); opacity: 0; transition: opacity 0.4s ease; z-index: -1;
}

.noticia-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.noticia-card:hover::before { opacity: 1; }

.noticia-imagen { width: 140px; min-width: 140px; height: 100%; overflow: hidden; position: relative; background: linear-gradient(135deg, #e9ecef, #dee2e6); }
.noticia-imagen img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.noticia-card:hover .noticia-imagen img { transform: scale(1.05); }

.noticia-contenido { padding: 15px 20px; background: linear-gradient(to bottom, #ffffff, #fafbfc); flex: 1; display: flex; flex-direction: column; justify-content: center; text-decoration: none;}

.noticia-header { display: flex; align-items: center; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(212, 175, 55, 0.2); }

.noticia-icon {
    width: 30px; height: 30px; background: linear-gradient(135deg, #d4af37, #f4e4bc); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 1rem; margin-right: 10px;
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3); animation: iconPulse 2s ease-in-out infinite;
}
@keyframes iconPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.noticia-fecha { font-size: 0.85rem; color: #666; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.noticia-titulo {
    font-family: 'Lora', serif; font-size: 1.1rem; color: #2c3e50; font-weight: 600; margin: 0 0 8px 0; line-height: 1.2; transition: color 0.3s ease;
}
.noticia-card:hover .noticia-titulo { color: #d4af37; }

.noticia-extracto { color: #64748b; font-size: 0.85rem; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.noticia-link {
    display: inline-flex; align-items: center; color: #002F6C; font-weight: 600; font-size: 0.8rem; text-decoration: none; transition: all 0.3s ease; position: relative; margin-top: 8px;
}
.noticia-link::after { content: '→'; margin-left: 5px; transition: transform 0.3s ease; }
.noticia-card:hover .noticia-link { color: #d4af37; transform: translateX(5px); }
.noticia-card:hover .noticia-link::after { transform: translateX(5px); }

.no-noticias {
    text-align: center; color: rgba(255, 255, 255, 0.9); font-size: 1.3rem; padding: 60px 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px; max-width: 600px; margin: 0 auto; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.noticia-card { animation: fadeInUp 0.6s ease-out; }


/* Responsive */
@media (max-width: 1024px) {
    header { padding: 20px 40px; }
    .header-container { flex-direction: column; }
    .header-container h1 { font-size: 30px; margin: 15px 0; }
    .main-wrapper { flex-direction: column; }
    .sidebar { width: 100%; max-width: 400px; margin: 0 auto; }
    .content { width: 100%; padding: 0;}
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .sidebar { display: none !important; }
    header { padding-left: 60px; }
    .header-container h1 { font-size: 24px; }
    .logo-left, .logo-right { width: 50px; height: 50px; }
    .banner-houseshower { margin: 10px; padding: 20px; }
    .banner-houseshower a { font-size: 1.1rem; }
    .social-icons { gap: 20px; flex-wrap: wrap; }
    
    .noticias-container { padding: 40px 15px; }
    .seccion-titulo-noticias { font-size: 2.5rem; }
    .noticias-grid { grid-template-columns: 1fr; gap: 20px; }
    .noticia-card { flex-direction: column; height: auto; }
    .noticia-imagen { width: 100%; min-width: unset; height: 180px; }
    .noticia-contenido { padding: 20px; }
    .noticia-icon { width: 40px; height: 40px; font-size: 1.2rem; }
    .noticia-titulo { font-size: 1.3rem; }
    .noticia-extracto { -webkit-line-clamp: 3; line-clamp: 3; }
}
/* ============================================================== */
/* ESTILOS DEL BUSCADOR Y FILTROS DE NOTICIAS                     */
/* ============================================================== */
.noticias-filtro-bar {
    max-width: 800px;
    margin: 0 auto 30px auto;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.form-filtro-noticias {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filtro-input, .filtro-select {
    flex: 1;
    min-width: 150px;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #334155;
    outline: none;
    transition: all 0.3s ease;
}

.filtro-input:focus, .filtro-select:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4);
    border-color: #d4af37;
}

.filtro-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.filtro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.filtro-btn-limpiar {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.filtro-btn-limpiar:hover {
    background: rgba(239, 68, 68, 0.8); /* Rojo suave */
}

/* Botón "Ver todas las noticias" */
.noticias-ver-mas-container {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.btn-ver-todas {
    display: inline-block;
    padding: 15px 35px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid #d4af37;
    border-radius: 30px;
    transition: all 0.4s ease;
}

.btn-ver-todas:hover {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
}

/* Ajustes Responsive Filtro */
@media (max-width: 768px) {
    .form-filtro-noticias {
        flex-direction: column;
        align-items: stretch;
    }
    .filtro-btn, .filtro-btn-limpiar {
        text-align: center;
    }
}

/* ============================================================== */
/* ESTILOS DE LA SECCIÓN DE GRUPOS (Mejorados)                  */
/* ============================================================== */
.grupos-container {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 25%, #7f8c8d 50%, #95a5a6 75%, #bdc3c7 100%);
    padding: 60px 20px;
    position: relative;
    font-family: 'Open Sans', sans-serif;
    overflow: hidden;
    border-radius: 12px;
}

.grupos-container::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 53, 173, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    animation: floatParticles 20s ease-in-out infinite; z-index: 0; pointer-events: none;
}

.seccion-titulo-grupos {
    text-align: center; font-family: 'Lora', serif; font-size: 3.5rem; color: white;
    margin-bottom: 20px; position: relative; z-index: 2;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3), 2px 2px 4px rgba(212, 175, 55, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.grupos-intro {
    text-align: center; color: rgba(255, 255, 255, 0.95); font-size: 1.2rem; max-width: 900px;
    margin: 0 auto 60px auto; line-height: 1.8; position: relative; z-index: 2; padding: 30px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 20px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1);
}

.lista-de-grupos {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px;
    max-width: 1200px; margin: 0 auto; position: relative; z-index: 2;
}

/* Tarjeta Estándar (Brillante) */
.grupo-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border-radius: 20px; padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none; display: block;
}

.grupo-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, transparent, rgba(212, 175, 55, 0.1));
    opacity: 0; transition: opacity 0.4s ease; z-index: -1;
}

.grupo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.grupo-card:hover::before { opacity: 1; }

/* ✨ REDISEÑO TOTAL: Tarjeta Destacada Premium (Oscura con Oro) */
.grupo-card.destacado {
    grid-column: 1 / -1; 
    max-width: 750px; 
    margin: 0 auto;
    /* Fondo Azul Institucional Profundo */
    background: linear-gradient(135deg, #001f4d 0%, #003380 50%, #001f4d 100%);
    /* Borde Dorado Pronunciado */
    border: 3px solid #d4af37;
    /* Sombra Dorada Suave */
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
}

.grupo-card.destacado:hover {
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.5);
    border-color: #f4e4bc; /* Dorado más claro al hover */
}

/* Encabezado y Texto dentro de la destacada */
.grupo-card.destacado .grupo-header { 
    border-bottom: 2px solid rgba(212, 175, 55, 0.4); 
}

/* Icono Dorado */
.grupo-card.destacado .grupo-icon { 
    background: linear-gradient(135deg, #f4e4bc, #d4af37); 
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.4); 
    color: #001f4d; /* Emoji oscuro sobre fondo claro */
}

/* Título Dorado Brillante */
.grupo-card.destacado .grupo-titulo { 
    font-size: 1.9rem; 
    color: #d4af37 !important; 
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Texto de descripción Blanco para máximo contraste */
.grupo-card.destacado p { 
    color: #ffffff !important; 
    font-size: 1rem; 
    font-weight: 400;
}

/* Elementos Comunes */
.grupo-header { display: flex; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid rgba(212, 175, 55, 0.2); }
.grupo-icon {
    width: 60px; height: 60px; background: linear-gradient(135deg, #d4af37, #f4e4bc); border-radius: 15px;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-right: 20px;
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.3); animation: iconPulse 2s ease-in-out infinite;
}

.grupo-titulo { font-family: 'Lora', serif; font-size: 1.5rem; color: #2c3e50; font-weight: 600; margin: 0; line-height: 1.3; transition: color 0.3s ease;}
.grupo-card:not(.destacado):hover .grupo-titulo { color: #d4af37; }

.grupo-card p { color: #64748b; font-size: 0.95rem; line-height: 1.7; margin: 0; }

.grupo-card { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.lista-de-grupos .grupo-card:nth-child(1) { animation-delay: 0.1s; transform: translateY(30px); }
.lista-de-grupos .grupo-card:nth-child(2) { animation-delay: 0.2s; transform: translateY(30px); }
/* ... (puedes seguir agregando retrasos si gustas) */

@media (max-width: 768px) {
    .grupos-container { padding: 40px 15px; }
    .seccion-titulo-grupos { font-size: 2.5rem; }
    .lista-de-grupos { grid-template-columns: 1fr; gap: 20px; }
    .grupo-card { padding: 25px; }
    .grupo-icon { width: 60px; height: 60px; font-size: 1.5rem; }
    .grupo-card.destacado .grupo-titulo { font-size: 1.6rem; }
    .grupo-card p { font-size: 0.9rem; }
}

/* ============================================================== */
/* ESTILOS DEL BOTÓN VOLVER (Noticias y Grupos)                   */
/* ============================================================== */
.noticia-unica-wrapper {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Open Sans', Arial, sans-serif;
}

.btn-volver {
    display: inline-flex;
    align-items: center;
    margin-bottom: 25px;
    color: #003380;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 10px 20px;
    background: #f1f5f9;
    border-radius: 30px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-volver:hover { 
    color: #ffffff; 
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    border-color: #d4af37;
    transform: translateX(-5px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    text-decoration: none;
}

/* ============================================================== */
/* ESTILOS DE LA SECCIÓN DE PROYECTOS (Importados de proyectos.php)*/
/* ============================================================== */
.proyectos-container {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 25%, #7f8c8d 50%, #95a5a6 75%, #bdc3c7 100%);
    padding: 60px 20px;
    position: relative;
    font-family: 'Open Sans', sans-serif;
    overflow: hidden;
    border-radius: 12px;
}

.proyectos-container::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 53, 173, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    animation: floatParticles 20s ease-in-out infinite; z-index: 0; pointer-events: none;
}

.seccion-titulo-proyectos {
    text-align: center; font-family: 'Lora', serif; font-size: 3.5rem; color: white;
    margin-bottom: 20px; position: relative; z-index: 2;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3), 2px 2px 4px rgba(212, 175, 55, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.proyectos-intro {
    text-align: center; color: rgba(255, 255, 255, 0.95); font-size: 1.2rem; max-width: 900px;
    margin: 0 auto 60px auto; line-height: 1.8; position: relative; z-index: 2; padding: 30px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 20px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1);
}

.proyectos-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px;
    max-width: 1200px; margin: 0 auto; position: relative; z-index: 2;
}

.proyecto-card-link { text-decoration: none; color: inherit; display: block; }
.proyecto-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border-radius: 20px; padding: 30px; border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden; cursor: pointer;
}

.proyecto-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, transparent, rgba(212, 175, 55, 0.1));
    opacity: 0; transition: opacity 0.4s ease; z-index: -1;
}

.proyecto-card-link:hover .proyecto-card {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25), 0 15px 30px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.proyecto-card-link:hover .proyecto-card::before { opacity: 1; }

.proyecto-header { display: flex; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid rgba(212, 175, 55, 0.2); }
.proyecto-icon {
    width: 60px; height: 60px; background: linear-gradient(135deg, #d4af37, #f4e4bc);
    border-radius: 15px; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-right: 20px; box-shadow: 0 8px 16px rgba(212, 175, 55, 0.3);
    animation: iconPulse 2s ease-in-out infinite;
}

.proyecto-titulo { font-family: 'Lora', serif; font-size: 1.5rem; color: #2c3e50; font-weight: 600; margin: 0; line-height: 1.3; }

.proyecto-estado {
    display: inline-block; padding: 8px 16px; border-radius: 25px; font-size: 0.85rem; font-weight: 600;
    margin-top: 15px; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.estado-completado { background: linear-gradient(135deg, #28a745, #20c997); color: white; }
.estado-proceso { background: linear-gradient(135deg, #007bff, #6610f2); color: white; animation: estadoGlow 2s ease-in-out infinite alternate; }

@keyframes estadoGlow {
    0% { box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3); }
    100% { box-shadow: 0 4px 16px rgba(102, 16, 242, 0.6); }
}

.proyecto-link {
    display: inline-block; margin-top: 20px; color: #007bff; font-weight: 600; font-size: 0.95rem;
    transition: all 0.3s ease; position: relative;
}
.proyecto-link::after { content: '→'; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); transition: all 0.3s ease; }
.proyecto-card-link:hover .proyecto-link { color: #0056b3; transform: translateX(5px); }
.proyecto-card-link:hover .proyecto-link::after { right: -25px; }

.no-proyectos {
    text-align: center; color: rgba(255, 255, 255, 0.9); font-size: 1.3rem; padding: 60px 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px; max-width: 600px; margin: 0 auto; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .proyectos-container { padding: 40px 15px; }
    .seccion-titulo-proyectos { font-size: 2.5rem; }
    .proyectos-grid { grid-template-columns: 1fr; gap: 20px; }
    .proyecto-card { padding: 25px; }
    .proyecto-icon { width: 50px; height: 50px; font-size: 1.5rem; }
    .proyecto-titulo { font-size: 1.3rem; }
}

/* ==========================================================================
   🔑 BOTÓN INTRANET PREMIUM - ENCABEZADO INSTITUCIONAL
   ========================================================================== */
.header-utilities-container {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 999;
}

.btn-intranet-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.5px;
}

.btn-intranet-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 58, 138, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
}

/* Adaptación responsiva para pantallas de celulares */
@media (max-width: 768px) {
    .header-utilities-container {
        position: relative;
        top: 0;
        right: 0;
        text-align: center;
        padding: 12px 0;
        background-color: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }
    .btn-intranet-header {
        width: 85%;
        justify-content: center;
    }
}