/* ==============================================================================
   CAPACITACION ENFOCADA - HOJA DE ESTILOS MODERNA Y NATIVA
   Version: 3.1 (Zero Elementor - Tipografía Ampliada y Acorde, 100% Legible)
   ============================================================================== */

:root {
    --ce-primary: #DE0F15;
    --ce-primary-dark: #B20D12;
    --ce-primary-hover: #FE1219;
    --ce-primary-light: #fff5f5;
    --ce-accent: #9b0b10;
    --ce-text: #1f2937;
    --ce-text-dark: #111827;
    --ce-text-muted: #4b5563;
    --ce-bg: #ffffff;
    --ce-bg-alt: #f8fafc;
    --ce-bg-subtle: #f1f5f9;
    --ce-border: #e2e8f0;
    --ce-border-dark: #cbd5e1;
    --ce-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    --ce-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
    --ce-radius: 0px !important;
    --ce-font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --ce-max-width: 1380px;
}

/* ==============================================================================
   1. RESET Y REGLA ESTRICTA DE BORDES RECTOS (CERO BORDES REDONDEADOS)
   ============================================================================== */
*, *::before, *::after {
    box-sizing: border-box !important;
    border-radius: 0 !important;
}

html {
    font-size: 18px; /* Base tipográfica generosa y cómoda */
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--ce-font);
    font-size: 1.05rem; /* ~19px */
    line-height: 1.65;
    color: var(--ce-text);
    background-color: var(--ce-bg);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==============================================================================
   2. TIPOGRAFIA UNIFICADA Y LEGIBLE
   ============================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--ce-text-dark);
    font-family: var(--ce-font);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.9rem;
    letter-spacing: -0.015em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1.05rem; }

p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: 0;
    margin-bottom: 1.1rem;
    color: var(--ce-text);
}

a {
    color: var(--ce-primary);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
    color: var(--ce-primary-dark);
}

ul, ol {
    margin-top: 0;
    margin-bottom: 1.1rem;
    padding-left: 1.6rem;
}

li {
    margin-bottom: 0.45rem;
    line-height: 1.65;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe {
    border: 0;
}

.ce-container {
    width: 100%;
    max-width: var(--ce-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 3.5vw, 36px);
    padding-right: clamp(16px, 3.5vw, 36px);
}

/* ==============================================================================
   3. CABECERA OCEANWP NATIVA Y NAVEGACION
   ============================================================================== */
#outer-wrap, #wrap, .site-main {
    width: 100%;
    overflow-x: hidden;
}

/* ==============================================================================
   3. CABECERA CORPORATIVA CAPACITACIONENFOCADA (LOGO SUPERIOR & BARRA ROJA)
   ============================================================================== */
.ce-main-header {
    background-color: #ffffff;
    width: 100%;
    position: relative;
    z-index: 9999;
}

/* 3.1 Barra Superior (Top Bar) */
.ce-topbar {
    background-color: #0f172a; /* Slate oscuro corporativo */
    color: #e2e8f0;
    font-size: 0.88rem; /* ~16px */
    line-height: 1.4;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ce-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ce-topbar-left,
.ce-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ce-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-weight: 500;
}

.ce-topbar-item i {
    color: #f59e0b;
}

.ce-topbar-sep {
    color: #475569;
    font-size: 0.75rem;
}

.ce-topbar-link {
    color: #e2e8f0 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.ce-topbar-link:hover {
    color: #ffffff !important;
}

.ce-topbar-wa i {
    color: #25d366;
}

.ce-topbar-accent:hover {
    color: #93c5fd !important;
}

/* Selector de Idioma (i18n Switcher) */
.ce-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ce-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 4px;
    transition: all 0.15s ease;
}

.ce-lang-btn:hover {
    color: #ffffff !important;
}

.ce-lang-btn.is-active {
    color: #ffffff !important;
    background: var(--ce-primary);
}

.ce-lang-sep {
    color: #64748b;
    font-size: 0.75rem;
}

.ce-mobile-lang-pills {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.ce-lang-pill {
    flex: 1;
    text-align: center;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1 !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none !important;
}

.ce-lang-pill.is-active {
    background: var(--ce-primary);
    color: #ffffff !important;
}

/* 3.2 Fila Central de Logotipo Prominente y Accesos de Contacto */
.ce-branding-row {
    background-color: #ffffff;
    padding: 22px 0;
    border-bottom: 1px solid var(--ce-border);
}

.ce-branding-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ce-branding-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.ce-support-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ce-support-icon {
    font-size: 1.9rem;
    color: var(--ce-primary);
}

.ce-support-icon.ce-icon-wa {
    color: #25d366;
}

.ce-support-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ce-text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.ce-support-val {
    display: block;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ce-text-dark) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.ce-support-val:hover {
    color: var(--ce-primary) !important;
}

.ce-brand-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ce-primary);
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 22px;
    text-decoration: none !important;
    border: 2px solid var(--ce-primary);
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.ce-brand-cta-btn:hover {
    background: var(--ce-primary-dark);
    border-color: var(--ce-primary-dark);
    transform: translateY(-2px);
}

/* Logotipo Prominente Superior */
.ce-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.ce-logo-link {
    display: block;
    text-align: center;
}

