/* ============================================
   Variables & Reset — Tecnolitas Dark Theme
   ============================================ */
:root {
    --brand: #3C90CE;
    --brand-light: #5BA8D9;
    --brand-dark: #2A6FA0;
    --brand-glow: rgba(60, 144, 206, 0.35);
    --brand-subtle: rgba(60, 144, 206, 0.12);

    --bg-dark: #0b0f14;
    --bg-section: #0f1419;
    --bg-section-alt: #141b24;
    --bg-card: #1a222d;
    --bg-card-hover: #1f2937;
    --bg-elevated: #1e2836;

    --border: rgba(60, 144, 206, 0.15);
    --border-hover: rgba(60, 144, 206, 0.45);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --white: #ffffff;

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.55);
    --shadow-brand: 0 0 32px rgba(60, 144, 206, 0.18);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container: 1140px;
    --navbar-height: 72px;
    --transition: 0.3s ease;

    /* legacy aliases */
    --navy: var(--bg-card);
    --navy-dark: var(--bg-dark);
    --navy-light: var(--bg-elevated);
    --blue-accent: var(--brand);
    --blue-glow: var(--brand-light);
    --gray-bg: var(--bg-section);
    --gray-text: var(--text-secondary);
    --black: var(--bg-dark);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Image Placeholders
   ============================================ */
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    padding: 16px;
    border: 2px dashed var(--border);
    overflow: hidden;
}

.img-placeholder span {
    max-width: 80%;
}

.img-placeholder--intro {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 320px;
}

.img-placeholder--circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 0 auto;
    border-color: var(--border);
}

.img-placeholder--process-bg {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: none;
    background: linear-gradient(135deg, #0f1a28 0%, var(--bg-dark) 100%);
    color: var(--text-muted);
}

.img-placeholder--handshake {
    width: 100%;
    aspect-ratio: 16 / 7;
    min-height: 200px;
}

.img-placeholder--testimonial {
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 380px;
    border: none;
}

.img-placeholder--newsletter-bg {
    width: 100%;
    height: 100%;
    border: none;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(60, 144, 206, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(60, 144, 206, 0.15) 0%, transparent 50%),
        linear-gradient(160deg, #0b0f14 0%, #0f1a28 50%, #0b1520 100%);
    color: var(--text-muted);
    position: absolute;
    inset: 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.btn--hero {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand-light);
    box-shadow: 0 0 24px var(--brand-glow);
}

.btn--hero:hover {
    background: var(--brand-light);
    transform: translateY(-2px);
    box-shadow: 0 0 36px var(--brand-glow);
}

.btn--primary {
    background: var(--brand);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 16px rgba(60, 144, 206, 0.3);
}

.btn--primary:hover {
    background: var(--brand-light);
    box-shadow: 0 4px 24px rgba(60, 144, 206, 0.45);
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: rgba(11, 15, 20, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
}

body.home .navbar {
    background: transparent;
    backdrop-filter: none;
    border-bottom-color: transparent;
}

body.home .navbar.is-scrolled {
    background: rgba(11, 15, 20, 0.95);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}

body.home .navbar:not(.is-scrolled) .navbar__menu a:not(.navbar__cta) {
    color: rgba(241, 245, 249, 0.9);
}

body.home .navbar:not(.is-scrolled) .navbar__menu a:not(.navbar__cta):hover,
body.home .navbar:not(.is-scrolled) .navbar__menu a:not(.navbar__cta).is-active {
    color: var(--white);
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar__menu a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.navbar__menu a:hover,
.navbar__menu a.is-active {
    color: var(--brand-light);
}

.navbar__menu a.navbar__cta {
    padding: 8px 20px;
    background: var(--brand);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: 0 0 20px var(--brand-glow);
    align-self: center;
}

.navbar__menu a.navbar__cta:hover,
.navbar__menu a.navbar__cta.is-active {
    background: var(--brand-light);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 0 28px var(--brand-glow);
}

.navbar__logo-img {
    height: 24px;
    width: auto;
    display: block;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    overflow: hidden;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            to bottom,
            rgba(11, 15, 20, 0.88) 0%,
            rgba(11, 15, 20, 0.62) 50%,
            rgba(11, 15, 20, 0.92) 100%
        ),
        linear-gradient(135deg, rgba(60, 144, 206, 0.14) 0%, transparent 55%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.hero__title span,
.hero__subtitle strong {
    color: var(--brand-light);
}

.hero__subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--brand);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 80px 0;
    position: relative;
}

.section--gray {
    background: var(--bg-section);
}

.section--gray + .section--gray {
    border-top: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-header__title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--brand);
    margin: 14px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 12px var(--brand-glow);
}

.section-header__icon {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.section-header__icon svg {
    width: 28px;
    height: 28px;
    color: var(--brand);
}

.section-header__subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 16px auto 0;
    line-height: 1.6;
}

.section-header--left {
    text-align: left;
    margin-bottom: 0;
}

.section-header--left .section-header__title::after {
    margin-left: 0;
}

.section-header--left .section-header__subtitle {
    margin-left: 0;
}

.section-header--light .section-header__title,
.section-header--light .section-header__subtitle {
    color: var(--text-primary);
}

/* ============================================
   Image Prompts
   ============================================ */
.img-prompt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 2px dashed var(--border-hover);
    color: var(--text-secondary);
    padding: 24px;
    text-align: left;
    min-height: 200px;
}

.img-prompt__file {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-light);
    background: var(--brand-subtle);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.img-prompt__text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.img-prompt__text strong {
    color: var(--brand);
}

.img-prompt--intro {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 280px;
}

.img-prompt--process-bg {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: none;
    border-radius: 0;
}

.img-prompt--community {
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 360px;
}

.services-intro__image img,
.telegram-section__image img,
.process__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ============================================
   Servicios
   ============================================ */
.services-intro {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 56px;
}

.services-intro__image {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.services-intro__text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.services-intro__text p:last-child {
    margin-bottom: 0;
}

.services-grid {
    margin-top: 8px;
}

.service-card {
    border-top: 3px solid var(--brand);
}

.service-card__icon {
    width: 44px;
    height: 44px;
    color: var(--brand);
    margin-bottom: 16px;
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   Comunidad
   ============================================ */
.youtube-section {
    margin-bottom: 0;
}

.telegram-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-top: 72px;
    padding-top: 72px;
    border-top: 1px solid var(--border);
}

.telegram-section__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.telegram-section__title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--brand);
    margin-top: 12px;
    border-radius: 2px;
    box-shadow: 0 0 12px var(--brand-glow);
}

