/* =========================================================
   ITESHU - OFERTA EDUCATIVA
   Versión compacta
   ========================================================= */

.iteshu-oferta-section {
    position: relative;
    background: #fff;
	padding-bottom: 5em;
    border-bottom: 1px solid #e0e0e0;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.iteshu-top-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 3em;
    border-bottom: 2px solid #e0e0e0;
}

.iteshu-top-brand .brand-name {
    color: #1B396A;
    font-size: 6em;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.iteshu-top-brand .brand-divider {
    width: 2px;
    height: 18px;
    background-color: #476E52;
}

.iteshu-top-brand .brand-slogan {
    color: #476E52;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Ajuste Responsive */
@media (max-width: 576px) {
    .iteshu-top-brand {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    .iteshu-top-brand .brand-divider {
        display: none;
    }
	
	.iteshu-top-brand .brand-name {
    font-size: 3em;
	}
	
	.iteshu-top-brand {
    margin-top: 0px;
	margin-bottom: 3em;
	padding-bottom: 2em;
	}
}

/* ---------------------------------------------------------
   BLOQUE COMPACTO DE INTERESES
   --------------------------------------------------------- */

.iteshu-oferta-compact-grid {
    display: grid;
    grid-template-columns: minmax(190px, 0.95fr) repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(68px, 78px));
    gap: 12px;
    margin: 0 auto 22px;
}

/* Bloque izquierdo, como en la referencia del usuario */
.iteshu-oferta-title-box {
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 5px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
}

.iteshu-oferta-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--iteshu-green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.iteshu-oferta-kicker .fa {
    margin-right: 5px;
}

.iteshu-oferta-heading .section-title-custom {
    display: inline-block;
    margin-bottom: 13px;
    padding-left: 15px;
    padding-right: 15px;
}

.iteshu-oferta-heading .section-title-custom:after {
    left: 50%;
    transform: translateX(-50%);
}

.iteshu-oferta-intro {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.iteshu-oferta-intro strong {
    color: var(--iteshu-blue);
}


.iteshu-interest-card:hover,
.iteshu-interest-card:focus {
    border-color: #1B396A;
    background: #f8fafc;
    color: #1B396A;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(27, 57, 106, .10);
    transform: translateY(-1px);
}

.iteshu-interest-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef3f8;
    color: #1B396A;
    font-size: 15px;
}

.iteshu-interest-card:hover .iteshu-interest-icon,
.iteshu-interest-card:focus .iteshu-interest-icon {
    background: #1B396A;
    color: #fff;
}

.iteshu-interest-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.iteshu-interest-text strong {
    color: #1B396A;
    font-size: 13px;
    font-weight: 700;
}

.iteshu-interest-text small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #666;
    font-size: 10.5px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iteshu-interest-card:hover .iteshu-interest-text strong,
.iteshu-interest-card:focus .iteshu-interest-text strong {
    color: #1B396A;
}

/* ---------------------------------------------------------
   EXPLORA TODA LA OFERTA
   Esta parte se conserva visualmente como el bloque anterior.
   --------------------------------------------------------- */

.iteshu-oferta-modalidades {
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #D6D3D3;
    border-radius: 6px;
    background: #f8f9fa;
}

.iteshu-modalidades-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.iteshu-modalidades-heading span {
    color: #1B396A;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .4px;
}

.iteshu-modalidades-heading p {
    margin: 0;
    color: #666;
    font-size: 12px;
}

.iteshu-modalidad-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.iteshu-modalidad-btn {
    min-height: 68px;
    display: grid;
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    column-gap: 9px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #D6D3D3;
    border-radius: 6px;
    background: #fff;
    color: #333;
    text-decoration: none !important;
    transition: all .2s ease;
}

.iteshu-modalidad-btn > i {
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef3f8;
    color: #1B396A;
    font-size: 14px;
}

.iteshu-modalidad-btn span {
    color: #1B396A;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.15;
}

.iteshu-modalidad-btn small {
    color: #777;
    font-size: 10px;
    line-height: 1.1;
}

.iteshu-modalidad-btn:hover,
.iteshu-modalidad-btn:focus {
    border-color: #1B396A;
    background: #1B396A;
    color: #476E52;
    box-shadow: 0 4px 12px rgba(27, 57, 106, .10);
    text-decoration: none !important;
    transform: translateY(-1px);
}

.iteshu-modalidad-btn-postgrado:hover{
	background: #611232;
}


.iteshu-modalidad-btn:hover span,
.iteshu-modalidad-btn:focus span {
    color: #1B396A;
}

.iteshu-modalidad-buttons a:hover > span,
.iteshu-modalidad-buttons a:hover > small{
    color: white;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 991px) {
    .iteshu-oferta-compact-grid {
        grid-template-columns: minmax(170px, .9fr) repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, 72px);
    }

    .iteshu-oferta-title-box {
        grid-row: 1 / span 3;
    }

    .iteshu-modalidad-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .iteshu-oferta-section {
        padding: 20px 0 26px;
    }

    .iteshu-oferta-compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        gap: 9px;
    }

    .iteshu-oferta-title-box {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: auto;
        padding: 4px 0 10px;
    }

    .iteshu-oferta-title-box h2 {
        font-size: 20px;
    }

    .iteshu-interest-card {
        min-height: 66px;
        padding: 8px 10px;
    }

    .iteshu-interest-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .iteshu-interest-text strong {
        font-size: 12px;
    }

    .iteshu-interest-text small {
        font-size: 9.5px;
    }

    .iteshu-modalidades-heading {
        display: block;
    }

    .iteshu-modalidades-heading p {
        margin-top: 4px;
    }
}

