/* ============================================
   OMNIA — Blog Redesign (Editorial)
   Premium, Dark, Editorial, Creative Agency
   ============================================ */

/* CSS Variables for Blog Redesign */
:root {
    --blog-magenta: #FF0066;
    --blog-blue: #0088FF;
    --blog-purple: #9D00FF;
    --blog-dark: #050508;
    --blog-surface: #0a0a0f;
    --blog-glass: rgba(15, 15, 20, 0.4);
    --blog-glass-border: rgba(255, 255, 255, 0.08);
}

.omnia-blog-redesign {
    background-color: var(--blog-dark);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    padding-top: var(--header-height, 80px);
    /* Adjust based on global header */
    min-height: 100vh;
    min-height: var(--omnia-viewport-height);
}

@supports (-webkit-touch-callout: none) {
    @media (hover: none) and (pointer: coarse) {
        html.is-iphone-webkit .omnia-blog-redesign {
            min-height: var(--omnia-viewport-height);
        }
    }
}

/* ========== Section 1: Hero ========== */
.blog-redesign-hero {
    position: relative;
    padding: 6rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at 50% 0%, rgba(157, 0, 255, 0.1) 0%, transparent 60%);
}

.blog-redesign-hero__logo-container {
    max-width: 800px;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

.blog-redesign-hero__logo {
    width: 100%;
    height: auto;
    display: block;
}

.blog-redesign-hero__divider {
    width: 100%;
    max-width: 800px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(157, 0, 255, 0.2), var(--blog-magenta), rgba(0, 136, 255, 0.4), transparent);
    position: relative;
    border-radius: 50%;
}

.blog-redesign-hero__divider-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 20px;
    background: var(--blog-purple);
    filter: blur(20px);
    opacity: 0.3;
}

/* ========== Section 2: Header & Search ========== */
.blog-redesign-header {
    text-align: center;
    padding: 2rem 2rem 5rem;
    position: relative;
}

