/* ==========================================================================
   CIP Landing Page — Styles
   Centro de Innovación Pública
   Compatible with: template-landing.php (legacy) + Elementor Canvas
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    --cip-primary: #1E2A5E;
    --cip-primary-dark: #141D45;
    --cip-accent: #3B4FA0;
    --cip-accent-light: #5B6FBF;
    --cip-white: #FFFFFF;
    --cip-light: #F5F6FA;
    --cip-gray: #6B7280;
    --cip-dark: #111827;

    --cip-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --cip-navbar-height: 80px;
    --cip-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --cip-radius: 8px;
    --cip-radius-lg: 12px;
    --cip-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --cip-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --cip-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   2. Base Reset — Scope everything under .cip-landing
   -------------------------------------------------------------------------- */
.cip-landing {
    font-family: var(--cip-font);
    color: var(--cip-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide Astra's default header/footer on the landing template */
.cip-landing .ast-above-header-wrap,
.cip-landing .ast-below-header-wrap,
.cip-landing #ast-desktop-header,
.cip-landing #ast-mobile-header,
.cip-landing .ast-header-break-point .ast-mobile-header-wrap,
.cip-landing .site-header,
.cip-landing .ast-footer-overlay,
.cip-landing .site-footer,
.cip-landing #colophon,
.cip-landing .ast-small-footer {
    display: none !important;
}

.cip-landing *,
.cip-landing *::before,
.cip-landing *::after {
    box-sizing: border-box;
}

/* Body scroll lock when mobile menu is open */
.cip-landing.menu-open {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   3. Button System
   -------------------------------------------------------------------------- */
.cip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--cip-font);
    font-weight: 600;
    font-size: 0.938rem;
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 12px 28px;
    cursor: pointer;
    transition: all var(--cip-transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.cip-btn__icon {
    flex-shrink: 0;
    transition: transform var(--cip-transition);
}

.cip-btn:hover .cip-btn__icon {
    transform: translateX(4px);
}

/* Primary — solid accent */
.cip-btn--primary {
    background: var(--cip-accent);
    color: var(--cip-white);
    border-color: var(--cip-accent);
}

.cip-btn--primary:hover {
    background: var(--cip-accent-light);
    color: var(--cip-white);
    border-color: var(--cip-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 79, 160, 0.4);
}

/* Outline — dark */
.cip-btn--outline {
    background: transparent;
    color: var(--cip-primary);
    border-color: var(--cip-primary);
}

.cip-btn--outline:hover {
    background: var(--cip-primary);
    color: var(--cip-white);
    transform: translateY(-2px);
}

/* Outline Light — for dark backgrounds */
.cip-btn--outline-light {
    background: transparent;
    color: var(--cip-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.cip-btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--cip-white);
    transform: translateY(-2px);
}

/* Sizes */
.cip-btn--sm {
    font-size: 0.813rem;
    padding: 8px 20px;
}

.cip-btn--lg {
    font-size: 1rem;
    padding: 16px 36px;
}

/* --------------------------------------------------------------------------
   4. Navbar — Default (Transparent)
   -------------------------------------------------------------------------- */
.cip-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--cip-navbar-height);
    transition: all var(--cip-transition);
}

.cip-navbar__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
}

/* Logo */
.cip-navbar__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.cip-navbar__logo-img {
    height: 42px;
    width: auto;
    transition: filter var(--cip-transition);
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Nav Links — Desktop */
.cip-navbar__links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.cip-navbar__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all var(--cip-transition);
    position: relative;
}

.cip-navbar__link:hover,
.cip-navbar__link.active {
    color: var(--cip-white);
    background: rgba(255, 255, 255, 0.1);
}

.cip-navbar__link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cip-white);
    transition: all var(--cip-transition);
    transform: translateX(-50%);
    border-radius: 1px;
}

.cip-navbar__link.active::after {
    width: 20px;
}

/* CTAs Desktop */
.cip-navbar__ctas {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --------------------------------------------------------------------------
   5. Navbar — Scrolled (Luminous Edge)
   -------------------------------------------------------------------------- */
.cip-navbar.scrolled {
    background: var(--cip-primary-dark);
    height: 64px;
    box-shadow: 0 4px 24px -4px rgba(10, 14, 40, 0.5);
}

/* Animated gradient edge */
.cip-navbar.scrolled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--cip-primary-dark) 0%,
        var(--cip-accent) 20%,
        var(--cip-accent-light) 40%,
        #818cf8 60%,
        var(--cip-accent) 80%,
        var(--cip-primary-dark) 100%
    );
    background-size: 200% 100%;
    animation: cipEdgeShift 6s ease-in-out infinite;
    opacity: 1;
}

/* Top highlight */
.cip-navbar.scrolled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(91, 111, 191, 0.1);
}

/* Logo — scrolled */
.cip-navbar.scrolled .cip-navbar__logo-img {
    filter: brightness(0) invert(1);
    height: 36px;
}

/* Links — scrolled */
.cip-navbar.scrolled .cip-navbar__link {
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0;
    transition: all var(--cip-transition);
}

.cip-navbar.scrolled .cip-navbar__link:hover {
    color: var(--cip-white);
    letter-spacing: 0.03em;
    background: none;
}

.cip-navbar.scrolled .cip-navbar__link.active {
    color: var(--cip-white);
    background: none;
}

/* Active indicator — scrolled */
.cip-navbar.scrolled .cip-navbar__link::after {
    bottom: auto;
    top: 0;
    height: 3px;
    border-radius: 0 0 2px 2px;
    background: var(--cip-accent-light);
}

.cip-navbar.scrolled .cip-navbar__link.active::after {
    width: 24px;
    box-shadow: 0 2px 8px rgba(91, 111, 191, 0.5);
}

/* Primary CTA — scrolled */
.cip-navbar.scrolled .cip-btn--primary {
    background: var(--cip-accent);
    border-color: var(--cip-accent);
    box-shadow: 0 2px 12px rgba(59, 79, 160, 0.35);
}

.cip-navbar.scrolled .cip-btn--primary:hover {
    background: var(--cip-accent-light);
    color: var(--cip-white);
    border-color: var(--cip-accent-light);
    box-shadow: 0 4px 20px rgba(91, 111, 191, 0.5);
}

/* Outline CTA — scrolled */
.cip-navbar.scrolled .cip-btn--outline-light {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.18);
}

.cip-navbar.scrolled .cip-btn--outline-light:hover {
    color: var(--cip-white);
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   6. Hamburger Button
   -------------------------------------------------------------------------- */
.cip-navbar__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.cip-navbar__hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--cip-white);
    border-radius: 2px;
    transition: all var(--cip-transition);
    position: absolute;
}

.cip-navbar__hamburger-line:nth-child(1) {
    transform: translateY(-7px);
}

.cip-navbar__hamburger-line:nth-child(3) {
    transform: translateY(7px);
}

.cip-navbar.scrolled .cip-navbar__hamburger-line {
    background: var(--cip-white);
}

/* Hamburger X animation */
.cip-navbar__hamburger.active .cip-navbar__hamburger-line:nth-child(1) {
    transform: rotate(45deg);
}

.cip-navbar__hamburger.active .cip-navbar__hamburger-line:nth-child(2) {
    opacity: 0;
}

.cip-navbar__hamburger.active .cip-navbar__hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
}

.cip-navbar__hamburger.active .cip-navbar__hamburger-line {
    background: var(--cip-white);
}

/* --------------------------------------------------------------------------
   7. Mobile Menu Overlay
   -------------------------------------------------------------------------- */