.ce-logo-link img {
    height: 78px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.ce-logo-link:hover img {
    opacity: 0.92;
}

/* 3.3 Barra Roja Horizontal de Navegación */
.ce-nav-wrap {
    background-color: var(--ce-primary);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.ce-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ce-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.ce-main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ce-main-menu > li {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ce-main-menu > li > a {
    color: #ffffff !important;
    font-size: 1.08rem; /* ~19.5px */
    font-weight: 600;
    padding: 15px 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.ce-main-menu > li > a:hover,
.ce-main-menu > li.current-menu-item > a {
    background-color: var(--ce-accent);
    color: #ffffff !important;
}

.ce-main-menu .nav-arrow {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
    opacity: 0.9;
}

.ce-main-menu > li:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Submenús */
.ce-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    background-color: #ffffff;
    border: 1px solid var(--ce-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 10000;
    display: none;
}

.ce-menu-has-dropdown:hover > .ce-submenu {
    display: block;
}

.ce-submenu li {
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.ce-submenu li:last-child {
    border-bottom: none;
}

.ce-submenu li a {
    color: var(--ce-text) !important;
    font-size: 1rem; /* ~18px */
    font-weight: 500;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
    background-color: #ffffff;
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.ce-submenu li a:hover {
    background-color: var(--ce-primary-light);
    color: var(--ce-primary) !important;
    padding-left: 24px;
}

/* Submenú anidado (Deliverables & Forms) */
.ce-submenu-nested:hover > .ce-submenu-level2 {
    display: block;
}

.ce-submenu-level2 {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 310px;
    background-color: #ffffff;
    border: 1px solid var(--ce-border);
    border-top: 3px solid var(--ce-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 10001;
    display: none;
}

/* Botón Disparador Móvil */
.ce-mobile-btn {
    display: none;
    background: var(--ce-primary);
    color: #ffffff;
    border: none;
    padding: 12px 18px;
    font-size: 1.05rem;
    font-weight: 700;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Panel Desplegable Móvil */
.ce-mobile-dropdown {
    background: #ffffff;
    border-bottom: 3px solid var(--ce-primary);
    padding: 18px 22px;
}

.ce-mobile-top-contact {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ce-border);
}

.ce-mobile-contact-pill {
    flex: 1;
    min-width: 100px;
    background: #f1f5f9;
    color: var(--ce-text) !important;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    padding: 10px 12px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ce-mobile-contact-pill.ce-pill-wa {
    background: #e8f9ee;
    color: #128c7e !important;
}

.ce-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ce-mobile-menu li {
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 0;
}

.ce-mobile-menu li a {
    color: var(--ce-text-dark);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    display: block;
}

.ce-mobile-menu li.current-menu-item > a {
    color: var(--ce-primary);
    font-weight: 700;
}

.ce-mobile-sub {
    list-style: none;
    margin: 8px 0 0 0;
    padding-left: 14px;
    border-left: 2px solid var(--ce-primary-light);
}

.ce-mobile-sub li {
    padding: 6px 0;
    border-bottom: none;
}

.ce-mobile-sub li a {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--ce-text-muted);
}

.ce-mobile-cta {
    margin-top: 18px;
}

.ce-btn-mobile-inscribete {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ce-primary);
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 20px;
    text-decoration: none !important;
}

/* Responsividad de Cabecera */
@media (max-width: 1100px) {
    .ce-branding-actions {
        display: none;
    }
    .ce-main-menu > li > a {
        padding: 14px 14px;
        font-size: 1rem;
    }
}

@media (max-width: 991px) {
    .ce-topbar-left {
        display: none;
    }
    .ce-topbar-inner {
        justify-content: center;
    }
    .ce-nav-wrap {
        display: none;
    }
    .ce-mobile-btn {
        display: inline-flex;
    }
}

/* ==============================================================================
   4. SECCIONES DE LA PAGINA DE INICIO (HOME) - 100% NATIVAS
   ============================================================================== */

/* 4.1 Hero Principal Ejecutivo de Home */
.ce-home-hero {
    position: relative;
    background: 
        radial-gradient(ellipse at 80% 20%, rgba(222, 15, 21, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(0, 53, 150, 0.18) 0%, transparent 45%),
        linear-gradient(135deg, #0b1120 0%, #1e293b 50%, #0f172a 100%);
    color: #ffffff;
    padding: clamp(60px, 7vw, 96px) 0 clamp(48px, 6vw, 72px);
    border-bottom: 4px solid var(--ce-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.ce-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    opacity: 0.8;
}

.ce-home-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1120px;
    margin: 0 auto;
}

.ce-home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(222, 15, 21, 0.16);
    border: 1px solid rgba(222, 15, 21, 0.45);
    color: #fca5a5;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 8px 20px;
    margin-bottom: 24px;
    backdrop-filter: blur(6px);
}

.ce-home-hero-badge i {
    color: #ef4444;
}

.ce-home-hero-title {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 22px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

.ce-home-hero-sub {
    font-size: clamp(1.18rem, 2vw, 1.38rem);
    color: #cbd5e1;
    line-height: 1.75;
    max-width: 960px;
    margin: 0 auto 38px;
    font-weight: 400;
}

.ce-home-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.ce-home-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--ce-primary) 0%, var(--ce-primary-dark) 100%);
    color: #ffffff !important;
    font-size: 1.22rem;
    font-weight: 800;
    padding: 18px 40px;
    border: 2px solid var(--ce-primary);
    text-decoration: none !important;
    box-shadow: 0 8px 26px rgba(222, 15, 21, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.ce-home-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(222, 15, 21, 0.65);
    background: linear-gradient(135deg, #ef1f25 0%, #be0c12 100%);
    color: #ffffff !important;
}

.ce-home-hero-btn-primary .ce-btn-arrow {
    transition: transform 0.2s ease;
}

.ce-home-hero-btn-primary:hover .ce-btn-arrow {
    transform: translateX(6px);
}

.ce-home-hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 18px 34px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    text-decoration: none !important;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    cursor: pointer;
}

.ce-home-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Indicadores de Valor en Grid de 4 */
.ce-home-hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 36px;
    text-align: left;
}

.ce-hero-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--ce-primary);
    padding: 16px 18px;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ce-hero-feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #ff4d4f;
}

.ce-hero-feature-item i {
    font-size: 1.8rem;
    color: var(--ce-primary);
    flex-shrink: 0;
}

.ce-hero-feature-text strong {
    display: block;
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.3;
}

.ce-hero-feature-text span {
    display: block;
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.3;
    margin-top: 2px;
}

/* Retrocompatibilidad Botón ERP */
.ce-hero-cta-wrap {
    padding: 24px 0 16px 0;
    text-align: center;
    background-color: #ffffff;
}

.ce-hero-erp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--ce-primary) 0%, var(--ce-primary-dark) 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 18px 42px;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 20px rgba(222, 15, 21, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    line-height: 1.35;
}

.ce-hero-erp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(222, 15, 21, 0.5);
    color: #ffffff !important;
}

.ce-hero-erp-btn .ce-btn-arrow {
    transition: transform 0.2s ease;
}

.ce-hero-erp-btn:hover .ce-btn-arrow {
    transform: translateX(6px);
}

/* 4.2 Slider Nativo de Módulos & Calendario */
.ce-slider-section {
    padding: 16px 0 36px 0;
    background-color: #ffffff;
}

.ce-slider-container {
    width: 100%;
    max-width: var(--ce-max-width);
    margin: 0 auto;
    padding-left: clamp(16px, 3.5vw, 36px);
    padding-right: clamp(16px, 3.5vw, 36px);
}

.ce-slider {
    position: relative;
    overflow: hidden;
    background-color: #000000;
    border: 1px solid var(--ce-border);
    box-shadow: var(--ce-shadow);
}

.ce-slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.ce-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
}

.ce-slide img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.ce-slider-prev,
.ce-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.ce-slider-prev:hover,
.ce-slider-next:hover {
    background: var(--ce-primary);
}

.ce-slider-prev { left: 10px; }
.ce-slider-next { right: 10px; }

.ce-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
    background: #ffffff;
}

.ce-slider-dots .ce-dot {
    width: 26px;
    height: 6px;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, width 0.2s ease;
}

.ce-slider-dots .ce-dot.active {
    background: var(--ce-primary);
    width: 40px;
}

/* 4.3 Sección "IN FOCUSED TRAINING" (3 Tarjetas) */
.ce-section-features {
    padding: 48px 0;
    background-color: var(--ce-bg-alt);
    border-top: 1px solid var(--ce-border);
    border-bottom: 1px solid var(--ce-border);
}

.ce-section-title-wrap {
    text-align: center;
    margin-bottom: 36px;
}

.ce-section-title {
    font-size: 2.35rem; /* ~42px */
    color: var(--ce-text-dark);
    font-weight: 800;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.ce-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--ce-primary);
    margin: 12px auto 0;
}

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

.ce-feature-card {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    border-top: 4px solid var(--ce-primary);
    box-shadow: var(--ce-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ce-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ce-shadow-hover);
}

.ce-feature-heading {
    font-size: 1.55rem; /* ~28px */
    font-weight: 700;
    color: var(--ce-text-dark);
    text-align: center;
    padding: 22px 24px 16px;
    margin: 0;
}

.ce-feature-img-wrap img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.ce-feature-content {
    padding: 24px 26px;
    text-align: center;
    flex-grow: 1;
}

.ce-feature-content p {
    font-size: 1.15rem; /* ~20.7px */
    line-height: 1.7;
    margin: 0;
    color: var(--ce-text);
}

/* 4.4 Sección Servicios y Metodología (Filas Alternadas) */
.ce-section-services {
    padding: 64px 0;
    background-color: #ffffff;
}

.ce-service-row {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 52px;
    padding-bottom: 52px;
    border-bottom: 1px solid var(--ce-border);
}

.ce-service-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ce-row-reverse {
    grid-template-columns: 0.85fr 1.15fr;
}

.ce-row-reverse .ce-service-text {
    order: 2;
}

.ce-row-reverse .ce-service-img {
    order: 1;
}

.ce-service-title {
    font-size: 1.85rem; /* ~33px */
    color: var(--ce-primary);
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

.ce-service-text p {
    font-size: 1.18rem; /* ~21px */
    line-height: 1.8;
    color: var(--ce-text);
    margin: 0;
}

.ce-service-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 1px solid var(--ce-border);
    box-shadow: var(--ce-shadow);
}

/* 4.5 Sección Impacto Global (3 Bloques) */
.ce-section-impact {
    padding: 56px 0;
    background-color: var(--ce-bg-alt);
    border-top: 1px solid var(--ce-border);
    border-bottom: 1px solid var(--ce-border);
}

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

