/* ==========================================================================
   HOJA DE ESTILOS PROFESIONAL - MIDNIGHT GOLD CORPORATE EDITION (2026)
   Diseñado para superar layouts genéricos y plantillas de CMS comunes.
   ========================================================================== */

:root {
    --primary-midnight: #0b132b;  /* Azul oscuro profundo e institucional */
    --primary-slate: #1c2541;     /* Azul de transición corporativa */
    --accent-gold: #b45309;       /* Dorado ámbar sutil, refinado, no chillón */
    --accent-gold-light: #fef3c7; /* Fondo suave para destacar alertas */
    --bg-light: #f8fafc;          /* Fondo base limpio y descansado */
    --bg-white: #ffffff;          /* Blanco puro para tarjetas y áreas de enfoque */
    
    --text-main: #1e293b;         /* Texto principal de alta legibilidad */
    --text-muted: #475569;        /* Texto secundario para descripciones */
    --text-light: #f1f5f9;        /* Texto claro para contrastes oscuros */
    
    --border-soft: #e2e8f0;       /* Separadores elegantes y delgados */
    --radius-standard: 12px;      /* Bordes curvos profesionales */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 20px 40px -15px rgba(15, 23, 42, 0.05);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

.top-accent-line {
    background: linear-gradient(90deg, var(--primary-midnight), var(--accent-gold), var(--primary-slate));
    height: 6px;
    width: 100%;
}

/* --- Encabezado del Sitio (Header Profesional) --- */
.site-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-soft);
    padding: 30px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.brand-identity h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-midnight);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.brand-identity h1 span {
    color: var(--accent-gold);
    font-weight: 400;
    font-style: italic;
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

/* Menú posicionado a la derecha de manera limpia */
.main-navigation {
    display: flex;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 0;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--accent-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-midnight);
    font-weight: 700;
}

/* --- Layout Principal (Información a la Izquierda, Sidebar a la Derecha) --- */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 380px; /* Estructura PC premium */
    gap: 50px;
    padding: 60px 0;
}

/* Area de Contenido a la Izquierda */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-standard);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-premium);
    padding: 50px;
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.08);
}

.card-header {
    margin-bottom: 25px;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding: 4px 12px;
    border-radius: 4px;
}

.badge-banca { background-color: #e0f2fe; color: #0369a1; }
.badge-seguridad { background-color: #fee2e2; color: #b91c1c; }
.badge-contenido { background-color: #f0fdf4; color: #15803d; }

.blog-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    color: var(--primary-midnight);
    line-height: 1.3;
    font-weight: 700;
}

.card-media {
    margin: 30px 0;
    overflow: hidden;
    border-radius: 10px;
    height: 400px;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .card-media img {
    transform: scale(1.03);
}

.card-body p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 24px;
    text-align: justify;
}

.card-body p:last-child {
    margin-bottom: 0;
}

.card-body strong {
    color: var(--primary-midnight);
    font-weight: 700;
}

.card-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary-midnight);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--accent-gold);
    transform: translateY(-2px);
}

.action-link {
    color: var(--primary-midnight);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.action-link:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

/* --- Barra Lateral (Sidebar Derecha) --- */
.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: var(--bg-white);
    border-radius: var(--radius-standard);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-premium);
    padding: 35px;
    border-top: 4px solid var(--primary-midnight);
}

.widget-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 25px;
    font-weight: 800;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 10px;
}

.profile-content {
    text-align: center;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-midnight), var(--primary-slate));
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    font-weight: 700;
}

.author-name {
    display: block;
    font-size: 1.25rem;
    color: var(--primary-midnight);
    margin-bottom: 12px;
    font-weight: 700;
}

.author-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: justify;
}

.widget-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.contact-link {
    color: var(--primary-midnight);
    text-decoration: none;
    font-weight: 700;
    word-break: break-all;
}

.contact-link:hover {
    color: var(--accent-gold);
}

.contact-text {
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.5;
}

/* --- Modales Pop-up --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 19, 43, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 50px;
    max-width: 600px;
    width: 100%;
    position: relative;
    border-top: 6px solid var(--accent-gold);
}

.close-button {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.close-button:hover {
    color: var(--accent-gold);
}

.modal-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-gold);
    background-color: var(--accent-gold-light);
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.modal-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--primary-midnight);
    margin-bottom: 20px;
}

.modal-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* --- Pie de Página Global (Disclaimer Centrado al 100%) --- */
.site-footer {
    background-color: #050b18;
    color: var(--text-light);
    padding: 80px 0 40px 0;
    margin-top: 80px;
    border-top: 4px solid var(--primary-slate);
}

.footer-disclaimer {
    max-width: 900px;
    margin: 0 auto 50px auto;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
}

.disclaimer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-disclaimer h4 {
    font-size: 1.1rem;
    color: #fef3c7;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-disclaimer p {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 15px;
}

.disclaimer-tag {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    background-color: rgba(180, 83, 9, 0.2);
    color: #fbbf24;
    padding: 6px 16px;
    border-radius: 4px;
}

.footer-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-navigation {
    display: flex;
    gap: 30px;
}

.footer-navigation a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-navigation a:hover {
    color: #fbbf24;
}

.copyright-text {
    font-size: 0.75rem;
    color: #64748b;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries Adaptables)
   ========================================================================== */

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .sidebar-area {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .sidebar-area {
        grid-template-columns: 1fr;
    }
    .blog-card h2 {
        font-size: 1.6rem;
    }
    .card-media {
        height: 250px;
    }
    .card-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}