/* REEMPLAZO EN LÍNEA 1: Colores definitivos sin amarillo */
:root {
    --primary-blue: #090231;    /* Azul profundo para Header y Footer */
    --color-bg: #f4f7f6;        /* Gris claro de fondo (60%) */
    --color-acento: #b0b3b8;    /* Metalizado para detalles (10%) */
    --text-color: #333;
    --transition: all 0.4s ease;
}

body { font-family: 'Segoe UI', Roboto, sans-serif; color: var(--text-color); }

/* Header Moderno */
.nav-bar { background-color: var(--primary-blue) !important; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.nav-item { color: white !important; font-weight: 500; transition: var(--transition); }
.nav-item:hover { color: var(--color-acento) !important; }

/* AGREGA esto al final de tu archivo CSS */
.nav-bar {
    position: -webkit-sticky; /* Soporte para Safari */
    position: sticky;
    top: 0;
    z-index: 1000; /* Asegura que pase por encima de las fotos */
}

/* Tipografía de Título Dinámica */
.brand-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--primary-blue), #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease;
}

/* Tarjetas de Noticia Modernas */
.tn-img { 
    border-radius: 15px; overflow: hidden; position: relative; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}
.tn-img:hover { transform: translateY(-10px); box-shadow: 0 20px 30px rgba(0,0,0,0.15); }
.tn-img img { transition: transform 0.6s ease; }
.tn-img:hover img { transform: scale(1.05); }

/* Botones Modernos */
/* REEMPLAZA el bloque .btn-login-top por este */
.btn-login-top {
    background: var(--text-color); /* Azul para que resalte */
    color: var(--color-bg);      /* Letras en Blanco */
    padding: 8px 25px;
    border-radius: 30px; 
    text-decoration: none; 
    font-weight: bold;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-login-top:hover { 
    background: var(--color-acento); 
    color: var(--primary-blue); 
    border: 1px solid var(--color-bg);
}

/* Footer */
.footer { background-color: var(--primary-blue); color: white;
            padding: 20px 0 60px 0;
}
.footer h3 { 
    /* Cambiamos el color por nuestra variable del 10% (Metalizado) */
    color: var(--color-bg); 
    
    /* Agregamos un poco de estilo extra para que luzca profesional */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* --- AGREGADO: Estilos para los enlaces del footer --- */

/* 1. Seleccionamos todos los enlaces dentro de los widgets del footer */
.footer-widget ul li a {
    color: #ffffff !important; /* Forzamos el color blanco */
    text-decoration: none;      /* Quitamos el subrayado molesto */
    transition: all 0.3s ease;  /* Para que el cambio de color sea suave */
    display: inline-block;
    padding: 3px 0;
}

/* 2. Efecto al pasar el mouse (Hover) */
/* Queremos que cuando el usuario pase el mouse, brille en nuestro color metalizado */
.footer-widget ul li a:hover {
    color: var(--color-acento) !important; 
    padding-left: 5px; /* Pequeña animación de movimiento a la derecha */
}

/* 3. Ajuste para los enlaces legales (Terminos, Privacidad, etc.) en la parte inferior */
.footer-menu .f-menu a {
    color: #ffffff;
    margin-right: 15px;
    font-size: 14px;
    text-decoration: none;
    opacity: 0.8; /* Un poco menos brillante para que no compita con lo principal */
}

.footer-menu .f-menu a:hover {
    opacity: 1;
    color: var(--color-acento);
}

/* BUSCA o AGREGA esto para la sección 'brand' */
.brand {
    padding: 15px 0;
    background: #ffffff; /* Fondo blanco para que el logo resalte */
    border-bottom: 1px solid #ddd;
}


/* Centrado del título y subtítulo */
.brand-title {
    margin-bottom: 0;
    line-height: 1.2;
}

.brand p {
    margin: 0;
    color: var(--color-acento);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
}

/* REEMPLAZA o AGREGA los estilos de la búsqueda */
.b-search {
    position: relative;
    width: 100%;
    max-width: 250px;
    margin-left: auto; /* Lo empuja a la derecha */
}

.b-search input {
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border-radius: 20px;
    border: 1px solid var(--color-acento);
    outline: none;
    transition: var(--transition);
}

.b-search input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 8px rgba(9, 2, 49, 0.1);
}

.b-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 30px;
    height: 30px;
    border: none;
    background: var(--primary-blue);
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.b-search button:hover {
    background: var(--color-acento);
}

.top-bar {
    padding: 8px 0;
    background: var(--primary-blue);
    color: #ffffff;
    font-size: 13px;
}

.tb-contact p {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 0;
    font-size: 18px;
}

.tb-contact i {
    margin-right: 8px;
    color: var(--color-acento);
}

/* Ajuste para que las noticias tengan un aire editorial */
.tn-img {
    background: #fff;
    border: 1px solid #eee;
    height: 100%; /* Para que todas midan lo mismo */
}

.tn-img h4, .tn-img h5 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-top: 10px;
}

/* ============================================================
   SECCIÓN DE ADMINISTRACIÓN (LOGIN Y PANEL)
   ============================================================ */