.ce-impact-card {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    border-top: 4px solid var(--ce-primary);
    padding: 38px 30px;
    text-align: center;
    box-shadow: var(--ce-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ce-impact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ce-shadow-hover);
}

.ce-impact-icon {
    font-size: 2.8rem;
    color: var(--ce-primary);
    margin-bottom: 22px;
}

.ce-impact-body p {
    font-size: 1.15rem; /* ~20.7px */
    line-height: 1.75;
    margin: 0;
    color: var(--ce-text);
}

/* 4.6 Llamado a la Acción (CTA) */
.ce-section-cta {
    padding: 64px 0;
    background-color: #ffffff;
    text-align: center;
}

.ce-cta-headline {
    font-size: 2.2rem; /* ~40px */
    color: var(--ce-text-dark);
    font-weight: 800;
    max-width: 920px;
    margin: 0 auto 36px;
    line-height: 1.35;
}

.ce-cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ce-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 38px;
    font-size: 1.2rem; /* ~21.6px */
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ce-cta-primary {
    background-color: var(--ce-primary);
    color: #ffffff !important;
    border: 2px solid var(--ce-primary);
}

.ce-cta-primary:hover {
    background-color: var(--ce-primary-dark);
    border-color: var(--ce-primary-dark);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.ce-cta-secondary {
    background-color: #ffffff;
    color: var(--ce-primary) !important;
    border: 2px solid var(--ce-primary);
}

.ce-cta-secondary:hover {
    background-color: var(--ce-primary-light);
    color: var(--ce-primary-dark) !important;
    transform: translateY(-2px);
}

/* 4.7 Banner Lema */
.ce-section-motto {
    position: relative;
    padding: clamp(48px, 6vw, 68px) 24px;
    background: 
        radial-gradient(ellipse at 85% 15%, rgba(255, 255, 255, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(0, 0, 0, 0.25) 0%, transparent 50%),
        linear-gradient(135deg, #a00a0e 0%, #de0f15 45%, #b70a0e 85%, #880508 100%);
    color: #ffffff;
    text-align: center;
    border-top: 4px solid #7d0508;
    border-bottom: 4px solid #7d0508;
    box-shadow: 0 10px 30px rgba(160, 10, 14, 0.25);
    overflow: hidden;
}

.ce-section-motto::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.7;
}

.ce-section-motto .ce-container {
    position: relative;
    z-index: 2;
}

.ce-motto-sub {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    color: #fecdd3;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ce-motto-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: #ffffff;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==============================================================================
   5. SECCIÓN COMUNIDAD Y REDES (TIKTOK, YOUTUBE, LINKEDIN, SOCIAL)
   ============================================================================== */
.ce-section-community {
    padding: 56px 0;
    background-color: var(--ce-bg-alt);
    border-top: 1px solid var(--ce-border);
    border-bottom: 1px solid var(--ce-border);
}

.ce-comm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 34px;
    border-bottom: 2px solid var(--ce-border);
    padding-bottom: 20px;
    gap: 22px;
    flex-wrap: wrap;
}

.ce-tag-badge {
    display: inline-block;
    background: var(--ce-primary);
    color: #ffffff;
    font-size: 0.9rem; /* ~16px */
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.ce-comm-title {
    font-size: 2rem; /* ~36px */
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--ce-text-dark);
}

.ce-comm-subtitle {
    font-size: 1.1rem; /* ~20px */
    color: var(--ce-text-muted);
    margin: 0;
    max-width: 720px;
    line-height: 1.6;
}

.ce-stats-badge {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    border-left: 4px solid var(--ce-primary);
    padding: 10px 18px;
    font-size: 1rem; /* ~18px */
    font-weight: 700;
    color: var(--ce-text);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

/* 5.1 Bloque de Videos de YouTube (Al Inicio) */
.ce-videos-block {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    border-top: 4px solid #cc0000;
    box-shadow: var(--ce-shadow);
    padding: 34px;
    margin-bottom: 42px;
}

.ce-videos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ce-border);
    gap: 20px;
    flex-wrap: wrap;
}

.ce-tag-badge-sub {
    font-size: 0.98rem; /* ~17.5px */
    font-weight: 700;
    color: #cc0000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.ce-videos-title {
    font-size: 1.75rem; /* ~31.5px */
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--ce-text-dark);
}

.ce-videos-desc {
    font-size: 1.15rem; /* ~20.7px */
    color: var(--ce-text-muted);
    margin: 0;
    line-height: 1.55;
}

.ce-btn-youtube {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #cc0000;
    color: #ffffff !important;
    font-size: 1.12rem; /* ~20px */
    font-weight: 700;
    padding: 14px 26px;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.ce-btn-youtube:hover {
    background: #990000;
    transform: translateY(-2px);
}

.ce-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.ce-video-card {
    border: 1px solid var(--ce-border);
    background: #ffffff;
    overflow: hidden;
}

.ce-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000000;
}

.ce-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Facade Optimization: Reemplaza carga pesada de iframes de YouTube */
.ce-video-facade {
    cursor: pointer;
    overflow: hidden;
}

.ce-video-facade img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.ce-video-facade:hover img {
    transform: scale(1.03);
    filter: brightness(0.92);
}

.ce-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.92;
}

.ce-video-play-btn svg {
    display: block;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.4));
}

.ce-video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.ce-video-play-btn:hover .ce-yt-bg {
    fill: #cc0000;
}

.ce-video-info {
    padding: 18px;
}

.ce-video-heading {
    font-size: 1.15rem; /* ~20.7px */
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--ce-text-dark);
}

.ce-video-subtext {
    font-size: 0.98rem; /* ~17.5px */
    color: var(--ce-text-muted);
    margin: 0;
    line-height: 1.55;
}

/* 5.2 Bloque de Redes Sociales Oficiales (Solo Logos y Enlaces Directos) */
.ce-social-invite-block {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    border-top: 4px solid var(--ce-primary);
    box-shadow: var(--ce-shadow);
    padding: 36px 30px;
    text-align: center;
}

.ce-invite-info-header {
    margin-bottom: 26px;
}

.ce-invite-pill {
    font-size: 0.98rem; /* ~17.5px */
    font-weight: 700;
    color: var(--ce-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 8px;
}

.ce-invite-title {
    font-size: 1.85rem; /* ~33px */
    font-weight: 800;
    margin: 0;
    color: var(--ce-text-dark);
}

.ce-social-logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 960px;
    margin: 0 auto;
}