.cip-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    background: linear-gradient(135deg, var(--cip-primary-dark) 0%, var(--cip-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cip-mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.cip-mobile-menu__content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.cip-mobile-menu.open .cip-mobile-menu__content {
    transform: translateY(0);
}

.cip-mobile-menu__links {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
}

.cip-mobile-menu__link {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cip-white);
    text-decoration: none;
    padding: 16px 0;
    opacity: 0.8;
    transition: all var(--cip-transition);
}

.cip-mobile-menu__link:hover {
    opacity: 1;
    transform: translateX(8px);
}

.cip-mobile-menu__ctas {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.cip-mobile-menu__ctas .cip-btn {
    min-width: 260px;
}

/* --------------------------------------------------------------------------
   8. Hero Section — Elementor Compatibility
   -------------------------------------------------------------------------- */

/* For Elementor Canvas: the hero container gets these styles via CSS class */
.cip-hero {
    position: relative;
    overflow: hidden;
}

/* The first Elementor container on the page (hero) needs navbar padding */
.elementor-page .cip-hero {
    padding-top: calc(var(--cip-navbar-height) + 40px) !important;
    padding-bottom: 80px !important;
}

/* Legacy template hero (when NOT using Elementor) */
body:not(.elementor-page) .cip-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--cip-navbar-height) + 40px) 24px 80px;
}

.cip-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

/* --------------------------------------------------------------------------
   9. Hero Background — Pure CSS (no HTML widgets = no edit-blocking)
   Uses ::before for dot pattern, ::after for animated circle.
   Additional circles rendered via PHP hook for non-blocking decoration.
   -------------------------------------------------------------------------- */

/* Dot pattern via ::before */
.cip-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        rgba(255, 255, 255, 0.06) 1px,
        transparent 1px
    );
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
}

/* Main floating circle via ::after */
.cip-hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    top: -10%;
    right: -8%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: cipFloat 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

/* Legacy template: keep the HTML-based bg elements working */
.cip-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.cip-hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        var(--cip-primary-dark) 0%,
        var(--cip-primary) 35%,
        var(--cip-accent) 75%,
        var(--cip-accent-light) 100%
    );
}

.cip-hero__pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        rgba(255, 255, 255, 0.06) 1px,
        transparent 1px
    );
    background-size: 30px 30px;
}

.cip-hero__circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cip-hero__circle--1 {
    width: 500px;
    height: 500px;
    top: -10%;
    right: -8%;
    animation: cipFloat 20s ease-in-out infinite;
}

.cip-hero__circle--2 {
    width: 350px;
    height: 350px;
    bottom: -5%;
    left: -5%;
    animation: cipFloat 15s ease-in-out infinite reverse;
}

.cip-hero__circle--3 {
    width: 200px;
    height: 200px;
    top: 30%;
    left: 15%;
    animation: cipFloat 12s ease-in-out infinite 2s;
}

/* --------------------------------------------------------------------------
   10. Hero Typography (shared)
   -------------------------------------------------------------------------- */
.cip-hero__tag .elementor-heading-title,
p.cip-hero__tag {
    display: inline-block;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
}

.cip-hero__title {
    font-family: var(--cip-font);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--cip-white);
    margin: 0 0 24px;
    letter-spacing: -0.02em;
    text-align: center;
}

.cip-hero__title-accent {
    background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 50%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cip-hero__subtitle {
    font-size: clamp(1.063rem, 2vw, 1.313rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    text-align: center;
}

/* Elementor text editor widget inside hero — reset margins */
.cip-hero .elementor-widget-text-editor p.cip-hero__subtitle {
    margin: 0 auto;
}

.cip-hero__ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   11. Scroll Indicator (injected via PHP, not Elementor widget)
   -------------------------------------------------------------------------- */
.cip-hero__scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
}

.cip-hero__scroll-text {
    font-family: var(--cip-font);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cip-hero__scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.cip-hero__scroll-dot {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: cipScrollBounce 2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   13. Placeholder Sections (shared)
   -------------------------------------------------------------------------- */
.cip-section {
    padding: 100px 24px;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.cip-section--light {
    background: var(--cip-light);
}

.cip-section__container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.cip-section__title,
.cip-section__title .elementor-heading-title {
    font-family: var(--cip-font);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--cip-primary);
    margin: 0 0 16px;
}

.cip-section__placeholder {
    font-size: 1.125rem;
    color: var(--cip-gray);
}

/* --------------------------------------------------------------------------
   14. About / El CIP Section (Elementor-native)
   -------------------------------------------------------------------------- */

/* Card hover effects (Elementor container with .cip-about__card class) */
.cip-about__card {
    position: relative;
    transition: transform var(--cip-transition), box-shadow var(--cip-transition);
    overflow: hidden;
}

.cip-about__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cip-shadow-md) !important;
}

/* Top gradient accent bar — pseudo-element (works with Elementor containers) */
.cip-about__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cip-accent) 0%, var(--cip-accent-light) 50%, #818cf8 100%);
    opacity: 0;
    transition: opacity var(--cip-transition);
    z-index: 1;
}

.cip-about__card:hover::before {
    opacity: 1;
}

/* Description text-editor widget with .cip-about__intro class */
.cip-about__intro {
    max-width: 820px;
}

.cip-about__intro p {
    opacity: 0.85;
}

/* --------------------------------------------------------------------------
   15. Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes cipEdgeShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes cipFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.02); }
    66% { transform: translate(-15px, 15px) scale(0.98); }
}

@keyframes cipFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cipFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cipScrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* Animate elements — progressive enhancement */
.cip-js [data-animate] {
    opacity: 0;
    transform: translateY(30px);
}

.cip-js [data-animate="fade-in"] {
    transform: none;
}

.cip-js [data-animate].animated {
    animation: cipFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cip-js [data-animate="fade-in"].animated {
    animation-name: cipFadeIn;
}

/* --------------------------------------------------------------------------
   15. WP Admin Bar Compatibility
   -------------------------------------------------------------------------- */
body.admin-bar .cip-navbar {
    top: 32px;
}

body.admin-bar .cip-mobile-menu {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .cip-navbar {
        top: 46px;
    }
    body.admin-bar .cip-mobile-menu {
        top: 46px;
    }
}

/* --------------------------------------------------------------------------
   16. Responsive — Tablet (< 991px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 991px) {
    .cip-navbar__links,
    .cip-navbar__ctas {
        display: none;
    }

    .cip-navbar__hamburger {
        display: flex;
    }

    .cip-hero,
    .elementor-page .cip-hero {
        padding-top: calc(var(--cip-navbar-height) + 20px) !important;
        padding-bottom: 100px !important;
    }
}

/* --------------------------------------------------------------------------
   17. Responsive — Mobile (< 640px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
    :root {
        --cip-navbar-height: 68px;
    }

    .cip-navbar__logo-img {
        height: 34px;
    }

    .cip-hero__ctas {
        flex-direction: column;
        width: 100%;
    }

    .cip-hero__ctas .cip-btn,
    .cip-hero__ctas .elementor-button-wrapper {
        width: 100%;
        max-width: 320px;
    }

    .cip-hero__tag .elementor-heading-title,
    p.cip-hero__tag {
        font-size: 0.688rem;
        padding: 6px 16px;
    }

    .cip-hero__scroll {
        bottom: 24px;
    }

    .cip-mobile-menu__link {
        font-size: 1.25rem;
        padding: 12px 0;
    }

    .cip-section {
        padding: 60px 16px;
        min-height: auto;
    }

    .cip-hero__circle--1 {
        width: 300px;
        height: 300px;
    }

    .cip-hero__circle--2 {
        width: 200px;
        height: 200px;
    }

    .cip-hero__circle--3 {
        width: 120px;
        height: 120px;
    }
}

/* --------------------------------------------------------------------------
   18. Elementor Editor Overrides
   Hide navbar, decorations and pseudo-elements so they don't block editing
   -------------------------------------------------------------------------- */

/* Hide navbar completely in the editor — it covers the hero buttons */
.elementor-editor-active .cip-navbar,
.elementor-editor-active .cip-mobile-menu {
    display: none !important;
}

/* Hide decorative overlays in the editor */
.elementor-editor-active .cip-hero__decorations,
.elementor-editor-active .cip-hero__scroll-wrap {
    display: none !important;
}

/* Hide pseudo-element decorations in the editor */
.elementor-editor-active .cip-hero::before,
.elementor-editor-active .cip-hero::after {
    display: none !important;
}

/* Remove extra top padding in editor since navbar is hidden */
.elementor-editor-active .cip-hero {
    padding-top: 80px !important;
}

/* Ensure sections have proper anchor IDs for nav scrolling */
.elementor-page [id="el-cip"],
.elementor-page [id="programa"],
.elementor-page [id="nuestra-dinamica"],
.elementor-page [id="contacto"],
.elementor-page [id="postularme"],
.elementor-page [id="staff"] {
    scroll-margin-top: var(--cip-navbar-height);
}

/* --------------------------------------------------------------------------
   19. Footer — Elementor-native (editable in Elementor)
   CSS handles only decorative effects; layout is managed by Elementor containers.
   -------------------------------------------------------------------------- */

/* Outer wrapper — decorative pseudo-elements */
.cip-footer {
    position: relative;
    overflow: hidden;
}

/* Animated gradient top edge — mirrors navbar bottom edge */
.cip-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--cip-primary-dark) 0%,
        var(--cip-accent) 20%,
        var(--cip-accent-light) 40%,
        #818cf8 60%,
        var(--cip-accent) 80%,
        var(--cip-primary-dark) 100%
    );
    background-size: 200% 100%;
    animation: cipEdgeShift 6s ease-in-out infinite;
    z-index: 1;
}

