/* ====================================
   THEME.CSS - Estilos base modernos
   IESJ Futurista Tropical
   ==================================== */

/* === TIPOGRAFÍA GLOBAL === */
body.iesj-modern,
body.iesj-modern p,
body.iesj-modern li,
body.iesj-modern td {
    font-family: var(--font-body) !important;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
}

body.iesj-modern h1,
body.iesj-modern h2,
body.iesj-modern h3,
body.iesj-modern h4,
body.iesj-modern h5,
body.iesj-modern h6 {
    font-family: var(--font-heading) !important;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--iesj-navy-dark);
    line-height: 1.2;
}

body.iesj-modern h1 { font-size: clamp(32px, 5vw, 56px); }
body.iesj-modern h2 { font-size: clamp(24px, 3.5vw, 40px); }
body.iesj-modern h3 { font-size: clamp(20px, 2.5vw, 28px); }
body.iesj-modern h4 { font-size: 20px; }

/* === HEADER MODERNO === */
body.iesj-modern #header,
body.iesj-modern #masthead {
    background: var(--grad-dark) !important;
    box-shadow: 0 4px 24px rgba(7,22,58,0.5) !important;
    border-bottom: 2px solid var(--iesj-gold) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

/* Logo */
body.iesj-modern #header .avia-logo,
body.iesj-modern #header img.logo {
    filter: drop-shadow(0 0 8px rgba(0,217,255,0.3));
    transition: filter var(--transition-smooth);
}

body.iesj-modern #header .avia-logo:hover,
body.iesj-modern #header img.logo:hover {
    filter: drop-shadow(0 0 16px rgba(0,217,255,0.6));
}

/* === MENÚ DE NAVEGACIÓN === */
body.iesj-modern #header #main_menu ul.avia-menu > li > a,
body.iesj-modern .av-main-nav > li > a {
    font-family: var(--font-accent) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.9) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm) !important;
    transition: all var(--transition-fast) !important;
    position: relative !important;
}

body.iesj-modern #header #main_menu ul.avia-menu > li > a::after,
body.iesj-modern .av-main-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--grad-cta);
    border-radius: 2px;
    transition: width var(--transition-smooth);
}

body.iesj-modern #header #main_menu ul.avia-menu > li:hover > a,
body.iesj-modern .av-main-nav > li:hover > a,
body.iesj-modern #header #main_menu ul.avia-menu > li.current-menu-item > a {
    color: var(--iesj-gold) !important;
    background: rgba(255,215,0,0.08) !important;
}

body.iesj-modern #header #main_menu ul.avia-menu > li:hover > a::after,
body.iesj-modern .av-main-nav > li:hover > a::after {
    width: 80%;
}

/* Submenú */
body.iesj-modern #header ul.sub-menu,
body.iesj-modern .av-main-nav .sub-menu {
    background: var(--iesj-navy-deep) !important;
    border-top: 2px solid var(--iesj-gold) !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    backdrop-filter: blur(10px);
}

body.iesj-modern #header ul.sub-menu a,
body.iesj-modern .av-main-nav .sub-menu a {
    color: rgba(255,255,255,0.85) !important;
    background-color: transparent !important;
    font-size: 13px !important;
    padding: 10px 20px !important;
    transition: all var(--transition-fast) !important;
    border-left: 3px solid transparent !important;
}

body.iesj-modern #header ul.sub-menu a:hover,
body.iesj-modern .av-main-nav .sub-menu a:hover {
    color: var(--iesj-gold) !important;
    background: rgba(255,215,0,0.06) !important;
    border-left-color: var(--iesj-gold) !important;
    padding-left: 26px !important;
}

