* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales */
    --color-primary: #359444;
    --color-primary-dark: #2a7a35;
    --color-primary-light: #4caf50;
    
    /* Colores de texto */
    --color-text: #333;
    --color-text-light: #666;
    --color-text-dark: #1a1a1a;
    
    /* Fondos */
    --color-bg-light: #f5f5f5;
    --color-bg-grey: #F4F6F8;
    --color-white: #ffffff;
    
    /* Efectos */
    --color-shadow: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    
    /* Espaciados */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Fuentes */
    --font-family-base: 'Arial', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
}

/* ============================================
   TIPOGRAFÍA BASE
   ============================================ */

body {
    font-family: var(--font-family-base);
    color: var(--color-text);
    line-height: var(--line-height-base);
    background-color: var(--color-bg-grey);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* Mejoras de foco para accesibilidad */
*:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   HEADER SUPERIOR
   ============================================ */

.top-header {
    background: linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    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 var(--spacing-md);
}

.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 var(--transition-speed) 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;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: opacity var(--transition-speed);
}

.contact-info a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

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

.main-header {
    background: white;
    box-shadow: 0 2px 5px var(--color-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition-speed);
}

.main-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px var(--spacing-md);
    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;
}

/* ============================================
   BOTÓN MENÚ MÓVIL
   ============================================ */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: white;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    cursor: pointer;
    padding: 12px;
    z-index: 1002;
    position: relative;
    transition: all var(--transition-speed) ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: all var(--transition-speed) ease;
    display: block;
}

.mobile-menu-toggle:hover {
    background: var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(53, 148, 68, 0.3);
}

.mobile-menu-toggle:hover span {
    background: white;
}

.mobile-menu-toggle.active {
    background: var(--color-primary);
}

.mobile-menu-toggle.active span {
    background: white;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

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

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

.mobile-nav-logo {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    transition: color var(--transition-speed);
    display: block;
    padding: 10px 5px;
    letter-spacing: 0.5px;
}

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

/* ============================================
   DROPDOWN MENU
   ============================================ */

.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: var(--spacing-sm) 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed) 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 var(--spacing-md);
    font-size: 12px;
    color: var(--color-text-light);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background: var(--color-bg-light);
    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: var(--spacing-md);
    padding: 15px;
}

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

.dropdown-header {
    font-weight: bold;
    color: var(--color-primary);
    font-size: 13px;
    padding: var(--spacing-sm) var(--spacing-md);
    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: var(--color-text-light);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.dropdown-column a:hover,
.dropdown-column a:focus {
    background: var(--color-bg-light);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    padding-left: var(--spacing-md);
}

/* ============================================
   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: var(--spacing-sm) 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all var(--transition-speed) 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 var(--spacing-md);
    font-size: 11px;
    color: var(--color-text-light);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.submenu-carreras a:hover,
.submenu-carreras a:focus {
    background: var(--color-bg-light);
    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(53, 148, 68, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 5px rgba(53, 148, 68, 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 var(--spacing-md) 25px;
    border-top: 2px solid var(--color-bg-light);
    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;
}

/* ============================================
   CARRUSEL PRINCIPAL
   ============================================ */

.carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-bottom: 0;
    background: #000;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 100%;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: var(--spacing-lg);
    text-align: center;
}

/* Degradado verde institucional - de derecha a izquierda (slides impares: 1, 3) */
.carousel-slide:nth-child(odd) .carousel-overlay {
    background: linear-gradient(to left,
        rgba(42, 122, 53, 0.8) 0%,
        rgba(53, 148, 68, 0.5) 50%,
        rgba(42, 122, 53, 0.2) 100%);
}

/* Degradado verde institucional - de izquierda a derecha (slides pares: 2, 4) */
.carousel-slide:nth-child(even) .carousel-overlay {
    background: linear-gradient(to right,
        rgba(42, 122, 53, 0.8) 0%,
        rgba(53, 148, 68, 0.5) 50%,
        rgba(42, 122, 53, 0.2) 100%);
}