.telegram-section__members {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.telegram-section__members strong {
    font-size: 1.2rem;
    font-weight: 700;
    color: #229ED9;
}

.telegram-section__desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.telegram-section__image {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-brand);
}

.telegram-section__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn--telegram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #229ED9;
    color: var(--white);
    padding: 14px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(34, 158, 217, 0.35);
}

.btn--telegram:hover {
    background: #1a8bbf;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(34, 158, 217, 0.45);
}

/* ============================================
   YouTube Feed
   ============================================ */
.youtube-channel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 28px 32px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.12) 0%, rgba(60, 144, 206, 0.1) 100%);
    border: 1px solid rgba(255, 0, 0, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.youtube-channel-bar__info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 240px;
}

.youtube-channel-bar__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff0000;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
}

.youtube-channel-bar__icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.youtube-channel-bar__text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.youtube-channel-bar__stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.youtube-stat {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.youtube-stat strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

.youtube-stat-divider {
    color: var(--text-muted);
    margin: 0 4px;
}

.youtube-channel-bar__fallback {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn--youtube {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 6px 24px rgba(255, 0, 0, 0.45);
    transition: var(--transition);
    flex-shrink: 0;
}

.btn--youtube:hover {
    background: linear-gradient(135deg, #ff2222 0%, #dd0000 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(255, 0, 0, 0.55);
}

.btn--youtube__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
}

.btn--youtube__label {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}

.btn--youtube__sub {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
}

.btn--youtube__arrow {
    flex-shrink: 0;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.btn--youtube:hover .btn--youtube__arrow {
    transform: translateX(4px);
}

.youtube-section__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.youtube-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.youtube-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.youtube-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-brand);
}

.youtube-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-elevated);
}

.youtube-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.youtube-card:hover .youtube-card__thumb img {
    transform: scale(1.05);
}

.youtube-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: var(--transition);
}

