/* ============================================================
   PAGE-SPECIFIC STYLES
   ============================================================ */

/* --- CONTACT PAGE --- */
.contact-page {
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--slate-900), var(--slate-800));
}

.contact-page main {
    padding-top: calc(var(--navbar-height) + 3rem);
    padding-bottom: 3rem;
}

.contact-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-header p {
    color: var(--slate-400);
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.info-card {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0.75rem;
    border: 1px solid var(--slate-700);
    padding: 1.5rem;
}

.info-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.info-card-icon.cyan {
    background: rgba(6, 182, 212, 0.2);
    color: var(--cyan-400);
}

.info-card-icon.green {
    background: rgba(34, 197, 94, 0.2);
    color: var(--green-400);
}

.info-card-icon.purple {
    background: rgba(192, 132, 252, 0.2);
    color: var(--purple-400);
}

.info-card h3 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-card a {
    color: var(--cyan-400);
    transition: opacity 0.3s;
}

.info-card a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.info-card .text-sm {
    color: var(--slate-400);
    font-size: 0.875rem;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #25d366;
    color: #fff;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.75rem;
    transition: background 0.3s;
}

.btn-whatsapp:hover {
    background: #1da851;
}

.contact-form-wrapper {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0.75rem;
    border: 1px solid var(--slate-700);
    padding: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--slate-400);
    margin-bottom: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: var(--slate-700);
    border: 1px solid var(--slate-600);
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--slate-500);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--cyan-500);
}

.form-textarea {
    resize: none;
    min-height: 8rem;
}

.form-select {
    appearance: none;
    cursor: pointer;
}

.form-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: var(--red-400);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 0.75rem;
    background: var(--cyan-500);
    color: #fff;
    font-weight: 500;
    border-radius: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-submit:hover {
    background: var(--cyan-600);
}

.btn-submit:disabled {
    background: var(--slate-600);
    cursor: not-allowed;
}

.form-success {
    text-align: center;
    padding: 3rem;
}

.form-success-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--green-400);
}

.form-success h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--slate-400);
    margin-bottom: 1.5rem;
}

/* FAQ */
.faq-section {
    margin-top: 3rem;
}

.faq-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.faq-card {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0.75rem;
    border: 1px solid var(--slate-700);
    padding: 1.25rem;
}

.faq-card h3 {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.faq-card p {
    color: var(--slate-400);
    font-size: 0.875rem;
    line-height: 1.6;
}

.faq-card a {
    color: var(--cyan-400);
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 2fr;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-header h1 {
        font-size: 2.5rem;
    }
}

/* --- SPEEDTEST PAGE --- */
.speedtest-page {
    min-height: 100vh;
    background: var(--slate-950);
}

.speedtest-page main {
    padding-top: calc(var(--navbar-height) + 2rem);
}

.speedtest-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.speedtest-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--slate-400);
    transition: color 0.3s;
}

.speedtest-back:hover {
    color: #fff;
}

.speedtest-divider {
    width: 1px;
    height: 1.5rem;
    background: var(--slate-700);
}

.speedtest-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--blue-400), var(--cyan-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* SpeedTest Tabs */
.speedtest-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.speedtest-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    background: var(--slate-900);
    border: 1px solid var(--slate-800);
    color: var(--slate-400);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s;
    cursor: pointer;
    font-family: inherit;
}

.speedtest-tab:hover {
    border-color: var(--slate-600);
    color: #fff;
}

.speedtest-tab.active {
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-600));
    border-color: transparent;
    color: #fff;
}

/* SpeedTest Component */
.speedtest-widget {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--slate-800);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.speedtest-widget-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent, rgba(6, 182, 212, 0.05));
}

.speedtest-widget-glow-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    filter: blur(48px);
}

.speedtest-widget-glow-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 16rem;
    height: 16rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 50%;
    filter: blur(48px);
}

.speedtest-widget-inner {
    position: relative;
    z-index: 10;
}

.speedtest-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.speedtest-widget-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.speedtest-icon-box {
    padding: 0.75rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
}

.speedtest-icon-box svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #fff;
}

.speedtest-widget-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.speedtest-widget-title p {
    font-size: 0.875rem;
    color: var(--slate-400);
}

.speedtest-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

/* Start button */
.speedtest-start-btn {
    position: relative;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-600));
    padding: 4px;
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.3);
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.speedtest-start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.5);
}

