/*
 * CX-4U Theme Styles
 * OnePage - Fiel al diseño PDF "Web Page VF"
 * Paleta: Púrpura/Violet + Navy + Ámbar/Naranja acentos
 */

/* ======================================
   DESIGN TOKENS
   ====================================== */
:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #8B85FF;
    --primary-gradient: linear-gradient(135deg, #6C63FF 0%, #9B59B6 100%);
    --purple-bg: #7B6FC0;
    --purple-light: #D8D2F0;
    --purple-lighter: #EDEAF5;

    --navy: #1A1A40;
    --navy-light: #2D2D5E;

    --amber: #E5A800;
    --amber-light: #FFF3CD;

    --blue-soft: #D6EAF8;
    --pink-soft: #F0D6F0;
    --orange-soft: #FAE5D3;

    --white: #FFFFFF;
    --gray-50: #F8F9FC;
    --gray-100: #F1F3F8;
    --gray-200: #E2E5EF;
    --gray-300: #C8CDD9;
    --gray-400: #9BA3B5;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --section-padding: 5rem;
    --container-max: 1100px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* ======================================
   RESET & BASE
   ====================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { color: var(--gray-900); line-height: 1.3; font-weight: 700; }

.site-container { 
    max-width: var(--container-max); 
    margin: 0 auto; 
    padding-left: 2rem; 
    padding-right: 2rem; 
}
.section-padding { padding-top: var(--section-padding); padding-bottom: var(--section-padding); }

.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}

/* ======================================
   BUTTONS
   ====================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.75rem; font-size: 0.875rem; font-weight: 600;
    border-radius: var(--radius-md); cursor: pointer; transition: var(--transition);
    border: 2px solid transparent; font-family: var(--font-family);
}
.btn-primary {
    background: var(--primary); color: var(--white); border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline {
    background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); border-color: var(--white); }
.btn-full { width: 100%; }

.btn-cta-header {
    background: var(--primary); color: var(--white); padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md); font-size: 0.8125rem; font-weight: 600;
    border: 2px solid var(--primary); white-space: nowrap;
}
.btn-cta-header:hover { background: var(--primary-dark); }

/* ======================================
   SECTION TAGS & TITLES
   ====================================== */
.section-tag {
    display: inline-block; font-size: 0.875rem; font-weight: 600;
    color: var(--primary); margin-bottom: 0.75rem;
}
.section-title-left { font-size: 1.75rem; font-weight: 800; margin-bottom: 1.25rem; text-align: left; }

.text-highlight { color: var(--primary); }

/* ======================================
   PROMO BAR
   ====================================== */
.promo-bar {
    background: var(--purple-bg); color: var(--white); text-align: center;
    padding: 0.6rem 1rem; font-size: 0.875rem; font-weight: 500;
}

/* ======================================
   HEADER
   ====================================== */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; gap: 1.5rem;
}

.site-branding {
    display: flex;
    align-items: center;
    height: 64px;
}
.site-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    width: 105px;
    height: 105px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    z-index: 1010;
    margin-top: 10px;
    margin-bottom: -51px;
    transition: var(--transition);
}
.site-logo-link img {
    height: 65px;
    width: auto;
    display: block;
    transition: var(--transition);
}
.site-logo-link:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(2px);
}
.site-logo-link:hover img {
    transform: scale(1.06);
}

.main-navigation ul { display: flex; gap: 0.25rem; }
.main-navigation li a {
    display: block; padding: 0.4rem 0.75rem; font-size: 0.8125rem;
    font-weight: 600; color: var(--gray-700); letter-spacing: 0.02em;
}
.main-navigation li a:hover { color: var(--primary); }

.menu-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 1001; }
.hamburger-line { display: block; width: 22px; height: 2px; background: var(--gray-800); border-radius: 2px; transition: var(--transition); }

/* ======================================
   HERO / SLIDER
   ====================================== */
.hero-section { position: relative; }

.hero-slider { 
    position: relative; 
    width: 100%; 
    /* Calculemos el alto: Ventana - Promo Bar - Header */
    height: calc(100vh - 104px); 
    height: calc(100svh - 104px); 
    min-height: 480px; 
    overflow: hidden; 
}
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0; z-index: 0;
    transition: opacity 0.8s ease-in-out;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-bg-img { 
    width: 100%; height: 100%; 
    object-fit: cover; object-position: center; 
    transform: scale(1.0);
    transition: transform 0.8s ease-in-out; 
}
.hero-slide.active .hero-bg-img {
    transform: scale(1.06);
    transition: transform 6.5s ease-out;
}
.hero-bg-video {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}
.hero-slide-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); z-index: 1; }

