/********** Template CSS **********/
:root {
    --primary: #0069A8;
    --primary-hover: #0E82C7;
    --accent: #FD4305;
    --secondary: #334155;
    --light: #F8FAFC;
    --dark: #0F172A;
}

html, body {
    background-color: var(--light);
    overscroll-behavior-y: none;
}

/* Tema DG Makers (se activa con data-c37-theme="dgm" en <body>) */
[data-c37-theme="dgm"] {
    --primary: #6cf8ff;
    --primary-hover: #53c0ff;
    --accent: #ff6fb7;
    --secondary: #0c142c;
    --light: #0b1024;
    --dark: #030712;
    color: #e8f1ff;
    background: #050915;
    font-family: "Space Grotesk", "Open Sans", system-ui, -apple-system, sans-serif;
    /* Bootstrap base overrides */
    --bs-body-color: #e8f1ff;
    --bs-body-bg: #050915;
    --bs-link-color: #8bd7ff;
    --bs-link-hover-color: #b4e5ff;
    --bs-border-color: rgba(255, 255, 255, 0.12);
    --bs-card-bg: #0f1b34;
}
[data-c37-theme="dgm"] body {
    background: radial-gradient(circle at 10% 30%, rgba(0,195,255,0.12), transparent 32%),
                radial-gradient(circle at 85% 15%, rgba(255,111,183,0.12), transparent 30%),
                #050915;
    color: #e8f1ff;
}

/* Navbar legible en modo DG Makers */
[data-c37-theme="dgm"] .navbar {
    background: #0a132a;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
[data-c37-theme="dgm"] .navbar .nav-link,
[data-c37-theme="dgm"] .navbar .dropdown-item,
[data-c37-theme="dgm"] .navbar-brand {
    color: #e8f1ff !important;
}
[data-c37-theme="dgm"] .navbar .dropdown-menu {
    background: #0f1b34;
    border-color: rgba(255,255,255,0.08);
}
[data-c37-theme="dgm"] .navbar .dropdown-item:hover,
[data-c37-theme="dgm"] .navbar .dropdown-item:focus {
    background: rgba(255,255,255,0.06);
    color: #6cf8ff !important;
}
[data-c37-theme="dgm"] .navbar .navbar-nav .nav-link.dropdown-toggle.btn.btn-link {
    border-color: rgba(185, 211, 255, 0.24);
    background: rgba(20, 46, 88, 0.44);
    color: #e8f1ff;
}
[data-c37-theme="dgm"] .navbar .navbar-nav .nav-link.dropdown-toggle.btn.btn-link:hover,
[data-c37-theme="dgm"] .navbar .navbar-nav .nav-link.dropdown-toggle.btn.btn-link:focus-visible {
    border-color: rgba(209, 228, 255, 0.5);
    background: rgba(29, 62, 114, 0.62);
    color: #ffffff;
}
[data-c37-theme="dgm"] .navbar .navbar-nav .nav-link.dropdown-toggle.btn.btn-link[aria-expanded="true"],
[data-c37-theme="dgm"] .navbar .navbar-nav .nav-link.dropdown-toggle.btn.btn-link.active {
    border-color: rgba(222, 238, 255, 0.72);
    background: rgba(38, 82, 146, 0.8);
    color: #ffffff;
}
[data-c37-theme="dgm"] .navbar .dropdown-menu {
    border-color: rgba(210, 228, 255, 0.14);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.46);
}
[data-c37-theme="dgm"] .navbar .dropdown-menu .dropdown-item:hover,
[data-c37-theme="dgm"] .navbar .dropdown-menu .dropdown-item:focus-visible {
    background: rgba(98, 167, 255, 0.16);
    color: #dff1ff !important;
}