.youtube-card__play svg {
    width: 48px;
    height: 48px;
    color: var(--white);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.youtube-card:hover .youtube-card__play {
    opacity: 1;
}

.youtube-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.youtube-card__body h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.youtube-card__body time {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: auto;
}

.youtube-feed__notice,
.youtube-feed__empty {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px 28px;
    text-align: center;
}

.youtube-feed__notice p,
.youtube-feed__empty p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.youtube-feed__notice code {
    background: var(--bg-elevated);
    color: var(--brand-light);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85em;
}

.newsletter__desc {
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-alert {
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    text-align: center;
}

.contact-alert--success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.contact-alert--error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-form__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form__field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.contact-form__field label span {
    color: var(--brand-light);
}

.contact-form__field input,
.contact-form__field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: var(--bg-section);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    border-radius: 6px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
    color: var(--text-muted);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-subtle);
}

.btn--full {
    width: 100%;
    text-align: center;
    margin-top: 4px;
}

.contact-form__recaptcha-note {
    margin: 12px 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.contact-form__recaptcha-note a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
}

.contact-form__recaptcha-note a:hover {
    color: #fff;
}

/* ============================================
   Intro Grid (legacy)
   ============================================ */
.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.intro-grid__image-wrap {
    position: relative;
}

.intro-grid__decoration {
    position: absolute;
    top: -24px;
    right: -24px;
    width: 60%;
    height: 60%;
    background: repeating-linear-gradient(
        -45deg,
        var(--brand),
        var(--brand) 4px,
        transparent 4px,
        transparent 12px
    );
    opacity: 0.35;
    z-index: 0;
}

.intro-grid__image-wrap .img-placeholder {
    position: relative;
    z-index: 1;
}

.intro-grid__caption {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.intro-grid__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-brand);
    background: var(--bg-card-hover);
}

.feature-card__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    color: var(--brand);
}

.feature-card__icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ============================================
   Info Cards Row
   ============================================ */
.cards-row {
    display: grid;
    gap: 24px;
}

.cards-row--3 {
    grid-template-columns: repeat(3, 1fr);
}

.cards-row--4 {
    grid-template-columns: repeat(4, 1fr);
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid var(--brand);
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-brand);
    background: var(--bg-card-hover);
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.tech-portrait {
    margin-top: 56px;
}

.tech-portrait .img-placeholder {
    border: 3px solid var(--brand);
    box-shadow: 0 0 40px var(--brand-glow);
}

/* ============================================
   Process Section
   ============================================ */
.section--process {
    padding: 0;
    position: relative;
    background: var(--bg-section-alt);
}

.process__bg {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process__bg img,
.process__bg .img-prompt--process-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 100%;
}

.process__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(11, 15, 20, 0.82) 0%,
        rgba(11, 15, 20, 0.68) 45%,
        rgba(11, 15, 20, 0.88) 100%
    );
}

.process__hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.section-header--process {
    margin-bottom: 0;
}

.section-header--process .section-header__title {
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.section-header--process .section-header__subtitle {
    color: rgba(255, 255, 255, 0.88);
    margin: 16px auto 0;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.section-header--process .section-header__title::after {
    margin-left: auto;
    margin-right: auto;
}

.process__cards-wrap {
    position: relative;
    z-index: 2;
    margin-top: -100px;
    padding-bottom: 0;
}

.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px 24px 28px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    min-height: 280px;
    transition: var(--transition);
}

.process-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-brand);
}

.process-card__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 0 20px var(--brand-glow);
}

.process-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.process-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.process-card__link {
    margin-top: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.process-card__link:hover {
    color: var(--brand);
    text-decoration: underline;
}

.process__bottom {
    height: 160px;
    background: linear-gradient(180deg, var(--bg-section-alt) 0%, var(--bg-dark) 100%);
    margin-top: -40px;
}

/* ============================================
   AI & Digital Platform
   ============================================ */
.section--platform {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    background: var(--bg-section);
}

.platform__split {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 0;
}

.platform__purple {
    width: 35%;
    background: linear-gradient(160deg, rgba(60, 144, 206, 0.18) 0%, transparent 100%);
}

.platform__white {
    flex: 1;
    background: var(--bg-section-alt);
}

.platform__content {
    position: relative;
    z-index: 1;
}

.platform__box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 48px 56px;
    box-shadow: var(--shadow-lg);
    max-width: 640px;
    margin-left: auto;
    margin-right: 0;
    margin-bottom: -40px;
    position: relative;
    z-index: 2;
    border-left: 4px solid var(--brand);
}