.video-mute-toggle-btn {
    position: absolute; bottom: 2rem; right: 2rem;
    z-index: 30;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
    color: var(--white); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.video-mute-toggle-btn:hover {
    background: rgba(0,0,0,0.6);
    transform: scale(1.05);
    border-color: var(--white);
}
.video-mute-toggle-btn .hidden {
    display: none !important;
}

/* Slide Layered Content */
.hero-slide-content {
    position: absolute; inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: left;
}
.hero-slide-content .site-container {
    width: 100%;
}
.hero-slide-text-wrapper {
    max-width: 650px;
}

/* Layer Animations */
.hero-slide .layer-subtitle,
.hero-slide .layer-title,
.hero-slide .layer-description,
.hero-slide .layer-buttons {
    transition: none; /* Reset immediately when not active */
}

.hero-slide .layer-subtitle {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-light);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(-20px);
}
.hero-slide.active .layer-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.4s;
}

.hero-slide .layer-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 1.25rem;
    opacity: 0;
    transform: translateX(-40px);
}
.hero-slide .layer-title span {
    color: var(--primary-light);
    background: linear-gradient(135deg, #8B85FF 0%, #D8D2F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-slide.active .layer-title {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.7s;
}

.hero-slide .layer-description {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}
.hero-slide.active .layer-description {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 1s;
}

.hero-slide .layer-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
}
.hero-slide.active .layer-buttons {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 1.3s;
}

.hero-slider-dots {
    position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: 0.6rem; z-index: 20;
    padding: 0.5rem 1rem; border-radius: 20px;
    background: rgba(0,0,0,0.1); backdrop-filter: blur(4px);
}
.dot {
    width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5);
    cursor: pointer; transition: var(--transition); border: none;
}
.dot.active { background: var(--primary); width: 28px; border-radius: 6px; }

.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 44px; height: 44px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.85); color: var(--gray-800);
    font-size: 1.25rem; cursor: pointer; display: flex; align-items: center;
    justify-content: center; transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero-arrow:hover { background: var(--white); transform: translateY(-50%) scale(1.1); }
.hero-arrow--prev { left: 1rem; }
.hero-arrow--next { right: 1rem; }

.hero-thumbnails { background: var(--white); border-bottom: 1px solid var(--gray-100); }
.thumbnail-strip {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem 0;
}
.thumbnail-strip img {
    /* Cálculo para que siempre quepan 8 en desktop */
    width: calc(12.5% - 0.875rem); 
    height: auto;
    aspect-ratio: 1/1;
    border-radius: var(--radius-md); 
    object-fit: cover;
    transition: var(--transition);
    border: 2px solid transparent;
}
.thumbnail-strip img:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* Responsividad para la tira de fotos */
@media (max-width: 992px) {
    .thumbnail-strip img { width: calc(25% - 0.75rem); } /* 4 por fila */
}
@media (max-width: 480px) {
    .thumbnail-strip img { width: calc(50% - 0.5rem); } /* 2 por fila */
}

/* ======================================
   BENEFIT CARDS (3 Cards)
   ====================================== */
.benefits-section { background: var(--white); }

.benefits-grid { display: flex; flex-direction: column; gap: 1.5rem; }

.benefit-card {
    display: grid; grid-template-columns: 1fr 1fr; align-items: center;
    border-radius: var(--radius-xl); overflow: hidden; min-height: 280px;
}

