:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #f3f4f6;
    --text: #111827;
    --muted: #6b7280;
    --card-bg: #ffffff;
    --border: #e5e7eb;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
}
a:hover { text-decoration: underline; }
/*
.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}
*/
/* HEADER */
/*
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}
*/
/*
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}
*/
.logo a {
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
}
.main-nav a {
    margin-left: 16px;
    font-size: 14px;
    color: var(--muted);
}
.main-nav a:hover {
    color: var(--primary);
}

/* HERO */
.hero {
    padding: 40px 0 32px;
}
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 32px;
    align-items: flex-start;
}
.hero h1 {
    font-size: 30px;
    margin-bottom: 12px;
}
.hero h1 span {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: var(--muted);
}
.hero p {
    margin-bottom: 12px;
    color: var(--muted);
}
.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    color: var(--muted);
}
.hero-bullets li { margin-bottom: 6px; }

/* Hero box form */
.hero-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(15,23,42,0.08);
}

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 18px rgba(15,23,42,0.04);
}
.card h2, .card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
}
.card p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
}
.card-link {
    font-size: 14px;
    font-weight: 500;
}

/* Post thumbnails */
.post-thumb {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
.post-thumb-single {
    max-height: 320px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
}
.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}
.btn-secondary:hover {
    background: #d1d5db;
}

/* Forms */
.vm-form, .admin-form-inline {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.form-group {
    margin-bottom: 12px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}
.form-group label span {
    color: #ef4444;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 14px;
}
.form-group textarea {
    min-height: 80px;
}
.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}
.form-group.checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-weight: 400;
}
.form-group.checkbox input {
    margin-top: 4px;
    width: auto;
}
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.radio-group label {
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 4px 10px;
    font-size: 13px;
}
.radio-group input {
    margin-right: 4px;
}

/* Alerts */
.alert {
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
}
.alert.success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}
.alert.error {
    background: #fee2e2;
    border: 1px solid #fecaca;
}

/* Layout */
.site-main {
    padding-bottom: 40px;
}
.page-header {
    padding: 24px 0 16px;
}
.page-header h1 {
    margin: 0 0 8px;
}
.page-header p {
    margin: 0;
    color: var(--muted);
    max-width: 640px;
}

/* Two columns */
.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
    gap: 24px;
    margin-top: 16px;
}
.content {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.sidebar {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 16px 0;
    background: #ffffff;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

/* Admin */
.admin-body {
    background: #0f172a;
    color: #e5e7eb;
}
.admin-login {
    max-width: 360px;
    margin: 80px auto;
    background: #020617;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #1e293b;
}
.admin-login h1 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
}
.admin-header {
    background: #020617;
    border-bottom: 1px solid #1f2937;
    margin-bottom: 16px;
}
.admin-header-inner {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: #e5e7eb;
}
.admin-header nav a {
    margin-left: 12px;
    font-size: 13px;
    color: #cbd5f5;
}
.admin-header nav a:hover {
    color: #fff;
}
.admin-main {
    padding-top: 8px;
    padding-bottom: 32px;
}
.admin-main .card {
    background: #020617;
    border-color: #1f2937;
}
.admin-main .card p {
    color: #e5e7eb;
    font-size: 22px;
    font-weight: 600;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #020617;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 12px;
}
.admin-table th,
.admin-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #1f2937;
}
.admin-table th {
    text-align: left;
    background: #020617;
}
.admin-table a {
    color: #93c5fd;
}
.admin-form-inline {
    margin-bottom: 16px;
}
.admin-form-inline .form-group {
    display: inline-block;
    margin-right: 8px;
    min-width: 220px;
}
.admin-form-inline input {
    width: 100%;
}
.import-result {
    background: #020617;
    border: 1px solid #1f2937;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
    .two-columns {
        grid-template-columns: 1fr;
    }
    .main-nav {
        display: none;
    }
}






/* === POST SINGLE / BLOG === */