.carousel-overlay h1,
.carousel-overlay h2 {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.carousel-overlay p {
    font-size: 22px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 800px;
}

.carousel-button {
    background: white;
    color: var(--color-primary);
    border: none;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-button:hover,
.carousel-button:focus {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Botón mejorado para hero */
.btn-inscribete {
    background: var(--color-primary) !important;
    color: white !important;
    padding: 18px 45px !important;
    font-size: 1.1rem !important;
    box-shadow: 0 4px 15px rgba(53, 148, 68, 0.3);
}

.btn-inscribete:hover {
    background: var(--color-primary-dark) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(53, 148, 68, 0.4);
}

/* Controles del Carrusel */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(53, 148, 68, 0.6);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px;
    font-size: 30px;
    cursor: pointer;
    transition: all var(--transition-speed);
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover,
.carousel-prev:focus,
.carousel-next:focus {
    background: rgba(53, 148, 68, 0.9);
}

.carousel-prev {
    left: var(--spacing-md);
}

.carousel-next {
    right: var(--spacing-md);
}

/* Indicadores del Carrusel */
.carousel-indicators {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.carousel-dot:hover,
.carousel-dot:focus {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   SECCIÓN DESTACADOS
   ============================================ */

.destacados-section {
    padding: 0 10%;
    margin-top: 40px;
    background: var(--color-bg-grey);
}

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

.destacado-card {
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s ease;
    background-color: #2F863C;
}

.destacado-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    z-index: 0;
}

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

.destacado-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(47, 134, 60, 0.88), rgba(53, 148, 68, 0.92));
    transition: all 0.4s ease;
    z-index: 1;
}

.destacado-card:hover .destacado-overlay {
    background: linear-gradient(135deg, rgba(47, 134, 60, 0.75), rgba(53, 148, 68, 0.82));
}

.destacado-card h3 {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 var(--spacing-lg);
    margin: 0;
    line-height: 1.4;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.destacado-card:hover h3 {
    transform: scale(1.08);
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.6);
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */

.section-container {
    padding: 70px 0;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-title {
    text-align: center;
    font-size: 38px;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.section-divider {
    width: 90px;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    margin: 0 auto 50px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(47, 134, 60, 0.3);
}

/* ============================================
   CONTENEDORES DE TARJETAS
   ============================================ */

.cards-container-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin: 0 auto;
    align-items: stretch;
    padding: 0 20px;
}

.cards-container-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 0 auto;
    align-items: stretch;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 0 auto;
    align-items: stretch;
}

/* ============================================
   ESTILOS DE TARJETAS BASE
   ============================================ */

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(53, 148, 68, 0.1);
}

.card a {
    text-decoration: none;
}

.card:hover,
.card:focus {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(53, 148, 68, 0.12);
    border-color: var(--color-primary);
}

.card-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    height: 160px;
    background: var(--color-primary);
    flex-shrink: 0;
}

/* ============================================
   OFERTA ACADÉMICA - DISEÑO LIMPIO
   ============================================ */

.ofertas {
    background: #f5f7fa;
    padding: var(--spacing-xl) 0;
}

.ofertas .card {
    background: white;
    padding: 45px 35px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    min-height: 320px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(53, 148, 68, 0.1);
}

.ofertas .card > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.ofertas .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(53, 148, 68, 0.15);
    border-color: var(--color-primary);
}

.ofertas .card .card-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #2F863C 0%, #359444 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(47, 134, 60, 0.25);
    transition: all 0.3s ease;
}

.ofertas .card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(47, 134, 60, 0.35);
}

.ofertas .card .card-icon svg {
    width: 44px;
    height: 44px;
    stroke: white;
    stroke-width: 2.5;
}

.ofertas .card .card-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-decoration: none;
}

.ofertas .card .card-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
    text-decoration: none;
}

.ofertas .card a {
    text-decoration: none;
}

.ofertas .card a:hover .card-title {
    color: var(--color-primary-dark);
}

/* ============================================
   ACADÉMICO - DISEÑO CENTRADO
   ============================================ */

.academico {
    background: #FAFBFC;
    padding: var(--spacing-xl) 0;
}

.academico .card {
    background: white;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-height: 280px;
    overflow: hidden;
}

.academico .card .card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.academico .card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-speed);
}

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

.academico .card a {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 30px 30px 40px;
    text-decoration: none;
    color: inherit;
}

.academico .card .card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #E8F4EA 0%, #D5ECD9 100%);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    transition: all var(--transition-speed);
}

.academico .card .card-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-primary);
}

.academico .card:hover .card-icon {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    transform: scale(1.1);
}

.academico .card:hover .card-icon svg {
    stroke: white;
}