.platform__box h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.platform__box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.platform__image {
    position: relative;
    z-index: 1;
    margin-top: 60px;
}

.platform__image .img-placeholder {
    border-color: var(--border);
}

/* ============================================
   Columns
   ============================================ */
.columns-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.column-text {
    padding: 24px;
    border-left: 2px solid var(--brand);
    background: var(--brand-subtle);
    border-radius: 0 8px 8px 0;
}

.column-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   Testimonial
   ============================================ */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
}

.testimonial-slider {
    position: relative;
    z-index: 2;
    margin-right: -60px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
    display: none;
}

.testimonial-card--active {
    display: block;
}

.testimonial-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-light);
    margin-bottom: 16px;
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    border: none;
}

.testimonial-slider__nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-left: 36px;
}

.testimonial-slider__arrow {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--brand);
}

.testimonial-slider__arrow:hover {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
    box-shadow: 0 0 16px var(--brand-glow);
}

.testimonial-slider__arrow svg {
    width: 18px;
    height: 18px;
}

.testimonial-slider__dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--bg-elevated);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.dot--active {
    background: var(--brand);
    box-shadow: 0 0 8px var(--brand-glow);
}

.testimonial-image-wrap {
    position: relative;
}

.testimonial-image-wrap__blue {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: calc(100% + 80px);
    background: var(--brand);
    opacity: 0.85;
    z-index: 0;
}

.testimonial-image-wrap .img-placeholder {
    position: relative;
    z-index: 1;
}

/* ============================================
   Newsletter
   ============================================ */
.section--newsletter {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: var(--bg-dark);
}

.newsletter__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.newsletter__box {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 48px 56px;
    box-shadow: var(--shadow-brand);
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.newsletter__box--contact {
    max-width: 640px;
    text-align: left;
}

.newsletter__box--contact h2,
.newsletter__box--contact .newsletter__desc,
.newsletter__box--contact .newsletter__follow {
    text-align: center;
}

.newsletter__box--contact .newsletter__social {
    justify-content: center;
}

.newsletter__box h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.newsletter__form {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
}

.newsletter__form input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-right: none;
    background: var(--bg-section);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    border-radius: 4px 0 0 4px;
}

.newsletter__form input::placeholder {
    color: var(--text-muted);
}

.newsletter__form input:focus {
    border-color: var(--brand);
    box-shadow: inset 0 0 0 1px var(--brand);
}

.newsletter__form .btn {
    border-radius: 0 4px 4px 0;
    padding: 14px 28px;
}

.newsletter__follow {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.newsletter__social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.newsletter__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: var(--transition);
}

.newsletter__social a:hover {
    color: var(--white);
    background: var(--brand);
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 0 16px var(--brand-glow);
}

.newsletter__social svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Legal pages
   ============================================ */
.legal-page {
    padding: calc(48px + var(--navbar-height)) 0 80px;
    background: var(--bg-dark);
    min-height: calc(100vh - 80px);
}

.legal-page__container {
    max-width: 800px;
}

.legal-page__back {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--brand-light);
    margin-bottom: 28px;
    transition: var(--transition);
}

.legal-page__back:hover {
    color: var(--brand);
}

.legal-page__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.legal-page__updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.legal-page__content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.legal-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.legal-section h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1em;
    background: var(--brand);
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 2px;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--brand-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-section a:hover {
    color: var(--brand);
}

.legal-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.legal-list li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
    padding-left: 0;
}

.legal-list--bullets {
    padding-left: 20px;
}

.legal-list--bullets li {
    list-style: disc;
    color: var(--text-secondary);
}

.legal-list strong {
    color: var(--text-primary);
}

.legal-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 12px;
}