.speedtest-start-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--slate-900);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.speedtest-start-btn:hover .speedtest-start-inner {
    background: var(--slate-800);
}

.speedtest-start-inner svg {
    width: 3rem;
    height: 3rem;
    color: var(--blue-400);
    margin-bottom: 0.5rem;
}

.speedtest-start-inner span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-300);
}

.speedtest-hint {
    margin-top: 1.5rem;
    color: var(--slate-400);
    font-size: 0.875rem;
}

/* Gauge */
.speedtest-gauge {
    position: relative;
    width: 12rem;
    height: 12rem;
    margin: 0 auto 1.5rem;
}

.speedtest-gauge svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.speedtest-gauge-bg {
    fill: none;
    stroke: var(--slate-800);
    stroke-width: 8;
}

.speedtest-gauge-fill {
    fill: none;
    stroke: url(#speedGradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s;
}

.speedtest-gauge-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.speedtest-gauge-value {
    font-size: 2.5rem;
    font-weight: 700;
}

.speedtest-gauge-unit {
    font-size: 0.875rem;
    color: var(--slate-400);
}

/* Phase indicators */
.speedtest-phase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.phase-ping {
    color: var(--blue-400);
}

.phase-download {
    color: var(--cyan-400);
}

.phase-upload {
    color: var(--emerald-400);
}

/* Progress bar */
.speedtest-progress {
    width: 100%;
    max-width: 16rem;
    height: 0.5rem;
    background: var(--slate-800);
    border-radius: 9999px;
    overflow: hidden;
    margin: 0 auto;
}

.speedtest-progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--blue-500), var(--cyan-500));
    transition: width 0.3s;
    border-radius: 9999px;
}

/* Results */
.speedtest-results-main {
    text-align: center;
    margin-bottom: 2rem;
}

.speedtest-results-main .value {
    font-size: 3.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.speedtest-results-main .label {
    font-size: 1.25rem;
    color: var(--slate-400);
}

.speedtest-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.speedtest-result-card {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(51, 65, 85, 0.5);
}

.speedtest-result-card svg {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 auto 0.5rem;
}

.speedtest-result-card .value {
    font-size: 1.5rem;
    font-weight: 700;
}

.speedtest-result-card .label {
    font-size: 0.75rem;
    color: var(--slate-400);
}

.speedtest-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--slate-300);
}

.speedtest-retry {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: var(--slate-800);
    color: var(--slate-300);
    margin-top: 1.5rem;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.speedtest-retry:hover {
    background: var(--slate-700);
    color: #fff;
}

.speedtest-footer-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--slate-800);
    text-align: center;
    font-size: 0.75rem;
    color: var(--slate-500);
}

@media (min-width: 768px) {
    .speedtest-results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Speed colors */
.speed-excellent {
    color: var(--emerald-400);
}

.speed-good {
    color: var(--green-400);
}

.speed-fair {
    color: var(--yellow-400);
}

.speed-slow {
    color: var(--orange-400);
}

.speed-bad {
    color: var(--red-400);
}

.ping-excellent {
    color: var(--emerald-400);
}

.ping-good {
    color: var(--green-400);
}

.ping-fair {
    color: var(--yellow-400);
}

.ping-slow {
    color: var(--orange-400);
}

.ping-bad {
    color: var(--red-400);
}

/* --- COMPARADOR PAGE --- */
.comparador-page {
    min-height: 100vh;
    background: var(--slate-950);
    padding-top: calc(var(--navbar-height) + 2rem);
    padding-bottom: 3rem;
}

.comparador-placeholder {
    max-width: 48rem;
    margin: 4rem auto;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--slate-900);
    border-radius: 1.5rem;
    border: 1px solid var(--slate-800);
}

.comparador-placeholder h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.comparador-placeholder p {
    color: var(--slate-400);
    font-size: 1.125rem;
}

/* --- MAPA PAGE --- */
.mapa-page {
    min-height: 100vh;
    background: var(--slate-950);
    padding-top: var(--navbar-height);
}

.mapa-placeholder {
    max-width: 48rem;
    margin: 4rem auto;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--slate-900);
    border-radius: 1.5rem;
    border: 1px solid var(--slate-800);
}

.mapa-placeholder h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.mapa-placeholder p {
    color: var(--slate-400);
    font-size: 1.125rem;
}