/* Dot-pattern texture — matches hero */
.cip-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        rgba(255, 255, 255, 0.025) 1px,
        transparent 1px
    );
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

/* Content above pattern */
.cip-footer > .e-con-inner,
.cip-footer > .elementor-element,
.cip-footer > [class*="elementor-element"] {
    position: relative;
    z-index: 1;
}

/* Sponsor logos — white/grayscale + muted */
.cip-footer__sponsors .elementor-image img {
    filter: brightness(0) invert(1);
    opacity: 0.4;
    transition: opacity var(--cip-transition);
    object-fit: contain;
}

.cip-footer__sponsors .elementor-image img:hover {
    opacity: 0.7;
}

/* Center brand logo */
.cip-footer__brand .elementor-image img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity var(--cip-transition);
    object-fit: contain;
}

.cip-footer__brand .elementor-image img:hover {
    opacity: 1;
}

/* Social icons — override Elementor defaults for custom look */
.cip-footer .elementor-social-icon {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: all var(--cip-transition) !important;
}

.cip-footer .elementor-social-icon i {
    color: rgba(255, 255, 255, 0.5) !important;
    transition: color var(--cip-transition) !important;
}

.cip-footer .elementor-social-icon:hover {
    background-color: rgba(59, 79, 160, 0.25) !important;
    border-color: rgba(91, 111, 191, 0.35) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 79, 160, 0.25);
}

.cip-footer .elementor-social-icon:hover i {
    color: var(--cip-white) !important;
}

/* Back-to-top link (inside HTML widget) */
.cip-footer__back-top a,
a.cip-footer__back-top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--cip-font);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all var(--cip-transition);
}

.cip-footer__back-top a:hover,
a.cip-footer__back-top-link:hover {
    color: rgba(255, 255, 255, 0.6);
}

.cip-footer__back-top svg,
a.cip-footer__back-top-link svg {
    transition: transform var(--cip-transition);
}

.cip-footer__back-top a:hover svg,
a.cip-footer__back-top-link:hover svg {
    transform: translateY(-3px);
}

/* Hide decorative pseudo-elements in Elementor editor */
.elementor-editor-active .cip-footer::before,
.elementor-editor-active .cip-footer::after {
    display: none !important;
}

/* --------------------------------------------------------------------------
   20. Nuestra Dinámica Section — Elementor-native
   CSS handles decorative effects + card styling; layout via Elementor containers.
   Elementor structure:
     Section (.cip-dinamica) → Header area → Grid (.cip-dinamica__grid)
       → Cards (.cip-dinamica__card) with icon, number, title, text
   -------------------------------------------------------------------------- */

/* ---- Section wrapper ---- */
.cip-dinamica {
    position: relative;
    overflow: hidden;
}

/* Subtle chevron pattern — visually distinct from hero dot-pattern */
.cip-dinamica::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(135deg, rgba(30, 42, 94, 0.018) 25%, transparent 25%),
        linear-gradient(225deg, rgba(30, 42, 94, 0.018) 25%, transparent 25%),
        linear-gradient(315deg, rgba(30, 42, 94, 0.018) 25%, transparent 25%),
        linear-gradient(45deg, rgba(30, 42, 94, 0.018) 25%, transparent 25%);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Decorative radial glow — bottom-right */
.cip-dinamica::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    bottom: -20%;
    right: -12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 79, 160, 0.045) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Content above decorative layers */
.cip-dinamica > .e-con-inner {
    position: relative;
    z-index: 2;
}

/* ---- Section tag / badge ---- */
.cip-dinamica__tag .elementor-heading-title {
    display: inline-block;
    font-family: var(--cip-font);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cip-accent);
    padding: 8px 22px;
    background: rgba(59, 79, 160, 0.06);
    border: 1px solid rgba(59, 79, 160, 0.1);
    border-radius: 50px;
}

/* ---- Section title ---- */
.cip-dinamica__title .elementor-heading-title {
    font-family: var(--cip-font);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--cip-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* Gradient accent on a <span> inside the title (optional) */
.cip-dinamica__title .elementor-heading-title span {
    background: linear-gradient(135deg, var(--cip-accent) 0%, var(--cip-accent-light) 60%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Section subtitle ---- */
.cip-dinamica__subtitle p {
    font-family: var(--cip-font);
    font-size: 1.063rem;
    color: var(--cip-gray);
    line-height: 1.7;
}

/* ---- Cards grid container ---- */
.cip-dinamica__grid {
    position: relative;
}

/* Horizontal connector line between cards (desktop only) */
.cip-dinamica__grid::before {
    content: '';
    position: absolute;
    top: 72px; /* aligns with center of icon area */
    left: 16.67%;
    right: 16.67%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(59, 79, 160, 0.1) 15%,
        rgba(59, 79, 160, 0.15) 50%,
        rgba(59, 79, 160, 0.1) 85%,
        transparent 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* ---- Individual card ---- */
.cip-dinamica__card {
    position: relative;
    background: var(--cip-white);
    border-radius: var(--cip-radius-lg);
    border: 1px solid rgba(30, 42, 94, 0.06);
    transition:
        transform var(--cip-transition),
        box-shadow var(--cip-transition),
        border-color var(--cip-transition);
    overflow: hidden;
    z-index: 1;
}

/* Top gradient accent bar — reveals on hover */
.cip-dinamica__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cip-accent) 0%, var(--cip-accent-light) 50%, #818cf8 100%);
    opacity: 0;
    transition: opacity var(--cip-transition);
    z-index: 3;
}

/* Bottom-right decorative corner glow */
.cip-dinamica__card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 79, 160, 0.04) 0%, transparent 70%);
    transition: opacity var(--cip-transition);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

/* Card hover state */
.cip-dinamica__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(30, 42, 94, 0.1);
    border-color: rgba(59, 79, 160, 0.1);
}

.cip-dinamica__card:hover::before {
    opacity: 1;
}

.cip-dinamica__card:hover::after {
    opacity: 1;
}

/* Card inner content above pseudo-elements */
.cip-dinamica__card > .e-con-inner {
    position: relative;
    z-index: 1;
}

/* ---- Step number (large watermark) ---- */
.cip-dinamica__number .elementor-heading-title {
    font-family: var(--cip-font);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(59, 79, 160, 0.08);
    user-select: none;
    transition: -webkit-text-stroke-color var(--cip-transition);
}

.cip-dinamica__card:hover .cip-dinamica__number .elementor-heading-title {
    -webkit-text-stroke-color: rgba(59, 79, 160, 0.14);
}

/* ---- Icon wrapper ---- */
.cip-dinamica__icon {
    position: relative;
    z-index: 2;
}

/* The Elementor Icon widget inside .cip-dinamica__icon */
.cip-dinamica__icon .elementor-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 79, 160, 0.08) 0%, rgba(91, 111, 191, 0.13) 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6);
    transition: all var(--cip-transition);
    font-size: 26px !important;
    color: var(--cip-accent) !important;
}

