/* ========================================
   SOBRESCRITURA DE COLORES INSTITUCIONALES
   Color institucional: #2D8139
   ======================================== */

:root {
    --color-primary: #2D8139 !important;
    --color-primary-dark: #236829 !important;
    --color-primary-light: #359A43 !important;
    --color-yellow: #ffc107;
    --color-yellow-dark: #e0a800;
}

/* ============================================
   HEADER SUPERIOR - EXACTO COMO INDEX.PHP
   ============================================ */

.top-header {
    background: #2D8139 !important;
    padding: 8px 0;
    color: white;
    position: relative;
    z-index: 999;
}

.top-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.social-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.social-icons a {
    color: white;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 7px;
}

.social-icons a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-icons a:hover,
.social-icons a:focus {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.contact-info {
    display: flex;
    gap: 25px;
    font-size: 13px;
    align-items: center;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-info img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.contact-info span span {
    color: white;
    font-weight: 400;
}

/* ============================================
   HEADER PRINCIPAL
   ============================================ */

.main-header {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.main-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    transition: color 0.3s;
    display: block;
    padding: 10px 5px;
    letter-spacing: 0.5px;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--color-primary);
}

/* ============================================
   DROPDOWN MENUS
   ============================================ */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    padding: 12px 20px;
    font-size: 12px;
    color: #666;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background: #f5f5f5;
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    padding-left: 25px;
}

/* Dropdown de dos columnas para OFICINAS */
.dropdown-wide .dropdown-menu {
    min-width: 650px;
}

.dropdown-columns {
    display: flex;
    gap: 20px;
    padding: 15px;
}

.dropdown-column {
    flex: 1;
    list-style: none;
}