/* ============================================================
   BLOG PAGE – Listing
   ============================================================ */
.blog-page {
    min-height: 100vh;
    background: var(--slate-950);
    padding-top: calc(var(--navbar-height) + 2rem);
    padding-bottom: 3rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to bottom, #fff, var(--slate-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-header p {
    color: var(--slate-400);
    font-size: 1.125rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Blog Cards --- */
.blog-card {
    background: var(--slate-900);
    border-radius: 1.25rem;
    border: 1px solid var(--slate-800);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.blog-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.08), 0 8px 16px rgba(0, 0, 0, 0.2);
}

.blog-card-image-wrap {
    overflow: hidden;
    position: relative;
}

.blog-card-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.15), transparent);
    pointer-events: none;
    z-index: 1;
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--slate-800);
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.06);
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--blue-400);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.blog-card-category:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--blue-300);
}

.blog-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.blog-card-title a {
    transition: color 0.3s;
}

.blog-card:hover .blog-card-title a {
    color: var(--cyan-300);
}

.blog-card-excerpt {
    color: var(--slate-400);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--slate-500);
    padding-top: 1rem;
    border-top: 1px solid var(--slate-800);
}

.blog-card-meta .author-info-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-meta .author-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--slate-700);
}

/* ============================================================
   SINGLE POST – Premium Article View
   ============================================================ */
.single-post {
    min-height: 100vh;
    background: var(--slate-950);
    padding-top: calc(var(--navbar-height) + 2rem);
    padding-bottom: 3rem;
}

.post-content {
    max-width: 48rem;
    margin: 0 auto;
}

/* Breadcrumb */
.post-breadcrumb {
    max-width: 48rem;
    margin: 0 auto 1.5rem;
    font-size: 0.875rem;
    color: var(--slate-500);
}

.post-breadcrumb a {
    color: var(--slate-500);
    text-decoration: none;
    transition: color 0.2s;
}

.post-breadcrumb a:hover {
    color: var(--blue-400);
}

.breadcrumb-sep {
    margin: 0 0.5rem;
    color: var(--slate-600);
}

/* Category & Type badges */
.post-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.badge-category {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), #06b6d4);
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.badge-category:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
    color: #fff;
}

.badge-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.badge-news {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-tutorial {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Title */
.post-content h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .post-content h1 {
        font-size: 2.75rem;
    }
}

/* Meta info */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    color: var(--slate-400);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--slate-800);
}

.post-meta-author {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.post-meta-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--slate-700);
    object-fit: cover;
}

.meta-author-name {
    font-weight: 600;
    color: var(--slate-300);
    text-decoration: none;
    transition: color 0.2s;
}

.meta-author-name:hover {
    color: var(--blue-400);
}

.post-meta-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--slate-400);
}

.meta-item svg {
    flex-shrink: 0;
}

/* Featured Image */
.post-figure {
    margin-bottom: 2rem;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.post-featured-image {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

.post-figure:hover .post-featured-image {
    transform: scale(1.02);
}

.post-figure figcaption {
    font-size: 0.8125rem;
    color: var(--slate-500);
    text-align: center;
    padding: 0.75rem 1rem;
    background: var(--slate-900);
}

/* ============================================================
   ARTICLE BODY – Editorial Typography
   ============================================================ */
.post-body {
    color: var(--slate-300);
    line-height: 1.85;
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease-out both;
    animation-delay: 0.15s;
}

.post-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--slate-800);
}

.post-body h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #fff;
    margin: 2rem 0 0.75rem;
}

.post-body h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-200);
    margin: 1.5rem 0 0.5rem;
}

.post-body p {
    margin-bottom: 1.25rem;
}

