.component-wrapper section {
    background: none !important;
    padding: 0 !important;
}

.component-wrapper section > div {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.component-wrapper section > div > div,
.component-wrapper section > div > div > div {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

/* Modal específicos para implementar los estilos */
.modal .mission-short,
.modal .vision-short,
.modal .focus-short {
    display: none;
}

.modal .mission-full,
.modal .vision-full,
.modal .focus-full {
    display: block;
}

/* Animaciones para el modal */
.modal {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

/* Estilos responsivos para los contenedores de modales */
.modal-container {
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-height: 90vh;
    width: 95%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
}

.modal.active .modal-container {
    transform: scale(1);
    opacity: 1;
}

/* Contenedor de contenido con scroll */
.modal-content-wrapper {
    max-height: 70vh;
    overflow-y: auto;
}

/* Responsive styling para modales */
@media (max-width: 768px) {
    .modal-container {
        width: 90%;
        max-width: 600px;
    }
    
    .modal-content-wrapper {
        max-height: 65vh;
    }
}

@media (max-width: 640px) {
    .modal-container {
        width: 95%;
        max-width: 100%;
        margin: 0 10px;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-content {
        padding: 12px;
    }
    
    .modal-content-wrapper {
        max-height: 68vh;
    }
}

/* Para pantallas muy pequeñas */
@media (max-height: 600px) {
    .modal-container {
        max-height: 95vh;
    }
    
    .modal-content-wrapper {
        max-height: 75vh;
    }
}

/* Estilos para el fondo de pantalla con desenfoque */
body.modal-open {
    overflow: hidden;
}

/* Efecto de hover en las tarjetas */
.card-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Estilos para el texto en las tarjetas */
.mission-short,
.vision-short,
.focus-short {
    position: relative;
    max-height: 80px;
    overflow: hidden;
}

.mission-short::after,
.vision-short::after,
.focus-short::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

/* Indicador de que las tarjetas son clicables */
.card-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color 0.3s ease;
}

.card-container:hover::after {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Estilo para el botón dentro de la tarjeta para que no active el clic de la tarjeta */
.modal-trigger {
    position: relative;
    z-index: 5;
}

/* Estilos para la barra de scroll en el modal */
.modal-content-wrapper::-webkit-scrollbar {
    width: 6px;
}

.modal-content-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content-wrapper::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}

.modal-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Estilos especiales para el modal de enfoque y sus listas */
#focus-modal .modal-content ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#focus-modal .modal-content li {
    margin-bottom: 0.75rem;
}

/* Limitar el ancho máximo del contenido dentro del modal */
.modal-content {
    max-width: 100%;
    word-wrap: break-word;
}

/* Asegurar que las imágenes dentro del modal no excedan el ancho */
.modal-content img {
    max-width: 100%;
    height: auto;
} 