.cip-dinamica__icon .elementor-icon i {
    color: var(--cip-accent) !important;
}

.cip-dinamica__icon .elementor-icon svg {
    fill: var(--cip-accent);
    width: 26px;
    height: 26px;
}

/* Icon hover — glow effect */
.cip-dinamica__card:hover .cip-dinamica__icon .elementor-icon {
    background: linear-gradient(135deg, rgba(59, 79, 160, 0.13) 0%, rgba(91, 111, 191, 0.2) 100%);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.6),
        0 4px 16px rgba(59, 79, 160, 0.12);
    transform: scale(1.06);
}

/* ---- Card title ---- */
.cip-dinamica__card-title .elementor-heading-title {
    font-family: var(--cip-font);
    font-size: 1.188rem;
    font-weight: 700;
    color: var(--cip-primary);
    line-height: 1.35;
}

/* ---- Card description ---- */
.cip-dinamica__card-text p {
    font-family: var(--cip-font);
    font-size: 0.938rem;
    color: var(--cip-gray);
    line-height: 1.75;
}

/* ---- Staggered animation via data-delay (used by landing.js) ----
   Applied in Elementor via Custom Attributes: data-animate|fade-up, data-delay|150 etc. */
.cip-js .cip-dinamica__card[data-animate] {
    opacity: 0;
    transform: translateY(30px);
}

.cip-js .cip-dinamica__card[data-animate].animated {
    animation: cipFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---- Responsive — Tablet (< 991px) ---- */
@media screen and (max-width: 991px) {
    /* Hide connector line on tablet */
    .cip-dinamica__grid::before {
        display: none;
    }

    .cip-dinamica__number .elementor-heading-title {
        font-size: 4rem;
    }
}

/* ---- Responsive — Mobile (< 640px) ---- */
@media screen and (max-width: 640px) {
    .cip-dinamica__number .elementor-heading-title {
        font-size: 3.5rem;
    }

    .cip-dinamica__icon .elementor-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
        font-size: 22px !important;
    }

    .cip-dinamica__icon .elementor-icon svg {
        width: 22px;
        height: 22px;
    }

    .cip-dinamica__card-title .elementor-heading-title {
        font-size: 1.1rem;
    }
}

/* ---- Hide decorative pseudo-elements in Elementor editor ---- */
.elementor-editor-active .cip-dinamica::before,
.elementor-editor-active .cip-dinamica::after {
    display: none !important;
}

.elementor-editor-active .cip-dinamica__grid::before {
    display: none !important;
}

.elementor-editor-active .cip-dinamica__card::before,
.elementor-editor-active .cip-dinamica__card::after {
    display: none !important;
}

/* --------------------------------------------------------------------------
   21. Programa Section — Elementor-native (Roadmap / Timeline)
   CSS handles decorative effects + step styling; layout via Elementor containers.
   Elementor structure:
     Section (.cip-programa, ID: programa) → Header area
       → Roadmap grid (.cip-programa__roadmap)
         → Steps (.cip-programa__step) with number badge, icon, label, title
       → Urgency (.cip-programa__urgency) with icon + text
       → CTA button
   -------------------------------------------------------------------------- */

/* ---- Section wrapper ---- */
.cip-programa {
    position: relative;
    overflow: hidden;
}

/* Fine grid pattern — distinct from hero dots and dinamica chevrons */
.cip-programa::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(0deg, rgba(30, 42, 94, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 42, 94, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Decorative radial glow — top-left (opposite to dinamica's bottom-right) */
.cip-programa::after {
    content: '';
    position: absolute;
    width: 550px;
    height: 550px;
    top: -15%;
    left: -12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 79, 160, 0.04) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Content above decorative layers */
.cip-programa > .e-con-inner {
    position: relative;
    z-index: 2;
}

/* ---- Section tag / badge ---- */
.cip-programa__tag .elementor-heading-title {
    display: inline-block;
    font-family: var(--cip-font);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cip-accent);
    padding: 8px 22px;
    background: rgba(59, 79, 160, 0.06);
    border: 1px solid rgba(59, 79, 160, 0.1);
    border-radius: 50px;
}

/* ---- Section title ---- */
.cip-programa__title .elementor-heading-title {
    font-family: var(--cip-font);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--cip-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* Gradient accent on <span> inside the title */
.cip-programa__title .elementor-heading-title span {
    background: linear-gradient(135deg, var(--cip-accent) 0%, var(--cip-accent-light) 60%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Subtitle / Objetivo General ---- */
.cip-programa__subtitle p {
    font-family: var(--cip-font);
    font-size: 1.063rem;
    color: var(--cip-gray);
    line-height: 1.7;
}

/* ---- Roadmap / Timeline grid container ---- */
.cip-programa__roadmap {
    position: relative;
}

/* Horizontal connector line between step badges (desktop only) */
.cip-programa__roadmap::before {
    content: '';
    position: absolute;
    top: 48px; /* aligns with center of step number badges */
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(59, 79, 160, 0.08) 10%,
        rgba(91, 111, 191, 0.16) 50%,
        rgba(59, 79, 160, 0.08) 90%,
        transparent 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* ---- Individual step card ---- */
.cip-programa__step {
    position: relative;
    background: var(--cip-white);
    border-radius: var(--cip-radius-lg);
    border: 1px solid rgba(30, 42, 94, 0.06);
    overflow: hidden;
    z-index: 1;
    transition:
        transform var(--cip-transition),
        box-shadow var(--cip-transition),
        border-color var(--cip-transition);
}

/* Top gradient accent bar — reveals on hover */
.cip-programa__step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cip-accent) 0%, var(--cip-accent-light) 50%, #818cf8 100%);
    opacity: 0;
    transition: opacity var(--cip-transition);
    z-index: 3;
}

/* Bottom-right decorative corner glow */
.cip-programa__step::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 79, 160, 0.04) 0%, transparent 70%);
    transition: opacity var(--cip-transition);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

/* Step hover state */
.cip-programa__step:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(30, 42, 94, 0.1);
    border-color: rgba(59, 79, 160, 0.12);
}

.cip-programa__step:hover::before {
    opacity: 1;
}

.cip-programa__step:hover::after {
    opacity: 1;
}

/* Card inner content above pseudo-elements */
.cip-programa__step > .e-con-inner {
    position: relative;
    z-index: 1;
}

/* ---- Step number — circular badge / timeline node ---- */
.cip-programa__step-number .elementor-heading-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cip-white);
    border: 2px solid rgba(59, 79, 160, 0.12);
    font-family: var(--cip-font);
    font-size: 0.938rem;
    font-weight: 800;
    color: var(--cip-accent);
    box-shadow: 0 2px 8px rgba(30, 42, 94, 0.06);
    transition: all var(--cip-transition);
    position: relative;
    z-index: 2;
}

.cip-programa__step:hover .cip-programa__step-number .elementor-heading-title {
    background: var(--cip-accent);
    color: var(--cip-white);
    border-color: var(--cip-accent);
    box-shadow: 0 4px 16px rgba(59, 79, 160, 0.25);
    transform: scale(1.08);
}

/* ---- Step icon ---- */
.cip-programa__step-icon {
    position: relative;
    z-index: 2;
}

.cip-programa__step-icon .elementor-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 79, 160, 0.08) 0%, rgba(91, 111, 191, 0.13) 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6);
    transition: all var(--cip-transition);
    font-size: 24px !important;
    color: var(--cip-accent) !important;
}

.cip-programa__step-icon .elementor-icon i {
    color: var(--cip-accent) !important;
}

.cip-programa__step-icon .elementor-icon svg {
    fill: var(--cip-accent);
    width: 24px;
    height: 24px;
}

.cip-programa__step:hover .cip-programa__step-icon .elementor-icon {
    background: linear-gradient(135deg, rgba(59, 79, 160, 0.13) 0%, rgba(91, 111, 191, 0.2) 100%);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.6),
        0 4px 16px rgba(59, 79, 160, 0.12);
    transform: scale(1.06);
}