/* Fondo general de administración */
.admin-auth-body, .admin-panel-body {
    background-color: var(--color-bg);
    min-height: 50vh;
    display: flex;
    flex-direction: column;
}

/* --- ESTILOS LOGIN.PHP --- */
.admin-auth-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 20px;
}

.admin-auth-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    border-top: 5px solid var(--primary-blue);
}

.admin-auth-title h1 {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 5px;
    text-align: center;
}

.admin-auth-title p {
    color: #666;
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.admin-auth-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.admin-auth-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.admin-auth-input:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 5px rgba(9,2,49,0.1);
}

.admin-auth-btn {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.admin-auth-btn:hover {
    background: #1a0b5a;
    transform: translateY(-2px);
}

/* --- ESTILOS PANEL.PHP --- */
.admin-panel-topbar {
    background: var(--primary-blue);
    color: white;
    padding: 15px 0;
}

.admin-panel-topbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.admin-panel-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-panel-logo {
    height: 50px;
    filter: brightness(0) invert(1); /* Pone el logo blanco si es oscuro */
}

.admin-btn--ghost {
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    margin-left: 10px;
    transition: var(--transition);
}

.admin-btn--ghost:hover {
    background: white;
    color: var(--primary-blue);
}

.admin-btn--secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.admin-btn--secondary:hover {
    background: #f8f9ff;
    box-shadow: 0 4px 12px rgba(9,2,49,0.15);
}

.admin-panel-container {
    max-width: 900px;
    margin: 0px auto;
    padding: 0 20px;
}

.admin-h1 {
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

/* Alertas */
.admin-auth-alert--error {
    background: #fff5f5;
    color: #c53030;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #feb2b2;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Modifica esto en tu CSS para el panel */
.menu-card i {
    font-size: 2.5rem;
    color: var(--primary-blue) !important; /* Ahora usa el azul náutico */
}

.menu-card:hover {
    border-color: var(--color-acento); /* Metalizado al pasar el mouse */
    color: var(--primary-blue);
}

/* Modifica esto en tu CSS para el panel */
.menu-card i {
    font-size: 2.5rem;
    color: var(--primary-blue) !important; /* Ahora usa el azul náutico */
}

.menu-card:hover {
    border-color: var(--color-acento); /* Metalizado al pasar el mouse */
    color: var(--primary-blue);
}

/* 1. Imagen centrada y profesional */
.single-news-img {
    width: 100%;
    height: 400px; /* Altura fija para consistencia */
    overflow: hidden;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.single-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto centra y recorta automáticamente sin deformar */
}

/* 2. Bajada en negrita y distinguida */
.single-news-bajada {
    font-size: 1.25rem;
    font-weight: 700; /* Negrita */
    color: #2d3748;
    line-height: 1.6;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf2f7;
}

/* 3. Sidebar (Últimas noticias) estilo "Cartas" */
.sidebar-box { display: flex; flex-direction: column; gap: 15px; }
.featured-item {
    display: flex;
    flex-direction: column; /* Cambiado a columna para estética de carta */
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}
.featured-item:hover { transform: translateY(-5px); }
.featured-thumb { width: 100%; height: 150px; }
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-item h4 { padding: 10px; font-size: 0.95rem; margin: 0; }

.single-news-img {
    width: 100%;
    margin: 20px 0;
    text-align: center; /* Centra la imagen si es más pequeña que el contenedor */
}

.single-news-img img {
    width: 100%;       /* Ocupa todo el ancho disponible */
    height: auto;      /* IMPORTANTE: Esto evita que se recorte, el alto crece proporcionalmente */
    max-height: 600px; /* Evita que sea una imagen gigante en pantallas muy altas */
    display: block;    /* Elimina espacios en blanco inferiores */
    border-radius: 12px;
}
/* Contenedor de etiquetas */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

/* Estilo base del botoncito */
.tag-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.tag-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    filter: brightness(1.1);
}

/* Variedad de Colores */
.tag-blue   { background-color: #e1effe; color: #1e429f; }
.tag-green  { background-color: #def7ec; color: #03543f; }
.tag-red    { background-color: #fde8e8; color: #9b1c1c; }
.tag-yellow { background-color: #fdf6b2; color: #723b13; }
.tag-purple { background-color: #edebfe; color: #5521b5; }
.tag-gray   { background-color: #f3f4f6; color: #374151; }

#buscador-notas:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.1);
    outline: none;
}

/* ============================================================
   COMPONENTES COMPARTIDOS — PÁGINAS PÚBLICAS
   ============================================================ */

/* --- TICKER DE NOTICIAS --- */
.news-ticker-bar { background: #fff; height: 45px; line-height: 45px; overflow: hidden; border-bottom: 1px solid #f0f0f0; }
.ticker-wrapper { display: flex; max-width: 1200px; margin: 0 auto; align-items: center; }
.ticker-label { background: #d32f2f; color: #fff; padding: 0 15px; font-weight: 800; font-size: 11px; text-transform: uppercase; margin-left: 60px; margin-right: 15px; flex-shrink: 0; border-radius: 2px; }
.ticker-label--navy { background: #090231; }
.news-ticker-bar .ticker-content { overflow: hidden; white-space: nowrap; flex-grow: 1; max-width: 81%; }
#news-slider { display: inline-block; animation: marquee 80s linear infinite; }
.ticker-item { color: #333 !important; margin-right: 65px; text-decoration: none; font-size: 14px; font-weight: 700; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

@media (max-width: 768px) {
    .ticker-label { margin-left: 15px; }
}

/* --- SIDEBAR STICKY --- */
.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 70px;
    align-self: flex-start;
    z-index: 10;
}
.col-sidebar-parent { padding-bottom: 50px; }
.sidebar-widget { background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; padding: 22px; margin-bottom: 30px; }
/* .sidebar-title (noticias) and .sidebar-widget-title (capacitaciones) share the same look */
.sidebar-title,
.sidebar-widget-title {
    font-weight: 900;
    border-left: 4px solid #d32f2f;
    padding-left: 12px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #090231;
    text-transform: uppercase;
    display: block;
}

@media (max-width: 768px) {
    .sidebar-sticky { position: static; }
}

/* --- ETIQUETAS (TAGS) --- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-pill {
    display: inline-block; padding: 5px 15px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 700; text-decoration: none !important;
    text-transform: uppercase; transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.tag-pill:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.t-blue   { background-color: #e1effe; color: #1e429f; }
.t-green  { background-color: #def7ec; color: #03543f; }
.t-red    { background-color: #fde8e8; color: #9b1c1c; }
.t-purple { background-color: #edebfe; color: #5521b5; }
.t-yellow { background-color: #fdf6b2; color: #723b13; }
.t-gray   { background-color: #f3f4f6; color: #374151; }

/* --- TÍTULO METÁLICO CON GRADIENTE (compartido entre páginas) --- */
/* Shared gradient style; each page title sets its own font-size */
.title-metallico,
.title-herramientas,
.title-pertenecer,
.title-contact {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #090231 0%, #1e1461 50%, #090231 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   PÁGINA: INDEX
   ============================================================ */


/* Acceso rápido */
.quick-access-section { padding: 40px 0; background: #fdfdfd; border-top: 1px solid #eee; clear: both; }
.quick-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.quick-card {
    background: #fff; border: 1px solid #eaeaea; border-radius: 12px; padding: 30px 15px;
    text-decoration: none !important; color: #333; transition: all 0.4s;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.quick-card:hover { transform: translateY(-8px); border-color: #090231; }

/* Cards de noticias (portada) */
.card-news { background: #fff; border-radius: 10px; overflow: hidden; transition: transform 0.3s; border: 1px solid #eee; display: flex; flex-direction: column; height: 100%; position: relative; }
.card-news:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card-news img { width: 100%; object-fit: cover; transition: 0.3s; }

/* Botón WhatsApp flotante */
.btn-whatsapp-flotante {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25d366; border-radius: 50%;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    text-decoration: none !important; transition: transform 0.3s, box-shadow 0.3s;
}
.btn-whatsapp-flotante:hover {
    transform: scale(1.1);
    box-shadow: 4px 8px 20px rgba(0,0,0,0.35);
}

/* ============================================================
   PÁGINA: NOTICIAS
   ============================================================ */
.editorial-item { display: flex; gap: 25px; background: #fff; margin-bottom: 35px; padding-bottom: 30px; border-bottom: 1px solid #f5f5f5; }
.editorial-img { width: 280px; height: 180px; flex-shrink: 0; border-radius: 10px; overflow: hidden; }
.editorial-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.editorial-title { font-size: 1.1rem; font-weight: 800; color: #090231; text-decoration: none; display: block; margin-bottom: 8px; line-height: 1.25; }
.editorial-bajada { color: #666; font-size: 0.95rem; line-height: 1.5; margin-bottom: 15px; }

@media (max-width: 768px) {
    .editorial-item { flex-direction: column; gap: 15px; }
    .editorial-img { width: 100%; height: 220px; }
}

/* ============================================================
   PÁGINA: NOTA
   ============================================================ */
.note-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; gap: 15px; }
.note-nav__link {
    display: inline-flex; align-items: center; padding: 10px 20px;
    background-color: #fff; color: #333; text-decoration: none;
    border-radius: 50px; font-weight: 600; font-size: 0.9rem;
    border: 1px solid #e2e8f0; transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.note-nav__link:hover { background-color: #f8fafc; color: #d32f2f; border-color: #d32f2f; transform: translateY(-2px); }

.img-vertical { max-width: 500px; margin: 0 auto; }
.img-cuadrada { max-width: 600px; margin: 0 auto; }

.bloqueo-socio { background: #fdfdfd; border: 1px solid #e2e8f0; border-left: 5px solid #d32f2f; padding: 3rem 2rem; text-align: center; border-radius: 16px; margin: 2.5rem 0; }
.btn-acceso { display: inline-block; background: #d32f2f; color: #fff !important; padding: 0.8rem 2rem; border-radius: 8px; font-weight: 700; text-decoration: none; transition: all 0.3s ease; }
.content-preview-blur { filter: blur(6px); user-select: none; opacity: 0.3; pointer-events: none; }

.news-footer-container { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; margin-top: 40px; padding-top: 30px; border-top: 1px solid #e2e8f0; }
.footer-section-tags { flex: 1; min-width: 280px; }
.footer-section-fuente { width: 300px; }

.fuente-card { background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 15px; text-align: right; transition: all 0.3s ease; }
.fuente-card:hover { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.fuente-card small { display: block; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 1px; color: #94a3b8; margin-bottom: 5px; }
.fuente-card span { font-family: 'Georgia', serif; font-style: italic; color: #334155; font-weight: 600; font-size: 1rem; }
.fuente-card i { color: #64748b; margin-left: 8px; }

@media (max-width: 768px) {
    .footer-section-fuente { width: 100%; text-align: left; }
    .fuente-card { text-align: left; }
}

/* ============================================================
   PÁGINA: CAPACITACIONES
   ============================================================ */
.cap-item { display: flex; gap: 30px; background: #fff; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid #eee; transition: 0.3s; }
.cap-img-container { width: 300px; height: 180px; flex-shrink: 0; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.cap-img-container img { width: 100%; height: 100%; object-fit: cover; }
.badge-next { position: absolute; top: 12px; left: 12px; background: #d32f2f; color: #fff; font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 4px; z-index: 5; }
.cap-body { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.cap-date { color: #d32f2f; font-weight: 800; font-size: 0.9rem; text-transform: uppercase; margin-bottom: 10px; display: block; }
.cap-title-link { font-size: 1.4rem; font-weight: 800; color: #090231; text-decoration: none; line-height: 1.2; margin-bottom: 12px; transition: 0.2s; }
.cap-title-link:hover { color: #d32f2f; }
.cap-text { color: #555; font-size: 1rem; line-height: 1.6; margin-bottom: 20px; }
.btn-detalle { display: inline-block; padding: 10px 25px; background: #090231; color: #fff !important; font-weight: 700; border-radius: 6px; text-decoration: none; font-size: 0.9rem; transition: 0.3s; width: fit-content; }
.btn-detalle:hover { background: #d32f2f; transform: translateY(-2px); }
.side-link { display: block; text-decoration: none; padding: 10px 0; border-bottom: 1px solid #f8f8f8; }
.side-link:last-child { border-bottom: none; }
.side-link-title { color: #333; font-weight: 700; font-size: 0.9rem; line-height: 1.3; margin-bottom: 3px; }
.side-link-date { color: #d32f2f; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }

@media (max-width: 991px) {
    .cap-item { flex-direction: column; }
    .cap-img-container { width: 100%; height: 220px; }
}

/* ============================================================
   PÁGINA: SEGURIDAD
   ============================================================ */
.title-metallico { font-size: 2.5rem; margin-bottom: 5px; }
.subtitle-rojo { font-size: 1.1rem; color: #d32f2f; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 30px; }
.card-noticia { border: 1px solid #eee !important; border-radius: 12px !important; transition: all 0.3s ease; overflow: hidden; background: #fff; }
.card-noticia:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important; border-color: #d32f2f !important; }
.img-container { height: 200px; overflow: hidden; }
.img-container img { object-fit: cover; height: 100%; width: 100%; transition: transform 0.5s ease; }
.card-noticia:hover .img-container img { transform: scale(1.1); }
.badge-categoria { background: #090231; color: #fff; font-size: 0.7rem; padding: 5px 12px; border-radius: 4px; text-transform: uppercase; font-weight: 700; text-decoration: none !important; }
.btn-leer-mas { background: #d32f2f; color: #fff !important; font-weight: 800; text-transform: uppercase; font-size: 0.8rem; border: none; padding: 10px; border-radius: 5px; transition: 0.3s; box-shadow: 0 4px 10px rgba(211,47,47,0.2); text-decoration: none !important; display: block; text-align: center; }
.btn-leer-mas:hover { background: #090231; transform: translateY(-2px); }
.filter-tag { background: #f8f9fa; border-left: 4px solid #d32f2f; padding: 15px; margin-bottom: 30px; display: flex; align-items: center; justify-content: space-between; }

/* ============================================================
   PÁGINA: LEGISLACION
   ============================================================ */
.leg-filter-card { background: #f9f9f9; padding: 20px; border-radius: 8px; border-top: 4px solid #d32f2f; margin-bottom: 30px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.filter-wrapper { display: flex; flex-wrap: nowrap; align-items: flex-end; gap: 12px; }
.filter-group { flex: 1; }
.filter-group.btn-col { flex: 0 0 180px; }
.form-label-custom { font-size: 13px; font-weight: bold; margin-bottom: 5px; display: block; white-space: nowrap; color: #333; }
.filter-control-custom { height: 40px !important; border: 1px solid #ccc !important; border-radius: 4px !important; font-size: 14px; width: 100%; padding: 0 10px; background-color: #fff; }
.btn-filter-custom { height: 40px; background: #d32f2f !important; color: #fff !important; border: none !important; border-radius: 4px; font-weight: bold; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; }
.btn-filter-custom:hover { background: #b71c1c !important; }
.leg-item { border-bottom: 1px solid #eee; padding: 20px 0; transition: 0.2s; }
.leg-item:hover { background: #fcfcfc; }
.leg-title { color: #333; font-weight: bold; font-size: 1.15rem; margin-bottom: 5px; display: block; text-decoration: none; }
.leg-title:hover { color: #d32f2f; }
.leg-meta { font-size: 12px; color: #666; margin-bottom: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.leg-badge { color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 11px; text-transform: uppercase; font-weight: bold; }
.badge-ambito { background-color: #d32f2f; }
.badge-ley { background-color: #0d6efd; }
.badge-ordenanza { background-color: #198754; }
.badge-decreto { background-color: #fd7e14; }
.badge-disposicion { background-color: #6f42c1; }
.badge-default { background-color: #6c757d; }
.btn-pdf { color: #d32f2f; border: 1px solid #d32f2f; padding: 6px 15px; border-radius: 4px; font-size: 13px; text-decoration: none; font-weight: bold; transition: 0.2s; }
.btn-pdf:hover { background: #d32f2f; color: #fff; }

@media (max-width: 768px) {
    .filter-wrapper { flex-direction: column; align-items: flex-start; gap: 15px; }
    .filter-group,
    .filter-group.btn-col { width: 100%; flex: none; }
    .leg-meta span { margin-bottom: 5px; }
    .col-md-3.text-end { text-align: left !important; margin-top: 15px; }
}

/* ============================================================
   PÁGINA: HERRAMIENTAS
   ============================================================ */
.tools-page-wrapper { padding-top: 20px; padding-bottom: 60px; }
.title-herramientas { font-size: 2rem; margin-bottom: 20px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; margin-bottom: 30px; }
.tool-card {
    background: #fff; border: 1px solid #eee; border-radius: 12px; aspect-ratio: 1 / 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 10px; transition: all 0.3s ease;
    text-decoration: none !important; cursor: pointer; border-bottom: 3px solid #090231;
}
.tool-card:hover { transform: translateY(-5px); border-bottom-color: #d32f2f; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.tool-card i { font-size: 2rem; color: #d32f2f; margin-bottom: 10px; }
.tool-card .tool-icon { font-size: 2rem; line-height: 1; display: block; margin-bottom: 10px; }
.tool-card span { font-weight: 800; font-size: 0.8rem; color: #090231; text-transform: uppercase; line-height: 1.2; padding: 0 5px; }
.tool-card .tool-label { font-weight: 800; font-size: 0.8rem; color: #090231; text-transform: uppercase; line-height: 1.2; padding: 0 5px; }
.sidebar-panel { background: #fff; border: 1px solid #090231; border-radius: 10px; overflow: hidden; }
.sidebar-header { background: #090231; color: #fff; padding: 12px 15px; font-weight: 800; text-transform: uppercase; font-size: 0.8rem; display: flex; align-items: center; gap: 8px; }
.sidebar-body { padding: 15px; }
.doc-item { background: #f8f9fa; padding: 10px; border-radius: 6px; margin-bottom: 10px; border-left: 4px solid #d32f2f; }
.doc-link { color: #090231; text-decoration: none !important; font-weight: 800; display: block; font-size: 0.8rem; line-height: 1.3; }
.btn-historial { display: block; width: 100%; padding: 10px; background: #d32f2f; color: #fff !important; text-align: center; font-weight: 800; text-transform: uppercase; border-radius: 5px; font-size: 0.7rem; text-decoration: none !important; }
.embed-full-width { grid-column: 1 / -1; display: none; background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 10px; margin-top: 10px; }
.sidebar-index-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #090231;
    text-decoration: none !important;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s, color 0.2s;
}
.sidebar-index-link:last-child { border-bottom: none; }
.sidebar-index-link i { color: #d32f2f; font-size: 0.6rem; }
.sidebar-index-link:hover { background: #f4f7f6; color: #d32f2f; }

.cat-section-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 30px 0 0;
    background: #090231;
    border-left: 5px solid #d32f2f;
    padding: 8px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    scroll-margin-top: 80px;
    transition: background 0.2s;
}
.cat-section-title:hover { background: #150550; }
.cat-toggle-icon {
    font-size: 1rem;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 10px;
    display: inline-block;
    line-height: 1;
}
.cat-section-title[aria-expanded="true"] .cat-toggle-icon {
    transform: rotate(180deg);
}
.tool-grid { padding-top: 15px; padding-bottom: 10px; }

/* ============================================================
   PÁGINA: ASOCIACION
   ============================================================ */
.section-header { margin-bottom: 40px; border-bottom: 3px solid #090231; display: inline-block; padding-bottom: 5px; }
.section-header h1 { font-weight: 900; color: #090231; text-transform: uppercase; font-size: 1.8rem; margin: 0; }
.asoc-item { display: flex; gap: 30px; background: #fff; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid #eee; }
.asoc-img { width: 350px; height: 220px; flex-shrink: 0; border-radius: 12px; overflow: hidden; }
.asoc-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.asoc-title { font-size: 1.4rem; font-weight: 800; color: #090231; text-decoration: none; display: block; margin-bottom: 12px; line-height: 1.2; }
.asoc-title:hover { color: #d32f2f; }
.asoc-bajada { color: #555; font-size: 1rem; line-height: 1.6; }

@media (max-width: 768px) {
    .asoc-item { flex-direction: column; gap: 15px; }
    .asoc-img { width: 100%; height: 200px; }
    .asoc-title { font-size: 1.25rem; }
}

/* ============================================================
   PÁGINA: PERTENECER
   ============================================================ */
.main-pertenecer { margin-top: 20px !important; }
.title-pertenecer { font-size: 2.5rem; margin-bottom: 10px; }
.subtitle-pertenecer { font-size: 1.2rem; color: #d32f2f; font-weight: 600; max-width: 800px; margin: 0 auto 30px; line-height: 1.4; }
.text-content p { font-size: 1.05rem; line-height: 1.8; color: #444; text-align: justify; margin-bottom: 20px; }
.benefits-list { background: #f8f9fa; border-left: 5px solid #090231; padding: 30px; border-radius: 0 10px 10px 0; margin: 40px 0; }
.benefits-list ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.benefits-list li { position: relative; padding-left: 30px; font-weight: 600; color: #090231; }
.benefits-list li::before { content: "\f058"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; color: #d32f2f; }
.btn-action-primary { background: #d32f2f; color: #fff !important; border: none; padding: 15px 40px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-radius: 5px; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(211,47,47,0.3); display: inline-block; text-decoration: none !important; }
.btn-action-primary:hover { background: #090231; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(9,2,49,0.4); }
.btn-action-outline { color: #090231 !important; border: 2px solid #090231; padding: 12px 30px; font-weight: 700; text-transform: uppercase; border-radius: 5px; transition: 0.3s; text-decoration: none !important; display: inline-block; }
.btn-action-outline:hover { background: #090231; color: #fff !important; }

@media (max-width: 768px) {
    .benefits-list ul { grid-template-columns: 1fr; }
    .title-pertenecer { font-size: 1.8rem; }
}

/* ============================================================
   PÁGINA: CONTACTO
   ============================================================ */
.contact-page-wrapper { padding: 40px 0 80px; background-color: #fdfdfd; min-height: 70vh; }
.title-contact { font-size: 2.8rem; margin-bottom: 10px; }
.subtitle-contact { font-size: 1.1rem; color: #d32f2f; font-weight: 600; max-width: 750px; margin: 0 auto 40px; text-transform: uppercase; letter-spacing: 1px; }
.direct-contact { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid #eee; margin-bottom: 40px; }
.contact-item { margin: 15px 0; font-size: 1.3rem; color: #090231; font-weight: 700; text-decoration: none !important; display: inline-block; transition: 0.3s; }
.contact-item i { color: #d32f2f; margin-right: 15px; }
.contact-item:hover { color: #d32f2f; }
.social-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
.social-card { background: #fff; border: 1px solid #eaeaea; border-radius: 12px; padding: 25px 15px; text-decoration: none !important; color: #333; transition: all 0.4s ease; display: flex; flex-direction: column; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.social-card:hover { transform: translateY(-8px); border-color: #d32f2f; box-shadow: 0 12px 25px rgba(0,0,0,0.08); }
.social-card i { font-size: 2.5rem; margin-bottom: 12px; color: #090231; transition: 0.3s; }
.social-card .social-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; min-height: 2.5rem; }
.social-card .social-icon svg { width: 2.5rem; height: 2.5rem; display: block; }
.social a { display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; transition: opacity 0.25s; }
.social a:hover { opacity: 0.7; text-decoration: none; }
.social a svg { width: 22px; height: 22px; }
.social-card span { font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: #666; }
.card-instagram:hover i { color: #E1306C; }
.card-youtube:hover i { color: #FF0000; }
.card-x:hover .icon-x-svg { color: #000; }
.icon-x-svg { height: 2.2rem; margin-bottom: 15px; color: #090231; transition: 0.3s; }
.location-box { margin-top: 50px; padding: 20px; border-top: 1px solid #eee; }
.location-box h4 { font-size: 1.2rem; font-weight: 600; color: #444; }
.location-box i { color: #d32f2f; margin-right: 10px; }

/* ============================================================
   PÁGINA: ÁREA SOCIOS (LOGIN)
   ============================================================ */
.login-section {
    background: linear-gradient(rgba(9,2,49,0.9), rgba(9,2,49,0.9)), url('../img/fondo-marino.jpg');
    background-size: cover; background-position: center;
    min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 50px 0;
}
.login-box { background: #fff; border-radius: 15px; box-shadow: 0 15px 35px rgba(0,0,0,0.3); max-width: 450px; width: 90%; padding: 40px; border-top: 6px solid #d32f2f; position: relative; }
.login-box h2 {
    font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.8rem;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #090231 0%, #1e1461 50%, #090231 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-align: center; margin-bottom: 5px;
}
.login-subtitle { color: #d32f2f; display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; text-align: center; margin-bottom: 30px; }
.login-section .form-group label { font-weight: 700; color: #444; font-size: 0.85rem; text-transform: uppercase; }
.login-section .form-control { border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px 15px; background: #fdfdfd; transition: all 0.3s; }
.login-section .form-control:focus { border-color: #090231; box-shadow: 0 0 0 0.2rem rgba(9,2,49,0.1); }
.info-box { background: #fff5f5; border-left: 4px solid #d32f2f; font-size: 13px; margin: 25px 0; padding: 15px; color: #333; border-radius: 0 8px 8px 0; }
.btn-ingresar { background: #090231; border: none; color: #fff; font-weight: 800; padding: 15px; text-transform: uppercase; letter-spacing: 1px; transition: all 0.4s ease; width: 100%; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.btn-ingresar:hover { background: #d32f2f; color: #fff; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(211,47,47,0.3); }
.help-link { font-size: 12px; color: #888; transition: color 0.3s; text-decoration: none !important; }
.help-link:hover { color: #d32f2f; }

@media (max-width: 767px) {
    /* Esto evita que el menú se vea cortado o desordenado */
    .navbar-collapse {
        background: #090231; /* Color oscuro para el fondo del menú */
        padding: 20px;
        border-top: 2px solid #d32f2f;
    }
    
    .navbar-nav {
        flex-direction: column !important; /* Cambiamos a columna para que se vea bien en celular */
    }

    .navbar-nav .nav-item {
        flex: 0 0 100% !important; /* Que cada ítem ocupe todo el ancho */
        text-align: left !important;
    }
}



/* ===================================
   DASHBOARD NAVBAR COMPARTIDO
   =================================== */
.dashboard-topbar {
    background: linear-gradient(135deg, #090231 0%, #1e1461 100%);
    border-bottom: 4px solid #d32f2f;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dashboard-topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 8px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: #d32f2f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-role {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.dashboard-nav {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.dashboard-nav .nav-link {
    color: rgba(255,255,255,0.85);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.dashboard-nav .nav-link.active {
    background: #d32f2f;
    color: #fff;
}

.dashboard-nav .nav-link i {
    font-size: 1rem;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
}

.dashboard-actions .btn {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: 0.3s;
}

/* Responsive Dashboard Navbar */
@media (max-width: 991px) {
    .dashboard-topbar-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dashboard-user-info {
        justify-content: center;
    }
    
    .dashboard-nav {
        justify-content: center;
        order: 2;
    }
    
    .dashboard-nav .nav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .dashboard-actions {
        justify-content: center;
        order: 3;
    }
}

@media (max-width: 575px) {
    .dashboard-nav {
        flex-direction: column;
        gap: 3px;
    }
    
    .dashboard-nav .nav-link {
        justify-content: center;
        padding: 10px;
    }
    
    .user-details {
        display: none;
    }
    
    .dashboard-actions .btn span {
        display: none;
    }
}

/* ===================================
   TOAST NOTIFICATIONS
   =================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: toastSlideIn 0.3s ease-out;
    border-left: 4px solid;
}

.toast.success { border-left-color: #28a745; }
.toast.error { border-left-color: #dc3545; }
.toast.warning { border-left-color: #ffc107; }
.toast.info { border-left-color: #17a2b8; }

.toast-icon {
    font-size: 1.3rem;
}

.toast.success .toast-icon { color: #28a745; }
.toast.error .toast-icon { color: #dc3545; }
.toast.warning .toast-icon { color: #ffc107; }
.toast.info .toast-icon { color: #17a2b8; }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85rem;
    color: #666;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.toast-close:hover {
    color: #333;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.toast-hiding {
    animation: toastSlideOut 0.3s ease-in;
}

@media (max-width: 575px) {
    .toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
    }
}

/* ===================================
   DASHBOARD RESPONSIVE OPTIMIZATION
   =================================== */

/* Module Cards - Dashboard Index */
.module-card {
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    .module-card {
        padding: 20px !important;
    }
    
    .module-icon {
        font-size: 2.2rem !important;
        margin-bottom: 15px !important;
    }
    
    .module-card h4 {
        font-size: 1rem !important;
    }
    
    .module-card p {
        font-size: 0.85rem !important;
    }
}

/* Page Headers - All Dashboard Pages */
.page-header {
    padding: 40px 0;
}

@media (max-width: 767px) {
    .page-header {
        padding: 30px 0;
    }
    
    .page-header h1 {
        font-size: 1.5rem !important;
    }
    
    .page-header p {
        font-size: 0.9rem !important;
    }
}

/* Historial Grid - Parte Diario */
.historial-grid {
    gap: 20px;
}

@media (max-width: 991px) {
    .historial-grid {
        flex-direction: column;
    }
    
    .historial-col {
        margin-bottom: 20px;
    }
}

@media (max-width: 575px) {
    .historical-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .historial-item .btn-download {
        width: 100%;
        justify-content: center;
    }
    
    .item-main {
        width: 100%;
    }
    
    .search-wrapper {
        padding: 0 10px;
    }
    
    .search-input {
        font-size: 0.9rem !important;
        padding: 12px 15px 12px 40px !important;
    }
}

/* Status Cards - Finanzas */
.status-card {
    padding: 25px;
}

@media (max-width: 575px) {
    .status-card {
        padding: 20px;
    }
    
    .status-card h3 {
        font-size: 1.2rem !important;
    }
    
    .status-badge {
        font-size: 0.8rem !important;
        padding: 8px 15px !important;
    }
}

/* Doc Cards - Normativas */
.doc-card {
    padding: 20px;
}

@media (max-width: 575px) {
    .doc-card {
        padding: 18px;
    }
    
    .doc-card h4 {
        font-size: 1rem !important;
    }
    
    .doc-description {
        font-size: 0.85rem !important;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
    }
}

/* Biblioteca Grid */
.bib-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

@media (max-width: 575px) {
    .bib-grid {
        grid-template-columns: 1fr;
    }
    
    .bib-hero h1 {
        font-size: 1.6rem !important;
    }
    
    .bib-filters form {
        grid-template-columns: 1fr !important;
    }
    
    .bib-item-acciones {
        flex-direction: column;
    }
    
    .bib-item-acciones a {
        width: 100%;
    }
}

/* Mi Perfil - Form Cards */
.card-section {
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .card-section .card-header {
        font-size: 0.95rem !important;
        padding: 12px 18px !important;
    }
    
    .card-section .card-body {
        padding: 18px !important;
    }
    
    .perfil-avatar {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.8rem !important;
    }
    
    .section-sub {
        font-size: 0.65rem !important;
    }
    
    .field-readonly {
        font-size: 0.85rem !important;
        padding: 6px 10px !important;
    }
    
    .btn-guardar,
    .btn-clave {
        width: 100%;
        padding: 12px 20px !important;
    }
}

@media (max-width: 575px) {
    .col-lg-3.mb-4 {
        margin-bottom: 15px !important;
    }
    
    .card-section {
        margin-bottom: 15px !important;
    }
    
    label {
        font-size: 0.8rem !important;
        margin-bottom: 5px !important;
    }
    
    .form-control {
        font-size: 0.9rem !important;
        padding: 8px 12px !important;
    }
}

/* Tables - Responsive */
.recibos-table,
.historial-list {
    overflow-x: auto;
}

@media (max-width: 575px) {
    table {
        font-size: 0.85rem !important;
    }
    
    table th,
    table td {
        padding: 10px 8px !important;
    }
}

/* Navbar Dashboard Mobile */
@media (max-width: 575px) {
    .dashboard-topbar {
        padding: 12px 0 !important;
    }
    
    .user-avatar {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.5rem !important;
    }
    
    .dashboard-nav .nav-link {
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
    }
    
    .dashboard-actions .btn {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
}

/* Footer Dashboard - Mobile */
@media (max-width: 767px) {
    .footer {
        padding: 30px 0 40px 0 !important;
    }
    
    .footer h3.title {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
    }
    
    .footer-widget ul li,
    .contact-info p {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }
    
    .newsletter input,
    .newsletter button {
        font-size: 0.9rem !important;
        padding: 10px !important;
    }
}

@media (max-width: 575px) {
    .footer-menu .f-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-menu .f-menu a {
        font-size: 0.8rem !important;
        padding: 5px 10px !important;
    }
    
    /* WhatsApp button mobile */
    a[href^="https://wa.me/"][style*="position:fixed"] {
        width: 50px !important;
        height: 50px !important;
        bottom: 15px !important;
        right: 15px !important;
        font-size: 1.4rem !important;
    }
}

/* Loading States & Interactive Feedback */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Card Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

/* ==== CONTENIDO DE NOTA — Imágenes ==== */

/* Limpiar floats dentro del contenido */
.single-news-content::after { content: ''; display: table; clear: both; }

/* Figuras con caption */
.single-news-content figure.image {
    display: inline-block;
    margin: 8px 0;
    max-width: 100%;
}
.single-news-content figure.image img { width: 100%; height: auto; border-radius: 4px; }

/* Alineación izquierda */
.single-news-content figure.image.align-left,
.single-news-content img.align-left {
    float: left;
    margin: 0 20px 10px 0;
}
/* Alineación derecha */
.single-news-content figure.image.align-right,
.single-news-content img.align-right {
    float: right;
    margin: 0 0 10px 20px;
}
/* Centrado */
.single-news-content figure.image.align-center,
.single-news-content img.align-center {
    display: block;
    margin: 15px auto;
}

/* Pie de foto */
.single-news-content figcaption {
    font-style: italic;
    font-size: 0.82rem;
    color: #555;
    text-align: center;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 0 0 6px 6px;
    border: 1px solid #e2e8f0;
    border-top: none;
}

/* Carrusel galería dentro de nota */
.nota-galeria { margin: 25px 0; }
.nota-galeria .slick-slide img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 8px;
}
.nota-galeria .slick-prev, .nota-galeria .slick-next { z-index: 10; }
.nota-galeria .slick-prev { left: 10px; }
.nota-galeria .slick-next { right: 10px; }
.nota-galeria .slick-dots { bottom: -25px; }