.benefit-card--blue { background: linear-gradient(135deg, #EBF3FC 0%, #D2E5F7 100%); }
.benefit-card--purple { background: linear-gradient(135deg, #F5E8F7 0%, #D39CD8 100%); }
.benefit-card--orange { background: linear-gradient(135deg, #FFF1E1 0%, #FED5AC 100%); }

.benefit-card-content { padding: 2.5rem; }
.benefit-card-content--right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}
.benefit-title {
    font-size: 1.8rem; font-weight: 800; line-height: 1.3;
    margin-bottom: 0.75rem; color: #2D2D5E;
}
.benefit-title em { color: var(--primary); font-style: italic; }
.highlight-amber { color: #E5A800; font-weight: 800; }
.highlight-purple-dark { color: #5D539B; font-weight: 800; }
.highlight-white { color: var(--white); font-weight: 800; }
.benefit-card p { font-size: 0.9375rem; color: var(--gray-600); margin-bottom: 1.25rem; line-height: 1.7; }

.benefit-card-image { position: relative; height: 100%; width: 100%; overflow: hidden; }
.benefit-card-image img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 96%;
    object-fit: contain;
    object-position: bottom center;
}

/* ======================================
   ABOUT / NOSOTROS
   ====================================== */
.about-section { background: linear-gradient(185deg, var(--purple-lighter) 0%, var(--white) 100%); }

.about-grid { display: flow-root; }

.about-image-wrapper {
    position: relative;
    width: 594px;
    height: 594px;
    float: left;
    shape-outside: circle(50%);
    shape-margin: 0.8rem;
    margin-right: 0.8rem;
    margin-bottom: 0.5rem;
    max-width: 100%;
}
.about-content {
    padding-top: 5.5rem;
}
.about-svg-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}
.about-curved-text {
    font-size: 1.85rem;
    font-weight: 700;
    fill: #5D539B;
    letter-spacing: 0.08em;
}
.about-circle-img-container {
    position: absolute;
    top: 9.25%;
    left: 9.25%;
    width: 81.5%;
    height: 81.5%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    box-shadow: var(--shadow-md);
}
.about-circle-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-heading {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.45;
    color: #5D539B;
}
.about-desc-para {
    font-size: 0.9375rem;
    color: var(--gray-700);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}
.about-desc-para strong {
    color: var(--gray-900);
    font-weight: 700;
}

/* ======================================
   VIDEO SECTIONS
   ====================================== */
.video-section, .video-animation-section { padding: 2.5rem 0; }

.video-intro-content {
    margin-bottom: 2.5rem;
}

.video-features-list {
    margin: 1.5rem 0 2.5rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.video-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--gray-50);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.video-features-list li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    background: var(--white);
}

.video-features-list .feature-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.video-features-list p {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin: 0;
    line-height: 1.6;
}

.video-wrapper { 
    position: relative; 
    max-width: 100%; 
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    box-shadow: var(--shadow-lg);
}
.video-placeholder { position: relative; aspect-ratio: 16/9; cursor: pointer; }
.video-placeholder img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.video-placeholder:hover img { transform: scale(1.02); }
.video-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}
.hidden-video {
    display: none !important;
}

@media (max-width: 768px) {
    .video-features-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
.video-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 70px; height: 70px; border-radius: 50%; background: var(--primary);
    color: var(--white); border: none; cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); box-shadow: 0 0 0 0 rgba(108,99,255,0.4);
    animation: pulse-play 2s infinite;
}
.video-play-btn:hover { transform: translate(-50%,-50%) scale(1.1); }

@keyframes pulse-play {
    0% { box-shadow: 0 0 0 0 rgba(108,99,255,0.5); }
    70% { box-shadow: 0 0 0 16px rgba(108,99,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(108,99,255,0); }
}

/* ======================================
   WHY US
   ====================================== */
.why-section { background: var(--white); }
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.why-intro-col {
    display: flex;
    flex-direction: column;
}
.why-lead-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy-light);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.why-intro-col p {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--gray-600);
}
.why-highlight-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    position: relative;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.why-highlight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}
.why-highlight-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.why-highlight-card p {
    color: var(--white);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
    font-style: italic;
}

.why-cards-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.why-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition);
}
.why-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}
.why-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.why-card-icon-wrapper {
    width: 48px;
    height: 48px;
    background: var(--purple-lighter);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.why-card:hover .why-card-icon-wrapper {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}
.why-card-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}
.why-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin: 0;
}

@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ======================================
   CAPACIDADES CX
   ====================================== */
.cx-capabilities-section {
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.cx-capabilities-container {
    position: relative;
    z-index: 2;
}
.cx-capabilities-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--white);
}
.cx-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.cx-capability-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: var(--transition);
}
.cx-capability-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.cx-capability-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(108, 99, 255, 0.3);
}
.cx-capability-card:hover .cx-capability-icon {
    background: var(--amber);
    color: var(--navy);
    transform: rotate(360deg);
    transition: all 0.6s ease;
}
.cx-capability-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

@media (max-width: 768px) {
    .cx-capabilities-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .cx-capability-card {
        padding: 1.5rem;
    }
}

/* ======================================
   VISION
   ====================================== */
.vision-section { background: var(--gray-50); padding: var(--section-padding) 0; }

.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 3rem; }
.vision-title { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 1.25rem; line-height: 1.3; }
.vision-content p { color: var(--gray-600); line-height: 1.8; font-size: 1rem; }

