/* Estilos v2 para las páginas de Licenciatura - Estilo Institucional */

/* Hero Section (ya existente, pero podemos ajustarlo si es necesario) */
.hero-licenciatura {
    position: relative;
    padding: 120px 0;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 40px 40px;
    overflow: visible;
}

.hero-licenciatura::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 75, 140, 0.8) 0%, rgba(42, 110, 218, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.35);
    color: white;
}

/* Sección de Bienvenida */
.welcome-section {
    padding: 80px 0;
    background-color: #f5f7fa;
    text-align: center;
}

.welcome-section h2 {
    font-size: 2.5rem;
    color: #1a4b8c;
    margin-bottom: 20px;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Cuadrícula de Características con Iconos */
.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #1a4b8c;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.feature-card .icon {
    font-size: 3rem;
    color: #1a4b8c;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: #1a4b8c;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Secciones de Contenido Alternado */
.content-section-alt {
    padding: 80px 0;
    display: flex;
    align-items: center;
    gap: 50px;
}

.content-section-alt:nth-child(even) {
    flex-direction: row-reverse;
    background-color: #f5f7fa;
}

.content-section-alt .content-image,
.content-section-alt .content-text {
    flex: 1;
    min-width: 300px;
}

.content-section-alt .content-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.content-section-alt .content-text h2 {
    font-size: 2.2rem;
    text-align: left;
    margin-bottom: 20px;
}

.content-section-alt .content-text h2::after {
    left: 0;
    transform: translateX(0);
}

.content-section-alt .content-text p {
    font-size: 1rem;
    line-height: 1.8;
}

.content-section-alt .content-text ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.content-section-alt .content-text ul li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
}

.content-section-alt .content-text ul li i {
    color: #ff9900;
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Call to Action Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a4b8c, #2a6eda);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
}

.cta-section h2::after {
    background: linear-gradient(90deg, #ff9900, #ff7700);
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-btn {
    background: linear-gradient(to right, #ff9900, #ff7700);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 6px 15px rgba(255,151,0,0.3);
    font-weight: 600;
    font-size: 1.1rem;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255,151,0,0.4);
}

/* Barra de sub-navegación de licenciaturas (atajos dentro del header) */
.licenciatura-subnav {
    background: transparent;
    border: none;
    font-size: 0.82rem;
    margin-left: 18px;
}

.licenciatura-subnav .container {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0;
    flex-wrap: wrap;
}

.licenciatura-subnav a {
    color: #e6f0ff;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.licenciatura-subnav a:hover,
.licenciatura-subnav a.active {
    background: #ff9900;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1100px) {
    .licenciatura-subnav {
        margin: 6px 0 0;
    }

    .licenciatura-subnav .container {
        justify-content: flex-start;
    }
}

/* Layout específico del header en páginas de licenciatura */
.licenciatura-header .header-container {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    position: relative;
}

.licenciatura-header .logo {
    flex-shrink: 0;
}

.licenciatura-header .licenciatura-subnav {
    flex: 1;
}

/* Posicionamiento del botón de acceder en licenciaturas */
.licenciatura-header .btn-login {
    position: absolute;
    top: 60px;
    right: 20px;
    z-index: 100;
}

/* Ajustes responsive para el botón en licenciaturas */
@media (max-width: 992px) {
    .licenciatura-header .btn-login {
        top: 55px;
        right: 15px;
    }
}

@media (max-width: 768px) {
    .licenciatura-header .btn-login {
        top: 10px;
        right: 60px;
    }
}

@media (max-width: 480px) {
    .licenciatura-header .btn-login {
        top: 10px;
        right: 55px;
    }
}

/* Galería estática por licenciatura */
.licenciatura-gallery-section {
    padding: 70px 0;
    background-color: #f5f7fa;
}

.licenciatura-gallery-title {
    text-align: center;
    color: #1a4b8c;
    margin-bottom: 10px;
}

.licenciatura-gallery-title i {
    margin-right: 8px;
}

.licenciatura-gallery-subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 30px;
}

.licenciatura-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.licenciatura-gallery-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.licenciatura-gallery-item img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.licenciatura-gallery-caption {
    padding: 12px 16px 16px;
    text-align: center;
    font-size: 0.95rem;
    color: #444;
    background: #fdfbff;
}

.licenciatura-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-section-alt {
        flex-direction: column !important;
    }
}