/* ---- Step label (Módulo I, II, etc.) ---- */
.cip-programa__step-label .elementor-heading-title {
    font-family: var(--cip-font);
    font-size: 0.688rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cip-accent-light);
}

/* ---- Step title ---- */
.cip-programa__step-title .elementor-heading-title {
    font-family: var(--cip-font);
    font-size: 1.063rem;
    font-weight: 700;
    color: var(--cip-primary);
    line-height: 1.4;
}

/* ---- Urgency callout ---- */
.cip-programa__urgency {
    position: relative;
    overflow: hidden;
}

/* Left accent bar */
.cip-programa__urgency::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--cip-accent) 0%, var(--cip-accent-light) 50%, #818cf8 100%);
    border-radius: 4px 0 0 4px;
    z-index: 1;
}

/* Subtle animated shimmer */
.cip-programa__urgency::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(59, 79, 160, 0.03) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: cipUrgencyShimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.cip-programa__urgency > .e-con-inner {
    position: relative;
    z-index: 1;
}

/* Urgency text styling */
.cip-programa__urgency-text p {
    font-family: var(--cip-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--cip-primary);
    line-height: 1.5;
}

.cip-programa__urgency-text p strong,
.cip-programa__urgency-text strong {
    color: var(--cip-accent);
    font-weight: 700;
}

/* Urgency icon */
.cip-programa__urgency-icon .elementor-icon {
    color: var(--cip-accent) !important;
    font-size: 20px !important;
}

.cip-programa__urgency-icon .elementor-icon i {
    color: var(--cip-accent) !important;
}

/* ---- Urgency shimmer animation ---- */
@keyframes cipUrgencyShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ---- Staggered animation via data-delay ---- */
.cip-js .cip-programa__step[data-animate] {
    opacity: 0;
    transform: translateY(30px);
}

.cip-js .cip-programa__step[data-animate].animated {
    animation: cipFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---- Responsive — Tablet (< 991px) ---- */
@media screen and (max-width: 991px) {
    .cip-programa__roadmap::before {
        display: none;
    }

    .cip-programa__step-number .elementor-heading-title {
        width: 44px;
        height: 44px;
        font-size: 0.875rem;
    }
}

/* ---- Responsive — Mobile (< 640px) ---- */
@media screen and (max-width: 640px) {
    .cip-programa__step-number .elementor-heading-title {
        width: 40px;
        height: 40px;
        font-size: 0.813rem;
    }

    .cip-programa__step-icon .elementor-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 20px !important;
    }

    .cip-programa__step-icon .elementor-icon svg {
        width: 20px;
        height: 20px;
    }

    .cip-programa__step-title .elementor-heading-title {
        font-size: 1rem;
    }

    .cip-programa__step-label .elementor-heading-title {
        font-size: 0.625rem;
    }
}

/* ---- Editor overrides ---- */
.elementor-editor-active .cip-programa::before,
.elementor-editor-active .cip-programa::after {
    display: none !important;
}

.elementor-editor-active .cip-programa__roadmap::before {
    display: none !important;
}

.elementor-editor-active .cip-programa__step::before,
.elementor-editor-active .cip-programa__step::after {
    display: none !important;
}

.elementor-editor-active .cip-programa__urgency::before,
.elementor-editor-active .cip-programa__urgency::after {
    display: none !important;
}

/* --------------------------------------------------------------------------
   22. Contacto / Postulación Section — Elementor-native
   Dark-themed two-panel form section. Cards are white on navy for max contrast.
   CSS handles decorative effects + card styling; layout via Elementor containers.
   Elementor structure:
     Section (.cip-contacto, ID: contacto) → Header area
       → Grid (.cip-contacto__grid) — 2 columns
         → Card A (.cip-contacto__card .cip-contacto__card--programa, ID: postularme)
           → Header (.cip-contacto__card-header)
             → Icon (.cip-contacto__card-icon)
             → Title (.cip-contacto__card-title)
             → Subtitle (.cip-contacto__card-subtitle)
           → Info bar (.cip-contacto__info)
             → Info items (.cip-contacto__info-item) × 2
           → Form (.cip-contacto__form) — SureForms shortcode
         → Card B (.cip-contacto__card .cip-contacto__card--staff, ID: staff)
           → Same structure, fewer fields
   -------------------------------------------------------------------------- */

/* ---- Section wrapper (dark background) ---- */
.cip-contacto {
    position: relative;
    overflow: hidden;
}

/* Diagonal cross-hatch pattern — unique to contacto */
.cip-contacto::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 0;
}

/* Decorative radial glow — centered bottom */
.cip-contacto::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    bottom: -30%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 111, 191, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Content above decorative layers */
.cip-contacto > .e-con-inner {
    position: relative;
    z-index: 2;
}

/* ---- Section tag / badge (light variant for dark bg) ---- */
.cip-contacto__tag .elementor-heading-title {
    display: inline-block;
    font-family: var(--cip-font);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cip-accent-light);
    padding: 8px 22px;
    background: rgba(91, 111, 191, 0.1);
    border: 1px solid rgba(91, 111, 191, 0.18);
    border-radius: 50px;
}

/* ---- Section title (light text on dark) ---- */
.cip-contacto__title .elementor-heading-title {
    font-family: var(--cip-font);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--cip-white);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* Gradient accent on <span> inside the title */
.cip-contacto__title .elementor-heading-title span {
    background: linear-gradient(135deg, #a5b4fc 0%, var(--cip-accent-light) 60%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Section subtitle ---- */
.cip-contacto__subtitle p {
    font-family: var(--cip-font);
    font-size: 1.063rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* ---- Cards grid container ---- */
.cip-contacto__grid {
    position: relative;
}

/* Vertical divider between cards (desktop only) */
.cip-contacto__grid::before {
    content: '';
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 50%;
    width: 1px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(91, 111, 191, 0.15) 20%,
        rgba(91, 111, 191, 0.2) 50%,
        rgba(91, 111, 191, 0.15) 80%,
        transparent 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* ---- Individual card ---- */
.cip-contacto__card {
    position: relative;
    background: var(--cip-white);
    border-radius: var(--cip-radius-lg);
    border: 1px solid rgba(30, 42, 94, 0.06);
    overflow: hidden;
    z-index: 1;
    transition:
        transform var(--cip-transition),
        box-shadow var(--cip-transition),
        border-color var(--cip-transition);
}

/* Top gradient accent bar — always visible (strong CTA presence) */
.cip-contacto__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cip-accent) 0%, var(--cip-accent-light) 50%, #818cf8 100%);
    opacity: 0.6;
    transition: opacity var(--cip-transition);
    z-index: 3;
}

/* Bottom-right decorative corner glow */
.cip-contacto__card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 79, 160, 0.04) 0%, transparent 70%);
    transition: opacity var(--cip-transition);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

/* Card hover state */
.cip-contacto__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(10, 14, 40, 0.2);
    border-color: rgba(59, 79, 160, 0.12);
}

.cip-contacto__card:hover::before {
    opacity: 1;
}

.cip-contacto__card:hover::after {
    opacity: 1;
}

/* Card inner content above pseudo-elements */
.cip-contacto__card > .e-con-inner {
    position: relative;
    z-index: 1;
}

/* ---- Card variant: Programa (Option A) — warmer, more prominent ---- */
.cip-contacto__card--programa::before {
    height: 4px;
    opacity: 1;
    background: linear-gradient(90deg, var(--cip-accent) 0%, var(--cip-accent-light) 40%, #818cf8 70%, #a5b4fc 100%);
}

/* ---- Card variant: Staff (Option B) — cooler, refined ---- */
.cip-contacto__card--staff::before {
    height: 3px;
    opacity: 0.5;
    background: linear-gradient(90deg, rgba(59, 79, 160, 0.5) 0%, var(--cip-accent) 50%, rgba(59, 79, 160, 0.5) 100%);
}

.cip-contacto__card--staff:hover::before {
    opacity: 0.8;
}

/* ---- Card header area ---- */
.cip-contacto__card-header {
    position: relative;
}

/* ---- Card icon ---- */
.cip-contacto__card-icon {
    position: relative;
    z-index: 2;
}

.cip-contacto__card-icon .elementor-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 79, 160, 0.08) 0%, rgba(91, 111, 191, 0.13) 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6);
    transition: all var(--cip-transition);
    font-size: 24px !important;
    color: var(--cip-accent) !important;
}