/* === BOTONES MODERNOS === */
body.iesj-modern .avia-button,
body.iesj-modern .avia-btn,
body.iesj-modern button:not(.menu-item):where(:not(#iesj-joseito-launcher):not(#iesj-joseito-callout-close)),
body.iesj-modern input[type="submit"],
body.iesj-modern .av-button {
    font-family: var(--font-accent) !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    padding: 14px 28px !important;
    border-radius: var(--radius-full) !important;
    border: none !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    background: var(--grad-cta) !important;
    color: var(--text-light) !important;
    box-shadow: 0 4px 15px rgba(196,30,36,0.3) !important;
    transition: all var(--transition-smooth) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

body.iesj-modern .avia-button:hover,
body.iesj-modern .avia-btn:hover,
body.iesj-modern button:not(.menu-item):where(:not(#iesj-joseito-launcher):not(#iesj-joseito-callout-close)):hover,
body.iesj-modern input[type="submit"]:hover,
body.iesj-modern .av-button:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(196,30,36,0.4), var(--shadow-gold) !important;
    filter: brightness(1.1) !important;
}

body.iesj-modern .avia-button:active,
body.iesj-modern button:not(.menu-item):where(:not(#iesj-joseito-launcher):not(#iesj-joseito-callout-close)):active {
    transform: translateY(0) scale(0.98) !important;
}

/* Efecto shimmer en botones */
body.iesj-modern .avia-button::before,
body.iesj-modern button:not(.menu-item):where(:not(#iesj-joseito-launcher):not(#iesj-joseito-callout-close))::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

body.iesj-modern .avia-button:hover::before,
body.iesj-modern button:not(.menu-item):where(:not(#iesj-joseito-launcher):not(#iesj-joseito-callout-close)):hover::before {
    left: 100%;
}

/* === TARJETAS Y CONTENIDO === */
body.iesj-modern .av-masonry-entry,
body.iesj-modern .av-blog-overview article {
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-smooth) !important;
    border: 1px solid rgba(26,58,140,0.08) !important;
    background: var(--bg-white) !important;
}
/* .post-entry NO tiene overflow:hidden para no colapsar el contenido principal en móvil */
body.iesj-modern .post-entry {
    border-radius: var(--radius-lg) !important;
    overflow: visible !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-smooth) !important;
    border: 1px solid rgba(26,58,140,0.08) !important;
    background: var(--bg-white) !important;
}

body.iesj-modern .av-masonry-entry:hover,
body.iesj-modern .post-entry:hover,
body.iesj-modern .av-blog-overview article:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--iesj-gold) !important;
}

/* Título de tarjeta */
body.iesj-modern .av-masonry-entry .av-masonry-entry-title,
body.iesj-modern .entry-title a {
    color: var(--iesj-navy-dark) !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    transition: color var(--transition-fast) !important;
}

body.iesj-modern .av-masonry-entry:hover .av-masonry-entry-title,
body.iesj-modern .entry-title a:hover {
    color: var(--iesj-navy) !important;
}

/* === SECCIONES HERO / SLIDER === */
body.iesj-modern .avia-slideshow .slide,
body.iesj-modern .avia-slideshow-inner {
    position: relative;
}

body.iesj-modern .slideshow_caption {
    background: linear-gradient(135deg, rgba(7,22,58,0.9) 0%, rgba(26,58,140,0.7) 100%) !important;
    backdrop-filter: blur(4px) !important;
    border-left: 4px solid var(--iesj-gold) !important;
    border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
    padding: 24px 32px !important;
}

body.iesj-modern .slideshow_caption .avia-slide-caption-title {
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
    color: var(--iesj-gold) !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

body.iesj-modern .slideshow_caption .avia-slide-caption-content {
    color: rgba(255,255,255,0.9) !important;
    font-family: var(--font-body) !important;
}

/* === FOOTER MODERNO === */
body.iesj-modern #footer,
body.iesj-modern footer {
    background: var(--grad-dark) !important;
    border-top: 3px solid var(--iesj-gold) !important;
    color: rgba(255,255,255,0.8) !important;
}

body.iesj-modern #footer h3,
body.iesj-modern #footer h4,
body.iesj-modern footer h3,
body.iesj-modern footer h4 {
    color: var(--iesj-gold) !important;
    font-family: var(--font-accent) !important;
    letter-spacing: 0.5px !important;
    border-bottom: 1px solid rgba(255,215,0,0.2) !important;
    padding-bottom: 10px !important;
    margin-bottom: 16px !important;
}

body.iesj-modern #footer a,
body.iesj-modern footer a {
    color: rgba(255,255,255,0.7) !important;
    transition: all var(--transition-fast) !important;
}

body.iesj-modern #footer a:hover,
body.iesj-modern footer a:hover {
    color: var(--iesj-gold) !important;
    text-decoration: none !important;
}

body.iesj-modern #socket,
body.iesj-modern .socket-wrapper {
    background: var(--iesj-navy-deep) !important;
    border-top: 1px solid rgba(255,215,0,0.1) !important;
    color: rgba(255,255,255,0.5) !important;
}

/* === HEADINGS CON DECORACIÓN === */
body.iesj-modern .special-heading-inner-border {
    border-color: var(--iesj-gold) !important;
}

body.iesj-modern .special-heading {
    color: var(--iesj-navy-dark) !important;
    font-family: var(--font-heading) !important;
}

/* === FORMULARIOS MODERNOS === */
body.iesj-modern input[type="text"],
body.iesj-modern input[type="email"],
body.iesj-modern input[type="search"],
body.iesj-modern textarea,
body.iesj-modern select {
    font-family: var(--font-body) !important;
    border: 2px solid rgba(26,58,140,0.15) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    transition: all var(--transition-fast) !important;
    background: var(--bg-white) !important;
    color: var(--text-dark) !important;
}

body.iesj-modern input[type="text"]:focus,
body.iesj-modern input[type="email"]:focus,
body.iesj-modern textarea:focus,
body.iesj-modern select:focus {
    border-color: var(--iesj-cyan) !important;
    box-shadow: 0 0 0 4px rgba(0,217,255,0.12) !important;
    outline: 2px solid var(--iesj-cyan) !important;
    outline-offset: 2px !important;
}

/* Focus visible para teclado — WCAG 2.4.7 */
body.iesj-modern a:focus-visible,
body.iesj-modern button:focus-visible,
body.iesj-modern [role="button"]:focus-visible {
    outline: 2px solid var(--iesj-gold) !important;
    outline-offset: 3px !important;
    border-radius: 3px;
}

/* === SECTION SEPARATOR === */
body.iesj-modern .section-separator,
body.iesj-modern hr.av-section-separator {
    border-color: var(--iesj-gold) !important;
    opacity: 0.4;
}

/* === ÍCONOS SOCIALES === */
body.iesj-modern .av-icon-char,
body.iesj-modern .social-icon a {
    background: var(--iesj-navy) !important;
    color: var(--text-light) !important;
    transition: all var(--transition-smooth) !important;
    border-radius: var(--radius-full) !important;
}

body.iesj-modern .av-icon-char:hover,
body.iesj-modern .social-icon a:hover {
    background: var(--iesj-gold) !important;
    color: var(--iesj-navy-deep) !important;
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: var(--shadow-gold) !important;
}

/* === HOMEPAGE: OCULTAR TÍTULO Y BREADCRUMB === */
body.home .entry-title,
body.home .av-breadcrumbs,
body.home .av-breadcrumbs-box,
body.home #breadcrumb_element,
body.home .breadcrumb_element,
body.home .main-title,
body.home .breadcrumbs,
body.home #breadcrumbs,
body.home .av-breadcrumb,
body.home .av-breadcrumb-container,
body.home .av-breadcrumb-title,
body.home [class*="breadcrumb"],
body.home .main_color .alternate_color,
body.home .titlebar-breadcrumbs,
body.home .av-page-title-wrap,
body.home .header-title-section,
body.home .av-title-bar {
    display: none !important;
}

body.home #main,
body.home #main .post-entry,
body.home #main .entry-content-wrapper,
body.home #main .template-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* === HOMEPAGE LAYOUT: MURO + SIDEBAR === */
.iesj-home-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.iesj-home-layout .iesj-muro-section {
    margin-top: 0;
    padding: 40px;
    border-radius: 12px;
}

@media (max-width: 1024px) {
    .iesj-home-layout {
        grid-template-columns: 1fr;
        padding: 20px 16px 40px;
    }
}

/* === SIDEBAR WIDGETS — estilos movidos a sidebar.css === */
.iesj-sidebar-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1A3A8C, #2A6BC9);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === FOOTER WIDGETS — listas IESJ === */
.iesj-footer-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.iesj-footer-list li {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.iesj-footer-list li a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.iesj-footer-list li a:hover {
    color: var(--iesj-gold, #FFD700) !important;
    padding-left: 4px;
}

/* === FOOTER CONTACT BLOCK === */
/* Selectores reforzados para ganarle a Enfold #footer */
#footer .iesj-footer-contact,
#footer .iesj-footer-contact p,
#footer .iesj-footer-contact span,
body.iesj-modern #footer .iesj-footer-contact,
body.iesj-modern #footer .iesj-footer-contact p,
body.iesj-modern #footer .iesj-footer-contact span {
    color: #ffffff !important;
}

.iesj-footer-contact p {
    margin: 0 0 12px 0 !important;
    font-size: 14px;
    line-height: 1.5;
}

.iesj-footer-contact a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.iesj-footer-contact a:hover {
    color: var(--iesj-gold, #FFD700) !important;
}

.iesj-footer-contact .iesj-fc-icon {
    display: inline-block;
    margin-right: 6px;
}

.iesj-footer-contact .iesj-fc-sub {
    font-size: 13px;
    opacity: 0.85;
}

.iesj-footer-contact .iesj-fc-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    color: var(--iesj-gold, #FFD700) !important;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 4px !important;
    letter-spacing: 0.3px;
}

.iesj-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.iesj-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none !important;
}

.iesj-footer-social a:hover {
    background: var(--iesj-gold, #FFD700);
    color: var(--iesj-navy-dark, #07163A) !important;
    transform: translateY(-2px);
}

/* =============================================
   PÁGINA: Conoce Nuestra Institución
   ============================================= */
.iesj-conoce-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 28px 0;
}
.iesj-stat-card {
    background: linear-gradient(135deg, #1A3A8C, #07163A);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    color: #fff;
}
.iesj-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #FFD700;
    line-height: 1;
    display: block;
}
.iesj-stat-label {
    font-size: .8rem;
    margin-top: 6px;
    opacity: .85;
    text-transform: uppercase;
    letter-spacing: .05em;
    display: block;
}
.iesj-sec-title {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #1A3A8C !important;
    margin: 36px 0 18px !important;
    padding-bottom: 8px;
    border-bottom: 3px solid #FFD700;
}
/* Sedes grid */
.iesj-sedes-grid-cn {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 0 0 40px;
}
.iesj-sede-cn {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(7, 22, 58, .1);
    display: flex;
    flex-direction: column;
}
.iesj-sede-cn img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.iesj-sede-cn-body {
    padding: 16px;
    flex: 1;
}
.iesj-sede-cn-name {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1A3A8C !important;
    margin: 0 0 8px !important;
}
.iesj-sede-cn-coords {
    font-size: .82rem;
    color: #444;
    line-height: 1.55;
}
.iesj-sede-cn-coords strong {
    color: #07163A !important;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    display: block;
    margin-bottom: 3px;
}
/* Rector destacado */
.iesj-rector-feature {
    background: linear-gradient(135deg, #07163A, #1A3A8C);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0 0 28px;
}
.iesj-rector-feature img {
    width: 110px;
    height: 140px;
    object-fit: cover;
    object-position: top center;
    border-radius: 10px;
    border: 3px solid #FFD700;
    flex-shrink: 0;
}
.iesj-rector-feature-tag {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #FFD700 !important;
    font-weight: 700;
    margin: 0 0 6px !important;
}
.iesj-rector-feature-name {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 10px !important;
    line-height: 1.2;
}
.iesj-rector-feature-quote {
    font-size: .9rem;
    color: rgba(255, 255, 255, .85) !important;
    font-style: italic;
    line-height: 1.6;
    margin: 0 !important;
}
/* Coordinadores grid */
.iesj-coords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.iesj-coord-cn {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(7, 22, 58, .09);
    overflow: hidden;
    text-align: center;
    padding: 0 0 18px;
}
.iesj-coord-cn img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.iesj-coord-cn-name {
    font-size: .88rem !important;
    font-weight: 700 !important;
    color: #1A3A8C !important;
    margin: 12px 10px 4px !important;
    line-height: 1.3;
}
.iesj-coord-cn-role {
    font-size: .75rem;
    color: #555;
    margin: 0 10px !important;
    line-height: 1.4;
}
/* Responsive conoce */
@media (max-width: 1024px) {
    .iesj-conoce-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .iesj-rector-feature { flex-direction: column; text-align: center; }
    .iesj-sedes-grid-cn { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .iesj-sedes-grid-cn { grid-template-columns: 1fr; }
    .iesj-coords-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   PÁGINA: Historia — Timeline y Sedes
   ============================================= */
.iesj-tl { margin: 20px 0 32px; }
.iesj-tl-item { display: flex; gap: 0; margin: 0 0 14px; }
.iesj-tl-year {
    background: #1A3A8C;
    color: #FFD700 !important;
    font-weight: 700;
    font-size: .82rem;
    min-width: 66px;
    text-align: center;
    padding: 12px 4px;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.iesj-tl-body {
    background: #fff;
    border-radius: 0 10px 10px 0;
    padding: 13px 18px;
    box-shadow: 0 2px 10px rgba(7,22,58,.08);
    flex: 1;
    border-left: 3px solid #FFD700;
}
.iesj-tl-body p { margin: 0; font-size: .91rem; color: #333; line-height: 1.62; }
.iesj-h2-hist {
    color: #07163A !important;
    border-left: 5px solid #FFD700;
    padding-left: 14px;
    margin: 34px 0 16px;
    font-size: 1.3rem !important;
}
/* Sede Principal — bloque navy */
.iesj-sede-ppal {
    background: #07163A;
    border-radius: 14px;
    padding: 26px 28px;
    margin: 0 0 24px;
}
.iesj-sede-ppal h3 { color: #FFD700 !important; margin: 0 0 10px; font-size: 1.2rem; }
.iesj-sede-ppal p  { color: #dbe2f5 !important; line-height: 1.65; margin: 0; }
.iesj-sede-ppal-img-wrap { text-align: center; margin: 0 0 16px; }
.iesj-sede-ppal-img-wrap img {
    border-radius: 8px;
    width: 100%;
    max-height: 300px;
    height: auto;
    object-fit: cover;
    object-position: center top;
    border: 3px solid rgba(255,255,255,.15);
}
/* Grid 4 sedes */
.iesj-sedes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 0 0 32px;
}
.iesj-sg-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(7,22,58,.1);
}
.iesj-sg-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.iesj-sg-card-body { padding: 14px 16px; }
.iesj-sg-card-body h3 { font-size: .98rem !important; margin: 0 0 6px !important; }
.iesj-sg-card-body p  { font-size: .84rem; color: #555; line-height: 1.55; margin: 0; }
@media (max-width: 768px) {
    .iesj-sedes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .iesj-sedes-grid { grid-template-columns: 1fr; }
    .iesj-tl-item { flex-direction: column; }
    .iesj-tl-year { border-radius: 8px 8px 0 0; min-width: auto; padding: 8px 16px; }
    .iesj-tl-body { border-radius: 0 0 10px 10px; border-left: none; border-top: 3px solid #FFD700; }
}

/* =============================================
   PULIDO VISUAL — Fase 6.4
   ============================================= */

/* Badge / chip de sección en doc-headers */
.iesj-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.18);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #FFD700 !important;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}

/* Hover en cards institucionales — consistente con muro */
.iesj-dir-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.iesj-dir-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(26,58,140,.15), 0 0 20px rgba(255,215,0,.15);
}

.iesj-sede-cn {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.iesj-sede-cn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(26,58,140,.15);
}
.iesj-sede-cn:hover img {
    transform: scale(1.04);
}
.iesj-sede-cn img {
    transition: transform 0.4s ease;
}

.iesj-coord-cn {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.iesj-coord-cn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(26,58,140,.15);
}
.iesj-coord-cn:hover img {
    transform: scale(1.04);
}
.iesj-coord-cn img {
    transition: transform 0.4s ease;
}

.iesj-sg-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.iesj-sg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(26,58,140,.15);
}
.iesj-sg-card:hover img {
    transform: scale(1.04);
}
.iesj-sg-card img {
    transition: transform 0.4s ease;
}

/* Stat cards: brillo al hover */
.iesj-stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.iesj-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(7,22,58,.25);
}

/* ====================================
   LANZADOR DEL CHAT — JOSEITO
   Boton flotante que reemplaza el globo
   por defecto de Tawk.to (ver functions.php
   seccion 10).
   ==================================== */
#iesj-joseito-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    padding: 0;
    margin: 0;
    border: 3px solid var(--iesj-gold, #FFD700);
    border-radius: 50%;
    background: var(--iesj-navy, #1A3A8C);
    cursor: pointer;
    z-index: 999999;
    display: none; /* el JS lo muestra (flex) */
    align-items: center;
    justify-content: center;
    overflow: visible;
    box-shadow: 0 6px 20px rgba(7, 22, 58, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: iesjJoseitoPulse 2.8s ease-out infinite;
    line-height: 0;
}

#iesj-joseito-launcher:hover,
#iesj-joseito-launcher:focus-visible {
    transform: scale(1.08);
    box-shadow: 0 10px 26px rgba(7, 22, 58, 0.55);
}

#iesj-joseito-launcher img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

#iesj-joseito-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    background: var(--iesj-red, #C41E24);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    border: 2px solid #ffffff;
    display: none; /* el JS lo muestra cuando hay no leidos */
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@keyframes iesjJoseitoPulse {
    0%   { box-shadow: 0 6px 20px rgba(7,22,58,0.45), 0 0 0 0 rgba(255,215,0,0.55); }
    70%  { box-shadow: 0 6px 20px rgba(7,22,58,0.45), 0 0 0 14px rgba(255,215,0,0); }
    100% { box-shadow: 0 6px 20px rgba(7,22,58,0.45), 0 0 0 0 rgba(255,215,0,0); }
}

@media (max-width: 768px) {
    #iesj-joseito-launcher {
        width: 56px;
        height: 56px;
        bottom: 16px;
        right: 16px;
    }
}

/* === GLOBITO DE INVITACION DEL CHAT (callout Joseito) === */
#iesj-joseito-callout {
    position: fixed;
    bottom: 96px;
    right: 20px;
    max-width: 260px;
    background: #ffffff;
    color: #07163A;
    font-size: 14px;
    line-height: 1.45;
    padding: 14px 34px 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(7, 22, 58, 0.08);
    box-shadow: 0 8px 24px rgba(7, 22, 58, 0.28);
    z-index: 999998;
    display: none; /* el JS lo muestra */
    cursor: pointer;
    animation: iesjCalloutIn 0.45s ease-out;
}

/* Colita del globito apuntando al boton */
#iesj-joseito-callout::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 28px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-right: 1px solid rgba(7, 22, 58, 0.08);
    border-bottom: 1px solid rgba(7, 22, 58, 0.08);
    transform: rotate(45deg);
}

#iesj-joseito-callout strong {
    color: #1A3A8C;
}

#iesj-joseito-callout-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 22px;
    height: 22px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #8a8f9c;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#iesj-joseito-callout-close:hover {
    background: rgba(7, 22, 58, 0.07);
    color: #07163A;
}

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

@media (max-width: 768px) {
    #iesj-joseito-callout {
        bottom: 84px;
        right: 16px;
        max-width: 230px;
        font-size: 13px;
    }
}

/* === SOCKET: menu del pie sin solapamiento ===
   Enfold fija line-height/height de 10px en los li del socket;
   al envolver en varias lineas (movil) los textos se montan. */
body.iesj-modern #socket .menu li {
    line-height: 1.7 !important;
    height: auto !important;
}
body.iesj-modern #socket .menu li a {
    line-height: 1.7 !important;
}

@media (max-width: 768px) {
    body.iesj-modern #socket .menu {
        text-align: center;
    }
    body.iesj-modern #socket .menu li {
        float: none !important;
        display: inline-block !important;
        margin: 2px 6px !important;
    }
}
