/* ============================================
   PAGE HERO (interior pages — contact/audit)
   ============================================ */
.page-template-page-contacto,
.page-template-page-auditoria {
    background-color: #050505;
}

.page-hero {
    padding: 140px 24px 80px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-hero .section-label {
    margin-bottom: 20px;
}

.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-hero .hero-description {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   CONTACT & AUDIT PAGES
   ============================================ */
.page-contact-body,
.page-audit-body {
    padding: 80px 24px 120px;
    position: relative;
    z-index: 1;
}

.contact-grid,
.audit-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.contact-info h3,
.audit-benefits h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 28px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-info-item svg {
    color: var(--clr-violet);
    flex-shrink: 0;
}

.contact-info-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.contact-info-item a:hover {
    color: #ffffff;
}

.contact-info-note,
.audit-note {
    margin-top: 28px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.6;
    border-left: 2px solid rgba(108, 99, 255, 0.4);
    padding-left: 14px;
}

.audit-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.audit-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

.audit-icon {
    color: var(--clr-violet);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.contact-form-wrap,
.audit-form-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 40px;
}

/* ============================================
   PAGE CONTENT (page.php generic)
   ============================================ */
.page-content {
    padding: 140px 24px 100px;
    max-width: 900px;
    margin: 0 auto;
    min-height: 60vh;
    position: relative;
    z-index: 1;
}

.page-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-content .page-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 48px;
    line-height: 1.7;
}

.page-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 56px;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    color: #ffffff;
}

.page-content p {
    font-size: 1.0625rem;
    line-height: 1.85;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.6);
}

.page-content a {
    color: var(--clr-violet);
    transition: color 0.3s ease;
}

.page-content a:hover {
    color: var(--clr-cyan);
}

.page-content ul {
    margin-bottom: 24px;
}

.page-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.page-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--grad);
}

.page-content img {
    border-radius: 16px;
    margin: 32px 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.page-content blockquote {
    border-left: 3px solid var(--clr-violet);
    padding: 24px 28px;
    margin: 36px 0;
    background: rgba(108, 99, 255, 0.04);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(108, 99, 255, 0.1);
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
    border-right: 1px solid rgba(108, 99, 255, 0.1);
}

/* Contact form (custom) */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(108, 99, 255, 0.5);
    box-shadow: 0 0 24px rgba(108, 99, 255, 0.1), inset 0 0 12px rgba(108, 99, 255, 0.03);
    background: rgba(108, 99, 255, 0.03);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   PAGE HERO — INTERIOR (enhanced version)
   ============================================ */
.page-hero {
    padding: 160px 0 80px;
    position: relative;
    text-align: center;
}

.page-hero .section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clr-cyan);
    margin-bottom: 20px;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
}

.page-hero .hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 620px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.8;
}

.page-hero--legal h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.legal-updated {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
    font-weight: 300;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.page-legal-body {
    padding: 40px 0 100px;
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 48px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 28px 0 10px;
}

.legal-content p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 14px;
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.legal-content ul li {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.85;
    padding-left: 18px;
    position: relative;
    margin-bottom: 6px;
}

.legal-content ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: rgba(108, 99, 255, 0.6);
}

.legal-content a {
    color: var(--clr-violet);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .25s;
}

.legal-content a:hover { color: var(--clr-cyan); }
.legal-content strong { color: rgba(255, 255, 255, 0.8); }

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 28px;
    font-size: 0.9rem;
}

.legal-table th {
    text-align: left;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    width: 30%;
}

.legal-table td {
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

.cookies-table th { width: auto; }
.cookies-table th, .cookies-table td {
    font-size: 0.85rem;
    padding: 8px 12px;
}

/* ============================================
   SERVICE DETAIL PAGES
   ============================================ */
.page-hero--services {
    text-align: center;
    padding: 160px 0 80px;
}

.service-detail {
    padding: 100px 0;
    position: relative;
}

.service-detail--alt {
    background: rgba(2, 2, 2, 0.6);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.service-detail-grid--reverse .service-detail-visual {
    order: -1;
}

.service-detail-number {
    display: inline-block;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(0, 242, 255, 0.2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.service-detail-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    margin-bottom: 20px;
}

.service-detail-lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 18px;
}

.service-detail-content > p:not(.service-detail-lead) {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 28px;
}

.service-detail-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.sdf-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
}

.sdf-item svg {
    color: var(--clr-cyan);
    flex-shrink: 0;
    margin-top: 2px;
}

.service-detail-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Service visual placeholder */
.service-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 20px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    background: rgba(8, 8, 20, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.service-img-placeholder--cyan {
    border-color: rgba(0, 242, 255, 0.2);
}

.service-img-placeholder--mixed {
    border-color: rgba(108, 99, 255, 0.15);
}

.sip-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.sip-glow--cyan {
    background: radial-gradient(circle, rgba(0, 242, 255, 0.15) 0%, transparent 70%);
}

.sip-glow--mixed {
    background: radial-gradient(circle, rgba(80, 60, 200, 0.14) 0%, transparent 70%);
}

.sip-icon {
    width: 80px;
    height: 80px;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

.sip-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
    padding: 160px 0 80px;
    text-align: center;
}

.about-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
}

.about-story {
    padding: 80px 0;
}

.about-story-heading {
    margin-bottom: 48px;
}

.about-story-heading .section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clr-cyan);
    margin-bottom: 16px;
}