.cip-contacto__card-icon .elementor-icon i {
    color: var(--cip-accent) !important;
}

.cip-contacto__card-icon .elementor-icon svg {
    fill: var(--cip-accent);
    width: 24px;
    height: 24px;
}

.cip-contacto__card:hover .cip-contacto__card-icon .elementor-icon {
    background: linear-gradient(135deg, rgba(59, 79, 160, 0.13) 0%, rgba(91, 111, 191, 0.2) 100%);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.6),
        0 4px 16px rgba(59, 79, 160, 0.12);
    transform: scale(1.06);
}

/* ---- Card title ---- */
.cip-contacto__card-title .elementor-heading-title {
    font-family: var(--cip-font);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--cip-primary);
    line-height: 1.3;
}

/* ---- Card subtitle ---- */
.cip-contacto__card-subtitle p {
    font-family: var(--cip-font);
    font-size: 0.938rem;
    color: var(--cip-gray);
    line-height: 1.6;
}

/* ---- Info bar (date / location badges) ---- */
.cip-contacto__info {
    position: relative;
}

/* ---- Individual info item (icon + label + value) ---- */
.cip-contacto__info-item {
    position: relative;
    background: var(--cip-light);
    border-radius: var(--cip-radius);
    border: 1px solid rgba(30, 42, 94, 0.04);
    transition: border-color var(--cip-transition);
}

.cip-contacto__card:hover .cip-contacto__info-item {
    border-color: rgba(59, 79, 160, 0.08);
}

/* Info item icon */
.cip-contacto__info-icon .elementor-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(59, 79, 160, 0.06);
    font-size: 16px !important;
    color: var(--cip-accent) !important;
}

.cip-contacto__info-icon .elementor-icon i {
    color: var(--cip-accent) !important;
}

/* Info item label ("Inicio", "Sede") */
.cip-contacto__info-label .elementor-heading-title {
    font-family: var(--cip-font);
    font-size: 0.688rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cip-gray);
}

/* Info item value ("Martes 31 de marzo", "CCI&ALP...") */
.cip-contacto__info-value .elementor-heading-title {
    font-family: var(--cip-font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cip-primary);
    line-height: 1.4;
}

/* ---- Form area (SureForms wrapper) ---- */
.cip-contacto__form {
    position: relative;
}

/* Separator line above form */
.cip-contacto__form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(30, 42, 94, 0.08) 20%,
        rgba(30, 42, 94, 0.08) 80%,
        transparent 100%
    );
}

/* Contact Form 7 — field overrides for CIP design system */
.cip-contacto__form .wpcf7-form {
    font-family: var(--cip-font);
}

.cip-contacto__form .wpcf7-form label {
    display: block;
    font-family: var(--cip-font);
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--cip-primary);
    margin-bottom: 6px;
}

.cip-contacto__form .wpcf7-form-control:not(.wpcf7-submit) {
    font-family: var(--cip-font);
    font-size: 0.875rem;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(30, 42, 94, 0.12);
    border-radius: var(--cip-radius);
    background: var(--cip-white);
    color: var(--cip-dark);
    transition: all var(--cip-transition);
    outline: none;
}

.cip-contacto__form .wpcf7-form-control:not(.wpcf7-submit):focus {
    border-color: var(--cip-accent);
    box-shadow: 0 0 0 3px rgba(59, 79, 160, 0.08);
}

.cip-contacto__form .wpcf7-textarea {
    min-height: 140px;
    resize: vertical;
}

.cip-contacto__form .wpcf7-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Row layout for form structure */
.cip-cf7-row {
    margin-bottom: 20px;
}

.cip-cf7-row--half {
    display: flex;
    gap: 16px;
}

.cip-cf7-row--half .cip-cf7-col {
    flex: 1;
}

.cip-cf7-row--submit {
    margin-bottom: 0;
    padding-top: 8px;
}

.cip-cf7-help {
    font-size: 0.75rem;
    color: var(--cip-gray);
    margin: 4px 0 0;
    line-height: 1.4;
}

/* CF7 submit button — CIP pill style */
.cip-contacto__form .wpcf7-submit,
.cip-contacto__form .cip-cf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-family: var(--cip-font);
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--cip-white);
    background: var(--cip-accent);
    border: 2px solid var(--cip-accent);
    border-radius: 50px;
    padding: 14px 32px;
    cursor: pointer;
    transition: all var(--cip-transition);
}

.cip-contacto__form .wpcf7-submit:hover,
.cip-contacto__form .cip-cf7-submit:hover {
    background: var(--cip-accent-light);
    border-color: var(--cip-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 79, 160, 0.35);
}

/* Staff card submit — outline variant */
.cip-contacto__card--staff .cip-contacto__form .wpcf7-submit,
.cip-contacto__card--staff .cip-contacto__form .cip-cf7-submit {
    background: transparent;
    color: var(--cip-accent);
    border: 2px solid var(--cip-accent);
}

.cip-contacto__card--staff .cip-contacto__form .wpcf7-submit:hover,
.cip-contacto__card--staff .cip-contacto__form .cip-cf7-submit:hover {
    background: var(--cip-accent);
    color: var(--cip-white);
}

/* CF7 validation messages */
.cip-contacto__form .wpcf7-not-valid-tip {
    font-family: var(--cip-font);
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 4px;
}

.cip-contacto__form .wpcf7-response-output {
    font-family: var(--cip-font);
    font-size: 0.875rem;
    border-radius: var(--cip-radius);
    padding: 12px 16px;
    margin: 16px 0 0;
}

.cip-contacto__form .wpcf7-mail-sent-ok {
    border-color: #16a34a;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.05);
}

/* CF7 spinner */
.cip-contacto__form .wpcf7-spinner {
    margin: 12px auto 0;
    display: block;
}

/* CF7 responsive — stack half-rows on mobile */
@media screen and (max-width: 640px) {
    .cip-cf7-row--half {
        flex-direction: column;
        gap: 20px;
    }
}

/* ---- "O" divider between cards (mobile only) ---- */
.cip-contacto__divider .elementor-heading-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(91, 111, 191, 0.08);
    border: 1px solid rgba(91, 111, 191, 0.15);
    font-family: var(--cip-font);
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---- Staggered animation ---- */
.cip-js .cip-contacto__card[data-animate] {
    opacity: 0;
    transform: translateY(30px);
}

.cip-js .cip-contacto__card[data-animate].animated {
    animation: cipFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---- Responsive — Tablet (< 991px) ---- */
@media screen and (max-width: 991px) {
    /* Hide vertical divider on tablet */
    .cip-contacto__grid::before {
        display: none;
    }

    .cip-contacto__card-title .elementor-heading-title {
        font-size: 1.25rem;
    }
}

/* ---- Responsive — Mobile (< 640px) ---- */
@media screen and (max-width: 640px) {
    .cip-contacto__card-title .elementor-heading-title {
        font-size: 1.125rem;
    }

    .cip-contacto__card-icon .elementor-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 20px !important;
    }

    .cip-contacto__card-icon .elementor-icon svg {
        width: 20px;
        height: 20px;
    }

    .cip-contacto__info-icon .elementor-icon {
        width: 32px;
        height: 32px;
        border-radius: 6px;
        font-size: 14px !important;
    }
}

/* ---- Editor overrides ---- */
.elementor-editor-active .cip-contacto::before,
.elementor-editor-active .cip-contacto::after {
    display: none !important;
}

.elementor-editor-active .cip-contacto__grid::before {
    display: none !important;
}

.elementor-editor-active .cip-contacto__card::before,
.elementor-editor-active .cip-contacto__card::after {
    display: none !important;
}

.elementor-editor-active .cip-contacto__form::before {
    display: none !important;
}

/* Editor preview: toggle visible but non-functional, both cards stay editable */
.cip-contacto__toggle--editor {
    pointer-events: none;
    opacity: 0.65;
}