.vision-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition); }
.vision-image:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.vision-image img { width: 100%; object-fit: cover; }

.vision-cta-link {
    display: block;
    text-decoration: none;
    transition: var(--transition);
}
.vision-cta {
    background: var(--purple-lighter);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    transition: var(--transition);
    border: 1px solid rgba(108, 99, 255, 0.1);
}
.vision-cta-link:hover .vision-cta {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    transform: translateY(-3px);
}
.vision-cta-icon {
    font-size: 2.5rem;
    transition: var(--transition);
    display: inline-block;
}
.vision-cta-link:hover .vision-cta-icon {
    animation: wave-emoji 1s infinite alternate;
}
.vision-cta h3 {
    font-size: 1.25rem;
    color: var(--navy);
    font-weight: 700;
    margin: 0;
    flex: 1;
    text-align: left;
}
.vision-cta-btn {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}
.vision-cta-link:hover .vision-cta-btn {
    background: var(--primary-dark);
}

@keyframes wave-emoji {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(15deg); }
}

@media (max-width: 768px) {
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .vision-cta {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    .vision-cta h3 {
        text-align: center;
    }
}

/* ======================================
   SERVICES
   ====================================== */
.services-section { background: var(--white); }
.services-intro {
    max-width: 800px;
    margin-bottom: 3.5rem;
}
.services-lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-600);
    line-height: 1.7;
    margin-top: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}
.service-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2.25rem 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-8px);
    background: var(--white);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}
.service-card-icon-container {
    width: 54px;
    height: 54px;
    background: var(--purple-lighter);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.service-card:hover .service-card-icon-container {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}
.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}
.service-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin: 0;
}

.services-callout-banner {
    background: linear-gradient(135deg, var(--white) 0%, var(--purple-lighter) 100%);
    border: 1px solid var(--purple-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.services-callout-banner:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.services-callout-content {
    flex: 1;
}
.services-callout-badge {
    display: inline-block;
    background: var(--amber-light);
    color: #b37400;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.services-callout-content h4 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.services-callout-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}
.services-callout-action {
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .services-callout-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }
    .services-callout-action {
        width: 100%;
    }
    .services-callout-action .btn {
        width: 100%;
    }
}

/* ======================================
   CEO SECTION
   ====================================== */
.ceo-section { position: relative; }
.ceo-bg {
    position: relative; min-height: 350px; display: flex; align-items: flex-end;
    background: var(--navy); overflow: hidden;
}
.ceo-bg img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ceo-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%); }
.ceo-content { position: relative; z-index: 2; padding: 3rem 0; }
.ceo-content h2 {
    color: var(--white); font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.02em;
}

/* ======================================
   BLOG
   ====================================== */
.blog-section { 
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%); 
}

/* Blog Header */
.blog-header-wrapper {
    margin-bottom: 3rem;
    text-align: left;
    max-width: 800px;
}
.blog-section-badge {
    display: inline-block;
    background: var(--purple-lighter);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(108, 99, 255, 0.15);
}
.blog-section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

/* Blog Hero Banner */
.blog-hero {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden; 
    margin-bottom: 3.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--navy);
    min-height: 240px;
    display: flex;
    align-items: center;
}
.blog-hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}
.blog-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(8px) brightness(0.35);
    transform: scale(1.05);
    transition: transform 6s ease;
}
.blog-hero:hover .blog-hero-bg-img {
    transform: scale(1.1);
}
.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 64, 0.75) 0%, rgba(108, 99, 255, 0.35) 100%);
    z-index: 2;
}
.blog-hero-content {
    position: relative;
    z-index: 3;
    padding: 3rem 4rem;
    color: var(--white);
    max-width: 800px;
    display: flex;
    flex-direction: column;
}
.blog-hero-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--amber);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.blog-hero-content h2 {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.blog-hero-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-200);
    margin-bottom: 1.5rem;
}
.blog-hero-content p strong {
    color: var(--primary-light);
}
.btn-hero-blog {
    align-self: flex-start;
    padding: 0.75rem 1.75rem;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

/* Tira de Miniaturas - Colaboradores */
.blog-contributors-wrapper {
    margin-bottom: 3.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}
.blog-contributors-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.blog-thumbnails {
    display: flex; 
    gap: 1.5rem; 
    justify-content: space-between;
    overflow-x: auto; 
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--gray-100);
}
.blog-thumb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition);
}
.blog-thumb-item img {
    width: 75px; 
    height: 75px; 
    border-radius: 50%; 
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}
.blog-thumb-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: var(--transition);
}
.blog-thumb-item:hover {
    transform: translateY(-5px);
}
.blog-thumb-item:hover img {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.25);
}
.blog-thumb-item:hover span {
    color: var(--primary);
}