@media (max-width: 480px) {
    .iteshu-oferta-compact-grid {
        grid-template-columns: 1fr;
    }

    .iteshu-oferta-title-box {
        min-height: auto;
    }

    .iteshu-interest-card {
        min-height: 60px;
    }

    .iteshu-modalidad-buttons {
        grid-template-columns: 1fr;
    }

    .iteshu-oferta-modalidades {
        padding: 15px;
    }
}

/* Coyote posicionado en el extremo izquierdo a la altura de la sección */
.coyote-seccion-izquierda {
    position: absolute;
    left: 20px;                    /* Distancia desde el borde izquierdo de la pantalla */
    top: 55%; /* Centrado verticalmente en la sección */
	opacity: 0;
    transform: translateY(-50%) translateX(-120px) rotate(-5deg);
	transition: transform 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 2s ease;
    width: 150px;                  /* TAMAÑO CONTROLADO (Ajústalo a tu gusto) */
    height: auto;
    z-index: 10;
    pointer-events: none;          /* Evita que bloquee clics si está cerca del contenido */
}

.coyote-seccion-derecha	 {
    position: absolute;
    right: 10px;                    /* Distancia desde el borde izquierdo de la pantalla */
    top: 55%;                      /* Centrado verticalmente en la sección */
	opacity: 0;
    transform: translateY(-50%) translateX(120px) rotate(5deg);
  	transition: transform 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 2s ease;
    width: 170px;                  /* TAMAÑO CONTROLADO (Ajústalo a tu gusto) */
    height: auto;
    z-index: 10;
    pointer-events: none;          /* Evita que bloquee clics si está cerca del contenido */
}

/* Regla para evitar que tape el texto en pantallas de laptops medianas o celulares */
@media (max-width: 1500px) {
    .coyote-seccion-izquierda {
		top: 60%;                      /* Centrado verticalmente en la sección */
		transform: translateY(-50%);
		width: 100px;                  /* TAMAÑO CONTROLADO (Ajústalo a tu gusto) */
		height: auto;
    }
	
	.coyote-seccion-derecha {
		top: 60%;                      /* Centrado verticalmente en la sección */
		transform: translateY(-50%);
		width: 120px;                  /* TAMAÑO CONTROLADO (Ajústalo a tu gusto) */
		height: auto;
    }
}