.post-hero {
    padding: 40px 0 32px;
    background: radial-gradient(circle at top left, #dbeafe 0, #eff6ff 35%, #f9fafb 100%);
    border-bottom: 1px solid #e5e7eb;
}

.post-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.post-breadcrumb {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}
.post-breadcrumb a {
    color: #6b7280;
}
.post-breadcrumb a:hover {
    color: #2563eb;
}
.post-breadcrumb span {
    margin: 0 4px;
}

.post-hero-text h1 {
    font-size: 30px;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #0f172a;
}

.post-hero-excerpt {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 15px;
    max-width: 600px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.04);
    color: #4b5563;
}
.post-meta-item svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.post-hero-image {
    display: flex;
    justify-content: flex-end;
}
.post-hero-image-inner {
    width: 100%;
    max-width: 360px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15,23,42,0.18);
    border: 1px solid rgba(148,163,184,0.35);
    background: #0f172a;
}
.post-hero-image-inner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Layout contenido + sidebar */

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.05fr);
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 40px;
}

.post-body {
    min-width: 0;
}

.post-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 22px 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 30px rgba(15,23,42,0.06);
}

/* Tipografía del contenido del post */
.post-card h2,
.post-card h3,
.post-card h4 {
    color: #0f172a;
    margin-top: 20px;
    margin-bottom: 8px;
}
.post-card p {
    margin: 0 0 12px;
    color: #374151;
    line-height: 1.6;
    font-size: 15px;
}
.post-card ul,
.post-card ol {
    margin: 0 0 12px 20px;
    color: #374151;
}
.post-card a {
    color: #2563eb;
    text-decoration: underline;
}
.post-card blockquote {
    margin: 14px 0;
    padding: 10px 14px;
    border-left: 3px solid #2563eb;
    background: #eff6ff;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2933;
}

/* Imagen dentro del contenido si la quieres destacar extra */
.post-card img {
    max-width: 100%;
    border-radius: 10px;
    margin: 10px 0 14px;
}

/* Share */

.post-share {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #e5e7eb;
}
.post-share p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #4b5563;
}
.post-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    background: #22c55e;
    color: #ffffff;
    text-decoration: none;
}
.btn-share:hover {
    background: #16a34a;
}
.btn-share-secondary {
    background: #e5e7eb;
    color: #111827;
}
.btn-share-secondary:hover {
    background: #d1d5db;
}

/* Sidebar */

.post-sidebar {
    min-width: 0;
}
.post-sidebar-card {
    background: #020617;
    color: #e5e7eb;
    border-radius: 16px;
    padding: 20px 18px;
    border: 1px solid #1f2937;
    box-shadow: 0 16px 30px rgba(15,23,42,0.6);
}
.post-sidebar-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
}
.post-sidebar-card p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #cbd5f5;
}
.post-sidebar-card ul {
    margin: 0 0 12px 18px;
    font-size: 13px;
    color: #9ca3af;
}
.post-sidebar-card li {
    margin-bottom: 4px;
}
.btn-sidebar {
    width: 100%;
    text-align: center;
}

/* Responsive */

@media (max-width: 900px) {
    .post-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }
    .post-hero-image {
        order: -1;
        justify-content: flex-start;
    }
    .post-hero-image-inner {
        max-width: 100%;
    }
    .post-hero {
        padding: 28px 0 20px;
    }
}

@media (max-width: 768px) {
    .post-layout {
        grid-template-columns: 1fr;
    }
    .post-sidebar {
        order: -1;
    }
}




















/* === BLOG LIST === */

.blog-hero {
    padding: 40px 0 28px;
    background: radial-gradient(circle at top left, #dbeafe 0, #eff6ff 40%, #f9fafb 100%);
    border-bottom: 1px solid #e5e7eb;
}
.blog-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: center;
}

.section-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563eb;
    font-weight: 600;
    margin: 0 0 6px;
}

.blog-hero-inner h1 {
    font-size: 28px;
    margin: 0 0 10px;
    color: #0f172a;
}
.blog-hero-text {
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 14px;
    max-width: 620px;
}

.blog-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #4b5563;
}
.blog-hero-meta span {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.04);
}

/* CTA card lateral */

.blog-hero-card {
    background: #020617;
    color: #e5e7eb;
    border-radius: 18px;
    padding: 18px 18px 16px;
    border: 1px solid #1f2937;
    box-shadow: 0 20px 40px rgba(15,23,42,0.7);
}
.blog-hero-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
}
.blog-hero-card p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #cbd5f5;
}
.blog-hero-card ul {
    margin: 0 0 12px 18px;
    padding: 0;
    font-size: 13px;
    color: #9ca3af;
}
.blog-hero-card li {
    margin-bottom: 4px;
}
.btn-full {
    width: 100%;
    text-align: center;
}