/* Tarjetas y fondos en modo DG Makers para que el texto destaque */
[data-c37-theme="dgm"] .fact-item,
[data-c37-theme="dgm"] .card,
[data-c37-theme="dgm"] .home-pill,
[data-c37-theme="dgm"] .home-highlight,
[data-c37-theme="dgm"] .inc-card,
[data-c37-theme="dgm"] .inc-highlight {
    background: #0f1b34 !important;
    color: #e8f1ff !important;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 36px rgba(0,0,0,0.4);
}
[data-c37-theme="dgm"] .fact-item p,
[data-c37-theme="dgm"] .fact-item li,
[data-c37-theme="dgm"] .card p,
[data-c37-theme="dgm"] .card li,
[data-c37-theme="dgm"] .home-pill p,
[data-c37-theme="dgm"] .inc-card p,
[data-c37-theme="dgm"] .inc-card li,
[data-c37-theme="dgm"] .inc-card ol li {
    color: #cbd8ff !important;
}
[data-c37-theme="dgm"] .section-title,
[data-c37-theme="dgm"] h1,
[data-c37-theme="dgm"] h2,
[data-c37-theme="dgm"] h3,
[data-c37-theme="dgm"] h4,
[data-c37-theme="dgm"] h5,
[data-c37-theme="dgm"] .inc-card h3,
[data-c37-theme="dgm"] .inc-card h4,
[data-c37-theme="dgm"] .inc-card h5 {
    color: #e8f1ff !important;
}
[data-c37-theme="dgm"] .text-muted { color: #b8c6e8 !important; }
[data-c37-theme="dgm"] .text-primary,
[data-c37-theme="dgm"] .section-title.text-primary {
    color: #8bd7ff !important;
}

/* Datos usa deliberadamente una superficie clara también dentro de DG Makers. */
[data-c37-theme="dgm"] .dm-shell h1,
[data-c37-theme="dgm"] .dm-shell h2,
[data-c37-theme="dgm"] .dm-shell h3,
[data-c37-theme="dgm"] .dm-shell h4,
[data-c37-theme="dgm"] .dm-shell h5,
[data-c37-theme="dgm"] .dm-shell .dm-card-title,
[data-c37-theme="dgm"] .dm-shell .dm-chart-title {
    color: #0f172a !important;
}
[data-c37-theme="dgm"] .dm-shell .text-muted {
    color: #475569 !important;
}

/* Botones en DG */
[data-c37-theme="dgm"] .btn-outline-primary {
    color: #6cf8ff;
    border-color: #6cf8ff;
}
[data-c37-theme="dgm"] .btn-outline-primary:hover {
    background: #6cf8ff;
    color: #0a1124;
}

/* Formularios legibles en DGM */
[data-c37-theme="dgm"] input,
[data-c37-theme="dgm"] select,
[data-c37-theme="dgm"] textarea {
    background: #0f172a !important;
    color: #e8f1ff !important;
    border-color: rgba(255,255,255,0.16) !important;
}
[data-c37-theme="dgm"] input::placeholder,
[data-c37-theme="dgm"] textarea::placeholder {
    color: #9fb0d8 !important;
}
/* Enlaces dentro de inc-card */
[data-c37-theme="dgm"] .inc-card a {
    color: #8bd7ff;
}
[data-c37-theme="dgm"] .inc-card a:hover {
    color: #b4e5ff;
}

[data-c37-theme="dgm"] .inc-menu-btn {
    border-color: rgba(167, 200, 247, 0.45);
    background: linear-gradient(135deg, rgba(20, 64, 124, 0.7), rgba(26, 84, 156, 0.62));
    color: #e5f0ff;
}

[data-c37-theme="dgm"] .inc-menu-btn:hover,
[data-c37-theme="dgm"] .inc-menu-btn:focus-visible {
    border-color: rgba(190, 219, 255, 0.66);
    background: linear-gradient(135deg, rgba(28, 83, 156, 0.76), rgba(33, 103, 190, 0.7));
    color: #f3f8ff;
}

[data-c37-theme="dgm"] .inc-menu-btn.is-active,
[data-c37-theme="dgm"] .inc-menu-btn[aria-current="page"] {
    border-color: rgba(206, 230, 255, 0.78);
    background: linear-gradient(135deg, rgba(42, 112, 196, 0.86), rgba(50, 130, 216, 0.8));
    color: #ffffff;
}

[data-c37-theme="dgm"] .inc-menu-btn--light {
    border-color: rgba(210, 230, 255, 0.55);
    background: rgba(14, 43, 83, 0.44);
    color: #eef6ff;
}

[data-c37-theme="dgm"] .inc-menu-btn--light:hover,
[data-c37-theme="dgm"] .inc-menu-btn--light:focus-visible {
    border-color: rgba(226, 240, 255, 0.76);
    background: rgba(20, 58, 110, 0.56);
    color: #ffffff;
}

[data-c37-theme="dgm"] .inc-menu-btn--light.is-active,
[data-c37-theme="dgm"] .inc-menu-btn--light[aria-current="page"] {
    border-color: rgba(236, 246, 255, 0.88);
    background: rgba(29, 74, 134, 0.68);
    color: #ffffff;
}

[data-c37-theme="dgm"] .c37-surface-btn {
    border-color: rgba(173, 207, 250, 0.42);
    background: rgba(16, 41, 76, 0.74);
    color: #ddeaff;
}

[data-c37-theme="dgm"] .c37-surface-btn:hover,
[data-c37-theme="dgm"] .c37-surface-btn:focus-visible {
    border-color: rgba(197, 224, 255, 0.64);
    background: rgba(25, 57, 104, 0.82);
    color: #eff5ff;
}

[data-c37-theme="dgm"] .c37-surface-btn.is-active {
    border-color: rgba(207, 229, 255, 0.78);
    background: rgba(42, 85, 146, 0.86);
    color: #ffffff;
}

[data-c37-theme="dgm"] .c37-surface-btn--primary {
    border-color: rgba(156, 191, 238, 0.56);
    background: rgba(45, 94, 163, 0.52);
    color: #eaf3ff;
}

[data-c37-theme="dgm"] .c37-surface-btn--accent {
    border-color: rgba(133, 206, 226, 0.56);
    background: rgba(18, 95, 116, 0.54);
    color: #dbf4fb;
}

[data-c37-theme="dgm"] .c37-surface-btn--success {
    border-color: rgba(144, 214, 174, 0.56);
    background: rgba(24, 97, 59, 0.56);
    color: #e1f7ea;
}

/* Form shell (hero de secciones) en modo DG */
[data-c37-theme="dgm"] .form-shell {
    background: #0f1b34 !important;
    color: #e8f1ff !important;
    box-shadow: 0 16px 36px rgba(0,0,0,0.45) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
}
[data-c37-theme="dgm"] .form-shell .text-dark,
[data-c37-theme="dgm"] .form-shell h1,
[data-c37-theme="dgm"] .form-shell h2,
[data-c37-theme="dgm"] .form-shell h3,
[data-c37-theme="dgm"] .form-shell h4,
[data-c37-theme="dgm"] .form-shell h5 {
    color: #e8f1ff !important;
}
[data-c37-theme="dgm"] .form-shell .text-muted {
    color: #b8c6e8 !important;
}
[data-c37-theme="dgm"] .form-shell .form-label {
    color: #eaf4ff !important;
}

/* Hero clásico con look DG */
[data-c37-theme="dgm"] .hero-conecta {
    background: linear-gradient(135deg, rgba(6, 10, 22, 0.96), rgba(12, 20, 42, 0.92)) !important;
    color: #eaf4ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
[data-c37-theme="dgm"] .hero-conecta .text-white {
    color: #eaf4ff !important;
}

/* Hero ChatC37 */
[data-c37-theme="dgm"] .chatc37-hero {
    background: radial-gradient(circle at 20% 15%, rgba(108,248,255,0.12), transparent 30%),
                radial-gradient(circle at 80% 10%, rgba(255,111,183,0.08), transparent 28%),
                #050c1b;
}
[data-c37-theme="dgm"] .chatc37-shell,
[data-c37-theme="dgm"] .chatc37-shell.fact-item,
[data-c37-theme="dgm"] .chatc37-shell.fact-item:hover {
    background: #0a152b !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 16px 36px rgba(0,0,0,0.45) !important;
}
[data-c37-theme="dgm"] .chatc37-shell .section-title,
[data-c37-theme="dgm"] .chatc37-shell h1,
[data-c37-theme="dgm"] .chatc37-shell h2,
[data-c37-theme="dgm"] .chatc37-shell h3,
[data-c37-theme="dgm"] .chatc37-shell h4,
[data-c37-theme="dgm"] .chatc37-shell h5,
[data-c37-theme="dgm"] .chatc37-shell p {
    color: #eaf4ff !important;
}
[data-c37-theme="dgm"] .chatc37-btn-join {
    background: #1c7ed6 !important;
    border-color: #1c7ed6 !important;
    color: #eaf4ff !important;
}
[data-c37-theme="dgm"] .chatc37-create {
    background: #0a152b !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}
[data-c37-theme="dgm"] .chatc37-create-title {
    color: #eaf4ff !important;
}
[data-c37-theme="dgm"] .chatc37-create-btn {
    background: #1c7ed6 !important;
    border-color: #1c7ed6 !important;
    color: #eaf4ff !important;
}
[data-c37-theme="dgm"] .chatc37-create label,
[data-c37-theme="dgm"] .chatc37-create h6 {
    color: #eaf4ff !important;
}

[data-c37-theme="dgm"] .chatc37-participant-item {
    background: rgba(10, 17, 36, 0.65);
    border-color: rgba(234, 244, 255, 0.22);
    color: #e1e7ff;
}

[data-c37-theme="dgm"] .chatc37-participant-item.chatc37-participant-selected {
    background: #d7e6ff;
    border-color: #5aa0ff;
    color: #0a1124;
    box-shadow: 0 0 0 1px rgba(90, 160, 255, 0.6) inset;
}

[data-c37-theme="dgm"] .chatc37-participant-item.chatc37-participant-selected .fw-semibold {
    color: #0a1124 !important;
}

[data-c37-theme="dgm"] .chatc37-participant-item.chatc37-participant-selected .text-muted {
    color: #1f2a44 !important;
}

[data-c37-theme="dgm"] .chatc37-participant-item .form-check-input {
    border-color: #0a1124;
    background-color: #0a1124;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
}

[data-c37-theme="dgm"] .chatc37-participant-item .form-check-input:checked {
    background-color: #0a1124;
    border-color: #0a1124;
    box-shadow: inset 0 0 0 2px #eaf4ff;
}

[data-c37-theme="dgm"] .chatc37-participant-item .form-check-input:checked::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 10px;
    border-right: 2px solid #eaf4ff;
    border-bottom: 2px solid #eaf4ff;
    transform: rotate(45deg);
    left: 4px;
    top: 1px;
}

.chatc37-inspector-btn {
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 0.5rem !important;
    line-height: 1 !important;
    font-size: 0.9rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Dropdown toggles visuales */
[data-c37-theme="dgm"] .btn-light {
    background: #d8ecff;
    color: #0a1124;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}
.TextoFormateado {
    font-family: Arial, Helvetica, sans-serif;
    text-align: justify;
    color: rgb(87, 85, 85);
    padding: 10px;
    padding-right: 10px;
    margin-top: 0px;
  }

.text-preline {
    white-space: pre-line;
}

/*** Spinner ***/
/*#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

*/
/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
/* Para que el menú aparezca centrado */
/*.navbar-nav {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    width: 100%;
}

.navbar {
    border: none;
    content: "\f107";
    font-family: "VT323", monospace;
    font-weight: bold;
    font-size: x-large;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: normal;
    font-size: medium;
    vertical-align: middle;
    background-color: var(--primary);
}*/

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar {
    border: none;
    content: "\f107";
    vertical-align: middle;
    background-color: var(--primary);
    box-shadow: 0 8px 24px rgba(4, 25, 52, 0.22);
}

.nav-item {
    padding-right: 2rem;
}

.navbar .navbar-nav {
    gap: 0.35rem;
}

.navbar .navbar-nav .nav-item {
    padding-right: 0;
}

.navbar .navbar-nav .nav-link.dropdown-toggle.btn.btn-link {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.36rem 0.78rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.navbar .navbar-nav .nav-link.dropdown-toggle.btn.btn-link:hover,
.navbar .navbar-nav .nav-link.dropdown-toggle.btn.btn-link:focus-visible {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: translateY(-1px);
}

.navbar .navbar-nav .nav-link.dropdown-toggle.btn.btn-link[aria-expanded="true"],
.navbar .navbar-nav .nav-link.dropdown-toggle.btn.btn-link.active {
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(0, 0, 0, 0.18);
    color: #ffffff;
}

.navbar .dropdown-menu {
    border: 1px solid rgba(12, 70, 126, 0.14);
    border-radius: 14px;
    box-shadow: 0 14px 26px rgba(8, 30, 58, 0.18);
    padding: 0.45rem;
}

.navbar .dropdown-menu .dropdown-item,
.navbar .dropdown-menu button.dropdown-item {
    border-radius: 10px;
    padding: 0.46rem 0.68rem;
    font-weight: 600;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus-visible {
    background-color: #eaf3ff;
    color: #103b66;
}

.navbar-item:hover,
.navbar-item.active {
    color: var(--accent);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--accent);
}

.header-logo-byn {
    height: 48px;
    width: auto;
}

@media (max-width: 767.98px) {
    .header-logo-byn {
        height: 38px;
    }
}

.dropdown-item:hover {
    background-color: var(--primary-hover);
    color: #FFFFFF;
}

.dropdown-menu .dropdown-item,
.dropdown-menu button.dropdown-item {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:focus-visible,
.dropdown-menu .dropdown-item:focus-within {
    background-color: var(--primary-hover);
    color: #FFFFFF;
}
/**/
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
    display: none;
    position: absolute;
}
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}
@media (max-width: 992px) {
    .navbar .navbar-nav {
        gap: 0.18rem;
    }

    .navbar .navbar-nav .nav-link.dropdown-toggle.btn.btn-link {
        width: 100%;
        justify-content: flex-start;
    }

    .navbar .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin: 0;
        border-radius: 12px;
        box-shadow: none;
    }

    .navbar .dropdown-submenu > .dropdown-menu {
        position: static;
        display: none;
        margin: 0;
    }
    .navbar .dropdown-submenu.show > .dropdown-menu {
        display: block;
    }

    .navbar .dropdown-menu .dropdown-item {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar .dropdown-submenu > .dropdown-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
}

/*** Header ***/
#header-carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    z-index: 1;
}

#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
    width: 10%;
}

#header-carousel .carousel-control-prev-icon,
#header-carousel .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 500px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

#header-carousel .carousel-indicators [data-bs-target] {
    width: 60px;
    height: 60px;
    text-indent: 0;
    margin-bottom: 15px;
    border: 2px solid #FFFFFF;
    border-radius: 60px;
    overflow: hidden;
}

#header-carousel .carousel-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/EstTrabj2.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--secondary);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: -10px;
    left: -40px;
    background: var(--primary);
    opacity: 55%;
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: -7px;
    left: -60px;
    background: var(--primary);
    opacity: 55%;
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}