/* Grid de Articulos */
.blog-posts { 
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem; 
    margin-bottom: 4rem;
}

.blog-post-card {
    display: grid; 
    grid-template-columns: 320px 1fr; 
    gap: 2rem; 
    align-items: stretch;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}
.blog-post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.blog-post-image { 
    overflow: hidden; 
    position: relative;
    min-height: 220px;
    background: var(--gray-50);
}
.blog-post-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-post-card:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-content {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Post Meta info */
.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.blog-post-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--purple-lighter);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.blog-post-card:nth-child(3n+2) .blog-post-tag {
    color: var(--navy-light);
    background: var(--blue-soft);
}
.blog-post-card:nth-child(3n+3) .blog-post-tag {
    color: #b37400;
    background: var(--amber-light);
}
.blog-post-date, .blog-post-readtime {
    font-size: 0.8rem;
    color: var(--gray-500);
    display: inline-flex;
    align-items: center;
}
.blog-post-date::after {
    content: '•';
    margin-left: 1rem;
}

/* Title & Excerpt */
.blog-post-title {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}
.blog-post-title a {
    color: var(--navy);
}
.blog-post-title a:hover {
    color: var(--primary);
}
.blog-post-excerpt { 
    font-size: 0.95rem; 
    line-height: 1.7; 
    color: var(--gray-600);
    margin-bottom: 1.75rem;
}

/* Footer / Link */
.blog-post-footer {
    margin-top: auto;
}
.blog-read-more-btn { 
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary); 
    font-weight: 700; 
    font-size: 0.9rem;
    transition: var(--transition);
}
.blog-read-more-btn svg {
    transition: transform 0.3s ease;
}
.blog-read-more-btn:hover { 
    color: var(--primary-dark);
}
.blog-read-more-btn:hover svg {
    transform: translateX(4px);
}

/* ======================================
   CONTACT
   ====================================== */
.contact-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--purple-lighter) 100%);
}

.contact-lead-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 3rem;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }

.contact-agent-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.contact-agent-image:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-lg);
}
.contact-agent-image img { width: 100%; height: 320px; object-fit: cover; }

.contact-info h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; color: var(--navy); }
.contact-info p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.8; }

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(108,99,255,0.1);
    transition: var(--transition);
}
.contact-form-wrapper:hover {
    border-color: rgba(108,99,255,0.25);
}
.contact-form-intro { font-size: 0.95rem; color: var(--gray-600); margin-bottom: 1.75rem; line-height: 1.7; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.35rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.85rem 1.15rem; border: 1px solid var(--gray-200);
    border-radius: var(--radius-md); font-size: 0.9375rem; font-family: var(--font-family);
    background: var(--gray-50); transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 4px rgba(108,99,255,0.15);
    background: var(--white);
    transform: translateY(-1px);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ======================================
   FOOTER
   ====================================== */
.site-footer { background: var(--purple-lighter); }

.footer-main { padding: 3rem 1.5rem 2rem; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }

.footer-logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 800; margin-bottom: 0.75rem; }
.footer-logo .logo-text { color: var(--navy); }

.footer-copy { font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 1rem; }

.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    background: var(--gray-700); color: var(--white); transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); }

.footer-links h4 { font-size: 0.9375rem; font-weight: 700; color: var(--gray-800); margin-bottom: 1rem; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links ul li a { font-size: 0.8125rem; color: var(--gray-500); }
.footer-links ul li a:hover { color: var(--primary); }

/* ======================================
   ANIMATIONS
   ====================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 1024px) {
    .services-split { grid-template-columns: 1fr; }
    .blog-post-card { grid-template-columns: 200px 1fr; }
}

@media (max-width: 768px) {
    :root { --section-padding: 3.5rem; }

    .menu-toggle { display: flex; }
    .btn-cta-header { display: none; }

    .main-navigation {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--white); box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        padding: 5rem 2rem 2rem; transition: var(--transition); z-index: 999;
    }
    .main-navigation.is-active { right: 0; }
    .main-navigation ul { flex-direction: column; }
    .main-navigation li a { padding: 0.75rem 0; border-bottom: 1px solid var(--gray-100); font-size: 1rem; }

    .hero-slider { height: 75vh; min-height: 460px; }
    .hero-slide-content { padding: 1.5rem; }

    .benefit-card { grid-template-columns: 1fr; }
    .benefit-card-image { height: 200px; }

    .about-grid { display: block; text-align: center; }
    .about-image-wrapper { float: none; shape-outside: none; margin: 0 auto 2rem; width: 300px; height: 300px; }
    .about-content { padding-top: 0; }

    .vision-grid { grid-template-columns: 1fr; }
    .services-split { grid-template-columns: 1fr; }

    .blog-hero { grid-template-columns: 1fr; }
    .blog-post-card { grid-template-columns: 1fr; }

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

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
    .thumbnail-strip img, .blog-thumbnails img { width: 60px; height: 60px; }
    .benefit-title { font-size: 1.25rem; }
}

/* ======================================
   SINGLE POST — HERO BANNER
   ====================================== */
.single-article {
    background: var(--white);
}

.post-hero {
    position: relative;
    width: 100%;
    height: 320px; /* fallback – overridden by height variants */
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--navy);
}
.post-hero--no-image {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #3D3580 100%);
}

