/* --- Variables Pro (Look Limpio y Moderno) --- */
:root {
    --primary: #0f172a;    /* Azul Slate muy profundo */
    --accent: #10b981;     /* Verde Esmeralda (Transmite seguridad) */
    --accent-hover: #059669;
    --text-main: #334155;  /* Gris suave para lectura larga */
    --text-muted: #64748b;
    --bg-body: #f8fafc;    /* Fondo casi blanco de interfaz moderna */
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* --- Header con Efecto Blur Superior --- */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

header h1 { 
    font-size: 1.75rem; 
    color: var(--primary); 
    font-weight: 800; 
    letter-spacing: -0.025em;
    text-align: center;
}

header h1 span { color: var(--accent); }

nav { 
    display: flex; 
    justify-content: center; 
    gap: 32px; 
    margin-top: 16px; 
}

nav a { 
    text-decoration: none; 
    color: var(--text-muted); 
    font-weight: 600; 
    font-size: 0.875rem; 
    transition: var(--transition);
}

nav a:hover { color: var(--primary); }

/* --- Grid Principal --- */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 380px; /* Sidebar más ancho para que se vea lleno */
    gap: 40px;
    padding: 60px 0;
}

/* --- Estilo de los Posts (Tipo Tarjeta Apple) --- */
.post {
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 40px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.category {
    background: #ecfdf5; /* Fondo verde muy claro */
    color: var(--accent);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 20px;
}

.post h2 { 
    font-size: 2.25rem; 
    color: var(--primary); 
    margin-bottom: 24px; 
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.post img { 
    width: 100%; 
    height: 420px; 
    object-fit: cover; 
    border-radius: 16px; 
    margin-bottom: 32px; 
}

.post p { margin-bottom: 24px; font-size: 1.1rem; }

/* Estados SPEI (Más elegantes) */
.status-badge { 
    display: inline-flex; 
    align-items: center; 
    padding: 4px 12px; 
    border-radius: 6px; 
    font-weight: 700; 
    font-size: 0.85rem; 
    margin-right: 8px;
}
.status-success { background: #d1fae5; color: #065f46; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-error { background: #fee2e2; color: #991b1b; }

/* Botones con Degradado Suave */
.btn-read {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-read:hover { background: var(--accent); transform: scale(1.02); }

/* --- Sidebar (Look de Widget) --- */
.sidebar-card {
    background: var(--white);
    padding: 32px;
    border-radius: 24px;
    margin-bottom: 32px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 { 
    font-size: 1.125rem; 
    color: var(--primary); 
    margin-bottom: 20px; 
    font-weight: 800;
    display: flex;
    align-items: center;
}

.sidebar-card h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--accent);
    margin-right: 12px;
    border-radius: 2px;
}

.sidebar-nav { list-style: none; }
.sidebar-nav li { margin-bottom: 12px; }
.sidebar-nav a { 
    text-decoration: none; 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
}
.sidebar-nav a:hover { background: #f1f5f9; color: var(--primary); }

/* --- Footer Robusto --- */
footer { 
    background: var(--primary); 
    color: #f1f5f9; 
    padding: 80px 0 40px; 
    margin-top: 80px; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr; 
    gap: 60px; 
    margin-bottom: 60px; 
}

.disclaimer-box { 
    background: rgba(255, 255, 255, 0.03); 
    padding: 32px; 
    border-radius: 20px; 
    border-left: 4px solid var(--accent); 
    font-size: 0.9rem;
    line-height: 1.8;
}

.warning-text { color: var(--accent); font-weight: 800; text-transform: uppercase; margin: 16px 0; }

@media (max-width: 1024px) {
    .main-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .post { padding: 32px; }
}
/* --- Actualización de Header Pro --- */

.top-announcement {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 0;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.announcement-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.badge {
    background: var(--accent);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.65rem;
}

.header-grid-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

/* Estilo del Nombre (Brand) */
.brand .logo-link {
    text-decoration: none;
}

.brand h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    color: var(--primary);
    margin: 0;
    letter-spacing: -0.5px;
    font-weight: 700;
}

.brand h1 span {
    color: var(--accent);
    font-weight: 300; /* Hace que el apellido se vea más ligero y elegante */
}

.tagline {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

/* Navegación Amigable */
.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent);
}

.nav-btn-alt {
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-separator {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
}

/* Ajuste Móvil */
@media (max-width: 768px) {
    .header-grid-nav {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .main-nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* --- FUNDAMENTOS Y VARIABLES --- */
:root {
    --primary: #0f172a;    /* Navy Dark */
    --accent: #10b981;     /* Emerald Security */
    --secondary: #6366f1;  /* Indigo Tech */
    --warning: #f59e0b;    /* Amber Caution */
    --danger: #ef4444;     /* Rose Alert */
    --bg-main: #f8fafc;
    --white: #ffffff;
    --text-p: #334155;
    --text-h: #1e293b;
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-heavy: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET Y BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-p);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 30px; }

/* --- HEADER NEURAL PRO --- */
.top-announcement {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 0;
    font-size: 0.75rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.header-flex { display: flex; justify-content: space-between; align-items: center; }

.brand h1 { 
    font-size: 1.6rem; 
    color: var(--primary); 
    font-weight: 800; 
    letter-spacing: -1px;
}
.brand h1 span { color: var(--accent); font-weight: 300; }
.brand .tagline { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; display: block; }

nav.main-nav { display: flex; gap: 30px; align-items: center; }
nav.main-nav a { 
    text-decoration: none; 
    color: var(--text-h); 
    font-weight: 600; 
    font-size: 0.9rem; 
    transition: var(--transition);
}
nav.main-nav a:hover { color: var(--accent); transform: translateY(-1px); }

/* --- GRID PRINCIPAL --- */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    padding: 80px 0;
}

/* --- POSTS Y CONTENIDO --- */
.post {
    background: var(--white);
    border-radius: var(--radius);
    padding: 50px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease;
}

.post:hover { transform: translateY(-8px); box-shadow: var(--shadow-heavy); }

.category-tag {
    background: #ecfdf5;
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.post h2 { font-size: 2.4rem; color: var(--primary); margin: 25px 0; line-height: 1.1; letter-spacing: -1px; }
.post img { width: 100%; height: 450px; object-fit: cover; border-radius: 12px; margin-bottom: 35px; }

/* --- BOTONES Y ENLACES --- */
.action-group { display: flex; align-items: center; gap: 20px; margin-top: 30px; }
.btn-modal {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-modal:hover { background: var(--accent); transform: scale(1.05); }

.link-deep { 
    text-decoration: none; 
    color: var(--secondary); 
    font-weight: 700; 
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
}
.link-deep:hover { border-bottom-color: var(--secondary); }

/* --- SIDEBAR GOOGLE ADS --- */
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 35px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-soft);
}

.card-google { border: 2px solid #4285f4; text-align: center; }
.card-google h3 { color: #4285f4; margin: 15px 0; font-size: 1.1rem; text-transform: uppercase; }
.id-badge { background: #f1f5f9; padding: 10px; border-radius: 8px; font-family: monospace; font-weight: 800; margin: 10px 0; display: block; }
.verified-tag { color: var(--accent); font-weight: 900; font-size: 0.8rem; }

/* --- SISTEMA DE MODALES --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    z-index: 9999;
    justify-content: center; align-items: center;
}

.modal-content {
    background: var(--white);
    width: 90%; max-width: 700px;
    padding: 60px;
    border-radius: 24px;
    position: relative;
    max-height: 80vh; overflow-y: auto;
}

.close-modal { position: absolute; top: 30px; right: 30px; font-size: 2rem; cursor: pointer; color: var(--text-muted); }

/* --- FOOTER --- */
footer { background: var(--primary); color: #cbd5e1; padding: 100px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; margin-bottom: 80px; }
.legal-box { background: rgba(255,255,255,0.03); padding: 40px; border-radius: 20px; border-left: 5px solid var(--accent); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) { .main-grid { grid-template-columns: 1fr; } }
:root {
    --primary: #0f172a;
    --accent: #10b981;
    --text: #334155;
    --white: #ffffff;
    --bg: #f8fafc;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
}

.container { max-width: 1250px; margin: 0 auto; padding: 0 25px; }

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}

header h1 { font-size: 1.8rem; color: var(--primary); font-weight: 800; }
header h1 span { color: var(--accent); font-weight: 300; }

nav { display: flex; gap: 25px; margin-top: 15px; }
nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
nav a:hover { color: var(--accent); }

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    padding: 60px 0;
}

/* Post Styling */
.post {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.post:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }

.category-tag {
    background: #ecfdf5;
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.post h2 { font-size: 2.2rem; color: var(--primary); margin: 20px 0; line-height: 1.1; }
.post img { width: 100%; height: 400px; object-fit: cover; border-radius: 15px; margin-bottom: 30px; }

/* Botones & Links */
.action-group { display: flex; align-items: center; gap: 20px; margin-top: 30px; }
.btn-read {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-read:hover { background: var(--accent); transform: scale(1.05); }

.link-deep { text-decoration: none; color: var(--accent); font-weight: 700; font-size: 0.9rem; }

/* Sidebar */
.sidebar-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.google-card { border: 2px solid #4285f4; text-align: center; }
.id-text { font-family: monospace; font-size: 1rem; margin: 10px 0; background: #f1f5f9; padding: 5px; }
.status-green { color: var(--accent); font-weight: bold; font-size: 0.8rem; }

/* Modales */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(8px); z-index: 2000;
    justify-content: center; align-items: center;
}
.modal-content { background: white; padding: 50px; border-radius: 24px; width: 90%; max-width: 500px; position: relative; }
.close-btn { position: absolute; top: 20px; right: 20px; font-size: 30px; cursor: pointer; }

/* Footer */
footer { background: var(--primary); color: #cbd5e1; padding: 80px 0 40px; }
/* --- FUNDAMENTOS Y VARIABLES --- */
:root {
    --primary: #0f172a;    
    --accent: #10b981;     
    --secondary: #6366f1;  
    --bg-main: #f8fafc;
    --white: #ffffff;
    --text-p: #334155;
    --text-h: #1e293b;
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-heavy: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-p);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 30px; }

/* --- HEADER PREMIUM --- */
.top-announcement {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 0;
    font-size: 0.75rem;
    text-align: center;
}

header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}

.header-flex { display: flex; justify-content: space-between; align-items: center; }

.brand h1 { font-size: 1.7rem; color: var(--primary); font-weight: 800; letter-spacing: -1px; text-decoration: none;}
.brand h1 span { color: var(--accent); font-weight: 300; }
.brand .tagline { font-size: 0.7rem; color: #64748b; text-transform: uppercase; letter-spacing: 2px; display: block; margin-top: 4px;}

nav.main-nav { display: flex; gap: 30px; }
nav.main-nav a { text-decoration: none; color: var(--text-h); font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
nav.main-nav a:hover { color: var(--accent); }

/* --- GRID Y LAYOUT --- */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    padding: 60px 0;
}

/* --- POSTS (CONTENIDO MASIVO) --- */
.post {
    background: var(--white);
    border-radius: var(--radius);
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-heavy); }

.category-tag {
    background: #ecfdf5;
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.post h2 { font-size: 2.3rem; color: var(--primary); margin: 25px 0; line-height: 1.2; letter-spacing: -1px; }
.post img { width: 100%; height: 400px; object-fit: cover; border-radius: 15px; margin-bottom: 30px; }

.post-content p { margin-bottom: 20px; font-size: 1.1rem; text-align: justify; }

/* --- ACCIONES Y BOTONES --- */
.action-group { display: flex; align-items: center; gap: 20px; margin-top: 30px; }

.btn-read {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-read:hover { background: var(--accent); transform: scale(1.05); }

.link-deep { text-decoration: none; color: var(--secondary); font-weight: 700; font-size: 0.95rem; }
.link-deep:hover { text-decoration: underline; }

/* --- SIDEBAR DE AUTORIDAD --- */
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.card-google { border: 2px solid #4285f4; text-align: center; }
.card-google img { margin-bottom: 15px; }
.id-badge { background: #f1f5f9; padding: 10px; border-radius: 8px; font-family: monospace; font-weight: 800; margin: 10px 0; display: block; color: #1e293b;}

/* --- MODALES --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center; align-items: center;
}

.modal-content {
    background: var(--white);
    width: 90%; max-width: 600px;
    padding: 50px;
    border-radius: 25px;
    position: relative;
}

.close-modal { position: absolute; top: 25px; right: 25px; font-size: 2rem; cursor: pointer; color: #94a3b8; }

/* --- FOOTER --- */
footer { background: var(--primary); color: #cbd5e1; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; }

@media (max-width: 1024px) { .main-grid { grid-template-columns: 1fr; } }
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
}

.social-btn.tw {
    background: #000;
    color: #fff;
}

.social-btn.li {
    background: #0077b5;
    color: #fff;
}

.social-btn:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.id-badge {
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    font-family: monospace;
    margin: 5px 0;
    border: 1px solid #e2e8f0;
}