.post-body a {
    color: var(--blue-400);
    text-decoration: underline;
    text-decoration-color: rgba(96, 165, 250, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s;
}

.post-body a:hover {
    color: var(--cyan-300);
    text-decoration-color: var(--cyan-300);
}

.post-body strong {
    color: #fff;
    font-weight: 600;
}

.post-body em {
    color: var(--slate-200);
}

.post-body ul,
.post-body ol {
    margin: 1.25rem 0;
    padding-left: 1.75rem;
}

.post-body li {
    margin-bottom: 0.625rem;
}

.post-body ul {
    list-style: disc;
}

.post-body ol {
    list-style: decimal;
}

.post-body li::marker {
    color: var(--blue-400);
}

.post-body blockquote {
    border-left: 4px solid var(--blue-500);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 0 0.75rem 0.75rem 0;
    color: var(--slate-300);
    font-style: italic;
    font-size: 1.0625rem;
    position: relative;
}

.post-body blockquote::before {
    content: '"';
    position: absolute;
    top: -0.25rem;
    left: 0.75rem;
    font-size: 3rem;
    color: rgba(59, 130, 246, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.post-body img {
    max-width: 100%;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.post-body figure {
    margin: 2rem 0;
}

.post-body figure img {
    margin: 0 0 0.5rem;
}

.post-body figcaption {
    font-size: 0.8125rem;
    color: var(--slate-500);
    text-align: center;
    font-style: italic;
}

.post-body pre {
    background: var(--slate-900);
    border: 1px solid var(--slate-800);
    border-radius: 0.75rem;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.post-body code {
    background: var(--slate-800);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--cyan-400);
}

.post-body pre code {
    background: none;
    padding: 0;
    color: var(--slate-300);
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.post-body th,
.post-body td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--slate-800);
    text-align: left;
}

.post-body th {
    background: var(--slate-900);
    color: #fff;
    font-weight: 600;
}

.post-body td {
    color: var(--slate-300);
}

.post-body tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.3);
}

.post-body hr {
    border: none;
    border-top: 1px solid var(--slate-800);
    margin: 2.5rem 0;
}

/* ============================================================
   TAGS
   ============================================================ */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--slate-800);
}

.post-tags-label {
    color: var(--slate-400);
    font-size: 0.875rem;
    font-weight: 500;
}

.post-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 0.8125rem;
    color: var(--slate-300);
    background: var(--slate-800);
    border: 1px solid var(--slate-700);
    text-decoration: none;
    transition: all 0.2s;
}

.post-tag:hover {
    background: var(--slate-700);
    color: #fff;
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.post-share {
    margin-bottom: 2rem;
}

.post-share-bottom {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--slate-800);
}

.post-share-title {
    font-size: 0.9375rem;
    color: var(--slate-400);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.post-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s;
}

.share-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.share-label {
    display: none;
}

@media (min-width: 640px) {
    .share-label {
        display: inline;
    }
}

.share-facebook {
    background: #1877F2;
}

.share-twitter {
    background: #1a1a2e;
    border: 1px solid var(--slate-700);
}

.share-twitter:hover {
    background: #333;
}

.share-whatsapp {
    background: #25D366;
}

.share-linkedin {
    background: #0A66C2;
}

.share-telegram {
    background: #0088CC;
}

.share-email {
    background: #ef4444;
}

.share-copy {
    background: var(--slate-700);
    font-family: inherit;
}

.share-copy.copied {
    background: #22c55e;
}

/* ============================================================
   AUTHOR CARD
   ============================================================ */
.post-author-box {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--slate-900);
    border: 1px solid var(--slate-800);
    border-radius: 1rem;
    transition: border-color 0.3s;
}

.post-author-box:hover {
    border-color: rgba(59, 130, 246, 0.2);
}

.author-photo-wrap {
    flex-shrink: 0;
}

.author-photo,
.author-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--slate-800);
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-info-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.author-role {
    font-size: 0.875rem;
    color: var(--slate-400);
    margin: 0 0 12px;
}

.author-role a,
.author-company {
    color: var(--blue-400);
    text-decoration: none;
    transition: color 0.2s;
}

.author-role a:hover,
.author-company:hover {
    color: var(--blue-300);
    text-decoration: underline;
}

.author-bio {
    font-size: 0.875rem;
    color: var(--slate-300);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--blue-400);
    text-decoration: none;
    transition: all 0.2s;
}

.author-link:hover {
    color: var(--cyan-300);
}

.author-link svg {
    transition: transform 0.25s;
}

.author-link:hover svg {
    transform: translateX(4px);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.post-comments-section {
    max-width: 48rem;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--slate-800);
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    margin-bottom: 1.5rem;
}

.comment-body {
    padding: 1.25rem;
    background: var(--slate-900);
    border: 1px solid var(--slate-800);
    border-radius: 0.75rem;
    transition: border-color 0.2s;
}

.comment-body:hover {
    border-color: var(--slate-700);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--slate-800);
}

.comment-author {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
}

