:root {
    /* Colores principales del logo */
    --primary: #00C896;
    /* Verde — símbolo infinito / DevOps */
    --secondary: #1A73E8;
    /* Azul — anillo principal del logo */
    --gradient-ring: linear-gradient(135deg, #1A73E8, #00C896);
    /* Gradiente del anillo */

    /* Nubes multicloud del logo */
    --cloud-aws: #F5A623;
    /* Naranja — nube AWS */
    --cloud-azure: #2196F3;
    /* Azul claro — nube Azure */
    --cloud-gcp: #7B5EA7;
    /* Morado — nube GCP */

    /* Neutros */
    --dark: #0D1117;
    --dark-surface: #161B22;
    --light: #F5F7FA;
    --text: #1E1E2E;
    --text-muted: #6B7280;
    --white: #FFFFFF;

    /* Semánticos */
    --accent: #00C896;
    --cta-primary: #1A73E8;
    --cta-hover: #00C896;
    --border: rgba(26, 115, 232, 0.15);
    --shadow: 0 4px 24px rgba(26, 115, 232, 0.12);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-secondary:hover {
    background-color: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.site-branding .dot {
    color: var(--primary);
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-logo__img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.site-logo__text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-name {
    color: var(--dark);
}

.logo-tld {
    color: var(--primary);
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-navigation a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-navigation a:hover {
    color: var(--primary);
}

.main-navigation li.menu-item-has-children {
    position: relative;
}

.main-navigation li.menu-item-has-children>a::after {
    content: "▼";
    font-size: 0.6rem;
    margin-left: 5px;
    vertical-align: middle;
}

.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    flex-direction: column;
}

.main-navigation li.menu-item-has-children:hover ul {
    opacity: 1;
    visibility: visible;
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    padding: 8px 15px;
    display: block;
}

.header-search {
    display: flex;
    align-items: center;
    margin-left: 20px;
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text);
}

.header-search-form {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 15px;
    background: var(--white);
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    display: none;
}

.header-search-form.active {
    display: block;
    animation: fadeIn 0.3s;
}

.header-search-form form {
    display: flex;
    gap: 10px;
}

.header-search-form input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.header-search-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* Footer */
.site-footer {
    background-color: var(--dark);
    color: var(--text-muted);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    display: block;
}

.footer-logo .dot {
    color: var(--primary);
}

.footer-widget-area h3 {
    color: var(--white);
    font-size: 1.2rem;
}

.footer-widget-area ul {
    list-style: none;
}

.footer-widget-area ul li {
    margin-bottom: 10px;
}

.footer-widget-area a {
    color: var(--text-muted);
}

.footer-widget-area a:hover {
    color: var(--white);
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.5rem;
}

.footer-socials a:hover {
    color: var(--primary);
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer__dev {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer__ia-link {
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer__ia-link:hover {
    opacity: 0.75;
}

.footer__claude {
    color: #CC785C;
}

/* Anthropic / Claude */
.footer__gemini {
    color: #4285F4;
}

/* Google / Gemini */
.footer__antigravity {
    color: #34A853;
}

/* Google Green */

/* Landing Page - Front Page */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, #0a192f 100%);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.typewriter {
    color: var(--primary);
    font-family: var(--font-heading);
    border-right: 2px solid var(--primary);
    padding-right: 5px;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    50% {
        border-color: transparent
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero__greeting {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
}

.hero__name {
    background: var(--gradient-ring);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__brand {
    font-size: 1.1rem;
    color: var(--primary);
    margin-top: -0.5rem;
    letter-spacing: 0.5px;
}

.hero__description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Badges multicloud */
.hero__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 1.5rem 0;
}

.badge {
    padding: 4px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--badge-color);
    color: var(--badge-color);
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
}

/* Botón YouTube */
.btn--youtube {
    background: transparent;
    border-color: #fca5a5;
    color: #ef4444;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.btn--youtube:hover {
    background: rgba(255, 0, 0, 0.08);
    color: #FF0000;
}

.bio-section {
    padding: 80px 0;
    background: var(--white);
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.bio-image img {
    border-radius: 50%;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tech-badges {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    background: var(--light);
    color: var(--text);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--primary);
}

/* Bio Photo enhancements */
.bio-photo {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.bio-photo__img {
    border-radius: 50%;
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.bio-photo__placeholder {
    border-radius: 50%;
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--gradient-ring);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.bio-photo__ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: var(--gradient-ring);
    z-index: 1;
    opacity: 0.2;
    filter: blur(10px);
}

.section-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.bio-content__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.text-gradient {
    background: var(--gradient-ring);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.bio-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.bio-tag--azure {
    background: rgba(33, 150, 243, 0.1);
    color: var(--cloud-azure);
}

.bio-tag--aws {
    background: rgba(245, 166, 35, 0.1);
    color: var(--cloud-aws);
}

.bio-tag--gcp {
    background: rgba(123, 94, 167, 0.1);
    color: var(--cloud-gcp);
}

.bio-tag--devops {
    background: rgba(0, 200, 150, 0.1);
    color: var(--primary);
}

.bio-tag--ia {
    background: rgba(0, 200, 150, 0.1);
    color: var(--primary);
}

.bio-tag--code {
    background: rgba(123, 94, 167, 0.1);
    color: var(--cloud-gcp);
}

.bio-tag--futbol {
    background: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
}

.bio-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.bio-social__link {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
    background: var(--red-color);
    transition: opacity 0.3s, transform 0.3s;
}

.bio-social__link:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: var(--white);
}

.services-section {
    padding: 80px 0;
    background: var(--light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.latest-posts-section {
    padding: 80px 0;
    background: var(--white);
}

/* Static Page Content */
.page-content {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive utility */
@media (max-width: 768px) {
    .bio-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bio-image img {
        margin: 0 auto 30px;
    }

    .social-links,
    .tech-badges {
        justify-content: center;
    }

    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    .main-navigation.active ul {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }
}

/* ── Contacto ─────────────────────────── */
.contact-page {
    background: var(--light);
}

.contact-hero {
    background: var(--dark);
    padding: 80px 0 60px;
    text-align: center;
}

.contact-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    font-weight: 800;
}

.contact-hero__subtitle {
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

.contact-body {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Formulario */
.contact-form-wrap__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
}

.form-select {
    appearance: none;
    cursor: pointer;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* Info de contacto */
.contact-info__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--white);
    border: 1.5px solid var(--border);
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.contact-card--linkedin:hover {
    border-color: #0A66C2;
}

.contact-card__icon {
    font-size: 1.5rem;
}

.contact-card__text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
}

.contact-card__text span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.contact-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(0, 200, 150, 0.07);
    border-left: 3px solid var(--primary);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-availability h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-availability ul {
    list-style: none;
    padding: 0;
}

.contact-availability li {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* Mensaje de éxito */
.form-success {
    background: rgba(0, 200, 150, 0.1);
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 14px 18px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ── 404 ──────────────────────────────── */
.page-404 {
    min-height: 100vh;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 60px 20px;
}

/* Estrellas */
.stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--dur, 3s) infinite alternate;
}

@keyframes twinkle {
    from {
        opacity: 0.1;
    }

    to {
        opacity: 0.9;
    }
}

/* Nubes flotantes con colores del logo */
.clouds-404 {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cloud-404 {
    position: absolute;
    font-size: 3rem;
    animation: floatCloud 8s ease-in-out infinite;
}

.cloud-404--aws {
    top: 15%;
    left: 8%;
    color: #F5A623;
    animation-delay: 0s;
}

.cloud-404--azure {
    top: 25%;
    right: 10%;
    color: #2196F3;
    animation-delay: -3s;
}

.cloud-404--gcp {
    bottom: 20%;
    left: 15%;
    color: #7B5EA7;
    animation-delay: -5s;
}

@keyframes floatCloud {

    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

/* Astronauta */
.astronaut {
    margin: 0 auto 1rem;
    width: 160px;
}

.astronaut__svg {
    animation: floatAstronaut 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 200, 150, 0.3));
}

@keyframes floatAstronaut {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-18px) rotate(2deg);
    }
}

/* Código 404 */
.error-code {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.error-code__4,
.error-code__0 {
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 900;
    line-height: 1;
}

.error-code__4 {
    background: var(--gradient-ring);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-code__0 {
    color: rgba(255, 255, 255, 0.08);
}

/* Título */
.page-404__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Terminal */
.terminal-block {
    background: #0D1117;
    border: 1px solid rgba(0, 200, 150, 0.25);
    border-radius: 10px;
    padding: 20px 24px;
    text-align: left;
    max-width: 480px;
    margin: 0 auto 2rem;
    font-family: 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.terminal-prompt {
    color: var(--primary);
    font-size: 0.85rem;
}

.terminal-cmd {
    color: var(--cloud-azure);
}

.terminal-output {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    padding-left: 1rem;
}

.terminal-error {
    color: #FF6B6B !important;
    padding-left: 0 !important;
}

.terminal-fail {
    color: #FF6B6B;
}

.terminal-suggest {
    color: var(--primary) !important;
    padding-left: 0 !important;
    margin-top: 4px;
}

.terminal-cursor {
    color: var(--primary);
    animation: blink 1s step-end infinite;
    font-size: 0.9rem;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Subtítulo y CTAs */
.page-404__subtitle {
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.page-404__cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Buscador */
.page-404__search p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.page-404__search .search-form {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.page-404__search input[type="search"] {
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    outline: none;
    width: 240px;
}

.page-404__search input[type="search"]:focus {
    border-color: var(--primary);
}

.page-404__search button {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

/* ════════════════════════════════════════
   SECCIÓN ÚLTIMOS ARTÍCULOS
════════════════════════════════════════ */
.latest-posts {
    padding: 80px 0;
    background: var(--light);
}

/* Header de sección */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header__text {
    flex: 1;
}

.section-header__cta {
    flex-shrink: 0;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 500px;
}

/* ── Filtros de categoría ── */
.posts-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.posts-filter__btn {
    padding: 7px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.posts-filter__btn:hover {
    border-color: var(--filter-color, var(--primary));
    color: var(--filter-color, var(--primary));
    background: color-mix(in srgb, var(--filter-color, var(--primary)) 8%, transparent);
}

.posts-filter__btn--active {
    background: var(--gradient-ring);
    border-color: transparent;
    color: var(--white) !important;
}

/* ── Grid de posts (Modificado v5b) ── */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Primera card: ocupa las 2 columnas completas */
.posts-grid__item:first-child {
    grid-column: 1 / -1;
}

/* Primera card en horizontal: imagen a la izquierda, texto a la derecha */
.posts-grid__item:first-child .blog-card {
    flex-direction: row;
    min-height: 220px;
}

.posts-grid__item:first-child .blog-card__image-link {
    width: 45%;
    flex-shrink: 0;
    height: auto;
    min-height: 220px;
}

.posts-grid__item:first-child .blog-card__body {
    padding: 28px 28px;
    justify-content: center;
}

.posts-grid__item:first-child .blog-card__title {
    font-size: 1.3rem;
    -webkit-line-clamp: 3;
}

.posts-grid__item:first-child .blog-card__excerpt {
    -webkit-line-clamp: 3;
    font-size: 0.9rem;
}

/* Responsive: volver a columna única en móvil */
@media (max-width: 640px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .posts-grid__item:first-child {
        grid-column: 1;
    }

    .posts-grid__item:first-child .blog-card {
        flex-direction: column;
    }

    .posts-grid__item:first-child .blog-card__image-link {
        width: 100%;
        min-height: 200px;
    }
}

/* ════════════════════════════════════════
   BLOG CARD (Modificado v5b)
════════════════════════════════════════ */
.blog-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid rgba(26, 115, 232, 0.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    /* Borde izquierdo con color de categoría */
    border-left: 3px solid var(--cat-color, var(--primary));
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
}

/* Hover: elevación + línea superior con gradiente del logo */
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-ring);
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 14px 14px 0 0;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(26, 115, 232, 0.15);
    border-color: var(--primary);
}

.blog-card:hover::before {
    opacity: 1;
}

/* ── Imagen de la card ── */
.blog-card__image-link {
    display: block;
    height: 200px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.blog-card:hover .blog-card__image {
    transform: scale(1.05);
}

/* Placeholder sin imagen — patrón de puntos sobre color de categoría */
.blog-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--cat-color) 85%, #000),
            color-mix(in srgb, var(--cat-color) 60%, #000));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Patrón de puntos decorativo */
.blog-card__placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
}

.blog-card__placeholder-icon {
    font-size: 3rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Badge flotante sobre imagen */
.blog-card__badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ── Cuerpo de la card ── */
.blog-card__body {
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    /* Máximo 2 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__title a {
    color: var(--text);
    text-decoration: none;
}

.blog-card__title a:hover {
    color: var(--secondary);
}

.blog-card__excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer de la card (Modificado v5b) */
.blog-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(26, 115, 232, 0.1);
    margin-top: auto;
}

.blog-card__meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card__meta-sep {
    opacity: 0.4;
}

.blog-card__cta {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.2s;
}

.blog-card__cta:hover {
    text-decoration: underline;
}

/* CTA final de sección */
.latest-posts__cta-wrap {
    text-align: center;
    margin-top: 8px;
}

/* Posts vacíos */
.posts-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    font-size: 1rem;
}