/* ── Hero: Width Variants ── */
.post-hero--full {
    width: 100%;
    max-width: none;
    border-radius: 0;
}
.post-hero--boxed {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-xl);
}

/* ── Hero: Height Variants ── */
.post-hero--small  { height: 220px; }
.post-hero--medium { height: 320px; }
.post-hero--large  { height: 480px; }

.post-hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}
.post-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}
.single-article:hover .post-hero-bg-img {
    transform: scale(1.12);
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(10, 10, 40, 0.92) 0%,
        rgba(26, 26, 64, 0.75) 40%,
        rgba(26, 26, 64, 0.35) 100%
    );
}
.post-hero-overlay--gradient {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.25) 0%, rgba(26, 26, 64, 0.15) 100%);
}

.post-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-top: 5rem;
    padding-bottom: 3.5rem;
    color: var(--white);
}

.post-hero-badge {
    display: inline-block;
    background: var(--amber);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}
.post-hero-badge:hover {
    background: var(--white);
    color: var(--navy);
    transform: translateY(-2px);
}

.post-hero-title {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 1.5rem;
    max-width: 800px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}
.post-meta-author,
.post-meta-date,
.post-meta-readtime {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.post-meta-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.2em;
}

/* ======================================
   SINGLE POST — LAYOUT (2 Cols)
   ====================================== */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3.5rem;
    padding-top: 3rem;
    padding-bottom: 5rem;
    align-items: start;
}
.post-layout--no-sidebar {
    grid-template-columns: 1fr;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

/* ======================================
   SINGLE POST — TOOLBAR
   ====================================== */
.post-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
}
.post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: var(--transition);
}
.post-back-link:hover {
    color: var(--primary);
    transform: translateX(-3px);
}
.post-share-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.post-share-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.post-share-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    flex-shrink: 0;
}
.post-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.post-share-btn--fb { background: #1877F2; }
.post-share-btn--fb:hover { background: #0b5fcc; }
.post-share-btn--tw { background: #1DA1F2; }
.post-share-btn--tw:hover { background: #0c85d0; }
.post-share-btn--li { background: #0A66C2; }
.post-share-btn--li:hover { background: #08508a; }
.post-share-btn--wa { background: #25D366; }
.post-share-btn--wa:hover { background: #1aab53; }

/* ======================================
   SINGLE POST — RICH CONTENT TYPOGRAPHY
   ====================================== */
.post-body {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem 3rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    margin-bottom: 2.5rem;
}

.post-rich-content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--gray-700);
}
.post-rich-content h1,
.post-rich-content h2,
.post-rich-content h3,
.post-rich-content h4,
.post-rich-content h5,
.post-rich-content h6 {
    color: var(--navy);
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.post-rich-content h2 {
    font-size: 1.6rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--purple-lighter);
    position: relative;
}
.post-rich-content h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary);
}
.post-rich-content h3 { font-size: 1.3rem; color: var(--primary-dark); }
.post-rich-content h4 { font-size: 1.1rem; }
.post-rich-content p { margin-bottom: 1.5rem; }
.post-rich-content p:last-child { margin-bottom: 0; }
.post-rich-content a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}
.post-rich-content a:hover { color: var(--primary-dark); }
.post-rich-content strong { color: var(--gray-900); font-weight: 700; }
.post-rich-content em { color: var(--primary-dark); font-style: italic; }

.post-rich-content ul,
.post-rich-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}
.post-rich-content ul { list-style: none; padding-left: 0; }
.post-rich-content ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.65rem;
    color: var(--gray-700);
}
.post-rich-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}
.post-rich-content ol { list-style: decimal; }
.post-rich-content ol li { margin-bottom: 0.65rem; color: var(--gray-700); }

