/* =========================
   RESET GENERAL
========================= */
body{
    margin:0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background:#f3f4f6;
}

/* =========================
   NAVBAR / TOPBAR
========================= */
.topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px 40px;
    background:#1f233d;
    color:white;
}

.logo{
    height:80px;
}

.topbar nav a{
    color:white;
    margin:0 15px;
    text-decoration:none;
    font-weight:500;
}

.topbar nav a:hover{
    text-decoration:underline;
}

/* =========================
   HERO
========================= */
.hero{
    text-align:center;
    padding:90px 20px;
    background:linear-gradient(90deg,#2e3952,#19469e);
    color:white;
}

.hero h1{
    font-size:40px;
    margin-bottom:10px;
}

.hero p{
    font-size:18px;
    opacity:.9;
}

/* =========================
   CARDS
========================= */
.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
    padding:50px 40px;
}

.card{
    background:white;
    padding:30px;
    text-align:center;
    border-radius:14px;
    box-shadow:0 6px 18px rgba(0,0,0,.08);
    transition:.2s ease;
}

.card:hover{
    transform:translateY(-6px);
    box-shadow:0 8px 22px rgba(0,0,0,.12);
}

.card img{
    width:70px;
    margin-bottom:15px;
}

/* =========================
   SECCIONES
========================= */
.aliados, .contacto{
    text-align:center;
    padding:50px 20px;
}

.aliados h2,
.contacto h2{
    margin-bottom:15px;
}

/* =========================
   FOOTER
========================= */
footer{
    text-align:center;
    background:#1f4e8c;
    color:white;
    padding:18px 0;
    margin-top:70px;
}

/* =========================
   LOGIN
========================= */
.login-body{
    background:linear-gradient(90deg,#212937,#1c3971);
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
}

.login-container{
    background:white;
    padding:40px;
    border-radius:14px;
    width:360px;
    box-shadow:0 6px 20px rgba(0,0,0,.2);
    text-align:center;
}

.login-container h2{
    color:#222d3b;
    margin-bottom:20px;
}

.login-container input{
    width:100%;
    padding:12px;
    margin:12px 0;
    border-radius:8px;
    border:1px solid #ccc;
}

.login-container button{
    width:100%;
    padding:12px;
    background:#0c2a4d;
    color:white;
    border:none;
    border-radius:8px;
    font-size:16px;
    cursor:pointer;
}

.login-container button:hover{
    background:#222933;
}

.back-btn{
    display:block;
    margin-top:20px;
    color:#192028;
    text-decoration:none;
    font-weight:bold;
}

.login-error{
    background:#ffe5e5;
    color:#b30000;
    padding:10px;
    border-radius:6px;
    margin-bottom:15px;
    display:none;
    font-size:14px;
}

.section{
    padding:60px 40px;
    text-align:center;
}

.card-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    margin-top:30px;
}

/* ===== FONDO GENERAL ===== */
body {
    background: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== NAVBAR PERSONALIZADA ===== */
.custom-navbar {
    background: linear-gradient(90deg, #212e43, #124a9e);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

/* ===== USUARIO BADGE ===== */
.user-badge {
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.panel-container {
    background: transparent;
}

/* ===== TARJETAS PERSONALIZADAS ===== */
.card-custom {
    background: #d2dce8;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.2s ease-in-out;
}

.card-custom:hover {
    transform: translateY(-3px);
}

/* ===== TITULOS ===== */
.card-custom h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

/* ===== TABLAS ===== */
.table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background: #10346a;
    color: white;
}

.table th {
    font-weight: 500;
}

/* ===== BOTONES MÁS LIMPIOS ===== */
.btn-primary {
    background-color: #143c79;
    border: none;
}

.btn-primary:hover {
    background-color: #0c2b5b;
}

.btn-success {
    border: none;
}

.btn-danger {
    border: none;
}

.btn-warning {
    border: none;
}

/* ===== ALERTA ADMIN ===== */
.alert-info {
    border-radius: 10px;
}

/* ===== Layout general ===== */

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* El contenido principal crece */
.main-content {
    flex: 1;
}

/* Footer siempre abajo */
footer {
    background-color: #2c384f;
    color: white;
    text-align: center;
    padding: 15px 0;
}

/* =========================
ACTIVIDADES DEL COMITE
========================= */

.actividades{
padding:40px;
text-align:center;
}

.actividades h2{
margin-bottom:30px;
}

/* =========================
GALERIA DE IMAGENES
========================= */

.galeria{
display:flex;
justify-content:center;
gap:20px;
flex-wrap:wrap;
}

.galeria img{
width:250px;
border-radius:10px;
box-shadow:0px 4px 10px rgba(0,0,0,0.2);
transition:transform 0.3s;
}

.galeria img:hover{
transform:scale(1.05);
}

/* =========================
SECCION CTA
========================= */

.cta{
background:#0d2b5c;
color:white;
padding:50px;
text-align:center;
}

.cta h2{
margin-bottom:10px;
}

.cta p{
margin-bottom:20px;
}

.btn{
background:white;
color:#0d2b5c;
padding:12px 25px;
text-decoration:none;
border-radius:5px;
font-weight:bold;
transition:0.3s;
}

.btn:hover{
background:#e0e0e0;
}

/* =================================
ESTILOS NUEVOS PARA ACTIVIDADES
================================= */

.actividades{
padding:70px 20px;
background:#f5f5f5;
}

.actividades h2{
text-align:center;
margin-bottom:50px;
}

.actividad{
display:flex;
align-items:center;
gap:40px;
margin-bottom:50px;
justify-content:center;
flex-wrap:wrap;
}

.actividad img{
width:380px;
border-radius:10px;
box-shadow:0px 4px 15px rgba(0,0,0,0.2);
}

.actividad-texto{
max-width:500px;
}

.actividad-texto h3{
margin-bottom:10px;
color:#0d2b5c;
}

.actividad-texto p{
line-height:1.6;
color:#444;
}

.reverse{
flex-direction:row-reverse;
}

/* =================================
SECCION CTA
================================= */

.cta{
background:#0d2b5c;
color:white;
text-align:center;
padding:60px 20px;
}

.btn{
background:white;
color:#0d2b5c;
padding:12px 25px;
border-radius:6px;
text-decoration:none;
font-weight:bold;
display:inline-block;
margin-top:20px;
}

.btn:hover{
background:#e5e5e5;
}