
/* ###### Froamto textos de la pagina ######*/
.scientific-intro {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    max-width: 1200px;
    margin: 30px auto;
    box-shadow: 0 12px 24px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    font: MoveOnly;
}

.scientific-intro::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(45deg, transparent 20%, rgba(106, 13, 173, 0.03) 20%, transparent 30%),
        linear-gradient(-45deg, transparent 20%, rgba(106, 13, 173, 0.03) 20%, transparent 30%);
    background-size: 40px 40px;
    transform: rotate(-45deg);
    z-index: 1;
}

.scientific-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.scientific-header h1 {
    color: #2c3e50;
    font-weight: 300;
    font-size: 2.5em;
    letter-spacing: -1px;
    position: relative;
}

.scientific-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 2px;
    background: linear-gradient(to right, #6a0dad, #3498db);
}

.scientific-section {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.scientific-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.06);
}

.scientific-section h2 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(106, 13, 173, 0.2);
}

.scientific-section p {
    color: #34495e;
    line-height: 1.8;
    text-align: justify;
}

.research-highlight {
    background-color: #f0f4f8;
    padding: 20px;
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
}

.research-highlight h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.research-highlight ul {
    list-style-type: none;
    padding: 0;
}

.research-highlight ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #34495e;
}

.research-highlight ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #6a0dad;
    font-weight: bold;
}

/* ###### Foramto carrusel de la pagina ###############################################*/
.carousel-container {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;
    width: 100%;
    padding: 50px 0;
}

.carousel {
    position: relative;
    width: 80%; /* Ajusta según necesites */
    max-width: 1200px; /* Reduce si quieres que esté más centrado */
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background-color: white;
    z-index: 15;
    margin: 0 auto; /* Añade esto para centrado adicional */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
}

.carousel-slide .date-highlight {
    position: absolute;
    top: 10px;
    left: 10px;
    color: rgb(156, 155, 174);
    padding: 5px 10px;
    font-size: 30px;
    font-family:'Franklin Gothic Medium';
    z-index: 30;
    pointer-events: none; /* Permite que los clics pasen a través */
}

.carousel-slide img {
    max-width: 90%;
    max-height: 90%;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 7px;
    position: relative;
    z-index: 10;
}

/* Contenedor del video para manejar expansión */
.video-container {
    position: relative;
    width: 80%;
    max-height: 90%;
    margin: 0 auto;
    z-index: 10;
    transition: all 0.3s ease;
}

.video-container.expanded {
    width: 90%;
    max-height: 90%;
    z-index: 40; /* Por encima del overlay cuando está expandido */
}

.carousel-slide video {
    width: 90%;
    height: 90%;
    display: block;
    object-fit: contain;
    border-radius: 7px;
    cursor: pointer;
}

.carousel-slide .info-overlay {
    position: absolute;
    top: 71%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.711);
    color: white;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 0 0 10px 10px;
    z-index: 20;
    /* Solo cubrimos la parte inferior con info */
    height: 29%; /* Complemento de top: 71% */
    pointer-events: auto; /* Cambiado a auto para permitir clics en enlaces */
}

.carousel-slide .info-overlay h3{
    color:#f0f4f8;
}

.carousel-slide .info-overlay p{
    color:lightblue;
}

.carousel-slide:hover .info-overlay {
    opacity: 1;
}

.carousel-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 35; /* Aumentado para estar por encima del overlay */
}

.carousel-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-indicators {
    position: absolute;
    top: 96%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 35; /* Aumentado para estar por encima del overlay */
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.carousel-indicator.active {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel {
        height: 300px;
    }
}