.legal-subtitle:first-of-type {
    margin-top: 0;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.legal-table th {
    background: var(--bg-section);
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
}

.legal-table td {
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table code {
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
    font-size: 0.82rem;
    color: var(--brand-light);
    word-break: break-word;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #070a0e;
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer__copy a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer__copy a:hover {
    color: var(--brand-light);
}

.footer__logo-img {
    height: 22px;
    width: auto;
    display: block;
    opacity: 0.9;
}

.footer__logo:hover .footer__logo-img {
    opacity: 1;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .cards-row--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-intro,
    .telegram-section {
        grid-template-columns: 1fr;
    }

    .telegram-section {
        margin-top: 56px;
        padding-top: 56px;
    }

    .youtube-feed {
        grid-template-columns: repeat(2, 1fr);
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .platform__box {
        margin-left: 0;
        max-width: 100%;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .testimonial-slider {
        margin-right: 0;
    }

    .testimonial-image-wrap__blue {
        right: 0;
        width: 80px;
    }
}

@media (max-width: 768px) {
    .navbar__toggle {
        display: flex;
    }

    .navbar__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        transition: right var(--transition);
        box-shadow: -4px 0 32px rgba(0, 0, 0, 0.6);
    }

    .navbar__menu--open {
        right: 0;
    }

    .navbar__menu a {
        color: var(--text-primary);
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border);
    }

    .navbar__menu a:hover {
        color: var(--brand-light);
        border-bottom-color: var(--brand);
    }

    .navbar__menu a.navbar__cta {
        margin-top: 8px;
        padding: 14px 24px;
        text-align: center;
        border-bottom: none;
    }

    .navbar__menu a.navbar__cta:hover {
        border-bottom: none;
    }

    .navbar__toggle--active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar__toggle--active span:nth-child(2) {
        opacity: 0;
    }

    .navbar__toggle--active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .cards-row--3,
    .cards-row--4,
    .columns-3 {
        grid-template-columns: 1fr;
    }

    .youtube-feed {
        grid-template-columns: 1fr;
    }

    .youtube-channel-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 24px 20px;
    }

    .btn--youtube {
        width: 100%;
        justify-content: center;
    }

    .btn--youtube__text {
        align-items: center;
        text-align: center;
    }

    .intro-grid__cards {
        grid-template-columns: 1fr 1fr;
    }

    .platform__purple {
        width: 100%;
        height: 30%;
    }

    .platform__split {
        flex-direction: column;
    }

    .platform__box {
        padding: 32px 24px;
    }

    .newsletter__form {
        flex-direction: column;
    }

    .newsletter__form input {
        border-right: 1px solid var(--border);
        border-radius: 4px;
    }

    .newsletter__form .btn {
        border-radius: 4px;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .newsletter__box--contact {
        padding: 32px 24px;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .intro-grid__cards {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 20px 24px;
    }
}

/* ============================================
   Blog
   ============================================ */
body.blog {
    background: var(--bg-dark);
}

.blog-hero {
    position: relative;
    padding: calc(56px + var(--navbar-height)) 0 48px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(60, 144, 206, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(60, 144, 206, 0.1) 0%, transparent 50%),
        var(--bg-section);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--bg-dark) 100%);
    pointer-events: none;
}

.blog-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.blog-hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-light);
    margin-bottom: 14px;
}

.blog-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 12px;
}

.blog-hero__subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 620px;
    line-height: 1.6;
}

.blog-page {
    padding: 40px 0 80px;
    background: var(--bg-dark);
    min-height: 50vh;
}

.blog-page .container.blog-layout {
    max-width: 1440px;
}

.blog-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.blog-sidebar {
    position: sticky;
    top: 84px;
    flex: 0 0 260px;
    width: 260px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--brand) transparent;
}

.blog-sidebar__title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding: 0 10px;
}

.blog-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    transition: var(--transition);
}

.blog-sidebar__link > span:first-child {
    flex: 1;
    min-width: 0;
}

.blog-sidebar__count {
    flex-shrink: 0;
    min-width: 26px;
    height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.blog-sidebar__link:hover,
.blog-sidebar__link.is-active {
    color: var(--text-primary);
    background: var(--brand-subtle);
}

.blog-sidebar__link.is-active {
    border: 1px solid rgba(60, 144, 206, 0.35);
    box-shadow: 0 0 18px rgba(60, 144, 206, 0.1);
}

.blog-sidebar__link.is-active .blog-sidebar__count {
    background: rgba(60, 144, 206, 0.25);
    color: var(--brand-light);
}

.blog-main {
    flex: 1;
    min-width: 0;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-card {
    display: flex;
    flex-direction: row;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-brand);
}

.blog-card__media {
    display: block;
    position: relative;
    flex: 0 0 42%;
    max-width: 460px;
    min-height: 240px;
    overflow: hidden;
    background: var(--bg-elevated);
}

.blog-card__media img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__media img {
    transform: scale(1.04);
}

.blog-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #152433 0%, #0f1a28 100%);
}