/*** Img Border ***/
.img-border {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.img-border::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 3rem;
    bottom: 3rem;
    border: 5px solid var(--primary);
    border-radius: 6px;
}

.img-border img {
    position: absolute;
    top: 3rem;
    left: 3rem;
    width: calc(100% - 3rem);
    height: calc(100% - 3rem);
    object-fit: cover;
    border-radius: 6px;
}


/*** Facts ***/
.fact-item {
    transition: .5s;
}

.fact-item:hover {
    margin-top: -10px;
    background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    border: 1px solid transparent;
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    box-shadow: none;
    border: 1px solid #DEE2E6;
}


/*** Feature ***/
.progress {
    height: 5px;
}

.progress .progress-bar {
    width: 0px;
    transition: 3s;
}


/*** Project ***/
.project-item a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: rgba(0, 0, 0, .5);
    border-radius: 6px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover a {
    opacity: 1;
}

.project-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.project-carousel .owl-dot {
    width: 35px;
    height: 35px;
    margin: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 35px;
    transition: .5s;
}

.project-carousel .owl-dot:hover,
.project-carousel .owl-dot.active {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}

/******* Conecta-37 *******/
.hero-conecta {
    background: linear-gradient(135deg, rgba(1, 81, 131, 0.92), rgba(14, 130, 199, 0.92));
    color: #FFFFFF;
}

.hero-metodologia {
    padding: 6rem 0;
}

.arrow-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.arrow-list li {
    position: relative;
    padding-left: 2.25rem;
    margin-bottom: 0.85rem;
    font-weight: 500;
}

.arrow-list li::before {
    content: "";
    position: absolute;
    top: 0.45rem;
    left: 0;
    width: 1.4rem;
    height: 0.8rem;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%, 15% 50%);
}

.metodologia-block {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.metodologia-block:last-of-type {
    border-bottom: none;
}

.metodologia-block h2 {
    font-weight: 700;
}

.metodologia-image {
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.mini-guide {
    background: #F8FAFC;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item .team-text {
    position: relative;
    height: 65px;
    overflow: hidden;
}

.team-item .team-title {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-item:hover .team-title {
    top: -65px;
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 65px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    transition: .5s;
}

.team-item .team-social .btn {
    margin: 0 3px;
}

.team-item:hover .team-social {
    top: 0;
}


/*** Testimonial ***/

.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}

.Fecha {
    background-color: rgb(255, 204, 0);
    width: 70px; height: 40px;
    position: relative;
    padding-top: 6px ;
    left: 295px; top:315px;
    text-align: center;
    color: rgb(75, 2, 2);
    border-radius: 7px;
    z-index: 100;
}
/*** Footer ***/
.formContacto {
    padding-left: 50px;
}
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--secondary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

div.elem-group {
    margin: 40px 0;
  }

  .elem-group label {
    display: block;
    font-family: 'Aleo';
    padding-bottom: 4px;
    font-size: 1.25em;
  }

  .elem-group input,
  .elem-group select,
  .elem-group textarea {
    border-radius: 2px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 1.25em;
    font-family: 'Aleo';
    width: 500px;
    padding: 8px;
  }

  .elem-group textarea {
    height: 250px;
  }

  .elem-group button {
    height: 50px;
    background: rgb(0, 55, 128);
    color: white;
    border: 2px solid rgb(0, 48, 100);
    font-size: 1.25em;
    font-family: 'Aleo';
    border-radius: 4px;
    cursor: pointer;
  }

  .elem-group button:hover {
    border: 2px solid black;
  }

/*
* ARREGLO PARA EL CARRUSEL DE REACT
*/
#header-carousel .carousel-item {
    /* 1. Define una altura fija para todos los slides.
       Puedes usar 'vh' (alto de la ventana) o píxeles. */
    height: 75vh;
    min-height: 500px; /* Una altura mínima por si acaso */
}

#header-carousel .carousel-item img {
    /* 2. Fuerza a la imagen a llenar ese contenedor */
    width: 100%;
    height: 100%;

    /* 3. ¡La magia! Rellena el espacio sin deformar la imagen.
       (Recortará los bordes si es necesario) */
    object-fit: cover;
    object-position: center; /* Centra la imagen durante el recorte */
}

/******* Conecta-37 Buttons *******/
.btn-conecta37 {
    background-color: #015183;
    border-color: #015183;
    color: #ffffff;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.btn-conecta37:hover,
.btn-conecta37:focus {
    background-color: #ffffff;
    border-color: var(--primary-hover);
    color: var(--primary-hover);
}

/* Ajuste de altura para CTA del header */
.c37-nav-cta {
    min-height: 34px;
    padding: 0.36rem 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.c37-nav-cta:hover,
.c37-nav-cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(8, 30, 58, 0.2);
}

/******* Form Pages *******/
.form-shell {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.5rem;
    background-color: #FFFFFF;
    font-family: inherit;
}

.form-shell .section-title {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
}

.form-shell .form-label {
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: 0.02em;
    font-family: inherit;
}

.form-shell .form-control,
.form-shell .form-select {
    border-radius: 0.75rem;
    border-color: rgba(15, 23, 42, 0.2);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
}

/* Fix selects in ChatC37 panel (text showing as dots) */
.chatc37-shell select,
.chatc37-shell .form-select {
    color: #0f172a !important;
    background-color: #ffffff !important;
    font-family: "Open Sans", sans-serif !important;
    -webkit-text-security: none !important;
    text-security: none !important;
}

.form-shell .form-control:focus,
.form-shell .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(0, 105, 168, 0.15);
}

.form-shell textarea.form-control {
    min-height: 120px;
}

.form-shell hr {
    margin: 2rem 0;
    opacity: 0.15;
}

.form-shell .alert {
    border-radius: 0.85rem;
}

/******* Dashboard *******/
.dashboard-section {
    margin-bottom: 4rem;
}

.dashboard-image {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(1, 81, 131, 0.18);
}

/******* Centros *******/
.logo-card img {
    max-height: 140px;
    object-fit: contain;
}

/******* Encuentro 37 *******/
.encuentro-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 992px) {
    .encuentro-card-img {
        height: 240px;
    }
}