.academico .card .card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 15px 0;
    text-decoration: none;
    text-transform: uppercase;
}

.academico .card .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0;
    text-decoration: none;
}

.cards-container-academic-six {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

/* Carrusel académico (oculto en desktop) */
.academic-carousel-wrapper {
    position: relative;
}

.academic-carousel-prev,
.academic-carousel-next {
    display: none;
}

.academic-carousel-indicators {
    display: none;
}

/* ============================================
   FACULTADES - DEGRADADO ELEGANTE
   ============================================ */

.facultades {
    background: var(--color-bg-light);
}

.facultades .content-wrapper {
    padding-left: 0;
    padding-right: 0;
}

.facultades .section-title,
.facultades .section-divider {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.facultades .card-image {
    height: 240px;
}

.facultades .card-overlay-green {
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(53, 148, 68, 0.85) 100%
    );
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    border-radius: 0;
    transition: all 0.4s ease;
}

.facultades .card:hover .card-overlay-green {
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(53, 148, 68, 0.95) 100%
    );
}

.card-icon-facultad {
    width: 75px;
    height: 75px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-facultad img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-speed) ease;
}

.card:hover .card-icon-facultad img {
    transform: scale(1.1);
}

.card-content {
    text-align: center;
    color: white;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-text {
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 12px;
}

.card-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 8px var(--spacing-md);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    margin-top: var(--spacing-sm);
    transition: all var(--transition-speed) ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.card-button:hover {
    background: white;
    color: var(--color-primary);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Carrusel de facultades */
.facultades-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.facultades-carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    margin: 0 -10px;
}

.facultades-carousel-slide {
    min-width: 50%;
    width: 50%;
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.facultades-prev,
.facultades-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(53, 148, 68, 0.6);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    z-index: 10;
    box-shadow: 0 3px 8px rgba(53, 148, 68, 0.3);
}

.facultades-prev:hover,
.facultades-next:hover {
    background: rgba(53, 148, 68, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.facultades-prev {
    left: -20px;
}

.facultades-next {
    right: -20px;
}

.facultades-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: 30px;
}

#facultadesDots {
    position: relative;
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: 30px;
    z-index: 10;
}

/* ============================================
   SECCIÓN NOTICIAS
   ============================================ */

.noticias {
    background: var(--color-bg-light);
}

.noticias .card {
    border-top: 4px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.noticias .card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.noticias .card a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.noticias .card-content {
    padding: 25px var(--spacing-md);
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    color: var(--color-text);
}

.noticias .card-title {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    text-decoration: none;
    font-weight: 700;
}

.noticias .card-text {
    color: var(--color-text-light);
    flex-grow: 1;
    text-decoration: none;
}

.noticias .card-button {
    align-self: flex-start;
    margin-top: auto;
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.noticias .card-button:hover {
    background: var(--color-primary-dark);
}

.news-meta {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.news-category {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estilos para imágenes de WordPress en noticias */
.noticias .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.noticias .card:hover .card-image img {
    transform: scale(1.05);
}

/* ============================================
   ADMINISTRATIVOS
   ============================================ */

.administrativos {
    background: var(--color-bg-light);
}

.administrativos .card {
    background: white;
    border-top: 4px solid var(--color-primary);
    padding: 35px 30px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.administrativos .card a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

.administrativos .card-icon {
    width: 70px;
    height: 70px;
    margin-bottom: var(--spacing-md);
}

.administrativos .card-icon svg {
    stroke: var(--color-primary);
    width: 100%;
    height: 100%;
}

.administrativos .card-title {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-decoration: none;
}

.administrativos .card-text {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    text-decoration: none;
}

/* ============================================
   ENLACES DE INTERÉS
   ============================================ */

.enlaces-interes {
    background: white;
    padding: var(--spacing-xl) 0;
}

.section-title-enlaces {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-divider-enlaces {
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    margin: 0 auto 50px;
    border-radius: 2px;
}

.enlaces-grid-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.enlace-btn-green {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 8px rgba(53, 148, 68, 0.2);
}

.enlace-btn-green:hover,
.enlace-btn-green:focus {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(53, 148, 68, 0.3);
}

.enlace-btn-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke: white;
}

.enlace-btn-green span {
    line-height: 1.3;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: white;
    padding: 50px 0 var(--spacing-md);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 50px;
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section p {
    margin-bottom: var(--spacing-sm);
    font-size: 14px;
    line-height: 1.6;
}

.footer-section address p span {
    color: white;
    font-style: normal;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color var(--transition-speed);
    font-size: 14px;
}

.footer-links a:hover,
.footer-links a:focus {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.footer-facebook .fb-page,
.footer-facebook iframe {
    width: 100% !important;
}

.footer-facebook iframe {
    border-radius: 10px;
}

.footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.footer-social a img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-social a:hover,
.footer-social a:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-bottom-content > p {
    margin: 0;
    font-size: 14px;
}

.footer-social-bottom {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-social-title {
    font-size: 16px;
    font-weight: 600;
    margin-right: 5px;
}

.footer-title {
    color: white;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    width: 60px;
    height: auto;
    object-fit: contain;
}

.footer-description {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

/* ============================================
   OVERLAY DEL MENÚ MÓVIL
   ============================================ */

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: opacity var(--transition-speed);
}

.menu-overlay.active {
    display: block;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
    /* Sección destacados en tablet */
    .destacados-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .destacado-card {
        height: 280px;
    }
    
    .destacado-card h3 {
        font-size: 22px;
        letter-spacing: 1.4px;
        line-height: 1.4;
    }
    
    .cards-container-three {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .cards-container-academic-six {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .enlaces-grid-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

/* ============================================
   RESPONSIVE - MÓVIL
   ============================================ */

@media (max-width: 768px) {
    /* Variables ajustadas para móvil */
    :root {
        --spacing-md: 15px;
        --spacing-lg: 30px;
        --spacing-xl: 50px;
    }
    
    /* Header superior */
    .top-header-content {
        flex-direction: column;
        gap: 12px;
        padding: 12px 15px;
    }
    
    .social-icons {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .social-icons a {
        width: 38px;
        height: 38px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .contact-info {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
        font-size: 13px;
    }
    
    .contact-info span span {
        word-break: break-all;
    }
    
    /* Header principal */
    .main-header-content {
        padding: 12px 15px;
        min-height: 70px;
    }
    
    .logo img {
        height: 60px;
    }
    
    /* Mostrar botón hamburguesa */
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 15px;
        z-index: 1002;
    }
    
    /* Ocultar logos gob.pe del header */
    .gob-logos {
        display: none !important;
    }
    
    /* Mostrar logos dentro del menú móvil */
    .mobile-nav-gob-logos {
        display: flex !important;
    }
    
    /* Menú móvil */
    .main-nav {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        max-width: 100%;
        background: white;
        flex-direction: column;
        padding: 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        overflow-y: auto;
        z-index: 1001;
        display: flex;
        -webkit-overflow-scrolling: touch;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    /* Logo en menú móvil */
    .mobile-nav-logo {
        display: block;
        text-align: center;
        padding: var(--spacing-md) var(--spacing-md) 25px;
        border-bottom: 2px solid var(--color-bg-light);
        background: white;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1002;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    .main-nav.active .mobile-nav-logo {
        transform: translateX(0);
    }
    
    .mobile-nav-logo img {
        height: 65px;
        width: auto;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding-top: 110px;
        padding-bottom: var(--spacing-md);
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--color-bg-light);
    }
    
    .nav-menu a {
        padding: 18px var(--spacing-md);
        width: 100%;
        font-size: 15px;
        font-weight: 600;
        min-height: 54px;
        display: flex;
        align-items: center;
        -webkit-tap-highlight-color: transparent;
    }
    
    .nav-menu a:active {
        background: var(--color-bg-light);
    }
    
    /* Dropdown en móvil */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-speed) ease;
        background: var(--color-bg-light);
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 1500px;
    }
    
    .dropdown-menu a {
        padding: 15px var(--spacing-md) 15px 40px;
        border-left: none;
    }
    
    .dropdown-wide .dropdown-menu {
        min-width: auto;
    }
    
    .dropdown-columns {
        flex-direction: column;
        padding: 0;
    }
    
    .dropdown-column a {
        padding: 15px var(--spacing-md) 15px 40px;
    }
    
    .dropdown-header {
        text-align: center;
        padding: 15px var(--spacing-md);
        font-size: 14px;
        font-weight: 700;
        background: rgba(53, 148, 68, 0.05);
        margin: var(--spacing-sm) 0;
    }
    
    /* Submenús en móvil */
    .has-submenu > a::after {
        content: " ▾";
        float: right;
        transform: none !important;
    }
    
    .submenu-carreras {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-speed) ease;
        background: #e8f5e9;
        margin: 0;
    }
    
    .has-submenu.active .submenu-carreras {
        max-height: 500px;
    }
    
    .submenu-carreras a {
        padding: 12px var(--spacing-md) 12px 60px !important;
        font-size: 13px !important;
        border-left: none !important;
    }
    
    .dropdown-facultades.active .dropdown-menu {
        max-height: 2500px !important;
    }
    
    /* Carrusel principal */
    .carousel {
        height: 380px;
        background: #f0f7f3;
    }
    
    .carousel-slide {
        height: 380px;
    }
    
    .carousel-slide img {
        height: 380px;
        object-fit: cover;
    }
    
    .carousel-overlay {
        background: linear-gradient(180deg,
            transparent 0%,
            rgba(42, 122, 53, 0.3) 30%,
            rgba(42, 122, 53, 0.6) 60%,
            rgba(42, 122, 53, 0.8) 100%);
        padding: 25px var(--spacing-md);
    }
    
    .carousel-overlay h1,
    .carousel-overlay h2 {
        font-size: 27px;
        line-height: 1.3;
        margin-bottom: 14px;
    }
    
    .carousel-overlay p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: var(--spacing-md);
    }
    
    .carousel-button {
        padding: 16px 36px;
        font-size: 16px;
        min-height: 50px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 50px;
        height: 50px;
        font-size: 26px;
        -webkit-tap-highlight-color: transparent;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
    
    .carousel-dot {
        width: 14px;
        height: 14px;
        margin: 0 6px;
    }
    
    .carousel-dot.active {
        width: 35px;
    }
    
    /* Sección destacados responsive */
    .destacados-grid {
        grid-template-columns: 1fr;
    }
    
    .destacado-card {
        height: 260px;
    }
    
    .destacado-card h3 {
        font-size: 21px;
        letter-spacing: 1.3px;
        padding: 0 var(--spacing-lg);
        line-height: 1.5;
    }
    
    /* Tarjetas en 1 columna */
    .cards-container-three,
    .cards-container-two,
    .cards-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 20px;
    }
    
    /* Oferta Académica móvil */
    .ofertas .card {
        padding: 40px 30px;
        min-height: 280px;
        border-radius: 14px;
    }
    
    .ofertas .card .card-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 18px;
    }
    
    .ofertas .card .card-icon svg {
        width: 38px;
        height: 38px;
    }
    
    .ofertas .card .card-title {
        font-size: 1.3rem;
        margin-bottom: 14px;
    }
    
    .ofertas .card .card-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Académico móvil */
    .academico .card {
        padding: 35px 25px;
        min-height: 260px;
    }
    
    .academico .card .card-icon {
        width: 70px;
        height: 70px;
    }
    
    .academico .card .card-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .academico .card .card-title {
        font-size: 1.25rem;
    }
    
    .cards-container-academic-six {
        display: block;
        position: relative;
    }
    
    .academic-carousel-wrapper {
        overflow: hidden;
        position: relative;
    }
    
    #academicCarouselContainer {
        display: flex;
        transition: transform 0.5s ease-in-out;
        width: 100%;
    }
    
    .academic-carousel-slide {
        min-width: 100%;
        width: 100%;
        flex-shrink: 0;
        padding: 0 15px;
    }
    
    .academic-carousel-prev,
    .academic-carousel-next {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        color: var(--color-primary-dark);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 0;
        cursor: pointer;
        font-size: 32px;
        font-weight: 700;
        align-items: center;
        justify-content: center;
        transition: all var(--transition-speed) ease;
        z-index: 10;
        opacity: 0.7;
        -webkit-tap-highlight-color: transparent;
    }
    
    .academic-carousel-prev {
        left: -15px;
    }
    
    .academic-carousel-next {
        right: -15px;
    }
    
    .academic-carousel-prev:hover,
    .academic-carousel-next:hover {
        color: var(--color-primary);
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
    }
    
    .academic-carousel-indicators {
        display: flex;
        justify-content: center;
        gap: var(--spacing-sm);
        margin-top: 45px;
        margin-bottom: var(--spacing-md);
    }
    
    /* Facultades móvil */
    .facultades .content-wrapper {
        padding: 0;
    }
    
    .facultades .section-title,
    .facultades .section-divider {
        padding: 0 var(--spacing-md);
    }
    
    .facultades-carousel-wrapper {
        padding: 0;
    }
    
    .facultades-carousel-slide {
        min-width: 100%;
        width: 100%;
        padding: 0 15px;
    }
    
    .facultades-carousel-slide .card {
        width: 100%;
        margin: 0;
    }
    
    .facultades-prev {
        left: -15px;
    }
    
    .facultades-next {
        right: -15px;
    }
    
    .facultades-prev,
    .facultades-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .facultades-carousel-indicators {
        margin-top: 45px;
        margin-bottom: var(--spacing-md);
    }
    
    #facultadesDots {
        display: flex !important;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: 35px;
        padding: 0 var(--spacing-sm);
        width: 100%;
    }
    
    #facultadesDots .carousel-dot {
        flex-shrink: 0;
        width: 12px;
        height: 12px;
        min-width: 12px;
        min-height: 12px;
    }
    
    #facultadesDots .carousel-dot.active {
        width: 28px;
    }
    
    .facultades .card-image {
        height: 220px;
    }
    
    .facultades .card-overlay-green {
        padding: 22px var(--spacing-md);
    }
    
    .facultades .card-icon-facultad {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
    }
    
    .facultades .card-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .facultades .card-text {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .facultades .card-button {
        padding: 10px 24px;
        font-size: 13px;
    }
    
    /* Administrativos móvil */
    .administrativos .card {
        margin-bottom: var(--spacing-md);
    }
    
    .administrativos .card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 18px;
    }
    
    .administrativos .card-title {
        font-size: 19px;
        margin-bottom: 12px;
    }
    
    .administrativos .card-text {
        font-size: 14px;
    }
    
    /* Enlaces de Interés móvil */
    .enlaces-interes {
        padding: 50px 0;
    }
    
    .section-title-enlaces {
        font-size: 30px;
        margin-bottom: 15px;
    }
    
    .enlaces-grid-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 15px;
    }
    
    .enlace-btn-green {
        padding: 16px var(--spacing-md);
        font-size: 14px;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    }
    
    .enlace-btn-green:active {
        transform: translateY(-1px);
    }
    
    .enlace-icon {
        width: 24px;
        height: 24px;
    }
    
    /* Footer móvil */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 0 var(--spacing-md);
    }
    
    .footer-logo-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .footer-logo {
        width: 70px;
    }
    
    .footer-description {
        font-size: 14px;
        line-height: 1.7;
        text-align: left;
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .footer-section p {
        font-size: 13px;
        line-height: 1.7;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .footer-social-bottom {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Títulos de sección móvil */
    .section-title {
        font-size: 30px;
        margin-bottom: 15px;
        padding: 0 15px;
    }
    
    .section-container {
        padding: 50px 0;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .ofertas .card,
    .academico .card {
        padding: 0;
        min-height: 240px;
        gap: 0;
    }
    
    .academico .card a {
        padding: 20px var(--spacing-md) 30px;
    }
    
    .academico .card .card-image {
        height: 150px;
    }
    
    .ofertas .card .card-icon,
    .academico .card .card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .ofertas .card .card-icon svg,
    .academico .card .card-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .ofertas .card .card-title,
    .academico .card .card-title {
        font-size: 1.15rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .ofertas .card .card-text,
    .academico .card .card-text {
        font-size: 0.9rem;
    }
    
    .carousel-button,
    .btn-inscribete {
        padding: 12px 30px !important;
        font-size: 0.9rem !important;
    }
    
    .enlaces-grid-buttons {
        gap: 12px;
    }
    
    .enlace-btn-green {
        padding: 12px 16px;
        gap: var(--spacing-sm);
    }
    
    .enlace-btn-icon {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   OPTIMIZACIONES DE PERFORMANCE
   ============================================ */

/* Mejora de rendimiento en animaciones */
.card,
.enlace-btn-green,
.carousel-prev,
.carousel-next,
.carousel-dot,
.mobile-menu-toggle {
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Optimización de imágenes */
img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
}

/* ============================================
   BOTÓN +NOTICIAS
   ============================================ */

.btn-mas-noticias {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(53, 148, 68, 0.3);
}

.btn-mas-noticias:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(53, 148, 68, 0.4);
}

.btn-mas-noticias:active {
    transform: translateY(0);
}