.blog-redesign-header__title {
    font-size: clamp(4.5rem, 15vw, 11rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0;
    margin-top: 7rem;
    margin-bottom: 11rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-redesign-header__iso {
    height: clamp(5rem, 12vw, 10rem);
    width: auto;
    object-fit: contain;
    margin-right: 0.4em;
    transform: translateY(-5%);
    /* Fine tune alignment with text */
    filter: drop-shadow(0 0 20px rgba(157, 0, 255, 0.4));
}

.blog-redesign-header__b {
    margin-right: 0.4em;
}

.blog-redesign-header__l {
    margin-right: 0.4em;
}

.blog-redesign-header__slogan {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.blog-redesign-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.blog-redesign-search__form {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--blog-glass);
    border: 1px solid var(--blog-glass-border);
    border-radius: 100px;
    padding: 0.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.blog-redesign-search__form:focus-within {
    border-color: rgba(157, 0, 255, 0.5);
    box-shadow: 0 0 30px rgba(157, 0, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.blog-redesign-search__icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 1rem;
}

.blog-redesign-search__input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 1rem;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.blog-redesign-search__input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Search Dropdown */
.blog-redesign-search__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--blog-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 100;
}

.blog-redesign-search__dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.blog-redesign-search__result-item {
    display: flex;
    flex-direction: column;
    padding: 0.8rem 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
    border-left: 3px solid transparent;
    text-align: left;
}

.blog-redesign-search__result-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--blog-purple);
}

.blog-redesign-search__result-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.blog-redesign-search__result-category {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-redesign-search__empty {
    padding: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

.blog-redesign-search__empty-sugg {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-redesign-search__sugg-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.8rem;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.blog-redesign-search__sugg-tag:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========== Section 3: Team Circle ========== */
.blog-redesign-team {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    position: relative;
}

.blog-redesign-team__container {
    display: flex;
    justify-content: center;
}

.blog-redesign-team__circle {
    width: clamp(250px, 40vw, 400px);
    aspect-ratio: 1;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    --blob-r0: 60% 40% 30% 70% / 60% 30% 70% 40%;
    --blob-r25: 30% 70% 70% 30% / 30% 30% 70% 70%;
    --blob-r50: 50% 50% 30% 70% / 50% 70% 30% 50%;
    --blob-r75: 30% 70% 50% 50% / 50% 50% 70% 50%;
    --blob-dy: -5px;
    --blob-rot: 3deg;
    --blob-scale: 1.02;
    animation:
        blobMorphLoop 8s ease-in-out infinite,
        blobDriftLoop 11s ease-in-out infinite;
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #1b0033 0%, #56167d 50%, #8e2de2 100%);
    box-shadow: 0 0 50px rgba(74, 0, 224, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    scale: 1;
    transition: scale 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.35s ease;
}

.blog-redesign-team__circle-bg {
    position: absolute;
    inset: -10%;
    background-size: 50%;
    background-position: center;
    transition: transform 0.6s ease;
    background-color: transparent;
}

.blog-redesign-team__circle-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
    transition: opacity 0.3s ease;
}

.blog-redesign-team__circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 0.1em;
    width: 80%;
    z-index: 2;
    transition: text-shadow 0.3s ease;
}

.blog-redesign-team__circle:hover {
    scale: 1.045;
    box-shadow: 0 0 60px rgba(157, 0, 255, 0.26), inset 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.blog-redesign-team__circle:hover .blog-redesign-team__circle-bg {
    transform: scale(1.1);
}

.blog-redesign-team__circle:hover .blog-redesign-team__circle-overlay {
    opacity: 0.8;
}

.blog-redesign-team__circle:hover .blog-redesign-team__circle-text {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* ========== Section 4: Categories ========== */
.blog-redesign-categories {
    padding: 2rem 0;
    width: 100%;
}

.blog-redesign-categories__grid {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.blog-redesign-category {
    position: relative;
    width: 100%;
    min-height: 200px;
    height: 30vh;
    display: flex;
    align-items: center;
    padding: 2rem 5vw;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: -1px;
    /* collapse borders */
}

/* Backgrounds - SVG Visual Icons */
.blog-redesign-category__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: 800px;
    background-repeat: repeat;
    opacity: 0.3;
    transition: transform 0.8s ease, filter 0.8s ease, opacity 0.4s ease;
    background-color: transparent;
}

.blog-redesign-category--procesos .blog-redesign-category__bg {
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.2'%3E%3Cpath d='M0 100 Q 50 50, 100 100 T 200 100' /%3E%3Cpath d='M0 130 Q 50 80, 100 130 T 200 130' /%3E%3Cpath d='M0 70 Q 50 20, 100 70 T 200 70' /%3E%3Ccircle cx='100' cy='100' r='6' fill='%23ffffff' stroke='none' fill-opacity='0.3'/%3E%3C/g%3E%3C/svg%3E");
}

.blog-redesign-category--herramientas .blog-redesign-category__bg {
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-opacity='0.2'%3E%3Crect x='20' y='20' width='160' height='160' rx='10'/%3E%3Cline x1='20' y1='60' x2='180' y2='60'/%3E%3Cline x1='60' y1='60' x2='60' y2='180'/%3E%3Ccircle cx='40' cy='40' r='4' fill='%23ffffff' stroke='none' fill-opacity='0.3'/%3E%3Ccircle cx='60' cy='40' r='4' fill='%23ffffff' stroke='none' fill-opacity='0.3'/%3E%3Crect x='80' y='80' width='80' height='80' rx='5' fill='%23ffffff' stroke='none' fill-opacity='0.05'/%3E%3C/g%3E%3C/svg%3E");
}

.blog-redesign-category--tendencias .blog-redesign-category__bg {
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-opacity='0.2'%3E%3Ccircle cx='100' cy='100' r='80' stroke-dasharray='10 5'/%3E%3Ccircle cx='100' cy='100' r='50' stroke-dasharray='5 5'/%3E%3Ccircle cx='100' cy='100' r='20'/%3E%3Cpath d='M100 20 L100 180M20 100 L180 100' stroke-opacity='0.1'/%3E%3C/g%3E%3C/svg%3E");
}

/* Overlays */
.blog-redesign-category__overlay {
    position: absolute;
    inset: 0;
    opacity: 0.85;
    transition: opacity 0.4s ease;
}

.blog-redesign-category--procesos .blog-redesign-category__overlay {
    background: linear-gradient(90deg, var(--blog-dark) 0%, rgba(255, 0, 102, 0.3) 100%);
}

.blog-redesign-category--herramientas .blog-redesign-category__overlay {
    background: linear-gradient(90deg, var(--blog-dark) 0%, rgba(0, 136, 255, 0.3) 100%);
}

.blog-redesign-category--tendencias .blog-redesign-category__overlay {
    background: linear-gradient(90deg, var(--blog-dark) 0%, rgba(157, 0, 255, 0.3) 100%);
}

.blog-redesign-category__content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-redesign-category__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.01em;
    transform: translateX(0);
    transition: transform 0.4s ease;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.blog-redesign-category__view {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

/* Hover Effects */
.blog-redesign-category:hover .blog-redesign-category__bg {
    transform: scale(1.05);
    opacity: 0.6;
}

.blog-redesign-category:hover .blog-redesign-category__overlay {
    opacity: 0.6;
}

.blog-redesign-category:hover .blog-redesign-category__title {
    transform: translateX(20px);
}

.blog-redesign-category:hover .blog-redesign-category__view {
    opacity: 1;
    transform: translateX(0);
}

/* Color specific titles on hover */
.blog-redesign-category--procesos:hover .blog-redesign-category__title {
    color: #ffe6f0;
}

.blog-redesign-category--herramientas:hover .blog-redesign-category__title {
    color: #e6f3ff;
}

.blog-redesign-category--tendencias:hover .blog-redesign-category__title {
    color: #f5e6ff;
}


/* ========== Section 5: Social ========== */
.blog-redesign-social {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.blog-redesign-social__watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    max-width: 600px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.blog-redesign-social__watermark img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px var(--blog-purple));
}

.blog-redesign-social__container {
    position: relative;
    z-index: 1;
}

.blog-redesign-social__title-big {
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 500;
    margin: 0 0 3rem;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-redesign-social__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.blog-redesign-social__icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.blog-redesign-social__icon-blob {
    width: 100px;
    height: 100px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    background: linear-gradient(135deg, #1b0033 0%, #56167d 50%, #8e2de2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: scale 0.32s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.32s ease, background 0.32s ease;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    --blob-r0: 60% 40% 30% 70% / 60% 30% 70% 40%;
    --blob-r25: 30% 70% 70% 30% / 30% 30% 70% 70%;
    --blob-r50: 50% 50% 30% 70% / 50% 70% 30% 50%;
    --blob-r75: 30% 70% 50% 50% / 50% 50% 70% 50%;
    --blob-dy: -4px;
    --blob-rot: 4deg;
    --blob-scale: 1.04;
    scale: 1;
    animation:
        blobMorphLoop 6s ease-in-out infinite,
        blobDriftLoop 7.5s ease-in-out infinite;
}

.blog-redesign-social__icon-blob::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    background: linear-gradient(135deg, #1b0033 0%, #56167d 50%, #8e2de2 100%);
    z-index: 0;
    opacity: 0.32;
    filter: blur(12px);
    transform: scale(1.01);
    transition: opacity 0.4s ease, transform 0.4s ease, border-radius 0.4s ease;
}

.blog-redesign-social__svg {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    transition: transform 0.3s ease;
}

.blog-redesign-social__icon-blob:hover {
    scale: 1.07;
    background: linear-gradient(135deg, #1b0033 0%, #56167d 50%, #8e2de2 100%);
    box-shadow: 0 14px 30px rgba(157, 0, 255, 0.24);
}

.blog-redesign-social__icon-blob:hover::before {
    opacity: 0.48;
    transform: scale(1.09);
    border-radius: 50%;
}

.blog-redesign-social__icon-blob:hover .blog-redesign-social__svg {
    transform: scale(1.2);
}

/* ========== Modal ========== */
.blog-redesign-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: max(1rem, var(--omnia-safe-top)) max(1rem, var(--omnia-safe-right)) max(1rem, var(--omnia-safe-bottom)) max(1rem, var(--omnia-safe-left));
}

.blog-redesign-modal.active,
.blog-redesign-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.blog-redesign-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(15px);
}

.blog-redesign-modal__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    max-height: calc(var(--omnia-viewport-height) - 2rem - var(--omnia-safe-top) - var(--omnia-safe-bottom));
    background: var(--blog-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow-y: auto;

    /* Scroll Performance Fixes */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    will-change: transform;

    transform: translateY(40px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Force hardware acceleration on complex inner layers to stop scroll repaints */
.blog-redesign-modal__content-wrapper {
    transform: translateZ(0);
}

.blog-redesign-modal.active .blog-redesign-modal__container,
.blog-redesign-modal[aria-hidden="false"] .blog-redesign-modal__container {
    transform: translateY(0) scale(1);
}

.blog-redesign-modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.blog-redesign-modal__close:hover {
    background: var(--blog-magenta);
    border-color: var(--blog-magenta);
    transform: rotate(90deg);
}

.blog-redesign-modal__content {
    padding: 3rem 2rem;
    clear: both;
}

.blog-redesign-modal__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 3rem;
    /* Space for absolute close button */
}

.blog-redesign-modal__desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 700px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-highlight {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Layout & Sections */
.blog-redesign-modal__content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    /* Huge spacing between sections for pacing */
    padding-bottom: 4rem;
}

.blog-redesign-modal__section {
    position: relative;
    width: 100%;
}

.blog-redesign-modal__desc-large {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    font-weight: 300;
}

/* 1. Split Layout */
.blog-redesign-modal__section--split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.blog-redesign-modal__text {
    flex: 1 1 400px;
}

.blog-redesign-modal__visual {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-redesign-modal__blob-shape {
    width: 300px;
    height: 300px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    --blob-r0: 40% 60% 70% 30% / 40% 50% 60% 50%;
    --blob-r50: 60% 40% 30% 70% / 60% 30% 70% 40%;
    --blob-dy: -6px;
    --blob-rot: 5deg;
    --blob-scale: 1.03;
    animation:
        blobMorphLoop 10s ease-in-out infinite,
        blobDriftLoop 12s ease-in-out infinite;
    box-shadow: 0 0 80px rgba(86, 22, 125, 0.4);
    opacity: 0.8;
}

.bg-blob-brand {
    background: linear-gradient(135deg, rgba(86, 22, 125, 0.6) 0%, rgba(142, 45, 226, 0.3) 100%);
}

/* 2. Premium Center Card */
.blog-redesign-modal__card-hero {
    background: rgba(25, 25, 35, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.blog-redesign-modal__card-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(142, 45, 226, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* 3. Visual Grid (Values) */
.blog-redesign-modal__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Centers the second row when the values grid has 5 cards on desktop. */
@media (min-width: 992px) {
    .blog-redesign-modal__values-grid--balanced {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .blog-redesign-modal__values-grid--balanced .blog-redesign-modal__value-card {
        grid-column: span 2;
    }

    .blog-redesign-modal__values-grid--balanced .blog-redesign-modal__value-card:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .blog-redesign-modal__values-grid--balanced .blog-redesign-modal__value-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

.blog-redesign-modal__value-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.blog-redesign-modal__value-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.blog-redesign-modal__value-icon {
    font-size: 2.5rem;
    color: var(--blog-magenta);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.blog-redesign-modal__value-card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 500;
}

.blog-redesign-modal__value-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* 4. Process Flow */
.blog-redesign-modal__process-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

@media (min-width: 768px) {
    .blog-redesign-modal__process-flow {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.blog-redesign-modal__process-step {
    flex: 1;
    position: relative;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
}

.blog-redesign-modal__step-number {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blog-magenta);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.blog-redesign-modal__process-step h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.blog-redesign-modal__process-step p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.5;
}

.blog-redesign-modal__process-line {
    display: none;
}

@media (min-width: 768px) {
    .blog-redesign-modal__process-line {
        display: block;
        flex: 0 0 40px;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 4rem;
    }
}

.blog-redesign-modal__subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

/* 5. Founders */
.blog-redesign-modal__founders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 3rem 1.5rem;
    margin-top: 3rem;
}

.blog-redesign-founder {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.blog-redesign-founder:hover {
    transform: translateY(-5px);
}

.blog-redesign-founder__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.blog-redesign-founder:hover .blog-redesign-founder__avatar {
    border-color: rgba(255, 255, 255, 0.2);
}

.blog-redesign-founder__avatar-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(142, 45, 226, 0.3) 0%, transparent 60%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.blog-redesign-founder:hover .blog-redesign-founder__avatar-glow {
    opacity: 1;
}

.blog-redesign-founder__info h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.3rem;
}

.blog-redesign-founder__info span {
    font-size: 0.9rem;
    color: var(--blog-magenta);
    font-weight: 500;
}

/* Custom scrollbar for modal */
.blog-redesign-modal__container::-webkit-scrollbar {
    width: 6px;
}

.blog-redesign-modal__container::-webkit-scrollbar-track {
    background: transparent;
}

.blog-redesign-modal__container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Responsive constraints */
@media (max-width: 1024px) {
    .blog-redesign-category {
        height: 25vh;
    }
}

@media (max-width: 768px) {
    .blog-redesign-hero {
        padding: 5rem 1.5rem 2rem;
    }

    .blog-redesign-header {
        padding: 2rem 1.5rem 3rem;
    }

    .blog-redesign-header__title {
        font-size: clamp(2.9rem, 16vw, 4.2rem);
        margin-top: 2.5rem;
        margin-bottom: 3rem;
        line-height: 0.95;
    }

    .blog-redesign-header__iso {
        height: clamp(2.8rem, 14vw, 4.3rem);
        margin-right: 0.2em;
    }

    .blog-redesign-header__slogan {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.45;
        letter-spacing: 0.03em;
    }

    .blog-redesign-search__form {
        padding: 0.25rem 0.35rem;
    }

    .blog-redesign-search {
        max-width: 430px;
    }

    .blog-redesign-search__icon {
        width: 16px;
        height: 16px;
        margin-left: 0.7rem;
    }

    .blog-redesign-search__input {
        font-size: 0.9rem;
        padding: 0.6rem 0.7rem;
    }

    .blog-redesign-category {
        min-height: 150px;
        height: auto;
        padding: 1.1rem 1rem;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 0.7rem;
    }

    .blog-redesign-category__content {
        width: 100%;
    }

    .blog-redesign-category__title {
        transform: none;
        font-size: clamp(1.45rem, 7vw, 1.62rem);
        line-height: 1.08;
        word-break: break-word;
    }

    .blog-redesign-category__view {
        transform: translateY(0);
        opacity: 0.9;
        font-size: 0.9rem;
    }

    .blog-redesign-category:hover .blog-redesign-category__title {
        transform: translateY(-5px);
    }

    .blog-redesign-category:hover .blog-redesign-category__view {
        transform: translateY(0);
    }

    .blog-redesign-modal {
        padding: 0.5rem;
    }

    .blog-redesign-modal__container {
        max-height: calc(var(--omnia-viewport-height) - 1rem - var(--omnia-safe-top) - var(--omnia-safe-bottom));
        border-radius: 18px;
    }

    .blog-redesign-modal__close {
        top: 0.75rem;
        right: 0.75rem;
        width: 38px;
        height: 38px;
        font-size: 1.45rem;
    }

    .blog-redesign-modal__content {
        padding: 2.4rem 1rem 1.2rem;
    }

    .blog-redesign-modal__title {
        font-size: clamp(1.35rem, 7vw, 1.62rem);
        padding-right: 2.4rem;
    }

    .blog-redesign-modal__desc {
        font-size: 1rem;
    }

    .blog-redesign-modal__desc-large {
        font-size: 1rem;
        line-height: 1.55;
    }

    .blog-redesign-modal__content-wrapper {
        gap: 2.5rem;
        padding-bottom: 1.5rem;
    }

    .blog-redesign-modal__section--split {
        gap: 1.75rem;
    }

    .blog-redesign-modal__blob-shape {
        width: 160px;
        height: 160px;
    }

    .blog-redesign-team__circle {
        width: clamp(170px, 46vw, 220px);
    }

    .blog-redesign-founder__avatar {
        width: 120px;
        height: 120px;
    }
}

html.is-ios-inapp .blog-redesign-modal__overlay {
    backdrop-filter: none;
    background: rgba(5, 5, 8, 0.96);
}

@media (max-width: 480px) {
    .blog-redesign-hero {
        padding: 4.4rem 1rem 1.4rem;
    }

    .blog-redesign-header {
        padding: 1.5rem 1rem 2.25rem;
    }

    .blog-redesign-header__title {
        margin-top: 1.75rem;
        margin-bottom: 2.75rem;
    }

    .blog-redesign-modal__content {
        padding: 2.2rem 0.85rem 1rem;
    }

    .blog-redesign-modal__value-card,
    .blog-redesign-modal__process-step {
        padding: 1rem;
    }
}

/* ========== LIGHT THEME TUNING ========== */
html[data-theme="light"] {
    --blog-dark: #ffffff;
    --blog-surface: #ffffff;
    --blog-glass: #ffffff;
    --blog-glass-border: rgba(24, 27, 44, 0.14);
}

html[data-theme="light"] .omnia-blog-redesign {
    color: var(--color-text);
}

html[data-theme="light"] .blog-redesign-hero {
    background: #ffffff;
}

html[data-theme="light"] .blog-redesign-header__title,
html[data-theme="light"] .blog-redesign-social__title-big,
html[data-theme="light"] .blog-redesign-modal__title {
    background: none;
    color: #15182c;
    -webkit-text-fill-color: initial;
}

html[data-theme="light"] .blog-redesign-header__slogan,
html[data-theme="light"] .blog-redesign-social__subtitle,
html[data-theme="light"] .blog-redesign-modal__desc,
html[data-theme="light"] .blog-redesign-modal__desc-large,
html[data-theme="light"] .blog-redesign-modal__value-card p,
html[data-theme="light"] .blog-redesign-modal__process-step p {
    color: var(--color-text-muted);
}

html[data-theme="light"] .blog-redesign-search__form {
    background: var(--color-input-bg);
    box-shadow: none;
}

html[data-theme="light"] .blog-redesign-search__icon {
    color: rgba(24, 27, 44, 0.45);
}

html[data-theme="light"] .blog-redesign-search__input {
    color: var(--color-text);
}

html[data-theme="light"] .blog-redesign-search__input::placeholder {
    color: rgba(24, 27, 44, 0.45);
}

html[data-theme="light"] .blog-redesign-search__dropdown {
    background: #ffffff;
    border-color: rgba(24, 27, 44, 0.14);
    box-shadow: 0 14px 28px rgba(24, 27, 44, 0.12);
}

html[data-theme="light"] .blog-redesign-search__result-item {
    color: var(--color-text);
}

html[data-theme="light"] .blog-redesign-search__result-item:hover {
    background: rgba(86, 22, 125, 0.08);
}

html[data-theme="light"] .blog-redesign-search__result-category,
html[data-theme="light"] .blog-redesign-search__empty {
    color: var(--color-text-muted);
}

html[data-theme="light"] .blog-redesign-search__sugg-tag {
    background: rgba(24, 27, 44, 0.07);
    color: var(--color-text);
}

html[data-theme="light"] .blog-redesign-team__circle {
    background: #005b85;
    box-shadow:
        0 10px 24px rgba(0, 91, 133, 0.2),
        0 0 22px rgba(86, 22, 125, 0.12);
}

html[data-theme="light"] .blog-redesign-team__circle::before,
html[data-theme="light"] .blog-redesign-team__circle::after {
    box-shadow: none;
}

html[data-theme="light"] .blog-redesign-category {
    color: var(--color-text);
    background: #ffffff;
}

html[data-theme="light"] .blog-redesign-category--herramientas {
    border-image: linear-gradient(90deg, #ffffff, rgba(0, 91, 133, 1)) 1;
}

html[data-theme="light"] .blog-redesign-category--tendencias {
    border-image: linear-gradient(90deg, #ffffff, rgba(86, 22, 125, 1)) 1;
}

html[data-theme="light"] .blog-redesign-category__title,
html[data-theme="light"] .blog-redesign-category__view {
    color: var(--color-text);
    text-shadow: none;
}

html[data-theme="light"] .blog-redesign-category:hover .blog-redesign-category__title {
    color: #15182c;
}

html[data-theme="light"] .blog-redesign-category--procesos .blog-redesign-category__overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255) 0%, #c8003b 100%);
    opacity: 0.92;
}

html[data-theme="light"] .blog-redesign-category--herramientas .blog-redesign-category__overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255) 0%, rgba(0, 91, 133, 1) 100%);
    opacity: 0.92;
}

html[data-theme="light"] .blog-redesign-category--tendencias .blog-redesign-category__overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255) 0%, rgba(86, 22, 125, 1) 100%);
    opacity: 0.92;
}

html[data-theme="light"] .blog-redesign-modal__overlay {
    background: rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .blog-redesign-modal__container {
    border-color: rgba(24, 27, 44, 0.12);
    box-shadow: 0 16px 32px rgba(24, 27, 44, 0.14);
}

html[data-theme="light"] .blog-redesign-modal__close {
    background: rgba(24, 27, 44, 0.06);
    border-color: rgba(24, 27, 44, 0.14);
    color: var(--color-text);
}

html[data-theme="light"] .blog-redesign-modal__close:hover {
    color: #ffffff;
}

html[data-theme="light"] .text-highlight,
html[data-theme="light"] .blog-redesign-modal__value-card h3,
html[data-theme="light"] .blog-redesign-modal__process-step h4,
html[data-theme="light"] .blog-redesign-modal__subtitle,
html[data-theme="light"] .blog-redesign-founder__info h4 {
    color: var(--color-text);
    text-shadow: none;
}

html[data-theme="light"] .blog-redesign-modal__card-hero,
html[data-theme="light"] .blog-redesign-modal__value-card,
html[data-theme="light"] .blog-redesign-modal__process-step,
html[data-theme="light"] .blog-redesign-founder__avatar {
    background: #ffffff;
    border-color: rgba(24, 27, 44, 0.12);
}

html[data-theme="light"] .blog-redesign-modal__step-number {
    background: rgba(0, 91, 133, 0.14);
}

html[data-theme="light"] .blog-redesign-modal__process-line {
    background-color: rgba(24, 27, 44, 0.14);
}

html[data-theme="light"] .blog-redesign-modal__subtitle {
    border-bottom-color: rgba(24, 27, 44, 0.14);
}

html[data-theme="light"] .blog-redesign-header a[href="blog.html"] {
    color: rgba(24, 27, 44, 0.66) !important;
    border-bottom-color: rgba(24, 27, 44, 0.22) !important;
}

html[data-theme="light"] .blog-redesign-header__title {
    color: var(--color-text) !important;
}

html[data-theme="light"] .bg-blob-brand,
html[data-theme="light"] .blog-redesign-social__icon-blob,
html[data-theme="light"] .blog-redesign-modal__blob-shape {
    background: #005b85;
}

html[data-theme="light"] .blog-redesign-social__icon-blob {
    box-shadow:
        0 8px 18px rgba(0, 91, 133, 0.2),
        0 0 20px rgba(86, 22, 125, 0.11);
}

html[data-theme="light"] .blog-redesign-social__icon-blob::before {
    opacity: 0.28;
    filter: blur(11px);
}

html[data-theme="light"] .blog-redesign-social__icon-blob:hover {
    background: #005b85;
    box-shadow:
        0 12px 24px rgba(0, 91, 133, 0.24),
        0 0 24px rgba(86, 22, 125, 0.14);
}

html[data-theme="light"] .blog-redesign-social__icon-blob:hover::before {
    opacity: 0.34;
}

html[data-theme="light"] .blog-redesign-modal__blob-shape {
    box-shadow:
        0 14px 34px rgba(0, 91, 133, 0.2),
        0 0 34px rgba(86, 22, 125, 0.14);
}

html[data-theme="light"] #blogEmptyState {
    color: rgba(24, 27, 44, 0.62) !important;
}

html[data-theme="light"] .blog-redesign-hero__divider-glow {
    background: #9d00ffb0;
}