/* Listado */

.blog-list {
    padding: 24px 0 40px;
}
.blog-empty {
    color: #6b7280;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.blog-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 26px rgba(15,23,42,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-card-thumb {
    width: 100%;
    position: relative;
    padding-top: 60%; /* proporción 5:3 */
    overflow: hidden;
}
.blog-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease-out;
}
.blog-card:hover .blog-card-thumb img {
    transform: scale(1.03);
}

.blog-card-body {
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-card-body h2 {
    font-size: 17px;
    margin: 0 0 6px;
}
.blog-card-body h2 a {
    color: #0f172a;
    text-decoration: none;
}
.blog-card-body h2 a:hover {
    color: #2563eb;
}

.blog-card-excerpt {
    margin: 0 0 10px;
    font-size: 14px;
    color: #4b5563;
}

.blog-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}
.blog-card-tag {
    padding: 4px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 500;
}
.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}
.blog-card-link span {
    font-size: 14px;
    transform: translateY(1px);
}
.blog-card-link:hover {
    text-decoration: underline;
}

/* Responsive */

@media (max-width: 900px) {
    .blog-hero-inner {
        grid-template-columns: minmax(0,1fr);
    }
    .blog-hero-card {
        max-width: 420px;
        margin-top: 8px;
    }
}









/* === FOOTER === */

.site-footer {
    background: #020617;
    color: #e5e7eb;
    margin-top: 40px;
    padding-top: 28px;
    font-size: 14px;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #111827;
}

.footer-col h3 {
    font-size: 15px;
    margin: 0 0 8px;
    color: #e5e7eb;
}

.footer-title {
    font-size: 18px;
    margin: 0 0 6px;
}
.footer-tagline {
    margin: 0 0 8px;
    color: #cbd5f5;
    font-size: 13px;
}
.footer-disclaimer {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
}

.footer-nav ul,
.footer-contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-nav li,
.footer-contact li {
    margin-bottom: 4px;
}
.footer-nav a,
.footer-contact a {
    color: #e5e7eb;
    text-decoration: none;
}
.footer-nav a:hover,
.footer-contact a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.footer-bottom {
    padding: 10px 0 14px;
    background: #020617;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: #9ca3af;
}
.footer-bottom-links a {
    color: #9ca3af;
    text-decoration: none;
    margin-left: 12px;
}
.footer-bottom-links a:hover {
    color: #e5e7eb;
    text-decoration: underline;
}

/* Responsive footer */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-bottom-links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 4px;
    }
}




























/* === HEADER MODERNO === */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15,23,42,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51,65,85,0.6);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
}

/* Logo */

.logo-brand {
    display: flex;
    align-items: center;
}
.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}
.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: radial-gradient(circle at 20% 0, #38bdf8 0, #6366f1 40%, #0f172a 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-weight: 700;
    text-transform: lowercase;
    font-size: 18px;
}
.logo-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
    color: #e5e7eb;
}
.logo-text::first-letter {
    text-transform: lowercase;
}
.logo-text > span.logo-sub {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
    margin-top: 2px;
}

/* Navegación */

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}
.main-nav a {
    color: #e5e7eb;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 999px;
    position: relative;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: #38bdf8;
    border-radius: 999px;
    transform: translateX(-50%);
    transition: width .18s ease-out;
}
.main-nav a:hover::after {
    width: 60%;
}
.main-nav a.is-active {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.8);
}
.main-nav a.is-active::after {
    width: 60%;
}

/* CTA derecha */

.header-cta {
    display: flex;
    align-items: center;
}
.btn-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    color: #f9fafb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(22,163,74,0.35);
}
.btn-header:hover {
    background: linear-gradient(90deg, #16a34a, #15803d);
}

/* Botón hamburguesa (mobile) */

.nav-toggle {
    display: none;
    width: 34px;
    height: 30px;
    border: none;
    background: transparent;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 999px;
    background: #e5e7eb;
}

/* Responsive */

@media (max-width: 840px) {
    .header-inner {
        padding: 8px 0;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 10px 16px 12px;
        background: rgba(15,23,42,0.97);
        border-bottom: 1px solid rgba(51,65,85,0.8);
        flex-direction: column;
        gap: 6px;
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform .18s ease-out, opacity .18s ease-out;
    }

    .header-cta {
        display: none;
    }

    .site-header.nav-open .main-nav {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }
}