.blog-card__placeholder span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(60, 144, 206, 0.18);
    border: 1px solid rgba(60, 144, 206, 0.35);
    color: var(--brand-light);
    font-size: 1.75rem;
    font-weight: 700;
}

.blog-card__placeholder--comfyui {
    background: linear-gradient(135deg, #1a2840 0%, #101a2e 100%);
}

.blog-card__placeholder--tutoriales,
.blog-card__placeholder--guias {
    background: linear-gradient(135deg, #142a35 0%, #0e1c24 100%);
}

.blog-card__placeholder--ia-generativa,
.blog-card__placeholder--fundamentos-ia {
    background: linear-gradient(135deg, #241a40 0%, #151028 100%);
}

.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px 32px;
    justify-content: center;
}

.blog-card__meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.blog-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 12px;
}

.blog-card__title a:hover {
    color: var(--brand-light);
}

.blog-card__excerpt {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.blog-card__tags a {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--brand-light);
    background: var(--brand-subtle);
    padding: 4px 10px;
    border-radius: 999px;
    transition: var(--transition);
}

.blog-card__tags a:hover {
    background: rgba(60, 144, 206, 0.22);
}

.blog-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-light);
    margin-top: auto;
}

.blog-card__link:hover {
    color: var(--white);
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
}

.blog-pagination__status {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-pagination__btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.blog-pagination__btn:hover {
    border-color: var(--brand);
    color: var(--brand-light);
    background: var(--brand-subtle);
}

.blog-empty {
    padding: 64px 24px;
    color: var(--text-secondary);
    text-align: center;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 16px;
}

.blog-empty h1 {
    margin-bottom: 12px;
}

.footer--blog {
    margin-top: 0;
}

/* Article */
.blog-page--article {
    padding-top: calc(40px + var(--navbar-height));
    position: relative;
}

.blog-article__container {
    max-width: 1320px;
}

.blog-page--article .container.blog-article__container {
    max-width: 1320px;
}

.blog-article__panel {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 44px 64px 52px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.blog-article__panel--has-cover {
    padding-top: 0;
}

.blog-article__panel--has-cover .blog-article__back {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    margin: 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(11, 15, 20, 0.72);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
}

.blog-article__cover {
    position: relative;
    margin: 0 -64px 36px;
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at center, rgba(60, 144, 206, 0.14) 0%, transparent 72%),
        linear-gradient(180deg, #121a24 0%, #0f1419 100%);
    border-bottom: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
}

.blog-article__cover img {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(56vh, 560px);
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.blog-article__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brand-light);
    margin-bottom: 28px;
    transition: var(--transition);
}

.blog-article__back:hover {
    color: var(--white);
}

.blog-article__header {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.blog-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 18px;
}

.blog-article__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-article__categories a {
    color: var(--brand-light);
    background: var(--brand-subtle);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-article__header h1 {
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
}

.blog-article__excerpt {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.6;
}

.blog-article__content {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-article__content > *:first-child {
    margin-top: 0;
}

.blog-article__content h2,
.blog-article__content h3,
.blog-article__content h4,
.blog-article__content .gb-headline-text {
    color: var(--text-primary);
    font-weight: 600;
    margin: 2.25rem 0 1rem;
    line-height: 1.35;
}

.blog-article__content h2,
.blog-article__content .gb-headline-text {
    font-size: 1.55rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.blog-article__content h3 {
    font-size: 1.25rem;
}

.blog-article__content h4,
.blog-article__content .wp-block-heading {
    font-size: 1.1rem;
}

.blog-article__content p,
.blog-article__content ul,
.blog-article__content ol,
.blog-article__content pre,
.blog-article__content .gb-headline-text {
    margin-bottom: 1.25rem;
}

.blog-article__content ul,
.blog-article__content ol {
    list-style: disc;
    padding-left: 1.5rem;
}

.blog-article__content li {
    margin-bottom: 0.5rem;
}

.blog-article__content strong,
.blog-article__content b {
    color: var(--text-primary);
    font-weight: 600;
}

.blog-article__content em,
.blog-article__content i {
    color: var(--text-secondary);
}

.blog-article__content figure,
.blog-article__content .wp-block-image,
.blog-article__content .gb-block-image {
    margin: 2rem 0;
}

.blog-article__content img,
.blog-article__content .gb-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.blog-article__content figcaption {
    margin-top: 10px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-article__content iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 280px;
    border: 0;
    border-radius: 14px;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.podcast-player {
    margin: 0 0 2.5rem;
    padding: 20px 22px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 210, 64, 0.28);
    background:
        radial-gradient(circle at top right, rgba(255, 210, 64, 0.12), transparent 42%),
        linear-gradient(145deg, rgba(26, 34, 45, 0.98), rgba(15, 20, 25, 0.98));
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(60, 144, 206, 0.08);
}

.podcast-player__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.podcast-player__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: #1a222d;
    background: linear-gradient(135deg, #ffd240, #f5b800);
    box-shadow: 0 8px 22px rgba(255, 210, 64, 0.28);
    flex-shrink: 0;
}

.podcast-player__intro {
    min-width: 0;
}

.podcast-player__label {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.podcast-player__series {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.podcast-player__frame {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0b0f14;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.podcast-player__audio {
    display: block;
    width: 100%;
    min-height: 54px;
    margin: 0;
    accent-color: #ffd240;
    color-scheme: dark;
}

.podcast-player__audio::-webkit-media-controls-panel {
    background: transparent;
}

.podcast-player__audio::-webkit-media-controls-timeline {
    border-radius: 4px;
    margin-inline: 8px;
}

.podcast-player__audio::-webkit-media-controls-current-time-display,
.podcast-player__audio::-webkit-media-controls-time-remaining-display {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.blog-article__content a {
    color: var(--brand-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-article__content a:hover {
    color: var(--white);
}

.blog-article__content blockquote {
    margin: 1.5rem 0;
    padding: 16px 20px;
    border-left: 4px solid var(--brand);
    background: var(--bg-card);
    border-radius: 0 12px 12px 0;
    color: var(--text-secondary);
}

.blog-article__content code,
.blog-article__content pre {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9em;
}

.blog-article__content code {
    padding: 0.15rem 0.45rem;
}

.blog-article__content pre {
    padding: 16px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.blog-article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.blog-article__content th,
.blog-article__content td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}

.blog-article__content th {
    background: var(--bg-card);
    color: var(--text-primary);
}

.blog-article__content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.blog-article__content [style*="color"] {
    color: inherit !important;
}

.blog-article__content .ub_table-of-contents,
.blog-article__content .wp-block-ub-table-of-contents-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 24px;
    margin: 1.5rem 0 2rem;
}

.blog-article__content .ub_table-of-contents a,
.blog-article__content .wp-block-ub-table-of-contents-block a {
    text-decoration: none;
}

.blog-article__content .ub_table-of-contents a:hover,
.blog-article__content .wp-block-ub-table-of-contents-block a:hover {
    color: var(--white);
}

@media (max-width: 1100px) {
    .blog-layout {
        gap: 28px;
    }

    .blog-sidebar {
        flex-basis: 220px;
        width: 220px;
    }

    .blog-card__media {
        flex-basis: 38%;
        max-width: 360px;
        min-height: 200px;
    }

    .blog-card__media img {
        min-height: 200px;
    }
}

@media (max-width: 900px) {
    .blog-layout {
        flex-direction: column;
        gap: 24px;
    }

    .blog-sidebar {
        position: static;
        width: 100%;
        max-height: none;
        flex: none;
    }

    .blog-sidebar__nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .blog-sidebar__link {
        width: auto;
        padding: 8px 14px;
        border: 1px solid var(--border);
        border-radius: 999px;
        font-size: 0.82rem;
    }

    .blog-sidebar__link.is-active {
        border-color: rgba(60, 144, 206, 0.45);
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-card__media {
        flex: none;
        width: 100%;
        max-width: none;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .blog-card__media img {
        min-height: 0;
    }

    .blog-card__body {
        padding: 22px 24px 24px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: calc(40px + var(--navbar-height)) 0 32px;
    }

    .blog-article__panel {
        padding: 24px 20px 32px;
        border-radius: 16px;
    }

    .blog-article__panel--has-cover {
        padding-top: 0;
    }

    .blog-article__cover {
        margin: 0 -20px 24px;
        padding: 20px 16px;
    }

    .blog-article__cover img {
        max-height: 36vh;
    }

    .blog-article__panel--has-cover .blog-article__back {
        top: 14px;
        left: 14px;
        font-size: 0.82rem;
        padding: 7px 12px;
    }

    .blog-card__title {
        font-size: 1.1rem;
    }
}