.post-rich-content blockquote {
    margin: 2.5rem 0;
    padding: 1.75rem 2rem 1.75rem 2.5rem;
    background: var(--purple-lighter);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    position: relative;
}
.post-rich-content blockquote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
    font-family: Georgia, serif;
}
.post-rich-content blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--navy);
    font-weight: 500;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.post-rich-content code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.875rem;
    background: var(--purple-lighter);
    color: var(--primary-dark);
    padding: 0.15em 0.45em;
    border-radius: 4px;
}
.post-rich-content pre {
    background: var(--navy);
    color: #a5f3fc;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.875rem;
    line-height: 1.7;
}
.post-rich-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.post-rich-content img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 1.5rem 0;
}

.post-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
}
.post-rich-content th {
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: left;
}
.post-rich-content td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}
.post-rich-content tr:last-child td { border-bottom: none; }
.post-rich-content tr:nth-child(even) td { background: var(--gray-50); }

.post-rich-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
    margin: 3rem 0;
    border-radius: 2px;
}

/* Post Tags */
.post-tags-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}
.post-tags-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-500);
    white-space: nowrap;
}
.post-tags-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.post-tag-pill {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--purple-lighter);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    transition: var(--transition);
}
.post-tag-pill:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ======================================
   SINGLE POST — AUTHOR CARD
   ====================================== */
.post-author-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--purple-lighter) 0%, var(--white) 100%);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 2rem 2.5rem;
    margin-bottom: 2.5rem;
    transition: var(--transition);
}
.post-author-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--primary-light);
}
.post-author-avatar {
    position: relative;
    flex-shrink: 0;
}
.author-avatar-img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid var(--white) !important;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.25) !important;
    display: block !important;
}
.post-author-badge-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2px solid var(--white);
    border-radius: 50%;
}
.post-author-info {
    flex: 1;
}
.post-author-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.3rem;
}
.post-author-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.75rem;
}
.post-author-bio {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.post-author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}
.post-author-link:hover {
    color: var(--primary-dark);
    gap: 0.6rem;
}

/* ======================================
   SINGLE POST — POST NAVIGATION
   ====================================== */
.post-nav-section {
    margin-bottom: 3rem;
}
.post-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.post-nav-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    text-decoration: none;
}
.post-nav-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.post-nav-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}
.post-nav-card:hover::before { opacity: 0.03; }
.post-nav-card--empty {
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
}
.post-nav-card--empty:hover { transform: none; }
.post-nav-direction {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.post-nav-direction--right {
    justify-content: flex-end;
}
.post-nav-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-nav-title--right { text-align: right; }
.post-nav-thumb {
    margin-top: 0.25rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 80px;
}
.post-nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.post-nav-card:hover .post-nav-thumb img { transform: scale(1.08); }
.post-nav-thumb--right { text-align: right; }

/* ======================================
   SINGLE POST — SIDEBAR
   ====================================== */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 90px;
}
.post-sidebar-widget {
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.sidebar-widget-inner {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    transition: var(--transition);
}
.sidebar-widget-inner:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}
.sidebar-widget-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--purple-lighter);
    position: relative;
}
.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--primary);
}

/* Sidebar: Search */
.sidebar-widget-inner .search-form {
    display: flex;
    gap: 0.5rem;
}
.sidebar-widget-inner .search-field {
    flex: 1;
    padding: 0.65rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-family: var(--font-family);
    background: var(--gray-50);
    outline: none;
    transition: var(--transition);
}
.sidebar-widget-inner .search-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.12);
    background: var(--white);
}
.sidebar-widget-inner .search-submit {
    padding: 0.65rem 1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}
.sidebar-widget-inner .search-submit:hover {
    background: var(--primary-dark);
    transform: scale(1.03);
}

/* Sidebar: Related Posts */
.sidebar-related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.sidebar-related-item { list-style: none; }
.sidebar-related-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.sidebar-related-link:hover {
    background: var(--purple-lighter);
    transform: translateX(4px);
}
.sidebar-related-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}
.sidebar-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.sidebar-related-link:hover .sidebar-related-thumb img {
    transform: scale(1.1);
}
.sidebar-related-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.sidebar-related-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.sidebar-related-link:hover .sidebar-related-title { color: var(--primary); }
.sidebar-related-date {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Sidebar: Categories */
.sidebar-cat-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.sidebar-cat-item { list-style: none; }
.sidebar-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
}
.sidebar-cat-link:hover {
    background: var(--purple-lighter);
    color: var(--primary);
    padding-left: 1rem;
}
.sidebar-cat-count {
    background: var(--gray-200);
    color: var(--gray-600);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    transition: var(--transition);
}
.sidebar-cat-link:hover .sidebar-cat-count {
    background: var(--primary);
    color: var(--white);
}

