/**
 * ESTILOS GLOBALES - Portal Institucional SEA Chihuahua
 * Diseño Adaptable y Consolidado
 */

:root {
    --primary-color: #dd0053;
    --secondary-color: #1a1a1a;
    --text-dark: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reseteo y Base --- */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, .fw-bold {
    font-family: 'Montserrat', sans-serif;
}

/* --- Navegación (Navbar) --- */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 15px 0;
}

.navbar-custom.scrolled {
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.nav-link {
    font-weight: 600;
    color: var(--secondary-color) !important;
    font-size: 0.9rem;
    padding: 10px 15px !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* --- Secciones Comunes --- */
section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section { padding: 50px 0; }
}

/* --- Hero Section --- */
.hero-section {
    padding: 140px 0 80px;
    background: var(--secondary-color);
    color: white;
}

/* --- Poster Destacado --- */
.poster-banner-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    border-radius: 30px;
    overflow: hidden;
    border: none;
}

.poster-real-mockup {
    perspective: 1000px;
    max-width: 300px;
    margin: 20px auto;
}

.poster-image-frame {
    transform: rotateY(-15deg);
    transition: var(--transition);
    box-shadow: 20px 20px 50px rgba(0,0,0,0.5);
}

@media (max-width: 991px) {
    .poster-real-mockup { transform: none; margin-top: 40px; }
    .poster-image-frame { transform: none; }
}

/* --- Tarjetas de Noticias --- */
.news-card, .news-card-home {
    border-radius: 20px;
    border: 1px solid #eee;
    background: #fff;
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}

/* --- Calendario y Agenda --- */
.calendar-container {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #edf2f7;
}

.calendar-grid-header, .calendar-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
}

.calendar-day-box {
    min-height: 125px;
    padding: 12px;
    border-right: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
    position: relative;
    transition: var(--transition);
}

.calendar-day-box.outside {
    background: #f8fafc;
    color: #cbd5e0;
}

.day-num {
    font-weight: 800;
    font-size: 1rem;
    color: #4a5568;
}

.event-label {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 6px;
    color: white;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    line-height: 1.3;
    white-space: normal;
}

.dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Hitos / Milestones */
.milestone-card {
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    background: #fff;
    cursor: pointer;
    border-radius: 15px;
    border: 1px solid #eee;
    margin-bottom: 15px;
}

.milestone-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

/* Ajuste móvil para el calendario */
@media (max-width: 768px) {
    .calendar-day-box { min-height: 70px; padding: 6px; }
    .event-label { font-size: 0.55rem; padding: 3px 5px; -webkit-line-clamp: 2; }
    .day-num { font-size: 0.85rem; }
}

/* --- Nosotros / Integrantes --- */
.nosotros-hero {
    background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)), 
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=2069&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    color: white;
}

.purpose-card {
    background: white;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    margin-top: -60px;
    border: 1px solid #f1f5f9;
    position: relative;
    z-index: 10;
}

.member-card-new {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #eee;
    height: 100%;
}

.member-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.member-img-box {
    height: 300px;
    overflow: hidden;
    background-color: #f8fafc;
}

.member-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.member-card-new:hover .member-img-box img {
    transform: scale(1.05);
}

.member-info {
    padding: 25px;
    text-align: center;
}

.role-badge {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    background: rgba(221, 0, 83, 0.05);
    padding: 5px 15px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 10px;
}

/* --- Utilidades --- */
.btn-primary-custom {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: #b50044;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(221, 0, 83, 0.2);
}

.text-primary-custom { color: var(--primary-color) !important; }

/* --- Footer --- */
footer {
    position: relative;
    overflow: hidden;
}

.footer-watermark {
    position: absolute;
    bottom: -50px;
    right: -50px;
    opacity: 0.5;
    pointer-events: none;
    width: 400px;
    filter: brightness(0) invert(1);
}