/* ========================================
   ESTILOS PARA SINGLE DOCTORADO
   ======================================== */

.doctorado-single-container {
    background: #fff;
}

/* Header del Doctorado */
.doctorado-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
}

.doctorado-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Sección de Información */
.doctorado-info-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.info-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

.info-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 0;
}

.form-simulator {
    padding: 40px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);

}

.info-box h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Los primeros 3 campos ocupan todo el ancho (span 2 columnas) */
.info-item:nth-child(-n+3) {
    grid-column: 1 / -1;
}

/* Los últimos 2 campos ocupan 1 columna cada uno */
.info-item:nth-child(4) {
    grid-column: 1 / 2;
}

.info-item:nth-child(5) {
    grid-column: 2 / 3;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.info-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

/* Botones de Acción */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-around;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

.btn-primary {
    background: #ff6b35;
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: #e55a2b;
    color: white;
    border-radius: 20px;
    padding: 10px 60px;
}
.btn-secondary:hover {
    color: white;
}

/* Contenedor principal con max-width */
.doctorado-single-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.doctorado-target-audience .target-content {
    padding: 40px;
    border-radius: 12px;
    background: #d2d2d2;
}  


hr {
    padding: 1px;
    border-radius: 5px;
    background:  linear-gradient(90deg,rgba(204, 88, 21, 1) 0%, rgba(140, 11, 29, 1) 100%, rgba(7, 7, 1, 1) 100%, rgba(5, 8, 1, 1) 100%);
    max-width: 1200px;
    margin: 20px auto;
    border: none;
}

/* Descripción del Programa */

.description-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.description-image .image-placeholder {
    background: #e9ecef;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
    border: 2px dashed #ccc;
    height: 100%;
    object-fit: cover;
}

.description-image .image-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ff6b35;
}

/* Estilos para las imágenes del programa */
.doctorado-imagen {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    object-fit: cover;
}

.imagen-link {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
}

.imagen-link:hover {
    text-decoration: none;
}

/* Director del Programa */
.director-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
    margin: 0 auto;
}

.director-image .image-placeholder {
    background: #e9ecef;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.1rem;
    border: 2px dashed #ccc;
    margin: 0 auto;
}

.director-info h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.director-degree {
    color: #ff6b35;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.director-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

/* Objetivos del Programa */
.doctorado-objectives {
    padding: 80px 0;
}

/* Solo el primer objetivo (General) tiene background completo */
.objective-section {
    width: 100%;
    padding: 40px 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.objective-section:first-child .objective-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Los demás objetivos mantienen el layout normal */
.objective-section:not(:first-child) .objective-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.objective-text h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.objective-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.objective-content .reverse {
    direction: rtl;
}

.objective-content .reverse > * {
    direction: ltr;
}

.objective-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.objective-image .image-placeholder {
    background: #e9ecef;
    border-radius: 12px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.1rem;
    border: 2px dashed #ccc;
}

/* Líneas de Investigación */
.research-content {
    margin: 0 auto;
}

.research-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

/* Acordeón de Líneas de Investigación */
.lineas-investigacion-acordeon {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.acordeon-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
    height: fit-content;
}

.acordeon-header {
    background: #f8f9fa;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.acordeon-header:hover {
    background: #e9ecef;
}

.acordeon-titulo {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: inherit;
}

.acordeon-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: #666;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(90deg);
}

.acordeon-header.active .acordeon-icon {
    transform: rotate(-90deg);
}

.acordeon-header:hover .acordeon-icon {
    color: #ff6b35;
}

.acordeon-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.acordeon-content.active {
    max-height: 500px;
}

.acordeon-body {
    padding: 20px;
    line-height: 1.7;
    color: #555;
}

/* Mensaje cuando no hay líneas de investigación */
.no-lineas-investigacion {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.no-lineas-investigacion p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* ========================================
   PERFILES DE POSTULANTES (Estilo Acordeón)
   ======================================== */

/* Acordeón de Perfiles de Postulantes */
.perfiles-postulantes-acordeon {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Mensaje cuando no hay perfiles de postulantes */
.no-perfiles-postulantes {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    grid-column: 1 / -1;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .lineas-investigacion-acordeon,
    .perfiles-postulantes-acordeon {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .acordeon-header {
        padding: 15px;
    }
    
    .acordeon-titulo {
        font-size: 1rem;
    }
    
    .acordeon-body {
        padding: 15px;
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .lineas-investigacion-acordeon,
    .perfiles-postulantes-acordeon {
        gap: 15px;
    }
    
    .acordeon-header {
        padding: 18px;
    }
    
    .acordeon-titulo {
        font-size: 1.05rem;
    }
}

/* Perfil de Egreso */
.profile-content {
    margin: 0 auto;
}

.profile-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

/* ¿A quién va dirigido? */
.target-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 0 auto;
}

.target-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.target-image .image-placeholder {
    background: #e9ecef;
    border-radius: 12px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.1rem;
    border: 2px dashed #ccc;
}

/* Equipo Docente */
.faculty-carousel {
    position: relative;
    margin: 0 auto;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: #e55a2b;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: -60px;
}

.carousel-arrow.next {
    right: -60px;
}

.faculty-members {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.faculty-member {
    text-align: center;
}

.member-image .image-placeholder {
    background: #e9ecef;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    border: 2px dashed #ccc;
    margin: 0 auto 20px;
}

.faculty-member h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.faculty-member p {
    color: #666;
    font-size: 0.9rem;
}

/* Perfil de Postulación */
.application-content {
    margin: 0 auto;
}

.application-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}



/* También te puede interesar */
.related-programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 0 auto;
}

.program-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.program-image .image-placeholder {
    background: #e9ecef;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    border: 2px dashed #ccc;
}

.program-card h4 {
    padding: 20px;
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    text-align: center;
    font-weight: 600;
}

/* Formulario de Contacto */
.doctorado-contact {
    background: #f8f9fa;
}

.doctorado-contact h2 {
    margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .doctorado-title {
        font-size: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    /* En móviles, todos los campos ocupan el ancho completo */
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item:nth-child(4),
    .info-item:nth-child(5) {
        grid-column: 1 / -1;
    }
    
    /* En móviles, info-wrapper se apila */
    .info-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .description-content,
    .director-content,
    .objective-content,
    .target-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .faculty-members {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .carousel-arrow {
        display: none;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .doctorado-header {
        padding: 40px 0 30px;
    }
    
    .doctorado-title {
        font-size: 1.8rem;
    }
    
    .info-box {
        padding: 20px;
    }
}