.anchor-nav .btn {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.agenda-timeline {
    position: relative;
    padding-left: 1.75rem;
    border-left: 3px solid rgba(1, 81, 131, 0.15);
}

.agenda-timeline .timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.agenda-timeline .timeline-item:last-child {
    padding-bottom: 0;
}

.agenda-timeline .timeline-marker {
    position: absolute;
    left: -1.1rem;
    top: 0.25rem;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background-color: #015183;
    box-shadow: 0 0 0 6px rgba(1, 81, 131, 0.15);
}

.agenda-timeline .timeline-time {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #015183;
    margin-bottom: 0.25rem;
    margin-left: 0.6rem;
}

.agenda-timeline .timeline-time i {
    margin-right: 0.35rem;
}

.agenda-timeline .timeline-title {
    margin-bottom: 0.25rem;
    font-size: 1.02rem;
}

.agenda-timeline .timeline-body {
    margin-bottom: 0;
    color: #4f4f4f;
}

/******* IA 37 *******/
.ia37-image {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.ia37-block {
    margin-bottom: 4.5rem;
}

.ia37-block:last-of-type {
    margin-bottom: 0;
}

/******* Roadmap & Próxima reunión *******/
.roadmap-image {
    border-radius: 0.75rem;
    box-shadow: 0 0.75rem 1.5rem rgba(1, 81, 131, 0.18);
}

.roadmap-step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.roadmap-step h4,
.roadmap-step h5 {
    margin-bottom: 1rem;
    color: #0a558c;
    font-weight: 600;
}

.roadmap-step ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.roadmap-step ul li {
    margin-bottom: 0.4rem;
}

.roadmap-idea {
    background: rgba(1, 81, 131, 0.08);
    border-radius: 16px;
    padding: 2rem 1.5rem;
}

.roadmap-today {
    background: linear-gradient(135deg, rgba(1, 81, 131, 0.12), rgba(1, 81, 131, 0.06));
    border-radius: 18px;
    padding: 2rem 1.5rem;
}

.roadmap-next {
    opacity: 0.95;
    position: relative;
    overflow: hidden;
    border: 1px dashed rgba(1, 81, 131, 0.35);
    border-radius: 16px;
    padding: 2rem 1.5rem;
}

.roadmap-topics {
    background: linear-gradient(135deg, rgba(1, 81, 131, 0.08), rgba(24, 119, 174, 0.12));
    border: 1px solid rgba(1, 81, 131, 0.18);
    border-radius: 18px;
    padding: 1.75rem 1.6rem;
    box-shadow: 0 1.4rem 2.4rem rgba(1, 81, 131, 0.08);
}

.roadmap-topics__list {
    list-style: none;
    counter-reset: topic-counter;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.roadmap-topics__list > li {
    counter-increment: topic-counter;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.topic-badge {
    min-width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #0a558c;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0.6rem 1.2rem rgba(10, 85, 140, 0.22);
}

.topic-content {
    flex: 1;
}

.topic-title {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    color: #083c67;
}

.topic-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.topic-points li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0;
    line-height: 1.45;
}

.topic-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.55rem;
    height: 0.55rem;
    background: #ffffff;
    border: 2px solid #0a558c;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(10, 85, 140, 0.12);
}

.topic-subtitle {
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.35rem;
}

.sub-points {
    list-style: none;
    padding: 0;
    margin: 0.35rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sub-points li {
    position: relative;
    padding-left: 1.4rem;
    line-height: 1.4;
    color: #1c3d5b;
}

.sub-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.4rem;
    height: 0.4rem;
    background: #0a558c;
    opacity: 0.65;
    border-radius: 50%;
}

.topic-link,
.sub-link {
    color: #0a558c;
    text-decoration: none;
}

.topic-link {
    font-weight: 600;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.topic-link:hover,
.topic-link:focus {
    color: #084674;
    text-decoration: underline;
}

.sub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.65rem;
    border-radius: 7px;
    font-weight: 600;
    background: rgba(10, 85, 140, 0.12);
    box-shadow: inset 0 0 0 1px rgba(10, 85, 140, 0.26);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sub-link::after {
    content: "→";
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.sub-link:hover,
.sub-link:focus {
    background: #0a558c;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px #0a558c, 0 0.4rem 0.8rem rgba(10, 85, 140, 0.2);
    text-decoration: none;
    transform: translateX(1px);
}

.sub-link:hover::after,
.sub-link:focus::after {
    transform: translateX(3px);
}

.template-card {
    background: radial-gradient(circle at top right, rgba(10, 85, 140, 0.14), rgba(10, 85, 140, 0.05) 42%, rgba(10, 85, 140, 0.04));
    border: 1px solid rgba(1, 81, 131, 0.18);
    border-left: 6px solid #0a558c;
    border-radius: 22px;
    padding: 2rem;
    box-shadow: 0 1.4rem 2.8rem rgba(1, 81, 131, 0.1);
}

.template-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.75rem;
}

.template-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(10, 85, 140, 0.75);
    margin-bottom: 0.25rem;
}

.template-value {
    font-family: "Courier New", Courier, monospace;
    font-size: 1rem;
    color: rgba(10, 85, 140, 0.9);
}

.template-section {
    margin-bottom: 1.75rem;
}

.template-section:last-child {
    margin-bottom: 0;
}

.template-section h5 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.template-choices,
.template-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.template-choices {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.template-choices li {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(10, 85, 140, 0.18);
    border-radius: 14px;
    padding: 0.6rem 0.85rem;
    text-align: center;
    font-weight: 600;
    color: #0a558c;
    backdrop-filter: blur(6px);
}

.template-checklist {
    list-style: none;
    grid-template-columns: 1fr;
}

.template-checklist li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 0;
    line-height: 1.45;
}

.template-checklist li::before {
    content: "\2714";
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 0.5rem;
    background: #0a558c;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.6rem 1.2rem rgba(10, 85, 140, 0.2);
}

.benefits-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(1, 81, 131, 0.12);
    box-shadow: 0 0.75rem 1.5rem rgba(1, 81, 131, 0.08);
    height: 100%;
    padding: 1.75rem;
}

.benefits-card h5 {
    color: #015183;
    font-weight: 600;
    margin-bottom: 1rem;
}

.benefits-card ul {
    margin-bottom: 0;
    padding-left: 1.1rem;
}

.benefits-card li {
    margin-bottom: 0.55rem;
}

@media (max-width: 575.98px) {
    .topic-badge {
        min-width: 2.2rem;
        height: 2.2rem;
        font-size: 1rem;
    }

    .roadmap-topics {
        padding: 1.6rem 1.4rem;
    }
}

/******* StartLab *******/
.lab-overview {
    border-radius: 22px;
    border: 1px solid rgba(1, 81, 131, 0.12);
    box-shadow: 0 1.2rem 2.6rem rgba(1, 81, 131, 0.08);
    background: linear-gradient(135deg, rgba(1, 81, 131, 0.08), rgba(1, 81, 131, 0.02));
}

.lab-tag {
    letter-spacing: 0.05em;
    font-weight: 600;
}

.lab-block {
    border-radius: 18px;
    border: 1px solid rgba(1, 81, 131, 0.14);
    box-shadow: 0 0.85rem 1.8rem rgba(1, 81, 131, 0.08);
    overflow: hidden;
}

.lab-badge {
    background: rgba(1, 81, 131, 0.12);
    color: #015183;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lab-block-media {
    position: relative;
    min-height: 240px;
}

.lab-block-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lab-block-media--compact {
    display: flex;
    align-items: center;
}

.lab-block-media--compact img {
    height: auto;
    max-height: 320px;
}

.lab-highlights {
    border-radius: 16px;
    background: rgba(1, 81, 131, 0.08);
    padding: 1.5rem;
}

.lab-highlights li {
    margin-bottom: 0.45rem;
}

.activity-card {
    border: 1px solid rgba(1, 81, 131, 0.14);
    border-radius: 16px;
    padding: 1.5rem 1.4rem;
    background: #fff;
    margin-bottom: 1.4rem;
    box-shadow: 0 0.75rem 1.6rem rgba(1, 81, 131, 0.08);
}

.activity-title {
    font-weight: 700;
    color: #0a558c;
}

.activity-meta {
    color: #4f5f6f;
    font-size: 0.95rem;
}

.logistics-list li + li {
    margin-top: 0.4rem;
}

.extras-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .extras-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .lab-overview {
        border-radius: 18px;
    }

    .activity-card {
        padding: 1.25rem;
    }
}

/*** Timeline ***/
.timeline {
    position: relative;
    padding-left: 2.5rem;
    border-left: 2px solid rgba(15, 23, 42, 0.1);
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
}

.timeline-item:not(:last-child) {
    margin-bottom: 1.5rem;
}

.timeline-icon {
    position: absolute;
    left: -1.4rem;
    top: 0.1rem;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.timeline-content h5 {
    font-weight: 600;
}

.timeline-simple {
    list-style: none;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(15, 23, 42, 0.08);
}

.timeline-simple li {
    position: relative;
    padding-left: 0.75rem;
}

.timeline-simple li::before {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 0.35rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--primary);
}

/*** IA37 sections ***/
.ia37-block {
    margin-bottom: 4.5rem;
}

.ia37-block:last-of-type {
    margin-bottom: 0;
}