/* Regla para evitar que tape el texto en pantallas de laptops medianas o celulares */
@media (max-width: 1400px) {
    .coyote-seccion-izquierda,
	.coyote-seccion-derecha{
        display: none;             /* Se oculta en pantallas donde la cuadrícula ocupa todo el ancho */
    }
}


/* ==========================================
   ESTADOS INICIALES (Antes de activar scroll)
   ========================================== */


/* Tarjetas de Interés ocultas */
.iteshu-interest-card {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.3s ease;
  will-change: transform, opacity;
}

/* ==========================================
   ESTADOS ACTIVOS (Al hacer scroll)
   ========================================== */

.iteshu-oferta-section.is-visible .coyote-seccion-izquierda,
.iteshu-oferta-section.is-visible .coyote-seccion-derecha {
  opacity: 1;
  transform: translateY(-50%) translateX(0) rotate(0deg);
}

.iteshu-interest-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   EFECTOS HOVER E INTERACTIVIDAD
   ========================================== */

/* Animación del ícono interno en Hover */
.iteshu-interest-card:hover .iteshu-interest-icon i {
  transform: scale(1.2) rotate(8deg);
  transition: transform 0.3s ease;
}

.iteshu-interest-icon i {
  transition: transform 0.3s ease;
}

/* Efecto Shimmer (Brillo) en Botones de Modalidad */
.iteshu-modalidad-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.iteshu-modalidad-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(30deg);
  transition: none;
}

.iteshu-modalidad-btn:hover::after {
  left: 130%;
  transition: all 0.6s ease-in-out;
}

.iteshu-modalidad-btn:hover {
  transform: translateY(-4px);
}












/* Disposición en 2 columnas */
.iteshu-oferta-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 0 auto 28px;
}

/* Tarjeta contenedora: más alta y compacta */
.iteshu-interest-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    background: #ffffff;
	padding: 0px 40px 8px;
    border: 1px solid #D6D3D3;
    border-left: 3px solid #476E52;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.iteshu-interest-card:hover {
    border-color: #1B396A;
    border-left-color: #1B396A;
    box-shadow: 0 4px 14px rgba(27, 57, 106, 0.14);
    transform: translateY(-1px);
}

/* Sección izquierda: Ícono + Frase */
.iteshu-interest-left {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 48%;
}

.iteshu-interest-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eef3f8;
    color: #1B396A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}


/* Sección derecha: Contenedor de logos */
.iteshu-interest-careers {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 16px;
}

/* Enlace/Botón individual */
.iteshu-career-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #444;
    width: 85px; /* Limita el ancho horizontal para mantener la tarjeta compacta */
    transition: transform 0.25s ease, color 0.25s ease;
}

.iteshu-career-link:hover {
    transform: translateY(-3px);
    color: #1B396A;
}

/* Logos principales destacados */
.career-logo {
    height: 35px;
    width: auto;
    max-width: 65px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.iteshu-career-link:hover .career-logo {
    transform: scale(1.1);
}

.iteshu-career-link span {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.15;
    white-space: normal;
}

/* Responsivo */
@media (max-width: 991px) {
    .iteshu-oferta-grid-2col {
        grid-template-columns: 1fr;
    }
	.iteshu-interest-card {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 576px) {
    .iteshu-interest-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .iteshu-interest-left {
        max-width: 100%;
    }

    .iteshu-interest-careers {
        width: 100%;
        justify-content: space-around;
    }
	
	.iteshu-interest-sub {
        white-space: normal; /* Evita que el subtítulo se corte en celulares muy angostos */
    }
}


/* Agrupar el título y subtítulo en columna */
.iteshu-interest-text-group {
    display: flex;
    flex-direction: column;
}

.iteshu-interest-title {
    color: #1B396A;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
	
}

/* Subtítulo elegante de una sola línea */
.iteshu-interest-sub {
    color: #666666;
    font-size: 11px;
    font-weight: 500;
    margin-top: 3px;
    line-height: 1.15;
    white-space: nowrap; /* Mantiene la frase en una sola línea */
}