.about-story-heading h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
}

.about-story-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 56px;
    align-items: center;
}

.about-story-content p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 16px;
}

.about-story-content p strong { color: rgba(255, 255, 255, 0.8); }

.about-story-visual {
    position: relative;
}

.about-chart-wrap {
    border-radius: 16px;
    overflow: hidden;
    background: #0a0f1e;
    border: 1px solid rgba(59, 130, 246, 0.15);
    padding: 20px 12px 8px;
}

.about-chart-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}

.about-chart-caption {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    margin: 8px 0 0;
    line-height: 1.5;
}

/* Stats strip (about page) */
.about-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 80px;
}

.stat-item {
    background: rgba(5, 5, 5, 0.95);
    padding: 32px 24px;
    text-align: center;
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    line-height: 1.4;
}

/* Tech timeline */
.about-timeline {
    padding: 80px 0;
    background: rgba(2, 2, 2, 0.6);
}

.about-timeline h2 {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    margin-bottom: 60px;
}

.timeline-eras {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-eras::before {
    content: '';
    position: absolute;
    left: 110px;
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(108, 99, 255, 0.4), rgba(0, 242, 255, 0.4), transparent);
}

.era-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0;
    padding: 28px 0;
    position: relative;
}

.era-item::before {
    content: '';
    position: absolute;
    left: 104px;
    top: 40px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--clr-violet);
    border: 2px solid var(--clr-bg);
    z-index: 1;
}

.era-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    padding-top: 6px;
    text-align: right;
    padding-right: 28px;
    letter-spacing: 0.05em;
}

.era-content {
    padding-left: 28px;
}

.era-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.era-content p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.65;
    margin: 0;
}

.era-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.era-tag {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.73rem;
    font-weight: 500;
}

.era-tag--legacy {
    background: rgba(210, 160, 80, 0.12);
    border: 1px solid rgba(210, 160, 80, 0.25);
    color: rgba(210, 160, 80, 0.85);
}

.era-tag--mid {
    background: rgba(100, 160, 220, 0.12);
    border: 1px solid rgba(100, 160, 220, 0.25);
    color: rgba(100, 160, 220, 0.85);
}

.era-tag--recent {
    background: rgba(52, 211, 153, 0.10);
    border: 1px solid rgba(52, 211, 153, 0.22);
    color: rgba(52, 211, 153, 0.85);
}

.era-tag--modern {
    background: rgba(108, 99, 255, 0.12);
    border: 1px solid rgba(108, 99, 255, 0.25);
    color: rgba(108, 99, 255, 0.9);
}

/* Values section */
.about-values {
    padding: 80px 0;
}

.about-values h2 {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    margin-bottom: 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    padding: 36px 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    transition: border-color .3s, background .3s, transform .3s;
}

.value-card:hover {
    border-color: rgba(108, 99, 255, 0.3);
    background: rgba(108, 99, 255, 0.05);
    transform: translateY(-4px);
}

.value-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--clr-violet);
}

.value-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   GLOBAL NAVBAR CLEARANCE
   ============================================ */
.site-main > section:first-child:not(.hero):not(.page-hero):not(.about-hero):not(.about-story) {
    padding-top: 120px;
}

/* ============================================
   404 PAGE
   ============================================ */
.error404-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 80px;
    position: relative;
}

.error404-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.error404-code {
    font-size: clamp(7rem, 20vw, 14rem);
    font-weight: 900;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 8px;
    letter-spacing: -0.04em;
}

.error404-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clr-cyan);
    margin-bottom: 24px;
    padding: 6px 16px;
    border: 1px solid rgba(0, 242, 255, 0.25);
    border-radius: 20px;
    background: rgba(0, 242, 255, 0.06);
}

.error404-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.error404-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.45);
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.75;
    font-weight: 300;
}

.error404-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.error404-actions .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    background: var(--grad);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .25s, transform .25s;
}