.ce-social-logo-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 155px;
    padding: 20px 14px;
    background: #ffffff;
    border: 2px solid var(--ce-border);
    text-decoration: none !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ce-social-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.ce-card-tiktok:hover { border-color: #000000; }
.ce-card-youtube:hover { border-color: #FF0000; }
.ce-card-linkedin:hover { border-color: #0A66C2; }
.ce-card-facebook:hover { border-color: #1877F2; }
.ce-card-instagram:hover { border-color: #d6249f; }

.ce-social-svg {
    display: block;
    width: 50px;
    height: 50px;
    transition: transform 0.2s ease;
}

.ce-social-logo-card:hover .ce-social-svg {
    transform: scale(1.1);
}

.ce-social-card-name {
    font-size: 1.05rem; /* ~19px */
    font-weight: 700;
    color: var(--ce-text-dark);
}

/* ==============================================================================
   6. CANALES OFICIALES DE CONTACTO CON LOGOS Y ENLACES DIRECTOS
   ============================================================================== */
.ce-section-contact {
    padding: 64px 0;
    background: #ffffff;
    border-bottom: 1px solid var(--ce-border);
}

.ce-contact-header {
    text-align: center;
    margin-bottom: 44px;
}

.ce-contact-section-title {
    font-size: 2.2rem; /* ~40px */
    font-weight: 800;
    color: var(--ce-text-dark);
    margin: 8px 0;
}

.ce-contact-section-desc {
    font-size: 1.15rem; /* ~20.7px */
    color: var(--ce-text-muted);
    margin: 0 auto;
    max-width: 720px;
    line-height: 1.65;
}

.ce-contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 980px;
    margin: 0 auto;
}

.ce-contact-card {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    border-top: 4px solid var(--ce-primary);
    box-shadow: var(--ce-shadow);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.ce-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ce-shadow-hover);
}

.ce-card-mail { border-top-color: var(--ce-primary); }
.ce-card-whatsapp { border-top-color: #25D366; }

.ce-contact-card-icon {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.ce-contact-card-content {
    flex-grow: 1;
    margin-bottom: 22px;
}

.ce-contact-card-label {
    display: block;
    font-size: 0.95rem; /* ~17px */
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ce-text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ce-contact-card-val {
    font-size: 1.4rem; /* ~25px */
    font-weight: 700;
    color: var(--ce-text-dark);
    margin: 0 0 8px 0;
    word-break: break-all;
    line-height: 1.35;
}

.ce-contact-card-sub {
    display: block;
    font-size: 1.05rem; /* ~19px */
    color: var(--ce-text-muted);
    line-height: 1.5;
}

.ce-contact-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem; /* ~20px */
    font-weight: 700;
    color: var(--ce-primary);
    border-top: 1px solid var(--ce-border);
    padding-top: 18px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.ce-card-mail .ce-contact-card-btn { color: var(--ce-primary); }
.ce-card-whatsapp .ce-contact-card-btn { color: #1da851; }

.ce-contact-card:hover .ce-contact-card-btn {
    gap: 12px;
}

.ce-contact-card:hover .ce-contact-card-btn {
    gap: 12px;
}

/* ==============================================================================
   6. FOOTER NATIVO (CORPORATIVO, CLARO Y COMPACTO)
   ============================================================================== */
main,
#main,
.site-main {
    margin-bottom: clamp(64px, 8vw, 110px) !important;
}

.ce-footer {
    margin-top: auto !important;
    background-color: #ffffff;
    border-top: 3px solid var(--ce-primary);
    color: var(--ce-text);
    font-size: 1.12rem; /* ~20px */
    line-height: 1.65;
    padding-top: 48px;
    position: relative;
    z-index: 10;
}

.ce-footer-top {
    padding-bottom: 38px;
    border-bottom: 1px solid var(--ce-border);
}

/* 4 Columnas del Footer */
.ce-footer-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.ce-footer-col {
    display: flex;
    flex-direction: column;
}

.ce-footer-title {
    font-size: 1.38rem; /* ~25px */
    font-weight: 700;
    color: var(--ce-text-dark);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ce-primary);
    display: inline-block;
}

.ce-footer-col-desc {
    font-size: 1.05rem; /* ~19px */
    color: var(--ce-text-muted);
    line-height: 1.5;
    margin: 0 0 18px 0;
}

/* Columna 1: Afiliados (2 Columnas con logos destacados) */
.ce-affiliates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ce-partner-badge {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ce-partner-badge:hover {
    border-color: var(--ce-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ce-partner-badge:last-child,
.ce-partner-badge-span {
    grid-column: 1 / -1; /* Ocupa las dos columnas si queda solo al final */
}

.ce-partner-badge img {
    max-height: 38px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Columna 2: Presencia (Mapa) */
.ce-presence-map-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ce-map-graphic {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    box-shadow: var(--ce-shadow);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ce-map-img {
    width: 100%;
    max-height: 180px;
    height: auto;
    object-fit: contain;
    display: block;
}

.ce-presence-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ce-presence-tag {
    font-size: 1.05rem; /* ~19px */
    font-weight: 700;
    color: var(--ce-text-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ce-presence-tag i {
    font-size: 1rem;
    color: #16a34a;
}

/* Columna 3: Contacto (Estructura Original con Cuadrícula de 2 Columnas) */
.ce-contact-block {
    width: 100%;
}

.ce-contact-list {
    display: grid;
    grid-template-columns: auto 1fr;
    row-gap: 8px;
    column-gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.ce-contact-list li {
    display: contents; /* Proyecta labels y valores en las 2 columnas del grid */
}

.ce-c-label {
    white-space: nowrap;
    text-align: right;
    font-size: 1.05rem; /* ~19px */
    font-weight: 700;
    color: var(--ce-text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    line-height: 1.4;
}

.ce-flag-emoji {
    font-size: 1.25rem;
    line-height: 1;
    display: inline-block;
}

.ce-c-value {
    white-space: nowrap;
    text-align: left;
    font-size: 1.05rem; /* ~19px */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.ce-c-link,
.ce-footer .ce-c-link,
.ce-contact-list a {
    color: var(--ce-text-dark) !important;
    font-weight: 600;
    text-decoration: none !important;
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: inline !important;
    transition: color 0.15s ease;
}

.ce-c-link:hover,
.ce-footer .ce-c-link:hover,
.ce-contact-list a:hover {
    color: var(--ce-primary) !important;
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.ce-c-text {
    color: var(--ce-text);
    font-weight: 600;
}

/* Iconos de acción con sus colores distintivos */
.ce-c-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ce-c-wa {
    color: #25D366;
    font-size: 1.2rem;
}

.ce-c-phone {
    color: #e11d48;
}

.ce-c-fax {
    color: #64748b;
    font-size: 1rem;
}

.ce-c-email {
    color: var(--ce-primary);
}

.ce-c-email-link {
    font-size: 1rem;
    word-break: break-all;
}

.ce-c-email-row .ce-c-label,
.ce-c-email-row .ce-c-value {
    padding-top: 8px;
    border-top: 1px dashed var(--ce-border);
}

/* Columna 4: Redes Sociales */
.ce-footer-social-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ce-footer-social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    background: #f8fafc;
    border: 1px solid var(--ce-border);
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.05rem; /* ~19px */
    color: var(--ce-text-dark) !important;
    transition: all 0.2s ease;
}

.ce-footer-social-item:hover {
    background: #ffffff;
    border-color: var(--ce-primary);
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.ce-footer-social-item svg {
    flex-shrink: 0;
}

/* Responsive Footer 4 Columnas */
@media (max-width: 1024px) {
    .ce-footer-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .ce-footer-grid-4 {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* Barra Inferior Copyright */
.ce-footer-bottom {
    padding: 24px 0;
    background: var(--ce-bg-alt);
    border-top: 1px solid var(--ce-border);
}

.ce-footer-bottom-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ce-copy {
    font-size: 1.05rem; /* ~19px */
    color: var(--ce-text-muted);
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.2px;
}

.ce-footer-legal-links {
    display: flex;
    gap: 18px;
}

.ce-footer-legal-links a {
    font-size: 0.95rem; /* ~17px */
    color: var(--ce-text-muted);
    text-decoration: none;
}

.ce-footer-legal-links a:hover {
    color: var(--ce-primary);
}

/* Botón flotante WhatsApp */
.ce-wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    color: #ffffff !important;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    border: 2px solid #ffffff;
    transition: transform 0.2s ease;
}

.ce-wa-float:hover {
    transform: scale(1.08);
}

/* ==============================================================================
   7. PAGINAS INTERNAS NATIVAS (US, ALL COURSES, CURSOS MODULARES)
   ============================================================================== */
.ce-clean-page {
    background-color: var(--ce-bg);
    min-height: 60vh;
}

/* 7.1 Hero Banner Corporativo de Páginas Internas */
.ce-page-hero {
    position: relative;
    background: 
        radial-gradient(ellipse at 85% 15%, rgba(255, 255, 255, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(0, 0, 0, 0.25) 0%, transparent 50%),
        linear-gradient(135deg, #a00a0e 0%, #de0f15 45%, #b70a0e 85%, #880508 100%);
    color: #ffffff;
    padding: clamp(56px, 7vw, 84px) 24px;
    text-align: center;
    border-bottom: 4px solid #7d0508;
    box-shadow: 0 10px 30px rgba(160, 10, 14, 0.28);
    overflow: hidden;
}

.ce-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.7;
}

.ce-page-hero .ce-container {
    position: relative;
    z-index: 2;
    max-width: 1050px;
    margin: 0 auto;
}

.ce-page-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ce-page-hero-subtitle,
.ce-page-hero-sub,
.ce-page-hero p {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    color: #f8fafc;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* 7.2 Página Us: Intro y Valores */
.ce-section-us-intro {
    padding: 56px 0 20px;
}

.ce-intro-card {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    border-left: 6px solid var(--ce-primary);
    padding: 32px 36px;
    box-shadow: var(--ce-shadow);
}

.ce-intro-card p {
    font-size: 1.22rem; /* ~22px */
    line-height: 1.8;
    color: var(--ce-text-dark);
    margin: 0;
}

.ce-section-us-values {
    padding: 44px 0 56px;
}

.ce-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

.ce-value-card {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    border-top: 4px solid var(--ce-primary);
    box-shadow: var(--ce-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ce-value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ce-shadow-hover);
}

.ce-value-img-wrap img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.ce-value-content {
    padding: 32px;
    flex-grow: 1;
}

.ce-value-title {
    font-size: 1.95rem; /* ~35px */
    font-weight: 800;
    color: var(--ce-primary);
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
}

.ce-value-content p {
    font-size: 1.15rem; /* ~20.7px */
    line-height: 1.75;
    color: var(--ce-text);
    margin: 0;
}

/* 7.3 Página Us: Socios / Aliados ("OUR PARTNERS") */
.ce-section-us-partners {
    padding: 56px 0 72px;
    background-color: var(--ce-bg-alt);
    border-top: 1px solid var(--ce-border);
}

.ce-us-partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ce-us-partner-card {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    box-shadow: var(--ce-shadow);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ce-us-partner-card:hover {
    transform: translateY(-4px);
    border-color: var(--ce-primary);
    box-shadow: var(--ce-shadow-hover);
}

.ce-us-partner-card picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ce-us-partner-card img {
    max-height: 68px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.ce-us-partner-card:hover img {
    transform: scale(1.04);
}

/* 7.4 Página All Courses: Curso Destacado TPERP */
.ce-section-featured-course {
    padding: 56px 0 32px;
}

.ce-featured-course-card {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    border-top: 5px solid var(--ce-primary);
    box-shadow: var(--ce-shadow);
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 36px;
    align-items: center;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ce-featured-course-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ce-shadow-hover);
}

.ce-featured-course-img img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.ce-featured-course-content {
    padding: 36px 36px 36px 0;
}

.ce-course-badge {
    display: inline-block;
    background-color: var(--ce-primary);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 14px;
    margin-bottom: 14px;
}

.ce-featured-course-title {
    font-size: 2.2rem; /* ~40px */
    font-weight: 800;
    color: var(--ce-text-dark);
    margin: 0 0 16px 0;
}

.ce-featured-course-desc {
    font-size: 1.18rem; /* ~21px */
    line-height: 1.75;
    color: var(--ce-text);
    margin: 0 0 26px 0;
}

/* 7.5 Página All Courses: Grid de Cursos Modulares */
.ce-section-modular-courses {
    padding: 44px 0 72px;
}

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

.ce-course-card {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    border-top: 4px solid var(--ce-primary);
    box-shadow: var(--ce-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ce-course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ce-shadow-hover);
}

.ce-course-img-wrap img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.ce-course-body {
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ce-course-card-title {
    font-size: 1.65rem; /* ~30px */
    font-weight: 800;
    color: var(--ce-primary);
    margin: 0 0 12px 0;
}

.ce-course-card-desc {
    font-size: 1.12rem; /* ~20px */
    line-height: 1.65;
    color: var(--ce-text);
    margin: 0 0 22px 0;
    flex-grow: 1;
}

.ce-btn-course {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--ce-primary);
    color: #ffffff !important;
    font-size: 1.1rem; /* ~20px */
    font-weight: 700;
    padding: 14px 22px;
    text-decoration: none !important;
    border: 2px solid var(--ce-primary);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    margin-top: auto;
}

.ce-btn-course:hover {
    background-color: var(--ce-primary-dark);
    border-color: var(--ce-primary-dark);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.ce-btn-course i {
    transition: transform 0.2s ease;
}

.ce-btn-course:hover i {
    transform: translateX(4px);
}

/* ==============================================================================
   7.6 COMPATIBILIDAD CON VISTAS RESTANTES (FAQ, SYLLABUS, ENTREGABLES)
   ============================================================================== */
.elementor, 
.elementor-element, 
.elementor-widget-container,
.entry,
.site-content {
    font-family: var(--ce-font) !important;
    color: var(--ce-text) !important;
    line-height: 1.75 !important;
    font-size: 1.12rem !important; /* ~20px */
}

/* Banner de Cabecera Superior de cada Página (Hero de Cursos, FAQ, Sinfonía) */
.elementor-element.e-con-full.e-parent:first-of-type,
.elementor-element.e-con.e-parent:first-of-type,
.elementor > .e-con:first-child,
.elementor > .e-con:first-of-type {
    position: relative !important;
    background: 
        radial-gradient(ellipse at 85% 15%, rgba(255, 255, 255, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(0, 0, 0, 0.25) 0%, transparent 50%),
        linear-gradient(135deg, #a00a0e 0%, #de0f15 45%, #b70a0e 85%, #880508 100%) !important;
    color: #ffffff !important;
    padding: clamp(56px, 7vw, 84px) 24px !important;
    text-align: center !important;
    margin-bottom: 48px !important;
    border-bottom: 4px solid #7d0508 !important;
    box-shadow: 0 10px 30px rgba(160, 10, 14, 0.28) !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.elementor-element.e-con-full.e-parent:first-of-type::before,
.elementor-element.e-con.e-parent:first-of-type::before,
.elementor > .e-con:first-child::before,
.elementor > .e-con:first-of-type::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
    background-size: 32px 32px !important;
    pointer-events: none !important;
    opacity: 0.7 !important;
    z-index: 1 !important;
}

.elementor-element.e-con-full.e-parent:first-of-type > *,
.elementor-element.e-con.e-parent:first-of-type > *,
.elementor > .e-con:first-child > *,
.elementor > .e-con:first-of-type > * {
    position: relative !important;
    z-index: 2 !important;
    max-width: var(--ce-max-width) !important;
    width: 100% !important;
}

.elementor-element.e-con-full.e-parent:first-of-type .elementor-heading-title,
.elementor-element.e-con.e-parent:first-of-type .elementor-heading-title,
.elementor > .e-con:first-child .elementor-heading-title,
.elementor > .e-con:first-of-type .elementor-heading-title {
    color: #ffffff !important;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem) !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 16px !important;
    text-transform: uppercase !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.elementor-element.e-con-full.e-parent:first-of-type p,
.elementor-element.e-con.e-parent:first-of-type p,
.elementor > .e-con:first-child p,
.elementor > .e-con:first-of-type p {
    color: #f8fafc !important;
    font-size: clamp(1.15rem, 2vw, 1.35rem) !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Contenedores Principales de Contenido (Boxes) */
.e-con-boxed, 
.e-con.e-parent {
    width: 100% !important;
    max-width: var(--ce-max-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(16px, 3.5vw, 36px) !important;
    padding-right: clamp(16px, 3.5vw, 36px) !important;
    margin-bottom: 48px !important;
}

.e-con-inner {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 36px !important;
    align-items: center !important;
}

/* Títulos y Encabezados Internos */
.elementor-heading-title {
    color: var(--ce-text-dark) !important;
    font-family: var(--ce-font) !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

h1.elementor-heading-title {
    font-size: 2.6rem !important;
}

h2.elementor-heading-title {
    font-size: 2.1rem !important; /* ~38px */
    position: relative !important;
    padding-bottom: 12px !important;
    margin-bottom: 20px !important;
    border-bottom: 3px solid var(--ce-primary) !important;
    display: inline-block !important;
}

h3.elementor-heading-title {
    font-size: 1.55rem !important; /* ~28px */
    color: var(--ce-primary) !important;
    margin-top: 16px !important;
    margin-bottom: 12px !important;
}

h4.elementor-heading-title {
    font-size: 1.3rem !important;
}

/* Elementor Invisible Override (prevents missing content without WP JS) */
.elementor-invisible {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Secciones de 2 Columnas en Cursos y FAQ (Texto e Imagen / Imagen y Temario) */
.e-con-inner > .e-child,
.e-con.e-parent > .e-child {
    flex: 1 1 450px !important;
    min-width: 320px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Filas con 3 o 4 elementos (Tarjetas de Instructores, Duración, Modalidad, Próximo Grupo, Testimonios) */
.e-con-inner:has(> .e-child:nth-child(3)) > .e-child,
.e-con-inner:has(> .e-child:nth-child(4)) > .e-child,
.e-con.e-parent:has(> .e-child:nth-child(3)) > .e-child,
.e-con.e-parent:has(> .e-child:nth-child(4)) > .e-child {
    flex: 1 1 240px !important;
    min-width: 220px !important;
    background: #ffffff !important;
    border: 1px solid var(--ce-border) !important;
    border-top: 4px solid var(--ce-primary) !important;
    padding: 24px 20px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.e-con-inner:has(> .e-child:nth-child(3)) > .e-child:hover,
.e-con-inner:has(> .e-child:nth-child(4)) > .e-child:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.e-con-inner:has(> .e-child:nth-child(3)) > .e-child h2.elementor-heading-title,
.e-con-inner:has(> .e-child:nth-child(4)) > .e-child h2.elementor-heading-title {
    font-size: 1.25rem !important;
    color: var(--ce-primary) !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.e-con-inner:has(> .e-child:nth-child(3)) > .e-child p,
.e-con-inner:has(> .e-child:nth-child(4)) > .e-child p {
    font-size: 1.05rem !important;
    color: var(--ce-text) !important;
    margin-bottom: 0 !important;
    line-height: 1.6 !important;
}

/* Alineación limpia para la fila de Temario */
.e-con-boxed:has(img[src*="Temario"]),
.e-con-boxed:has(img[src*="TEMARIO"]),
.e-con-boxed:has(img[src*="temario"]) {
    align-items: flex-start !important;
}

.e-con-boxed:has(img[src*="Temario"]) .e-con-inner,
.e-con-boxed:has(img[src*="TEMARIO"]) .e-con-inner,
.e-con-boxed:has(img[src*="temario"]) .e-con-inner {
    align-items: flex-start !important;
}

/* Imágenes Generales de Cursos y Vistas */
.e-con-inner > .e-child .elementor-widget-image,
.e-con.e-parent > .e-child .elementor-widget-image {
    width: 100% !important;
    margin-bottom: 18px !important;
    border: 1px solid var(--ce-border) !important;
    box-shadow: var(--ce-shadow) !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.e-con-inner > .e-child .elementor-widget-image img,
.e-con.e-parent > .e-child .elementor-widget-image img {
    width: 100% !important;
    height: auto !important;
    max-height: 520px !important;
    object-fit: cover !important;
    display: block !important;
}

/* Pósters de Temario Oficial - NUNCA recortar ni truncar texto */
.elementor-widget-image img[src*="Temario"],
.elementor-widget-image img[src*="TEMARIO"],
.elementor-widget-image img[src*="temario"],
.elementor-widget-image img[src*="Constancia"],
.elementor-widget-image img[src*="Oscar-Octavio"] {
    width: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

.e-con-inner > .e-child .elementor-widget-image:has(img[src*="Temario"]),
.e-con-inner > .e-child .elementor-widget-image:has(img[src*="TEMARIO"]),
.e-con-inner > .e-child .elementor-widget-image:has(img[src*="temario"]) {
    background: #f8fafc !important;
    padding: 12px !important;
    border: 1px solid var(--ce-border) !important;
}

/* Párrafos y Listas de Cursos */
.e-con-inner > .e-child .elementor-widget-text-editor p,
.e-con.e-parent > .e-child .elementor-widget-text-editor p,
.elementor-widget-text-editor p {
    font-size: 1.15rem !important; /* ~20.7px */
    line-height: 1.75 !important;
    color: var(--ce-text) !important;
    margin-bottom: 14px !important;
}

.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol {
    padding-left: 24px !important;
    margin-bottom: 18px !important;
}

.elementor-widget-text-editor ul {
    list-style: disc !important;
}

.elementor-widget-text-editor ol {
    list-style: decimal !important;
}

.elementor-widget-text-editor li {
    font-size: 1.12rem !important;
    line-height: 1.7 !important;
    margin-bottom: 8px !important;
    color: var(--ce-text) !important;
}

/* Temario Acordeón Nativo de Cursos (nested accordion) */
.e-n-accordion {
    border: 1px solid var(--ce-border) !important;
    background: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    margin: 20px 0 28px !important;
}

.e-n-accordion-item {
    border-bottom: 1px solid var(--ce-border) !important;
}

.e-n-accordion-item:last-child {
    border-bottom: none !important;
}

.e-n-accordion-item summary {
    list-style: none !important;
}

.e-n-accordion-item summary::-webkit-details-marker {
    display: none !important;
}

.e-n-accordion-item-title {
    padding: 16px 20px !important;
    background-color: #f8fafc !important;
    color: var(--ce-text-dark) !important;
    font-weight: 700 !important;
    font-size: 1.12rem !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
    border-left: 4px solid transparent !important;
}

.e-n-accordion-item-title:hover {
    background-color: #f1f5f9 !important;
    color: var(--ce-primary) !important;
    border-left-color: var(--ce-primary) !important;
}

.e-n-accordion-item[open] .e-n-accordion-item-title {
    background-color: #f1f5f9 !important;
    color: var(--ce-primary) !important;
    border-left-color: var(--ce-primary) !important;
    border-bottom: 1px solid var(--ce-border) !important;
}

.e-n-accordion-item-title-icon svg {
    width: 16px !important;
    height: 16px !important;
    fill: var(--ce-primary) !important;
}

.e-n-accordion-item[open] .e-n-accordion-item-title-icon .e-closed {
    display: none !important;
}

.e-n-accordion-item:not([open]) .e-n-accordion-item-title-icon .e-opened {
    display: none !important;
}

.e-n-accordion-item > .e-con-inner,
.e-n-accordion-item > .e-child,
.e-n-accordion-item > div[role="region"] {
    padding: 22px 24px !important;
    background-color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

/* Reset de clases basura de Google Docs dentro de temarios */
.e-n-accordion-item [class*="dig-"],
.e-n-accordion-item p span {
    color: var(--ce-text) !important;
    background: transparent !important;
    font-family: inherit !important;
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
}

.e-n-accordion-item p {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    margin-bottom: 10px !important;
    padding-left: 12px !important;
    border-left: 2px solid #e2e8f0 !important;
}

/* Botones Oficiales en Cursos y Vistas Internas ("Descargar", "WhatsApp", etc.) */
.elementor-widget-button {
    margin: 8px 12px 14px 0 !important;
    display: inline-flex !important;
}

.elementor-widget-button a,
.elementor-button {
    background-color: var(--ce-primary) !important;
    color: #ffffff !important;
    border: 2px solid var(--ce-primary) !important;
    padding: 14px 30px !important;
    font-size: 1.12rem !important; /* ~20px */
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
    cursor: pointer !important;
}

.elementor-widget-button a:hover,
.elementor-button:hover {
    background-color: var(--ce-primary-dark) !important;
    border-color: var(--ce-primary-dark) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(222, 15, 21, 0.3) !important;
}

/* Botón Especial de WhatsApp dentro de Cursos */
.elementor-widget-button a#whatsappBtn,
.elementor-widget-button a[href*="whatsapp.com"],
.elementor-widget-button a[href*="wa.me"],
.elementor-button[href*="whatsapp.com"],
.elementor-button[href*="wa.me"] {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: #ffffff !important;
}

.elementor-widget-button a#whatsappBtn:hover,
.elementor-widget-button a[href*="whatsapp.com"]:hover,
.elementor-widget-button a[href*="wa.me"]:hover,
.elementor-button[href*="whatsapp.com"]:hover,
.elementor-button[href*="wa.me"]:hover {
    background-color: #1eb956 !important;
    border-color: #1eb956 !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35) !important;
    color: #ffffff !important;
}

/* Video Player Integrado (Proyecto Sinfonía) */
.elementor-video,
video {
    width: 100% !important;
    max-width: 960px !important;
    height: auto !important;
    display: block !important;
    margin: 24px auto !important;
    border: 1px solid var(--ce-border) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

/* Divisor Oficial de Secciones */
.elementor-widget-divider {
    width: 100% !important;
    margin: 20px 0 !important;
}

.elementor-divider {
    padding: 16px 0 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.elementor-divider-separator {
    display: block !important;
    width: 100% !important;
    border-top: 1px solid var(--ce-border) !important;
}

/* Contact & Info Cards (elementor-icon-box in Course Pages & CTA) */
.elementor-widget-icon-box {
    margin-bottom: 20px !important;
    width: 100% !important;
}

.elementor-icon-box-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    background: #ffffff !important;
    border: 1px solid var(--ce-border) !important;
    border-left: 4px solid var(--ce-primary) !important;
    padding: 18px 24px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.elementor-icon-box-wrapper:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.elementor-icon-box-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 52px !important;
    background: #fef2f2 !important;
    flex-shrink: 0 !important;
    border: 1px solid rgba(222, 15, 21, 0.15) !important;
}

.elementor-icon-box-icon .elementor-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
}

.elementor-icon-box-icon svg,
.e-font-icon-svg {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    fill: var(--ce-primary) !important;
    display: block !important;
}

/* WhatsApp Variant for Icon Box */
.elementor-icon-box-wrapper:has(a[href*="wa.me"]),
.elementor-icon-box-wrapper:has(a[href*="whatsapp"]) {
    border-left-color: #25D366 !important;
}

.elementor-icon-box-wrapper:has(a[href*="wa.me"]) .elementor-icon-box-icon,
.elementor-icon-box-wrapper:has(a[href*="whatsapp"]) .elementor-icon-box-icon {
    background: #e8f7ee !important;
    border-color: rgba(37, 211, 102, 0.2) !important;
}

.elementor-icon-box-wrapper:has(a[href*="wa.me"]) svg,
.elementor-icon-box-wrapper:has(a[href*="whatsapp"]) svg {
    fill: #25D366 !important;
}

.elementor-icon-box-content {
    flex-grow: 1 !important;
}

.elementor-icon-box-title {
    margin: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.elementor-icon-box-title a {
    color: var(--ce-text-dark) !important;
    text-decoration: none !important;
    font-family: var(--ce-font) !important;
    transition: color 0.2s ease !important;
}

.elementor-icon-box-title a:hover {
    color: var(--ce-primary) !important;
}

.elementor-icon-box-description {
    font-size: 0.95rem !important;
    color: var(--ce-text-muted) !important;
    margin: 4px 0 0 0 !important;
}

/* ==============================================================================
   7.1 ESTILOS NATIVOS DE ENTREGABLES, CALENDARIO Y DOCUMENTOS
   ============================================================================== */
.ce-deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.ce-formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    margin-bottom: 20px;
}

.ce-deliv-card {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    border-top: 4px solid var(--ce-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ce-deliv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.ce-deliv-thumb {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid var(--ce-border);
    overflow: hidden;
}

.ce-deliv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ce-deliv-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ce-deliv-tag {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--ce-bg-alt);
    color: var(--ce-primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(222, 15, 21, 0.15);
}

.ce-deliv-title {
    font-size: 1.35rem; /* ~24px */
    font-weight: 800;
    color: var(--ce-text-dark);
    margin-bottom: 12px;
    line-height: 1.35;
}

.ce-deliv-desc {
    font-size: 1.05rem;
    color: var(--ce-text);
    line-height: 1.65;
    margin-bottom: 22px;
    flex: 1;
}

.ce-deliv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--ce-primary);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 13px 22px;
    transition: background-color 0.2s ease, transform 0.15s ease;
    border: 2px solid var(--ce-primary);
}

.ce-deliv-btn:hover {
    background-color: var(--ce-primary-dark);
    border-color: var(--ce-primary-dark);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Tarjeta Destacada de Documento Individual (Calendar, Syllabus, Fee) */
.ce-single-doc-card {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    border-top: 5px solid var(--ce-primary);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    padding: clamp(24px, 4vw, 48px);
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.ce-single-doc-media {
    flex: 1 1 240px;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid var(--ce-border);
    padding: 24px;
}

.ce-single-doc-media img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.ce-single-doc-content {
    flex: 1 1 450px;
}

.ce-single-doc-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--ce-text-dark);
    margin: 12px 0 16px 0;
    line-height: 1.3;
}

.ce-single-doc-desc {
    font-size: 1.15rem;
    color: var(--ce-text);
    line-height: 1.7;
    margin-bottom: 22px;
}

.ce-doc-meta-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.ce-doc-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.08rem;
    color: var(--ce-text-dark);
    font-weight: 600;
}

.ce-doc-meta-item i {
    color: var(--ce-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ce-single-doc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Bloque especial de socios/aliados en Us ("OUR PARTNERS") */
.elementor-element-1176edbb .e-con-inner > .e-child {
    flex: 1 1 calc(25% - 24px) !important;
    min-width: 200px !important;
    padding: 20px 16px !important;
    align-items: center !important;
    justify-content: center !important;
    border-top: 1px solid var(--ce-border) !important;
}

.elementor-element-1176edbb .e-con-inner > .e-child:hover {
    border-color: var(--ce-primary) !important;
}

.elementor-element-1176edbb .elementor-widget-image {
    margin-bottom: 0 !important;
    border: none !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.elementor-element-1176edbb .elementor-widget-image img {
    height: 60px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
}

/* Tablas de contenido e información en vistas de Cursos */
.elementor table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 24px 0 !important;
    background: #ffffff !important;
    border: 1px solid var(--ce-border) !important;
}

.elementor th,
.elementor td {
    padding: 14px 18px !important;
    border: 1px solid var(--ce-border) !important;
    font-size: 1.05rem !important;
    text-align: left !important;
}

.elementor th {
    background-color: var(--ce-bg-alt) !important;
    color: var(--ce-text-dark) !important;
    font-weight: 700 !important;
    border-bottom: 2px solid var(--ce-primary) !important;
}

.elementor tr:nth-child(even) {
    background-color: #f8fafc !important;
}

/* ==============================================================================
   7.7 ESTILOS DE DESLINDE / RESPONSABILIDAD
   ============================================================================== */
.ce-section-disclaimer {
    padding: 56px 0 72px;
}

.ce-disclaimer-card {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    border-left: 6px solid var(--ce-primary);
    box-shadow: var(--ce-shadow);
    padding: clamp(28px, 4vw, 48px);
    max-width: 1050px;
    margin: 0 auto;
}

.ce-disclaimer-body {
    margin-bottom: 36px;
}

.ce-disclaimer-text {
    font-size: 1.18rem;
    line-height: 1.85;
    color: var(--ce-text);
    margin-bottom: 20px;
}

.ce-disclaimer-text strong {
    color: var(--ce-text-dark);
}

.ce-disclaimer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid var(--ce-border);
}

.ce-disclaimer-brand img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.ce-disclaimer-signoff {
    text-align: right;
}

.ce-signoff-salutation {
    font-size: 1.05rem;
    color: var(--ce-text-muted);
    margin: 0 0 4px 0;
}

.ce-signoff-team {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ce-primary);
    margin: 0;
}

/* ==============================================================================
   7.8 ESTILOS DE PROYECTO SINFONÍA 1.0
   ============================================================================== */
.ce-page-symphony .ce-service-row {
    margin-bottom: 40px;
    padding-bottom: 40px;
}

.ce-video-wrapper {
    max-width: 960px;
    margin: 0 auto;
    border: 1px solid var(--ce-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    background: #000000;
}

.ce-sinfonia-video {
    width: 100%;
    height: auto;
    display: block;
}

.ce-stages-diagram {
    max-width: 900px;
    margin: 0 auto 36px;
    border: 1px solid var(--ce-border);
    box-shadow: var(--ce-shadow);
    background: #ffffff;
    padding: 12px;
}

.ce-stages-diagram img {
    width: 100%;
    height: auto;
    display: block;
}

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

.ce-stage-card {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    border-top: 4px solid var(--ce-primary);
    box-shadow: var(--ce-shadow);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ce-stage-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ce-shadow-hover);
}

.ce-stage-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--ce-primary);
    margin-bottom: 10px;
    font-family: var(--ce-font);
}

.ce-stage-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ce-text-dark);
    margin: 0 0 12px 0;
}

.ce-stage-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ce-text);
    margin: 0;
}

.ce-members-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: flex-start;
}

.ce-members-table-wrap {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    box-shadow: var(--ce-shadow);
    overflow-x: auto;
}

.ce-members-table {
    width: 100%;
    border-collapse: collapse;
}

.ce-members-table th,
.ce-members-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--ce-border);
    font-size: 1.05rem;
    text-align: left;
}

.ce-members-table th {
    background: var(--ce-primary);
    color: #ffffff;
    font-weight: 700;
    border-bottom: none;
}

.ce-members-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.ce-members-table tbody tr:hover {
    background: #f1f5f9;
}

.ce-media-card {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    box-shadow: var(--ce-shadow);
    padding: 12px;
}

.ce-media-card img {
    width: 100%;
    height: auto;
    display: block;
}

.ce-media-caption {
    display: block;
    padding: 10px 4px 4px;
    font-size: 0.95rem;
    color: var(--ce-text-muted);
    text-align: center;
    font-weight: 600;
}

.ce-modules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ce-modules-list li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--ce-text);
    padding-left: 20px;
    border-left: 3px solid var(--ce-primary);
}

.ce-modules-list li strong {
    color: var(--ce-text-dark);
}

.ce-sinfonia-modules-img-wrap {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    box-shadow: var(--ce-shadow);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ce-modules-diagram-full {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
}

.ce-certificates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.ce-certificate-item {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    box-shadow: var(--ce-shadow);
    padding: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ce-certificate-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--ce-shadow-hover);
}

.ce-certificate-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.ce-cert-label {
    display: block;
    margin-top: 12px;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ce-text-dark);
    text-align: center;
}

.ce-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.ce-metric-card {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    border-top: 4px solid var(--ce-primary);
    box-shadow: var(--ce-shadow);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.2s ease;
}

.ce-metric-card:hover {
    transform: translateY(-3px);
}

.ce-metric-card i {
    font-size: 2.6rem;
    color: var(--ce-primary);
    margin-bottom: 14px;
}

.ce-metric-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ce-text-dark);
    margin-bottom: 6px;
}

.ce-metric-desc,
.ce-metric-val-sub {
    font-size: 1.05rem;
    color: var(--ce-text-muted);
}

/* ==============================================================================
   7.9 ESTILOS DE PREGUNTAS FRECUENTES (FAQ)
   ============================================================================== */
.ce-faq-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--ce-border);
    border-left: 5px solid var(--ce-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    padding: 36px 32px;
    margin-bottom: 32px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ce-faq-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ce-faq-reverse {
    grid-template-columns: 0.85fr 1.15fr;
}

.ce-faq-reverse .ce-faq-text {
    order: 2;
}

.ce-faq-reverse .ce-faq-media {
    order: 1;
}

.ce-faq-number {
    display: inline-block;
    background: #fef2f2;
    color: var(--ce-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(222, 15, 21, 0.15);
}

.ce-faq-question {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--ce-text-dark);
    margin: 0 0 16px 0;
    line-height: 1.35;
}

.ce-faq-answer p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--ce-text);
    margin-bottom: 14px;
}

.ce-faq-answer p:last-child {
    margin-bottom: 0;
}

.ce-faq-answer ol,
.ce-faq-answer ul {
    padding-left: 22px;
    margin: 14px 0;
}

.ce-faq-answer li {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--ce-text);
    margin-bottom: 10px;
}

.ce-faq-answer li strong {
    color: var(--ce-text-dark);
}

.ce-faq-media {
    border: 1px solid var(--ce-border);
    box-shadow: var(--ce-shadow);
    background: #ffffff;
    overflow: hidden;
}

.ce-faq-media img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ce-faq-card:hover .ce-faq-media img {
    transform: scale(1.02);
}

.ce-faq-cta-sec {
    padding-top: 16px;
    padding-bottom: 56px;
}

.ce-faq-cta-card {
    background: 
        radial-gradient(ellipse at 85% 15%, rgba(255, 255, 255, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(0, 0, 0, 0.25) 0%, transparent 50%),
        linear-gradient(135deg, #a00a0e 0%, #de0f15 45%, #b70a0e 85%, #880508 100%);
    color: #ffffff;
    text-align: center;
    padding: clamp(40px, 5vw, 64px) 32px;
    border-top: 4px solid #7d0508;
    border-bottom: 4px solid #7d0508;
    box-shadow: 0 10px 30px rgba(160, 10, 14, 0.28);
}

.ce-faq-cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 14px 0;
}

.ce-faq-cta-sub {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: #f8fafc;
    max-width: 800px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.ce-faq-cta-btns {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.ce-cta-wa {
    background: #25D366 !important;
    border-color: #25D366 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35) !important;
}

.ce-cta-wa:hover {
    background: #1eb956 !important;
    border-color: #1eb956 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.ce-cta-mail {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--ce-text-dark) !important;
}

.ce-cta-mail:hover {
    background: #f1f5f9 !important;
    transform: translateY(-2px);
}

/* ==============================================================================
   8. RESPONSIVIDAD (MOBILE & TABLET)
   ============================================================================== */
@media (max-width: 991px) {
    html {
        font-size: 17px;
    }

    .ce-features-grid,
    .ce-impact-grid,
    .ce-videos-grid {
        grid-template-columns: 1fr;
    }

    .ce-service-row,
    .ce-row-reverse {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ce-row-reverse .ce-service-text { order: 1; }
    .ce-row-reverse .ce-service-img { order: 2; }

    .ce-invite-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .ce-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ce-home-hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .ce-us-partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .ce-featured-course-card {
        grid-template-columns: 1fr;
    }

    .ce-featured-course-content {
        padding: 24px;
    }

    .ce-stages-grid,
    .ce-certificates-grid,
    .ce-metrics-grid,
    .ce-members-layout {
        grid-template-columns: 1fr;
    }

    .ce-faq-card,
    .ce-faq-reverse {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 20px;
    }

    .ce-faq-reverse .ce-faq-text {
        order: 1;
    }

    .ce-faq-reverse .ce-faq-media {
        order: 2;
    }

    .ce-faq-media img {
        height: 240px;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    .ce-home-hero-features {
        grid-template-columns: 1fr;
    }

    .ce-home-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .ce-home-hero-btn-primary,
    .ce-home-hero-btn-secondary {
        width: 100%;
        text-align: center;
    }

    .ce-us-partners-grid {
        grid-template-columns: 1fr;
    }

    .ce-hero-erp-btn {
        font-size: 1.05rem;
        padding: 14px 22px;
    }

    .ce-invite-links-grid {
        grid-template-columns: 1fr;
    }

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

    .ce-footer-grid {
        grid-template-columns: 1fr;
    }

    .ce-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}