.comment-date {
    display: block;
    font-size: 0.8125rem;
    color: var(--slate-500);
}

.comment-content {
    color: var(--slate-300);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.comment-content p {
    margin-bottom: 0.75rem;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-actions {
    margin-top: 0.625rem;
}

.comment-actions a {
    font-size: 0.8125rem;
    color: var(--blue-400);
    text-decoration: none;
    transition: color 0.2s;
}

.comment-actions a:hover {
    color: var(--cyan-300);
}

.comment-list .children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1rem;
}

/* Comment Form */
.comment-respond {
    margin-top: 2rem;
}

.comment-respond .comment-reply-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.comment-respond .comment-reply-title small {
    font-size: 0.8125rem;
    margin-left: 0.5rem;
}

.comment-respond .comment-reply-title small a {
    color: var(--blue-400);
}

.comment-form label {
    display: block;
    font-size: 0.875rem;
    color: var(--slate-300);
    margin-bottom: 6px;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--slate-900);
    border: 1px solid var(--slate-700);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--blue-500);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-submit-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.25s;
}

.comment-submit-btn:hover {
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.comment-login-required {
    padding: 2rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.75rem;
    text-align: center;
    color: var(--gray-300, #cbd5e1);
}

.comment-login-text {
    margin: 0 0 1.25rem;
    font-size: 1rem;
}

.comment-login-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.comment-login-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    color: #fff !important;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.25s;
}

.comment-login-btn:hover {
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.comment-register-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: transparent;
    color: var(--blue-400, #60a5fa) !important;
    font-size: 0.9375rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.25s;
}

.comment-register-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--blue-400, #60a5fa);
    transform: translateY(-1px);
}

/* ============================================================
   PÁGINA DE ACCESO (LOGIN / REGISTRO)
   ============================================================ */
.acceso-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
}

.acceso-card {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(10px);
}

.acceso-tabs {
    display: flex;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    margin-bottom: 2rem;
    gap: 0;
}

.acceso-tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}

.acceso-tab.active {
    color: #fff;
    border-bottom-color: #3b82f6;
}

.acceso-tab:hover:not(.active) {
    color: #cbd5e1;
}

.acceso-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
}

.acceso-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0 0 1.75rem;
}

.acceso-alert {
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.acceso-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.acceso-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.acceso-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.acceso-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
}

.acceso-field input {
    padding: 0.65rem 0.9rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.6);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.9375rem;
    transition: border-color 0.2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.acceso-field input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.acceso-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #94a3b8;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.acceso-remember label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.acceso-forgot {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.875rem;
}

.acceso-forgot:hover {
    text-decoration: underline;
}

.acceso-submit {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.25s;
    width: 100%;
}

.acceso-submit:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.acceso-switch {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

.acceso-switch a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.acceso-switch a:hover {
    text-decoration: underline;
}

.acceso-field .req {
    color: #f87171;
}

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-posts {
    max-width: 48rem;
    margin: 3rem auto 0;
}

.related-posts-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.related-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--slate-900);
    border: 1px solid var(--slate-800);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.25s;
}

.related-card:hover {
    border-color: var(--slate-700);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.06);
    transform: translateY(-3px);
}

.related-card-img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.related-card-body {
    flex: 1;
    min-width: 0;
}

.related-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.375rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-excerpt {
    font-size: 0.8125rem;
    color: var(--slate-400);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--slate-500);
}

/* ============================================================
   CATEGORY DROPDOWN BAR
   ============================================================ */
.category-dropdown-bar {
    background: var(--slate-950);
    border-top: 1px solid var(--slate-800);
}

.category-bar-row {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 0;
}

.category-pill-current {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    background: var(--slate-800);
    transition: all 0.2s;
}

.category-pill-current:hover {
    background: var(--slate-700);
    color: #fff;
}

.category-pill-current.is-all {
    background: linear-gradient(135deg, var(--blue-600), #06b6d4);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.category-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: 0.75rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--slate-400);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s;
    font-family: inherit;
}

.category-toggle:hover {
    color: #fff;
}

.category-toggle:hover .category-toggle-text {
    color: var(--blue-400);
}

.category-toggle-icon {
    transition: transform 0.2s;
}

.category-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s;
}

.category-panel.is-open {
    max-height: 10rem;
    opacity: 1;
    padding-bottom: 0.75rem;
}