.error404-actions .btn-cta:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.error404-actions .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color .25s, color .25s, transform .25s;
}

.error404-actions .btn-ghost:hover {
    border-color: rgba(108, 99, 255, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

.error404-links {
    margin-top: 48px;
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
}

.error404-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color .25s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error404-links a:hover { color: rgba(108, 99, 255, 0.9); }

/* ============================================
   RESPONSIVE — PAGES (≤ 900px)
   ============================================ */
@media (max-width: 900px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .service-detail-visual { order: -1; }
    .service-detail-grid--reverse .service-detail-visual { order: -1; }

    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .timeline-eras::before { left: 80px; }
    .era-item { grid-template-columns: 80px 1fr; }
    .era-item::before { left: 74px; }
}

/* ============================================
   RESPONSIVE — PAGES (≤ 768px)
   ============================================ */
@media (max-width: 768px) {

    .contact-grid,
    .audit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrap,
    .audit-form-wrap {
        padding: 24px 20px;
    }

    .page-content {
        padding: 120px 20px 80px;
    }

    .page-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .about-stats-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .about-badge-number {
        font-size: 3rem;
    }
}

/* ============================================
   BLOG — CONTAINER NARROW
   ============================================ */
.container--narrow {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ============================================
   BLOG — ARCHIVE (listing)
   ============================================ */
.blog-section {
    padding: 80px 0 120px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
    border-color: rgba(108,99,255,0.4);
    transform: translateY(-4px);
}

.blog-card__thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__thumb img {
    transform: scale(1.04);
}

/* Placeholder cuando no hay imagen destacada */
.blog-card:not(:has(.blog-card__thumb)) .blog-card__body {
    padding-top: 32px;
}

.blog-card__body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: rgba(176,176,176,0.6);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card__cat {
    color: var(--clr-violet);
}

.blog-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
}

.blog-card__title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card__title a:hover {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-card__excerpt {
    font-size: 0.9rem;
    color: var(--clr-text);
    line-height: 1.6;
    margin: 0 0 20px;
    flex: 1;
}

.blog-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-violet);
    text-decoration: none;
    transition: color 0.2s;
    align-self: flex-start;
}

.blog-card__link:hover {
    color: var(--clr-cyan);
}

/* Paginación */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 64px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--clr-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
}

.no-results {
    text-align: center;
    padding: 80px 0;
    color: var(--clr-text);
    font-size: 1.1rem;
}

/* ============================================
   BLOG — SINGLE POST
   ============================================ */
.inner-hero--post {
    padding: 140px 24px 60px;
    background: var(--clr-bg);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.single-post__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: rgba(176,176,176,0.55);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.single-post__cat {
    color: var(--clr-violet);
    font-weight: 600;
}

.inner-hero--post .inner-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 32px;
}

.single-post__hero-img {
    margin-top: 40px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.single-post__hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post__content {
    padding: 72px 0 100px;
}

/* Tipografía del contenido */
.entry-content {
    color: var(--clr-text);
    font-size: 1.05rem;
    line-height: 1.85;
}

.entry-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 2.5em 0 0.8em;
    line-height: 1.3;
}

.entry-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 2em 0 0.6em;
}

.entry-content p {
    margin: 0 0 1.5em;
}

.entry-content a {
    color: var(--clr-violet);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.entry-content a:hover {
    color: var(--clr-cyan);
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5em;
    margin: 0 0 1.5em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content ul li::marker {
    color: var(--clr-violet);
}

.entry-content blockquote {
    border-left: 3px solid var(--clr-violet);
    margin: 2em 0;
    padding: 16px 24px;
    background: rgba(108,99,255,0.06);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(176,176,176,0.85);
}

.entry-content code {
    font-family: 'Courier New', monospace;
    font-size: 0.88em;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 2px 6px;
    color: var(--clr-cyan);
}

.entry-content pre {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9em;
}

.entry-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5em 0;
    border: 1px solid rgba(255,255,255,0.08);
}

.entry-content hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 2.5em 0;
}

.entry-content strong {
    color: #fff;
    font-weight: 700;
}

.single-post__footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.single-post__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.single-post__tags a {
    font-size: 0.8rem;
    color: var(--clr-text);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 4px 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.single-post__tags a:hover {
    border-color: var(--clr-violet);
    color: var(--clr-violet);
}

/* ============================================
   BLOG — RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .inner-hero--post {
        padding: 120px 20px 48px;
    }

    .single-post__content {
        padding: 48px 0 80px;
    }

    .entry-content {
        font-size: 1rem;
    }

    .entry-content h2 {
        font-size: 1.35rem;
    }
}