.cip-contacto__toggle--editor::after {
    content: 'Vista previa — activo en el frontend';
    display: block;
    text-align: center;
    font-family: var(--cip-font);
    font-size: 0.688rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.03em;
    margin-top: 8px;
}

/* --------------------------------------------------------------------------
   22b. Form Toggle Selector — Premium Card Tabs
   Card-based selector to switch between Programa and Staff form cards.
   Each option is a frosted-glass card with icon, title, and subtitle.
   Active card features luminous gradient glow + accent icon.
   Injected via JS for progressive enhancement — if JS fails, both cards
   remain visible side-by-side as the original layout.
   -------------------------------------------------------------------------- */

/* ---- Toggle wrapper ---- */
.cip-contacto__toggle {
    display: flex;
    justify-content: center;
    padding-bottom: 36px;
    position: relative;
    z-index: 2;
    animation: cipToggleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes cipToggleIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Track: card grid ---- */
.cip-contacto__toggle-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 560px;
    width: 100%;
}

/* ---- Hide pill indicator (not used in card layout) ---- */
.cip-contacto__toggle-indicator {
    display: none !important;
}

/* ---- Card button ---- */
.cip-contacto__toggle-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    font-family: var(--cip-font);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(91, 111, 191, 0.1);
    border-radius: 14px;
    cursor: pointer;
    outline: none;
    color: rgba(255, 255, 255, 0.38);
    transition:
        background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.35s ease,
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
    white-space: nowrap;
}

/* Top highlight shimmer */
.cip-contacto__toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* Bottom accent line */
.cip-contacto__toggle-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cip-accent-light), #818cf8, transparent);
    border-radius: 2px 2px 0 0;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Hover ---- */
.cip-contacto__toggle-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(91, 111, 191, 0.22);
    color: rgba(255, 255, 255, 0.65);
    transform: translateY(-2px);
}

.cip-contacto__toggle-btn:hover::before {
    opacity: 1;
}

/* ---- Focus visible ---- */
.cip-contacto__toggle-btn:focus-visible {
    outline: 2px solid var(--cip-accent-light);
    outline-offset: 3px;
}

/* ---- Icon container ---- */
.cip-contacto__toggle-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(91, 111, 191, 0.07);
    border: 1px solid rgba(91, 111, 191, 0.06);
    transition:
        background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cip-contacto__toggle-icon i {
    font-size: 17px;
    transition: color 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Label group ---- */
.cip-contacto__toggle-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    min-width: 0;
}

.cip-contacto__toggle-title {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.cip-contacto__toggle-desc {
    font-size: 0.72rem;
    font-weight: 400;
    opacity: 0.55;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

/* ---- ACTIVE STATE ---- */
.cip-contacto__toggle-btn--active {
    background: rgba(59, 79, 160, 0.1);
    border-color: rgba(91, 111, 191, 0.28);
    color: var(--cip-white);
    box-shadow:
        0 0 0 1px rgba(91, 111, 191, 0.06),
        0 8px 30px rgba(59, 79, 160, 0.18),
        0 2px 8px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cip-contacto__toggle-btn--active::before {
    opacity: 1;
    background: linear-gradient(90deg, transparent, rgba(165, 180, 252, 0.1), transparent);
}

.cip-contacto__toggle-btn--active::after {
    opacity: 1;
    transform: scaleX(1);
}

.cip-contacto__toggle-btn--active:hover {
    color: var(--cip-white);
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(91, 111, 191, 0.1),
        0 12px 36px rgba(59, 79, 160, 0.22),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Active icon */
.cip-contacto__toggle-btn--active .cip-contacto__toggle-icon {
    background: linear-gradient(135deg, var(--cip-accent) 0%, var(--cip-accent-light) 100%);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(59, 79, 160, 0.35);
    transform: scale(1.04);
}

.cip-contacto__toggle-btn--active .cip-contacto__toggle-icon i {
    color: var(--cip-white);
    transform: scale(1.06);
}

/* Active description */
.cip-contacto__toggle-btn--active .cip-contacto__toggle-desc {
    opacity: 0.65;
}

/* ---- Grid modifications when toggle is active ---- */
.cip-contacto__grid--toggled {
    justify-content: center !important;
}

.cip-contacto__grid--toggled::before {
    display: none !important;
}

/* Hidden card */
.cip-contacto__card.cip-contacto__card--hidden {
    display: none !important;
}

/* Visible card expands and centers */
.cip-contacto__grid--toggled .cip-contacto__card:not(.cip-contacto__card--hidden) {
    --width: 100% !important;
    width: 100% !important;
    max-width: 640px !important;
}

/* Entry animation when switching cards */
.cip-contacto__card.cip-contacto__card--entering {
    animation: cipCardSwitch 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes cipCardSwitch {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---- Toggle responsive — Mobile ---- */
@media screen and (max-width: 640px) {
    .cip-contacto__toggle {
        padding-bottom: 28px;
    }

    .cip-contacto__toggle-track {
        gap: 10px;
    }

    .cip-contacto__toggle-btn {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px 10px;
        gap: 10px;
    }

    .cip-contacto__toggle-label {
        text-align: center;
        align-items: center;
    }

    .cip-contacto__toggle-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .cip-contacto__toggle-icon i {
        font-size: 15px;
    }

    .cip-contacto__toggle-title {
        font-size: 0.813rem;
    }

    .cip-contacto__toggle-desc {
        font-size: 0.688rem;
    }
}

@media screen and (max-width: 380px) {
    .cip-contacto__toggle-btn {
        padding: 12px 8px;
        gap: 8px;
    }

    .cip-contacto__toggle-desc {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   23. Decorative Section Shapes — Visual Interest Layer
   Geometric accents injected via JS into each section container.
   Adds depth and visual rhythm between content blocks.

   Shapes:
     • Orb     — large blurred gradient circle (floating animation)
     • Ring    — dashed outline circle (slow rotation)
     • Cross   — small + accent (static)
     • Diamond — small rotated square outline (static)
     • Dots    — 3×3 dot grid cluster (static)

   Note: Each section already uses ::before/::after for background patterns
   and radial glows. These shapes complement those as separate DOM elements.
   -------------------------------------------------------------------------- */

/* ---- About section: ensure positioning context for decorations ---- */
[id="el-cip"] {
    position: relative;
    overflow: hidden;
}

/* ---- Shared base ---- */
.cip-deco {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

/* Content layer must sit above decorations in every section.
   Elementor e-con-full containers have NO .e-con-inner wrapper —
   child .elementor-element divs sit directly inside the section.
   Target both structures so content is always above shapes (z:1). */
[id="el-cip"] > .e-con-inner,
[id="el-cip"] > .elementor-element,
.cip-dinamica > .e-con-inner,
.cip-dinamica > .elementor-element,
.cip-programa > .e-con-inner,
.cip-programa > .elementor-element,
.cip-contacto > .e-con-inner,
.cip-contacto > .elementor-element {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   23a. Shape Type Definitions
   ========================================================================== */

/* ---- Orb — blurred gradient circle ---- */
.cip-deco--orb {
    border-radius: 50%;
    filter: blur(45px);
}

/* ---- Ring — dashed outlined circle ---- */
.cip-deco--ring {
    border-radius: 50%;
    border: 2px dashed rgba(59, 79, 160, 0.2);
    background: transparent;
}

/* Ring — light variant for dark backgrounds */
.cip-deco--ring-light {
    border-color: rgba(165, 180, 252, 0.18);
}

/* ---- Cross — small + accent ---- */
.cip-deco--cross {
    width: 24px;
    height: 24px;
}

.cip-deco--cross::before,
.cip-deco--cross::after {
    content: '';
    position: absolute;
    border-radius: 1px;
    background: rgba(59, 79, 160, 0.25);
}

.cip-deco--cross::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.cip-deco--cross::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* ---- Diamond — rotated square outline ---- */
.cip-deco--diamond {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(59, 79, 160, 0.22);
    transform: rotate(45deg);
}

.cip-deco--diamond-light {
    border-color: rgba(165, 180, 252, 0.2);
}

/* ---- Dots — 3×3 dot grid cluster ---- */
.cip-deco--dots {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    color: rgba(59, 79, 160, 0.25);
    background: currentColor;
    box-shadow:
        16px 0 0 currentColor,
        32px 0 0 currentColor,
        0 16px 0 currentColor,
        16px 16px 0 currentColor,
        32px 16px 0 currentColor,
        0 32px 0 currentColor,
        16px 32px 0 currentColor,
        32px 32px 0 currentColor;
}

.cip-deco--dots-light {
    color: rgba(165, 180, 252, 0.22);
}

/* ==========================================================================
   23b. Per-Section Positions
   ========================================================================== */

/* ---- About section (#el-cip) ---- */
.cip-deco--about-orb {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(59, 79, 160, 0.3) 0%, rgba(91, 111, 191, 0.1) 50%, transparent 100%);
    top: -8%;
    right: -7%;
    animation: cipDecoFloat1 28s ease-in-out infinite;
}

.cip-deco--about-ring {
    width: 240px;
    height: 240px;
    bottom: 2%;
    left: -4%;
    animation: cipDecoSpin 55s linear infinite;
}

.cip-deco--about-dots {
    bottom: 18%;
    right: 6%;
}

.cip-deco--about-orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(91, 111, 191, 0.25) 0%, rgba(59, 79, 160, 0.08) 55%, transparent 100%);
    bottom: 5%;
    left: 8%;
    animation: cipDecoFloat2 22s ease-in-out infinite;
}

.cip-deco--about-orb-3 {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(59, 79, 160, 0.2) 0%, transparent 60%);
    top: 40%;
    right: 5%;
    animation: cipDecoFloat1 32s ease-in-out infinite;
}

.cip-deco--about-ring-2 {
    width: 160px;
    height: 160px;
    top: 8%;
    left: 5%;
    animation: cipDecoSpin 42s linear infinite reverse;
}

.cip-deco--about-cross {
    top: 25%;
    right: 12%;
}

.cip-deco--about-diamond {
    top: 50%;
    left: 10%;
}

.cip-deco--about-cross-2 {
    width: 20px;
    height: 20px;
    bottom: 30%;
    left: 22%;
}

/* ---- Dinámica section ---- */
.cip-deco--dinamica-orb {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(91, 111, 191, 0.28) 0%, rgba(59, 79, 160, 0.08) 50%, transparent 100%);
    top: 25%;
    left: -6%;
    animation: cipDecoFloat2 24s ease-in-out infinite;
}

.cip-deco--dinamica-ring {
    width: 200px;
    height: 200px;
    top: -5%;
    right: 3%;
    animation: cipDecoSpin 48s linear infinite reverse;
}

.cip-deco--dinamica-diamond {
    top: 12%;
    right: 10%;
}

.cip-deco--dinamica-orb-2 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(59, 79, 160, 0.22) 0%, rgba(91, 111, 191, 0.06) 55%, transparent 100%);
    bottom: -5%;
    right: 5%;
    animation: cipDecoFloat1 20s ease-in-out infinite;
}

.cip-deco--dinamica-orb-3 {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(91, 111, 191, 0.2) 0%, transparent 60%);
    top: 5%;
    left: 12%;
    animation: cipDecoFloat2 30s ease-in-out infinite;
}

.cip-deco--dinamica-ring-2 {
    width: 170px;
    height: 170px;
    bottom: 8%;
    left: 3%;
    animation: cipDecoSpin 50s linear infinite;
}

.cip-deco--dinamica-cross {
    top: 45%;
    left: 7%;
}

.cip-deco--dinamica-dots {
    bottom: 12%;
    right: 8%;
}

.cip-deco--dinamica-diamond-2 {
    bottom: 22%;
    right: 18%;
}

/* ---- Programa section ---- */
.cip-deco--programa-orb {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(59, 79, 160, 0.28) 0%, rgba(91, 111, 191, 0.08) 55%, transparent 100%);
    bottom: -10%;
    right: -6%;
    animation: cipDecoFloat1 26s ease-in-out infinite;
}

.cip-deco--programa-ring {
    width: 220px;
    height: 220px;
    top: 0%;
    left: -5%;
    animation: cipDecoSpin 52s linear infinite;
}

.cip-deco--programa-cross {
    top: 10%;
    left: 7%;
}

.cip-deco--programa-orb-2 {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(91, 111, 191, 0.24) 0%, rgba(59, 79, 160, 0.06) 55%, transparent 100%);
    top: -5%;
    right: 8%;
    animation: cipDecoFloat2 22s ease-in-out infinite;
}