.dropdown-header {
    font-weight: bold;
    color: var(--color-primary);
    font-size: 13px;
    padding: 10px 20px;
    margin-bottom: 5px;
    border-bottom: 2px solid var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-column li {
    list-style: none;
}

.dropdown-column a {
    display: block;
    padding: 10px 15px;
    font-size: 11px;
    color: #666;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.dropdown-column a:hover,
.dropdown-column a:focus {
    background: #f5f5f5;
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    padding-left: 20px;
}

/* ============================================
   SUBMENÚS MULTINIVEL - FACULTADES
   ============================================ */

.has-submenu > a::after {
    content: " ▸";
    float: right;
    margin-left: 8px;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.submenu-carreras {
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-left: 5px;
}

.has-submenu:hover .submenu-carreras,
.has-submenu:focus-within .submenu-carreras {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.has-submenu:hover > a::after {
    transform: translateX(3px);
}

.submenu-carreras li {
    padding: 0;
}

.submenu-carreras a {
    display: block;
    padding: 10px 20px;
    font-size: 11px;
    color: #666;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.submenu-carreras a:hover,
.submenu-carreras a:focus {
    background: #f5f5f5;
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    padding-left: 25px;
}

.dropdown-facultades .dropdown-menu {
    min-width: 300px;
}

/* Badge "Nuevo" */
.badge-nuevo {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(45, 129, 57, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 5px rgba(45, 129, 57, 0);
    }
}

.has-submenu {
    position: relative;
}

/* ============================================
   LOGOS GOB.PE
   ============================================ */

.gob-logos {
    display: flex;
    align-items: center;
    gap: 25px;
}

.portal-trans-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.gob-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.mobile-nav-gob-logos {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 30px 20px 25px;
    border-top: 2px solid #f5f5f5;
    margin-top: auto;
    background: white;
}

.mobile-nav-gob-logos a {
    display: flex;
    align-items: center;
}

.mobile-nav-gob-logos img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* Footer con color institucional */
footer[role="contentinfo"] {
    background: #2D8139 !important;
}

/* ========================================
   CARRUSEL DE EGRESADOS
   ======================================== */

.egresados-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-slide-egresados {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-slide-egresados:first-child {
    opacity: 1;
    z-index: 2;
}

.carousel-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 900px;
    padding: 20px;
}

.carousel-title {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
    margin: 0 0 20px 0;
    animation: fadeInDown 1s ease-out;
}

.carousel-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    margin: 0;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Controles del carrusel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* Indicadores del carrusel */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-indicator-egresados {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicator-egresados:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-indicator-egresados.active {
    background: white;
    border-color: var(--color-yellow);
    transform: scale(1.3);
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========================================
   BANNER RED DE EGRESADOS
   ======================================== */

.banner-red-egresados {
    background-color: #2c2c2c;
    padding: 30px 0;
    text-align: center;
}

.banner-red-egresados h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 3px;
}

/* ========================================
   ESTADÍSTICAS DE EGRESADOS
   ======================================== */

.estadisticas-egresados-section {
    background-color: #f5f5f5;
    padding: 60px 20px;
}

.estadisticas-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.estadistica-card {
    background: white;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.estadistica-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.estadistica-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.estadistica-icon svg {
    width: 100%;
    height: 100%;
    stroke: #f5a623;
    stroke-width: 2;
}

.estadistica-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.estadistica-linea {
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 0 auto 20px;
}

.estadistica-btn {
    background: #f5a623;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.estadistica-btn:hover {
    background: #e09513;
    transform: scale(1.05);
}

.estadistica-numero {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-primary);
    margin: 0 0 10px 0;
    line-height: 1;
}

.estadistica-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    margin: 0;
}

/* ========================================
   SECCIÓN INFO VERDE
   ======================================== */

.info-section-green {
    background-color: var(--color-primary);
    padding: 25px 0;
    margin: 40px 0;
}

.info-banner-verde {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.info-banner-verde h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* ========================================
   SECCIÓN DE 3 COLUMNAS
   ======================================== */

.three-columns-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.container-three-cols {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card-header-icon {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
}

.yellow-icon {
    background: var(--color-yellow);
}

.icon-circle i {
    font-size: 28px;
}

.card-title-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.card-body-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.info-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Autoridades Card */
.card-body-autoridad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.autoridad-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-yellow);
}

.autoridad-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.autoridad-info {
    text-align: center;
}

.autoridad-nombre {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.autoridad-cargo {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

/* ========================================
   SECCIÓN FUNCIONES
   ======================================== */

.functions-section {
    padding: 60px 20px;
    background-color: white;
}

.functions-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.functions-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.functions-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.functions-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.functions-list li:before {
    content: "►";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.functions-document {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.document-preview {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.document-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   BANNER INTERÉS COMÚN
   ======================================== */

.banner-interes-comun {
    background-color: #2c2c2c;
    padding: 25px 0;
    text-align: center;
}

.banner-interes-comun h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* ========================================
   SECCIÓN NOTICIAS Y CONTACTOS
   ======================================== */

.noticias-eventos-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.container-standard {
    max-width: 1200px;
    margin: 0 auto;
}

.section-grid-2cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.section-title-secondary {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.news-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card-small {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
}

.news-card-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-image-small {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.news-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content-small {
    padding: 15px;
    flex: 1;
}

.news-date-small {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

.news-title-small {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin: 8px 0;
    line-height: 1.4;
}

.news-excerpt-small {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Contactos */
.contact-info-box {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon-large {
    font-size: 28px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.contact-text p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Sistema OPUS */
.opus-system-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: white;
}

.opus-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.opus-logo-container {
    margin: 20px 0;
}

.opus-logo-container img {
    max-width: 150px;
    height: auto;
}

.opus-subtitle {
    margin-top: 10px;
    font-size: 0.95rem;
}

.btn-opus {
    display: inline-block;
    background: white;
    color: var(--color-primary);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-opus:hover {
    background: var(--color-yellow);
    color: white;
    transform: scale(1.05);
}

/* ========================================
   CURSOS DE INTERÉS
   ======================================== */

.cursos-interes-section {
    padding: 60px 20px;
    background-color: white;
}

.section-title-center {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
}

.cursos-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.curso-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curso-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.curso-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.curso-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.curso-card:hover .curso-image img {
    transform: scale(1.1);
}

.curso-content {
    padding: 25px;
}

.curso-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.curso-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.curso-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.curso-duracion {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-curso {
    background: var(--color-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-curso:hover {
    background: var(--color-primary-dark);
}

/* ========================================
   CONVOCATORIAS
   ======================================== */

.convocatorias-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.convocatorias-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .convocatorias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .convocatorias-grid {
        grid-template-columns: 1fr;
    }
}

.convocatoria-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.convocatoria-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.convocatoria-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.convocatoria-image img,
.convocatoria-image .wp-post-image {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block;
}

.convocatoria-content {
    padding: 25px;
}

.convocatoria-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.convocatoria-date {
    font-size: 0.9rem;
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-convocatoria {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-convocatoria:hover {
    background: var(--color-primary-dark);
}

/* ========================================
   ENCUESTAS
   ======================================== */

.encuestas-section {
    padding: 60px 20px;
    background-color: white;
}

.encuestas-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.encuesta-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.encuesta-card:hover {
    transform: translateY(-5px);
}

.encuesta-icon {
    font-size: 60px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.encuesta-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.encuesta-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-encuesta {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-encuesta:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}

/* ========================================
   BANNER DOCUMENTOS NORMATIVOS
   ======================================== */

.banner-documentos {
    background-color: var(--color-primary);
    padding: 25px 0;
    text-align: center;
    margin: 40px 0;
}

.banner-documentos h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* ========================================
   EXPERIENCIA Y NOTICIAS RECIENTES
   ======================================== */

.experiencia-noticias-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.section-grid-2cols-custom {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.experiencia-content {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    color: white;
}

.experiencia-header {
    margin-bottom: 20px;
}

.badge-yellow {
    display: inline-block;
    background: var(--color-yellow);
    color: #333;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.experiencia-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
}

.experiencia-illustration {
    margin: 30px 0;
}

.experiencia-illustration img {
    max-width: 200px;
    height: auto;
}

.experiencia-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-experiencia {
    display: inline-block;
    background: white;
    color: var(--color-primary);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-experiencia:hover {
    background: var(--color-yellow);
    color: white;
    transform: scale(1.05);
}

/* Noticias Recientes */
.noticias-recientes-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.noticias-recientes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.noticia-reciente-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
}

.noticia-reciente-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.noticia-reciente-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.noticia-reciente-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticia-reciente-content {
    padding: 12px;
    flex: 1;
}

.noticia-reciente-fecha {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 600;
}

.noticia-reciente-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    margin: 8px 0;
    line-height: 1.3;
}

.noticia-reciente-excerpt {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

.btn-ver-todas-noticias {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-ver-todas-noticias:hover {
    background: var(--color-primary-dark);
}

/* ========================================
   DOCUMENTOS PARA DESCARGAR
   ======================================== */

.documentos-section {
    padding: 60px 20px;
    background-color: white;
}

.documentos-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.documento-card {
    background: white;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.documento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.documento-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.red-icon {
    background: #e74c3c;
}

.green-icon {
    background: var(--color-primary);
}

.documento-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.documento-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-documento {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-documento:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    /* Carrusel responsive */
    .egresados-carousel {
        height: 350px;
    }

    .carousel-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .carousel-subtitle {
        font-size: 1rem;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }

    .carousel-indicators {
        bottom: 15px;
    }

    .carousel-indicator-egresados {
        width: 10px;
        height: 10px;
    }

    .banner-red-egresados h2 {
        font-size: 1.8rem;
    }

    .container-three-cols {
        grid-template-columns: 1fr;
    }

    .functions-container {
        grid-template-columns: 1fr;
    }

    .section-grid-2cols {
        grid-template-columns: 1fr;
    }

    .section-grid-2cols-custom {
        grid-template-columns: 1fr;
    }

    .cursos-grid,
    .encuestas-grid {
        grid-template-columns: 1fr;
    }

    .section-title-center {
        font-size: 2rem;
    }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .carousel-title {
        font-size: 3rem;
    }

    .carousel-subtitle {
        font-size: 1.3rem;
    }
}