.ia37-image {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.ia-chip-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 0.75rem;
    font-weight: 600;
    background: rgba(10, 85, 140, 0.12);
    box-shadow: inset 0 0 0 1px rgba(10, 85, 140, 0.26);
    color: #0a558c;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ia-chip-link::after {
    content: "→";
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.ia-chip-link:hover,
.ia-chip-link:focus {
    background: #0a558c;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px #0a558c, 0 0.4rem 0.8rem rgba(10, 85, 140, 0.2);
    text-decoration: none;
    transform: translateX(1px);
}

.ia-chip-link:hover::after,
.ia-chip-link:focus::after {
    transform: translateX(3px);
}

.ia-page p {
    text-align: justify;
}

.ia-section {
    position: relative;
}

.ia-lede {
    font-size: 1.1rem;
    color: #0a3d62;
}

.ia-highlight,
.ia-card,
.ia-tier-card,
.ia-playbook-card,
.ia-governance-card,
.ia-idea-card,
.ia-glossary-card,
.ia-declaration-card {
    background: #ffffff;
    border: 1px solid rgba(1, 81, 131, 0.12);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: 0 1.5rem 2.5rem rgba(1, 81, 131, 0.08);
}

.ia-highlight {
    background: linear-gradient(135deg, rgba(1, 81, 131, 0.08), rgba(1, 81, 131, 0.03));
}

.ia-list {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.ia-list li {
    margin-bottom: 0.4rem;
}

.ia-team-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.ia-team-list li {
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: rgba(10, 85, 140, 0.12);
    font-weight: 600;
    color: #0a3d62;
}

.hero-conecta-logo {
    max-width: 220px;
    width: 100%;
}

@media (max-width: 767.98px) {
    .hero-conecta-logo {
        margin-top: 2rem;
    }
}

.ia-figure {
    border-radius: 1.5rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid rgba(1, 81, 131, 0.12);
    box-shadow: 0 1.4rem 2.4rem rgba(1, 81, 131, 0.1);
}

.ia-figure img {
    width: 100%;
    height: auto;
}

.ia-caption {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: rgba(10, 61, 98, 0.8);
}

.ia-principle-card {
    background: radial-gradient(circle at top right, rgba(1, 81, 131, 0.12), rgba(1, 81, 131, 0.04));
    border-radius: 1.5rem;
    padding: 1.6rem;
    height: 100%;
    border: 1px solid rgba(1, 81, 131, 0.12);
    box-shadow: inset 0 0 0 1px rgba(1, 81, 131, 0.08), 0 1rem 2rem rgba(1, 81, 131, 0.08);
}

.ia-principle-card img {
    max-width: 70px;
    height: auto;
    margin-bottom: 1rem;
}

.ia-tier-card {
    height: 100%;
}

.ia-tier-card h4 {
    color: #0a558c;
}

.ia-tier-image {
    max-width: 220px;
}

.ia-steps {
    padding-left: 1.2rem;
}

.ia-steps li {
    margin-bottom: 0.35rem;
}

.ia-mini-card {
    background: rgba(1, 81, 131, 0.04);
    border-radius: 1.25rem;
    padding: 1.25rem;
    height: 100%;
    border: 1px solid rgba(1, 81, 131, 0.08);
}

.ia-mini-card img {
    width: 64px;
    height: auto;
    margin-bottom: 0.75rem;
}

.ia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.ia-idea-card h5 {
    color: #0a558c;
    font-size: 1.05rem;
}

.ia-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    background: #0a558c;
    color: #ffffff;
    font-weight: 700;
    margin-right: 0.6rem;
}

.ia-divider {
    width: 100%;
    height: 2px;
    margin: 1.8rem 0;
    background: linear-gradient(90deg, rgba(1, 81, 131, 0), rgba(1, 81, 131, 0.25), rgba(1, 81, 131, 0));
}

.ia-glossary-card dt {
    font-weight: 700;
    color: #0a558c;
}

.ia-glossary-card dd {
    margin-bottom: 1rem;
}

.ia-declaration-card code {
    background: rgba(1, 81, 131, 0.08);
    padding: 0.25rem 0.4rem;
    border-radius: 0.4rem;
}

.ia-code-block {
    white-space: pre-wrap;
    background: rgba(15, 23, 42, 0.04);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.95rem;
    color: #c91472;
}

/* Docentes IA + Matemáticas IA */
.docentes-ia .ia-section-header,
.math-ia .ia-section-header {
    max-width: 940px;
    margin: 0 auto 1rem;
}

.docentes-ia .ia-kicker,
.math-ia .ia-kicker {
    display: inline-block;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0a558c;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.docentes-ia .ia-section-title,
.math-ia .ia-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
    line-height: 1.25;
}

.docentes-ia .ia-section-subtitle,
.math-ia .ia-section-subtitle {
    color: #475569;
    margin: 0 auto;
    max-width: 860px;
}

.docentes-ia .ia-pill,
.math-ia .ia-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 2.4rem;
    height: auto;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(1, 81, 131, 0.18);
    background: rgba(1, 81, 131, 0.12);
    color: #0a558c;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
    line-height: 1.15;
    white-space: nowrap;
}

.ia-videos .studio-hero {
    background: radial-gradient(circle at 20% 20%, rgba(255, 127, 80, 0.14), transparent 32%),
    radial-gradient(circle at 80% 0, rgba(1, 81, 131, 0.18), transparent 40%),
    linear-gradient(135deg, rgba(1, 81, 131, 0.04), rgba(255, 255, 255, 0.9));
}

.ia-videos .studio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1rem;
}

.ia-videos .studio-step {
    background: #ffffff;
    border: 1px solid rgba(1, 81, 131, 0.12);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 0.85rem 1.5rem rgba(1, 81, 131, 0.08);
}

.ia-videos .studio-step h5 {
    margin-bottom: 0.35rem;
}

.ia-videos .studio-step p {
    margin-bottom: 0.4rem;
}

.ia-videos .studio-step ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.ia-videos .studio-step .ia-pill {
    min-width: 5.5rem;
    height: auto;
    padding: 0.45rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 1rem;
}

.ia-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 0.75rem;
    font-weight: 600;
    background: rgba(10, 85, 140, 0.12);
    box-shadow: inset 0 0 0 1px rgba(10, 85, 140, 0.14);
    color: #0a558c;
    font-size: 0.95rem;
}

.ia-note {
    font-size: 0.95rem;
    color: rgba(10, 61, 98, 0.85);
}

.ia-accent {
    color: #0a558c;
}

.ia-switch,
.ia-subject {
    border-radius: 0.9rem;
    padding: 0.45rem 1.2rem;
    font-weight: 700;
    border: 1px solid #0a558c;
    background: #ffffff;
    color: #0a558c;
    transition: all 0.2s ease;
}

.ia-switch.active,
.ia-subject.active {
    background-color: #015183;
    border-color: #015183;
    color: #ffffff;
    box-shadow: 0 0.8rem 1.6rem rgba(1, 81, 131, 0.18);
}

.ia-switch:disabled,
.ia-subject:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ia-version,
.ia-panel {
    display: none;
}

.ia-version.active,
.ia-panel.active {
    display: block;
}

.math-ia .ia-compare {
    width: 100%;
    border-collapse: collapse;
}

.math-ia .ia-compare th,
.math-ia .ia-compare td {
    border: 1px solid rgba(1, 81, 131, 0.12);
    padding: 0.75rem;
    vertical-align: top;
}

.math-ia .ia-compare th {
    background: rgba(1, 81, 131, 0.06);
    color: #0a558c;
}

.math-ia .ia-compare td:nth-child(2) {
    background: rgba(10, 85, 140, 0.03);
}

.math-ia .ia-compare td:nth-child(3) {
    background: linear-gradient(135deg, rgba(255, 127, 80, 0.08), rgba(255, 127, 80, 0.02));
}

.math-ia .ia-example {
    background: rgba(1, 81, 131, 0.06);
    border: 1px solid rgba(1, 81, 131, 0.18);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
}

.math-ia .ia-code-hero {
    background: radial-gradient(circle at 10% 20%, rgba(1, 81, 131, 0.12), transparent 40%),
    radial-gradient(circle at 80% 0, rgba(255, 127, 80, 0.18), transparent 45%),
    linear-gradient(135deg, rgba(1, 81, 131, 0.05), rgba(255, 255, 255, 0.65));
    border-radius: 1.5rem;
    border: 1px solid rgba(1, 81, 131, 0.15);
    padding: 1.75rem;
    box-shadow: 0 1.4rem 2.2rem rgba(1, 81, 131, 0.08);
}

.math-ia .ia-rule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.math-ia .ia-rule-card {
    background: #ffffff;
    border: 1px solid rgba(1, 81, 131, 0.12);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 0.85rem 1.5rem rgba(1, 81, 131, 0.08);
}

.math-ia .ia-rule-card h5 {
    margin-bottom: 0.35rem;
}

.math-ia .ia-rule-card p {
    margin-bottom: 0;
}

.math-ia .ia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 1.25rem;
}

@media (max-width: 991.98px) {
    .math-ia .ia-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .math-ia .ia-compare th,
    .math-ia .ia-compare td {
        font-size: 0.95rem;
    }
}

@media (max-width: 767.98px) {
    .ia-tier-image {
        max-width: 160px;
    }
}

/*** Livehub workshop cards ***/
.workshop-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
}

.workshop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.workshop-card--past {
    background: #f8fafc;
}

.workshop-header {
    padding: 1.4rem 1.5rem 1rem;
    color: #fff;
    position: relative;
}

.workshop-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.workshop-center {
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.workshop-body {
    padding: 1.25rem 1.5rem 0;
    flex: 1;
}

.workshop-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.55rem;
    color: #475569;
    font-size: 0.95rem;
}

.info-item i {
    width: 22px;
    margin-right: 10px;
    color: #015183;
    text-align: center;
}

.workshop-desc {
    margin-top: 0.8rem;
    margin-bottom: 1.2rem;
    color: #0f172a;
    line-height: 1.6;
    font-size: 0.97rem;
}

.info-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.workshop-footer {
    padding: 1rem 1.5rem 1.4rem;
    background-color: #f8fafc;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn-register {
    background-color: #015183;
    color: #fff;
    border: none;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.25s ease;
    flex: 1 1 140px;
}

.btn-register:hover {
    background-color: #0a67a2;
    color: #fff;
}

.btn-info {
    background-color: #fff;
    color: #015183;
    border: 2px solid #015183;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.25s ease;
    flex: 0 0 auto;
}

.btn-info:hover {
    background-color: #e6f2ff;
    color: #015183;
}

.badge-mode {
    background: #e2e8f0;
    color: #0f172a;
    padding: 0.35rem 0.9rem;
    border-radius: 18px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
}