.category-panel-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.category-panel-link {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    white-space: nowrap;
    color: var(--slate-400);
    text-decoration: none;
    transition: all 0.2s;
}

.category-panel-link:hover {
    color: #fff;
    background: var(--slate-800);
}

.category-panel-link.is-active {
    background: linear-gradient(135deg, var(--blue-600), #06b6d4);
    color: #fff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

/* Mobile categories */
.mobile-categories-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--slate-800);
}

.mobile-categories-label {
    padding: 0 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-500);
    margin-bottom: 0.5rem;
}

.mobile-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem;
}

.mobile-category-pill {
    display: inline-block;
    padding: 6px 12px;
    background: var(--slate-800);
    border: 1px solid var(--slate-700);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--slate-300);
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-category-pill:hover {
    background: var(--slate-700);
    color: #fff;
}

.mobile-category-pill.active {
    background: linear-gradient(135deg, var(--blue-600), #06b6d4);
    color: #fff;
    border-color: transparent;
}

/* Active navbar link */
.navbar-link.active {
    color: var(--blue-400);
}

/* ============================================================
   BLOG CATEGORIES BAR (alternate)
   ============================================================ */
.blog-categories-bar {
    background: var(--slate-900);
    border-bottom: 1px solid var(--slate-800);
    padding: 12px 0;
}

.categories-bar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.categories-btn-all {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    color: #fff;
    transition: all 0.2s;
}

.categories-btn-all:hover,
.categories-btn-all.active {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: #fff;
}

.categories-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: none;
    color: var(--slate-300);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s;
}

.categories-toggle-btn:hover {
    color: #fff;
}

.categories-toggle-btn svg {
    transition: transform 0.3s;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding-top: 12px;
}

.category-link {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8125rem;
    color: var(--slate-300);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.category-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.category-link.active {
    background: var(--slate-800);
    color: #fff;
    border-color: var(--slate-700);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.625rem 1.125rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination a {
    background: var(--slate-800);
    color: var(--slate-300);
    border: 1px solid var(--slate-700);
}

.pagination a:hover {
    background: var(--slate-700);
    color: #fff;
    transform: translateY(-1px);
}

.pagination .current {
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-600));
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.pagination .next {
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-600));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
    border: none;
}

.pagination .next:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
    transform: translateY(-2px);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-950);
    text-align: center;
}

.page-404 h1 {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.page-404 h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.page-404 p {
    color: var(--slate-400);
    margin-bottom: 2rem;
}

/* ============================================================
   DEFAULT PAGE
   ============================================================ */
.default-page {
    min-height: 100vh;
    background: var(--slate-950);
}

.default-page main {
    padding-top: calc(var(--navbar-height) + 3rem);
    padding-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.page-content {
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--slate-300);
}

.page-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #fff;
}

.page-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: #fff;
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content a {
    color: var(--cyan-400);
    text-decoration: underline;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.page-content ul,
.page-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content blockquote {
    border-left: 3px solid var(--cyan-500);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--slate-400);
    font-style: italic;
}

/* Elementor compat */
.elementor-page .default-page .page-content,
.elementor-page .page-content {
    max-width: 100%;
}

.elementor-page .default-page main {
    padding: 0;
}

.elementor-page .page-title {
    display: none;
}

body.elementor-template-canvas {
    background: var(--slate-950);
    color: #fff;
}

body.elementor-template-full-width .default-page {
    padding: 0;
}

body.elementor-template-full-width .default-page main {
    max-width: 100%;
    padding: 0;
}

.no-header-footer .navbar,
.no-header-footer .footer {
    display: none;
}

/* ============================================================
   POST BACK LINK
   ============================================================ */
.post-back-link {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--slate-800);
    text-align: center;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out both;
}

/* ============================================================
   RESPONSIVE – Blog Features
   ============================================================ */
@media (max-width: 768px) {
    .post-content h1 {
        font-size: 1.75rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .post-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-link {
        justify-content: center;
    }

    .post-share-buttons {
        flex-wrap: wrap;
    }

    .share-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 120px;
        justify-content: center;
    }

    .comment-list .children {
        padding-left: 1rem;
    }

    .related-card {
        flex-direction: column;
    }

    .related-card-img {
        width: 100%;
        height: 160px;
    }

    .category-bar-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .categories-list {
        gap: 6px;
    }

    .category-link {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
}