/* Sidebar: CTA Widget */
.post-sidebar-cta .sidebar-cta-inner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #3D3580 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    padding: 2rem 1.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.post-sidebar-cta .sidebar-cta-inner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(108, 99, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
}
.post-sidebar-cta .sidebar-cta-inner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 150px;
    height: 150px;
    background: rgba(229, 168, 0, 0.08);
    border-radius: 50%;
    pointer-events: none;
}
.sidebar-cta-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    animation: float-icon 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.sidebar-cta-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}
.sidebar-cta-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.sidebar-cta-btn {
    width: 100%;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}
.sidebar-cta-btn:hover {
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.5);
}

/* ======================================
   SINGLE POST — COMMENTS
   ====================================== */
.comments-area {
    margin-top: 2.5rem;
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
}
.comments-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--purple-lighter);
    position: relative;
}
.comments-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-body {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.comment-body:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}
.comment-author b.fn { font-weight: 700; color: var(--navy); }
.comment-meta { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 0.75rem; }
.comment-content p { font-size: 0.9375rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 0; }
.reply a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.5rem;
    display: inline-block;
    transition: var(--transition);
}
.reply a:hover { color: var(--primary-dark); }

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.4rem;
}
.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input {
    width: 100%;
    padding: 0.85rem 1.15rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: var(--font-family);
    background: var(--gray-50);
    transition: var(--transition);
    outline: none;
    margin-bottom: 1.25rem;
}
.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108,99,255,0.12);
    background: var(--white);
}
.form-submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}
.form-submit input[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ======================================
   SINGLE POST — RESPONSIVE
   ====================================== */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr 300px;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .post-hero,
    .post-hero--medium { height: 240px; }
    .post-hero--small  { height: 160px; }
    .post-hero--large  { height: 320px; }
    .post-hero-title { font-size: clamp(1.5rem, 5vw, 2rem); }

    .post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2rem;
        padding-bottom: 3rem;
    }
    .post-sidebar {
        position: static;
    }
    .post-body { padding: 1.5rem; }
    .post-author-card { flex-direction: column; text-align: center; }
    .post-author-avatar { margin: 0 auto; }
    .post-nav-grid { grid-template-columns: 1fr; }
    .post-toolbar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .post-body { padding: 1.25rem; }
    .post-hero-content { padding-bottom: 2rem; }
    .post-hero-meta { font-size: 0.8rem; gap: 0.5rem; }
    .post-meta-sep { display: none; }
    .post-hero-meta .post-meta-readtime { display: none; }
    .comments-area { padding: 1.25rem; }
    .post-author-card { padding: 1.25rem; }
}

/* ======================================
   CUSTOM GUTENBERG BLOCKS
   ====================================== */
/* Estilo del bloque de fondo para Caso Práctico */
.wp-block-cover.caja-caso-practico {
    background-color: #2c54a3 !important;
    border-radius: 12px;
    padding: 30px 40px;
    min-height: auto !important;
}

/* Títulos dentro de caja-caso-practico */
.caja-caso-practico h1,
.caja-caso-practico h2,
.caja-caso-practico h3,
.caja-caso-practico h4,
.caja-caso-practico h5,
.caja-caso-practico h6 {
    color: #ffffff !important;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px !important;
}

/* Párrafos dentro de caja-caso-practico */
.caja-caso-practico p {
    color: #ffffff !important;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Compactación del listado de posts (Home) cuando no hay cabecera ni hero banner */
.blog-section--compact {
    padding-top: 1.5rem !important;
}
.blog-section--compact .blog-posts {
    margin-top: 0.5rem;
}

/* Cabecera del Blog en Ancho Completo (Full-Width) */
.blog-header-fullwidth {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 3.5rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.blog-header-fullwidth .blog-header-wrapper {
    margin-bottom: 0;
}
.blog-header-fullwidth .blog-section-subtitle {
    color: var(--purple-light);
}
.blog-fullwidth-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--white);
    margin-top: 0.5rem;
}
.blog-header-fullwidth .blog-section-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.15);
}