.bg-gradient-1 { background-color: #0069A8; }
.bg-gradient-2 { background-color: #FD4305; }
.bg-gradient-3 { background-color: #7F5AF0; }
.bg-gradient-4 { background-color: #FF8A4A; }
.bg-gradient-5 { background-color: #00C9A7; }
.bg-gradient-6 { background-color: #111827; }
/*** Taller cards (eventos Live Hub) ***/
.taller-card {
    position: relative;
    border: 0;
    overflow: hidden;
    background: #ffffff;
    color: #0f172a;
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.taller-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -140px;
    width: 320px;
    height: 210px;
    background: radial-gradient(circle at 30% 40%, rgba(0, 105, 168, 0.18), transparent 60%);
    transform: rotate(-12deg);
    opacity: 0.5;
}

.taller-card::after {
    content: "";
    position: absolute;
    inset: 0;
    height: 8px;
    background: linear-gradient(90deg, #0b4f73, #0f7fa5, #12b0c6);
    opacity: 0.95;
}

.taller-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
    border-color: rgba(15, 23, 42, 0.08);
}

.taller-card .card-img-top {
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.taller-card .card-body {
    position: relative;
    z-index: 1;
}

.taller-card .card-title {
    color: #0f172a;
    font-weight: 700;
}

.taller-card .card-text,
.taller-card p {
    color: #334155;
}

.taller-card ul li {
    color: #334155;
}

.taller-card .badge {
    background: #0f7fa5;
    color: #ffffff;
    border: 1px solid #0f7fa5;
}

.taller-card .btn-primary {
    background: #f97316;
    border-color: #f97316;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.45);
}

.taller-card .btn-outline-primary {
    color: #0f7fa5;
    border-color: #0f7fa5;
}

.taller-card .btn-outline-primary:hover {
    background: rgba(15, 127, 165, 0.12);
    border-color: #0f7fa5;
}

.taller-card--past {
    background: #f8fafc;
}

.taller-card--past::after {
    background: linear-gradient(90deg, #cbd5e1, #94a3b8);
}

/* Incubadora */
.inc-hero-subtitle {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
}

.inc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.inc-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-height: 36px;
    padding: 0.38rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #b7cdea;
    background: linear-gradient(135deg, #edf4ff, #e7f0ff);
    color: #1e4f82;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.inc-menu-btn:hover,
.inc-menu-btn:focus-visible {
    transform: translateY(-1px);
    border-color: #9fbde1;
    background: linear-gradient(135deg, #e7f1ff, #deebff);
    color: #163f6d;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(14, 55, 105, 0.14);
}

.inc-menu-btn.is-active,
.inc-menu-btn[aria-current="page"] {
    border-color: #85abd9;
    background: linear-gradient(135deg, #d9e9ff, #d5e5ff);
    color: #103962;
    box-shadow: inset 0 0 0 1px rgba(16, 57, 98, 0.11);
}

.inc-menu-btn--light {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.14);
    color: #f2f8ff;
}

.inc-menu-btn--light:hover,
.inc-menu-btn--light:focus-visible {
    border-color: rgba(255, 255, 255, 0.66);
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(1, 20, 45, 0.26);
}

.inc-menu-btn--light.is-active,
.inc-menu-btn--light[aria-current="page"] {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.inc-menu-btn--ghost {
    border-color: #c7d8ee;
    background: #ffffff;
    color: #2a5178;
}

.inc-menu-btn--solid {
    border-color: #9ebee5;
    background: linear-gradient(135deg, #dcecff, #d3e7ff);
    color: #154774;
}

.c37-surface-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-height: 34px;
    padding: 0.34rem 0.82rem;
    border-radius: 999px;
    border: 1px solid #bfd3ea;
    background: #ffffff;
    color: #2b5178;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.c37-surface-btn:hover,
.c37-surface-btn:focus-visible {
    transform: translateY(-1px);
    border-color: #9ebde0;
    background: #f5f9ff;
    color: #1b426b;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(13, 47, 86, 0.12);
}

.c37-surface-btn.is-active {
    border-color: #7ea7d8;
    background: #e9f2ff;
    color: #0f3962;
    box-shadow: inset 0 0 0 1px rgba(15, 57, 98, 0.1);
}

.c37-surface-btn--primary {
    border-color: #94b5e0;
    background: linear-gradient(135deg, #e6f0ff, #dce9ff);
    color: #174a78;
}

.c37-surface-btn--primary:hover,
.c37-surface-btn--primary:focus-visible {
    border-color: #7fa5d7;
    background: linear-gradient(135deg, #dce9ff, #d1e2ff);
    color: #0f3f6b;
}

.c37-surface-btn--accent {
    border-color: #9bcde1;
    background: linear-gradient(135deg, #e4f6ff, #dcf1ff);
    color: #0f4f68;
}

.c37-surface-btn--accent:hover,
.c37-surface-btn--accent:focus-visible {
    border-color: #7eb8d3;
    background: linear-gradient(135deg, #d9efff, #d0ebff);
    color: #0a4157;
}

.c37-surface-btn--success {
    border-color: #9fd8be;
    background: linear-gradient(135deg, #e6f8ee, #dcf4e8);
    color: #175b38;
}

.c37-surface-btn--success:hover,
.c37-surface-btn--success:focus-visible {
    border-color: #83c9a8;
    background: linear-gradient(135deg, #dcf4e8, #d2efdf);
    color: #104b2d;
}

.inc-card,
.inc-highlight {
    background: #ffffff;
    border: 1px solid rgba(1, 81, 131, 0.1);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 1.5rem 2.4rem rgba(1, 81, 131, 0.08);
}

.inc-highlight {
    background: linear-gradient(120deg, rgba(1, 81, 131, 0.12), rgba(1, 81, 131, 0.04));
    border: 1px solid rgba(1, 81, 131, 0.12);
}

.inc-divider {
    width: 100%;
    height: 1px;
    background: rgba(1, 81, 131, 0.15);
}

.inc-section-title {
    color: #0a3d62;
}

.inc-section-subtitle {
    font-size: 1.2rem;
    color: #666666;
}

.inc-section-muted {
    background-color: #fafbfc;
}

.hero-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0E82C7 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero-header::before,
.hero-header::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.hero-header::before {
    top: -140px;
    left: -60px;
}

.hero-header::after {
    bottom: -180px;
    right: -120px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-chip {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-chip-alt {
    background: rgba(255, 255, 255, 0.26);
}

.hero-highlights {
    color: #e8f4ff;
    font-weight: 600;
}

.hero-highlights i {
    color: #ffdd57;
    margin-right: 0.35rem;
}

.section-title small {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
}

.section-title h3 {
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.mini-step {
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    background: #f1f5f9;
    font-weight: 600;
    color: #0f172a;
    border: 1px solid rgba(1, 81, 131, 0.08);
}

.mini-step span {
    color: var(--primary);
    font-weight: 800;
    margin-right: 0.35rem;
}

.exercise-box {
    background: #f8fafc;
    border: 1px solid rgba(1, 81, 131, 0.1);
    border-radius: 0.9rem;
    padding: 1rem;
}

.exercise-title {
    font-weight: 800;
    color: #0f172a;
}

.quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.25rem 0;
    padding: 0.35rem 0.25rem;
}

.quiz-option input[type="radio"] {
    width: auto;
    height: auto;
    margin: 0.2rem 0 0;
    flex-shrink: 0;
}

.quiz-option span {
    white-space: normal;
    line-height: 1.4;
}

.math-big {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #0f172a;
}

.hint-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(1, 81, 131, 0.08);
    color: #015183;
    font-weight: 700;
    font-size: 0.85rem;
}

.mode-card {
    background: #ffffff;
    border: 1px solid rgba(1, 81, 131, 0.12);
    border-radius: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.mode-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.75rem 1.25rem rgba(1, 81, 131, 0.1);
}

.mode-card.active {
    border-color: rgba(1, 81, 131, 0.35);
    box-shadow: 0 0.75rem 1.25rem rgba(1, 81, 131, 0.14);
}

.mode-title {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.mode-sub {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

.progress-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid rgba(1, 81, 131, 0.1);
    font-weight: 800;
    color: #0f172a;
}

.small-muted {
    color: #64748b;
    font-size: 0.9rem;
}

.result-box {
    background: #f8f9fa;
    border: 1px dashed rgba(1, 81, 131, 0.25);
    border-radius: 0.5rem;
    padding: 1.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    white-space: pre-wrap;
}

.placeholder-area {
    background: #f8fafc;
    border: 1px dashed rgba(1, 81, 131, 0.2);
    border-radius: 1rem;
}

.tab-content .btn.btn-sm {
    border-radius: 999px;
}
.inc-routes-img img {
    max-width: 100%;
    height: 250px;
    display: inline-block;
    border-radius: 1rem;
    box-shadow: 0 1.4rem 2.4rem rgba(1, 81, 131, 0.18);
    object-fit: cover;
}

.inc-focus-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.inc-focus-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.inc-focus-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(1, 81, 131, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #015183;
}

.inc-cta {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #0a558c;
}

.inc-focus-placeholder,
.inc-card--placeholder,
.inc-card--placeholder h5,
.inc-card--placeholder p,
.inc-card--placeholder ul li {
    color: rgba(10, 61, 98, 0.5);
}

.inc-procedure-step h5 {
    color: #0a558c;
}

.inc-procedure-step code,
.inc-form-card code {
    background: rgba(1, 81, 131, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 0.4rem;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inc-timeline {
    counter-reset: inc-step;
}

.inc-timeline .inc-procedure-step {
    position: relative;
    padding-left: 3.3rem;
}

.inc-timeline .inc-procedure-step::before {
    counter-increment: inc-step;
    content: counter(inc-step);
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 0.7rem;
    background: #015183;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.inc-form-card ul {
    padding-left: 1.1rem;
}

.inc-variant-card h5 {
    color: #0a3d62;
}

@media (max-width: 575.98px) {
    .inc-timeline .inc-procedure-step {
        padding-left: 2.6rem;
    }

    .hero-conecta .btn-conecta37 {
        width: 100%;
    }
}

/* Dropdown submenu (Start Lab dentro de Conecta 37) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -0.2rem;
    margin-left: 0;
    min-width: 220px;
}

.dropdown-submenu.show > .dropdown-menu {
    display: block;
}

.dropdown-submenu > .dropdown-item {
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
}
[data-c37-theme] .chatc37-hero.container {
    max-width: 1500px;
    width: 100%;
}
[data-c37-theme="dgm"] .chatc37-shell .text-muted {
    color: #cdd8f7 !important;
}

@media (max-width: 576px) {
    .chatc37-hero {
        padding-left: 8px;
        padding-right: 8px;
    }

    .chatc37-hero .row {
        margin-left: 0;
        margin-right: 0;
    }

    .chatc37-hero .col-12 {
        padding-left: 0;
        padding-right: 0;
    }

    .chatc37-hero .form-shell {
        padding: 16px !important;
    }
}
[data-c37-theme="dgm"] .docente-hero {
    background: linear-gradient(180deg, #070d1d 0%, #0b1428 62%, #0a1325 100%);
}
[data-c37-theme="dgm"] .docente-shell {
    background: #0f1a31 !important;
    border: 1px solid rgba(198, 220, 255, 0.14) !important;
    box-shadow: 0 14px 30px rgba(0,0,0,0.35) !important;
}
[data-c37-theme="dgm"] .docente-shell .section-title,
[data-c37-theme="dgm"] .docente-shell h1,
[data-c37-theme="dgm"] .docente-shell h2,
[data-c37-theme="dgm"] .docente-shell h3,
[data-c37-theme="dgm"] .docente-shell h4,
[data-c37-theme="dgm"] .docente-shell h5,
[data-c37-theme="dgm"] .docente-shell p {
    color: #eaf4ff !important;
}
[data-c37-theme="dgm"] .doc-hub-hero {
    background: linear-gradient(135deg, #17305d 0%, #1a3566 56%, #1f3f77 100%) !important;
    color: #eaf4ff !important;
    border: 1px solid rgba(200, 221, 255, 0.2) !important;
}
[data-c37-theme="dgm"] .doc-hub-hero .doc-hub-hero-kicker {
    color: #b4caef !important;
}
[data-c37-theme="dgm"] .doc-hub-hero .doc-hub-hero-text {
    color: #d6e3fb !important;
}
[data-c37-theme="dgm"] .doc-hub-hero-panel {
    background: #162c52 !important;
    border: 1px solid rgba(190, 214, 255, 0.2) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.24) !important;
}
[data-c37-theme="dgm"] .doc-hub-chip {
    background: rgba(10, 21, 43, 0.72) !important;
    border: 1px solid rgba(166, 194, 235, 0.45) !important;
    color: #e4efff !important;
}
[data-c37-theme="dgm"] .doc-hub-chip:hover,
[data-c37-theme="dgm"] .doc-hub-chip:focus-visible {
    background: rgba(18, 36, 69, 0.92) !important;
    color: #f5f9ff !important;
}
[data-c37-theme="dgm"] .doc-hub-hero .btn-light {
    background: #1c7ed6 !important;
    color: #eaf4ff !important;
    border-color: #1c7ed6 !important;
}
[data-c37-theme="dgm"] .doc-hub-hero .btn-outline-light {
    color: #eaf4ff !important;
    border-color: rgba(255,255,255,0.55) !important;
}
[data-c37-theme="dgm"] .doc-hub-card {
    background: #132744 !important;
    color: #eaf4ff !important;
    border: 1px solid rgba(195, 219, 255, 0.18) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.28) !important;
}
[data-c37-theme="dgm"] .doc-hub-create,
[data-c37-theme="dgm"] .doc-hub-side,
[data-c37-theme="dgm"] .doc-hub-banner {
    background: #132744 !important;
    border: 1px solid rgba(195, 219, 255, 0.18) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.28) !important;
}
[data-c37-theme="dgm"] .doc-hub-create-item,
[data-c37-theme="dgm"] .doc-hub-side-item {
    background: #183256 !important;
    border: 1px solid rgba(192, 216, 255, 0.2) !important;
    box-shadow: 0 8px 18px rgba(0,0,0,0.22) !important;
}
[data-c37-theme="dgm"] .doc-hub-side-subitem {
    border-top-color: rgba(196, 216, 251, 0.25) !important;
}
[data-c37-theme="dgm"] .doc-hub-section-title {
    background: rgba(26, 52, 95, 0.78) !important;
    border-color: rgba(168, 196, 240, 0.45) !important;
    color: #dcebff !important;
    box-shadow: none !important;
}
[data-c37-theme="dgm"] .doc-hub-card img {
    background: #0f203c !important;
    border-color: rgba(185, 210, 248, 0.24) !important;
}
[data-c37-theme="dgm"] .doc-hub-card p,
[data-c37-theme="dgm"] .doc-hub-card .text-muted,
[data-c37-theme="dgm"] .doc-hub-card .fw-semibold {
    color: #d5e3fb !important;
}
[data-c37-theme="dgm"] .doc-hub-shell p,
[data-c37-theme="dgm"] .doc-hub-shell .text-muted,
[data-c37-theme="dgm"] .doc-hub-shell .small {
    color: #c8d8f5 !important;
}
[data-c37-theme="dgm"] .doc-hub-shell .fw-semibold,
[data-c37-theme="dgm"] .doc-hub-shell h3 {
    color: #edf4ff !important;
}
[data-c37-theme="dgm"] .doc-hub-btn-view {
    background: rgba(18, 38, 74, 0.72) !important;
    color: #e6f1ff !important;
    border-color: rgba(160, 190, 235, 0.5) !important;
}
[data-c37-theme="dgm"] .doc-hub-btn-view:hover,
[data-c37-theme="dgm"] .doc-hub-btn-view:focus-visible {
    background: rgba(31, 63, 119, 0.86) !important;
    color: #ffffff !important;
}
[data-c37-theme="dgm"] .doc-hub-card .btn-outline-primary {
    color: #6cf8ff !important;
    border-color: #6cf8ff !important;
}
[data-c37-theme="dgm"] .doc-hub-card .btn-outline-primary:hover {
    background: #6cf8ff !important;
    color: #0a1124 !important;
}

/* Code page */
[data-c37-theme="dgm"] .code-hero {
    background: #050c1b;
}
[data-c37-theme="dgm"] .code-shell {
    background: #0a152b !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 16px 36px rgba(0,0,0,0.45) !important;
}
[data-c37-theme="dgm"] .code-shell h1,
[data-c37-theme="dgm"] .code-shell h2,
[data-c37-theme="dgm"] .code-shell h3,
[data-c37-theme="dgm"] .code-shell h4,
[data-c37-theme="dgm"] .code-shell h5,
[data-c37-theme="dgm"] .code-shell p,
[data-c37-theme="dgm"] .code-shell .section-title {
    color: #eaf4ff !important;
}
[data-c37-theme="dgm"] .code-shell .card {
    background: #0f1b34 !important;
    color: #eaf4ff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 16px 32px rgba(0,0,0,0.4) !important;
}
[data-c37-theme="dgm"] .code-shell .card .text-muted {
    color: #cdd8f7 !important;
}
[data-c37-theme="dgm"] .code-shell .card .btn-primary {
    background: #1c7ed6 !important;
    border-color: #1c7ed6 !important;
}
[data-c37-theme="dgm"] .code-card-header {
    background: linear-gradient(135deg, #1c7ed6, #6cf8ff) !important;
    color: #0a1124 !important;
}
[data-c37-theme="dgm"] .code-card-header h4,
[data-c37-theme="dgm"] .code-card-header div {
    color: #0a1124 !important;
}

/* Formularios de creación (material, evento, chatlab) */
[data-c37-theme="dgm"] .create-hero {
    background: #050c1b;
}
[data-c37-theme="dgm"] .create-shell {
    background: #0a152b !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 16px 36px rgba(0,0,0,0.45) !important;
}
[data-c37-theme="dgm"] .create-shell h1,
[data-c37-theme="dgm"] .create-shell h2,
[data-c37-theme="dgm"] .create-shell h3,
[data-c37-theme="dgm"] .create-shell h4,
[data-c37-theme="dgm"] .create-shell h5,
[data-c37-theme="dgm"] .create-shell p,
[data-c37-theme="dgm"] .create-shell .section-title,
[data-c37-theme="dgm"] .create-shell .text-muted {
    color: #eaf4ff !important;
}
[data-c37-theme="dgm"] .create-shell .card {
    background: #0f1b34 !important;
    color: #eaf4ff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 16px 32px rgba(0,0,0,0.4) !important;
}
[data-c37-theme="dgm"] .create-shell .card .text-muted {
    color: #cdd8f7 !important;
}
[data-c37-theme="dgm"] .create-shell label,
[data-c37-theme="dgm"] .create-shell .form-label,
[data-c37-theme="dgm"] .create-shell h6,
[data-c37-theme="dgm"] .create-shell h5,
[data-c37-theme="dgm"] .create-shell h4,
[data-c37-theme="dgm"] .create-shell h3,
[data-c37-theme="dgm"] .create-shell h2,
[data-c37-theme="dgm"] .create-shell h1,
[data-c37-theme="dgm"] .create-shell .form-text {
    color: #eaf4ff !important;
}
[data-c37-theme="dgm"] .create-shell select,
[data-c37-theme="dgm"] .create-shell option {
    color: #eaf4ff !important;
    background: #0f172a !important;
}
[data-c37-theme="dgm"] .create-shell option:disabled {
    color: #8090b5 !important;
}
[data-c37-theme="dgm"] .create-shell .btn-conecta37,
[data-c37-theme="dgm"] .create-shell .btn-success {
    background: #1c7ed6 !important;
    border-color: #1c7ed6 !important;
    color: #eaf4ff !important;
}
[data-c37-theme="dgm"] .create-shell .badge.bg-light {
    background: #1b2945 !important;
    color: #eaf4ff !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
}
[data-c37-theme="dgm"] .create-shell .form-check-input {
    border-color: rgba(255,255,255,0.6) !important;
    background-color: #0f172a !important;
}
[data-c37-theme="dgm"] .create-shell .form-check-input:checked {
    background-color: #6cf8ff !important;
    border-color: #6cf8ff !important;
}
[data-c37-theme="dgm"] .create-shell h6,
[data-c37-theme="dgm"] .create-shell .text-body {
    color: #eaf4ff !important;
}
[data-c37-theme="dgm"] .hero-header {
    background: radial-gradient(circle at 20% 20%, rgba(108,248,255,0.16), transparent 32%),
                radial-gradient(circle at 80% 10%, rgba(255,111,183,0.12), transparent 28%),
                #050c1b;
}
[data-c37-theme="dgm"] .hero-header .text-white,
[data-c37-theme="dgm"] .hero-header .text-white-50,
[data-c37-theme="dgm"] .hero-header h1,
[data-c37-theme="dgm"] .hero-header h2,
[data-c37-theme="dgm"] .hero-header h3,
[data-c37-theme="dgm"] .hero-header h4,
[data-c37-theme="dgm"] .hero-header h5,
[data-c37-theme="dgm"] .hero-header p,
[data-c37-theme="dgm"] .hero-chip,
[data-c37-theme="dgm"] .hero-chip-alt {
    color: #eaf4ff !important;
}
[data-c37-theme="dgm"] .hero-chip,
[data-c37-theme="dgm"] .hero-chip-alt {
    background: rgba(108,248,255,0.14);
    border: 1px solid rgba(108,248,255,0.35);
}

/* Fracciones: mejorar legibilidad de ejercicios en DG */
[data-c37-theme="dgm"] .exercise-box {
    background: #0a152b !important;
    color: #eaf4ff !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.45) !important;
}
[data-c37-theme="dgm"] .exercise-box .form-label,
[data-c37-theme="dgm"] .exercise-box .exercise-title,
[data-c37-theme="dgm"] .exercise-box .math-big,
[data-c37-theme="dgm"] .exercise-box .hint-chip {
    color: #eaf4ff !important;
}
[data-c37-theme="dgm"] .exercise-box input,
[data-c37-theme="dgm"] .exercise-box textarea {
    background: #0f172a !important;
    color: #eaf4ff !important;
    border-color: rgba(255,255,255,0.2) !important;
}
[data-c37-theme="dgm"] .exercise-box input::placeholder,
[data-c37-theme="dgm"] .exercise-box textarea::placeholder {
    color: #cdd8f7 !important;
}
[data-c37-theme="dgm"] .math-big {
    font-weight: 800;
    font-size: 1.4rem;
}
[data-c37-theme="dgm"] .math-big br {
    display: block;
}

/* Enteros v.2: tarjetas y pasos */
[data-c37-theme="dgm"] .mode-card {
    background: #0f1b34 !important;
    color: #eaf4ff !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.45) !important;
}
[data-c37-theme="dgm"] .mode-card .mode-sub,
[data-c37-theme="dgm"] .mode-card .mode-title {
    color: #eaf4ff !important;
}
[data-c37-theme="dgm"] .mode-card.active {
    border-color: #6cf8ff !important;
    box-shadow: 0 12px 28px rgba(0,195,255,0.2) !important;
}
[data-c37-theme="dgm"] .mini-step {
    background: #0f172a !important;
    color: #eaf4ff !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
}
[data-c37-theme="dgm"] .mini-step span {
    background: #6cf8ff !important;
    color: #0a1124 !important;
}
[data-c37-theme="dgm"] .placeholder-area {
    background: #0a152b !important;
    color: #cdd8f7 !important;
    border: 1px dashed rgba(255,255,255,0.2) !important;
}

/* Enteros v.2 — secciones de estrategia */
[data-c37-theme="dgm"] .bg-light {
    background: #0f1b34 !important;
    color: #eaf4ff !important;
    border-color: rgba(255,255,255,0.12) !important;
}
[data-c37-theme="dgm"] .bg-white {
    background: #0f172a !important;
    color: #eaf4ff !important;
    border-color: rgba(255,255,255,0.12) !important;
}
[data-c37-theme="dgm"] .bg-white .text-muted,
[data-c37-theme="dgm"] .bg-light .text-muted {
    color: #cdd8f7 !important;
}

/* Enteros – encabezado incubadora */
[data-c37-theme="dgm"] .inc-section-muted {
    background: linear-gradient(180deg, #050c1b 0%, #0a152b 60%, #0a152b 100%) !important;
}
[data-c37-theme="dgm"] .inc-section-title,
[data-c37-theme="dgm"] .inc-section-subtitle {
    color: #eaf4ff !important;
}

/* Prep Jornadas 26 */
[data-c37-theme="dgm"] .prepj26-wrap {
    background: linear-gradient(180deg, #05060a 0%, #0a152b 50%, #05060a 100%) !important;
    color: #eaf4ff !important;
}
[data-c37-theme="dgm"] .prepj26-section-title,
[data-c37-theme="dgm"] .prepj26-title,
[data-c37-theme="dgm"] .prepj26-subtitle,
[data-c37-theme="dgm"] .prepj26-quote,
[data-c37-theme="dgm"] .prepj26-text {
    color: #eaf4ff !important;
}
[data-c37-theme="dgm"] .prepj26-card {
    background: rgba(10, 21, 43, 0.94) !important;
    color: #eaf4ff !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow: 0 18px 32px rgba(0,0,0,0.4) !important;
}
[data-c37-theme="dgm"] .prepj26-card::after {
    border-color: rgba(255,255,255,0.08) !important;
}
[data-c37-theme="dgm"] .prepj26-card .text-muted,
[data-c37-theme="dgm"] .prepj26-card small {
    color: #cdd8f7 !important;
}
[data-c37-theme="dgm"] .prepj26-card h3,
[data-c37-theme="dgm"] .prepj26-card h4,
[data-c37-theme="dgm"] .prepj26-card h5,
[data-c37-theme="dgm"] .prepj26-card h6 {
    color: #eaf4ff !important;
}
[data-c37-theme="dgm"] .prepj26-card .prepj26-text,
[data-c37-theme="dgm"] .prepj26-card p {
    color: #eaf4ff !important;
}
[data-c37-theme="dgm"] .prepj26-card .prepj26-tag {
    color: #0a1124 !important;
    background: #6cf8ff !important;
    border-color: transparent !important;
}

.points-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1085;
    animation: points-toast-in 0.25s ease-out;
}

.points-toast-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: #111827;
    color: #f9fafb;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 0.95rem;
}

.points-toast-inner i {
    color: #facc15;
}

@keyframes points-toast-in {
    from {
        transform: translateY(12px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Uniform button height across the app (reference: profile action buttons) */
:root {
    --c37-btn-height: 26px;
    --c37-btn-padding-x: 10px;
}

.btn:not(.btn-link):not(.btn-square):not(.btn-sm-square):not(.btn-lg-square):not(.c37-nav-cta) {
    height: var(--c37-btn-height);
    min-height: var(--c37-btn-height);
    padding-top: 0;
    padding-bottom: 0;
    padding-left: var(--c37-btn-padding-x);
    padding-right: var(--c37-btn-padding-x);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
