/* Estilos base responsivos para cursos */
.course-container {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.course-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.course-header h6 {
    color: #4BCAF0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.course-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1F1B2D;
    margin-bottom: 1rem;
}

.course-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.course-image-container {
    flex: 1 1 45%;
    min-width: 300px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 400px;
}

.course-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-image-container:hover img {
    transform: scale(1.03);
}

.course-details {
    flex: 1 1 50%;
    min-width: 300px;
}

.course-section h3 {
    color: #1F1B2D;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.course-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #4BCAF0;
}

.course-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.course-list li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.course-list i {
    color: #4BCAF0;
    margin-right: 0.8rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Efectos hover para interactividad */
.course-list li:hover {
    color: #4BCAF0;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Estilos para la sección de título */
.section-title {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: white;
    color: #4BCAF0;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Estilos responsivos */
@media (max-width: 1200px) {
    .course-header h1 {
        font-size: 2rem;
    }
    
    .course-section h3 {
        font-size: 1.3rem;
    }
    
    .course-list li {
        font-size: 1rem;
    }
    
    .course-image-container {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .course-content-wrapper {
        flex-direction: column;
    }
    
    .course-image-container, 
    .course-details {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .course-header h1 {
        font-size: 1.8rem;
    }
    
    .course-image-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .course-container {
        padding: 1.5rem 0;
    }
    
    .course-header h1 {
        font-size: 1.6rem;
    }
    
    .course-section h3 {
        font-size: 1.2rem;
        margin: 1.2rem 0 0.8rem;
    }
    
    .course-list li {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }
    
    .course-image-container {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .course-header h1 {
        font-size: 1.4rem;
    }
    
    .course-section h3 {
        font-size: 1.1rem;
    }
    
    .course-list li {
        font-size: 0.9rem;
    }
    
    .course-image-container {
        min-width: 100%;
        height: 200px;
    }
    
    .section-title {
        font-size: 0.9rem;
    }
}

/* Ajustes específicos para Bootstrap */
.row.g-5 {
    margin: 0;
}

.wow.fadeInUp {
    animation-duration: 0.8s;
}

/* Asegurar que las imágenes sean responsivas */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Ajustes para el contenedor principal */
.container-xxl {
    padding-left: 15px;
    padding-right: 15px;
}

/* Asegurar que los elementos de lista no se desborden */
.list-unstyled {
    word-wrap: break-word;
}

/* Mejorar el espaciado en móviles */
@media (max-width: 768px) {
    .row.gy-2.gx-4 {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .row.gy-2.gx-4 > * {
        padding-left: 5px;
        padding-right: 5px;
    }
}
/* Estilos base para la imagen Letras negras */
img.img-fluid[src="src/img/Letras negras.png"] {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.5s ease, opacity 0.3s ease;
    transform-origin: center center; /* Asegura que el zoom sea desde el centro */
}

/* Efecto zoom responsivo */
@media (min-width: 1200px) { /* Pantallas grandes */
    img.img-fluid[src="src/img/Letras negras.png"] {
        transform: scale(1); /* Tamaño normal */
    }
    img.img-fluid[src="src/img/Letras negras.png"]:hover {
        transform: scale(1.05); /* Zoom del 5% */
    }
}

@media (max-width: 1199px) and (min-width: 992px) { /* Pantallas medianas-grandes */
    img.img-fluid[src="src/img/Letras negras.png"] {
        transform: scale(1);
    }
    img.img-fluid[src="src/img/Letras negras.png"]:hover {
        transform: scale(1.04); /* Zoom ligeramente menor */
    }
}

@media (max-width: 991px) and (min-width: 768px) { /* Tablets */
    img.img-fluid[src="src/img/Letras negras.png"] {
        transform: scale(1);
    }
    img.img-fluid[src="src/img/Letras negras.png"]:hover {
        transform: scale(1.03); /* Zoom más conservador */
    }
}

@media (max-width: 767px) { /* Móviles */
    img.img-fluid[src="src/img/Letras negras.png"] {
        transform: scale(1);
    }
    img.img-fluid[src="src/img/Letras negras.png"]:hover {
        transform: scale(1.02); /* Mínimo zoom para no afectar la experiencia móvil */
    }
}

/* Ajustes existentes de padding y responsive */
img.img-fluid[src="src/img/Letras negras.png"] {
    padding: 5px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    img.img-fluid[src="src/img/Letras negras.png"] {
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    img.img-fluid[src="src/img/Letras negras.png"] {
        
        max-height: 100%;
        max-width: 100%;
        height: auto;
        width: auto;
        margin: 0 auto;
        object-fit: contain;
    }
}