.cip-deco--programa-orb-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(59, 79, 160, 0.2) 0%, transparent 60%);
    top: 45%;
    left: 3%;
    animation: cipDecoFloat1 28s ease-in-out infinite;
}

.cip-deco--programa-ring-2 {
    width: 180px;
    height: 180px;
    bottom: 5%;
    right: 3%;
    animation: cipDecoSpin 46s linear infinite reverse;
}

.cip-deco--programa-diamond {
    top: 35%;
    right: 10%;
}

.cip-deco--programa-dots {
    bottom: 18%;
    left: 12%;
}

.cip-deco--programa-cross-2 {
    width: 20px;
    height: 20px;
    top: 22%;
    right: 18%;
}

/* ---- Contacto section (dark bg) ---- */
.cip-deco--contacto-orb {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.28) 0%, rgba(91, 111, 191, 0.1) 50%, transparent 100%);
    top: -6%;
    right: -5%;
    animation: cipDecoFloat2 25s ease-in-out infinite;
}

.cip-deco--contacto-ring {
    width: 200px;
    height: 200px;
    bottom: 5%;
    left: -3%;
    animation: cipDecoSpin 45s linear infinite reverse;
}

.cip-deco--contacto-dots {
    top: 35%;
    left: 4%;
}

.cip-deco--contacto-orb-2 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(91, 111, 191, 0.22) 0%, rgba(129, 140, 248, 0.06) 55%, transparent 100%);
    bottom: -5%;
    left: 8%;
    animation: cipDecoFloat1 20s ease-in-out infinite;
}

.cip-deco--contacto-orb-3 {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(165, 180, 252, 0.18) 0%, transparent 60%);
    top: 40%;
    left: 25%;
    animation: cipDecoFloat2 28s ease-in-out infinite;
}

.cip-deco--contacto-ring-2 {
    width: 180px;
    height: 180px;
    top: 5%;
    left: 5%;
    animation: cipDecoSpin 50s linear infinite;
}

.cip-deco--contacto-cross {
    top: 18%;
    right: 12%;
}

.cip-deco--contacto-diamond {
    top: 55%;
    right: 8%;
}

.cip-deco--contacto-cross-2 {
    width: 20px;
    height: 20px;
    bottom: 30%;
    right: 22%;
}

/* ==========================================================================
   23c. Decoration Animations
   ========================================================================== */

@keyframes cipDecoFloat1 {
    0%, 100% { transform: translate(0, 0); }
    35% { transform: translate(18px, -25px); }
    70% { transform: translate(-12px, 12px); }
}

@keyframes cipDecoFloat2 {
    0%, 100% { transform: translate(0, 0); }
    40% { transform: translate(-15px, 18px); }
    75% { transform: translate(10px, -10px); }
}

@keyframes cipDecoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   23d. Responsive
   ========================================================================== */

@media screen and (max-width: 991px) {
    .cip-deco--orb {
        filter: blur(50px);
        opacity: 0.7;
    }

    .cip-deco--ring {
        opacity: 0.7;
    }
}

@media screen and (max-width: 640px) {
    /* Keep only orbs (subtle glow) on mobile; hide geometric details */
    .cip-deco--ring,
    .cip-deco--cross,
    .cip-deco--diamond,
    .cip-deco--dots {
        display: none;
    }

    .cip-deco--orb {
        filter: blur(35px);
        opacity: 0.6;
    }
}

/* ==========================================================================
   23e. Elementor Editor — hide all decorations
   ========================================================================== */
.elementor-editor-active .cip-deco {
    display: none !important;
}
