/* Estilos para la sección Sobre Nosotros */
.about-section {
    padding: 150px 0 100px; /* Aumentar padding superior */
    background-color: #f9f9f9;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: -100px; /* Compensar el margen del carrusel */
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 0 20px;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover .about-img {
    transform: scale(1.03);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 30px;
}

.about-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}
/* ______________________modifica posicion de los div de feature */
.about-features {
    display: flex;
    flex-direction: row;
    justify-content: center; /* Centrado horizontal */
    align-items: center;     /* Centrado vertical */
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
   
}

.about-features > div {
    height: 300px;
    flex: 1;                /* Que todos los hijos ocupen espacio proporcional */
    min-height: 250px;      /* Ajusta según tu diseño */
    background: #f5f5f5;    /* Solo para visualizar */
    padding: 20px;
    box-sizing: border-box;
}

.feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature:hover .feature-icon {
    background-color: rgb(41, 136, 153);
    color: white;
    transform: translateY(-5px);
    
}

.feature-text h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-text p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

.about-content .cta-button {
    display: flex;
    margin: 0 auto;
    width: 180px ;
    padding: 12px 30px;
    background-color: var(--transparent-color);
    color: rgb(41, 136, 153);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 800;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    justify-content: center; /* Centrado horizontal */
    align-items: center;     /* Centrado vertical */
}

.about-content .cta-button:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Estilos para móviles */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .section-divider {
        margin: 0 auto 30px;
    }
    
    .feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .about-intro {
        font-size: 1rem;
    }
    
    .feature {
        gap: 15px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .feature-text h3 {
        font-size: 1.2rem;
    }
    
    .feature-text p {
        font-size: 0.9rem;
    }
}

/* ________________________________ */


/* Estilos para móviles */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    
    .section-divider {
        margin: 0 auto 30px;
    }
    
    .feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .chatbot-container {
        width: 90%;
        right: 5%;
        top: 70px;
        height: 70vh;
    }
    
    .chatbot-container.active {
        transform: translateY(0);
    }
    
    .about-section {
        padding: 60px 0;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .about-intro {
        font-size: 1rem;
    }
} 

/* Galería con efecto de rueda 3D Horizontal */
.gallery-3d-horizontal {
    width: 100%;
    height: 500px; /* Aumentar la altura del carrusel */
    display: flex;
    align-items: center;
    margin-top: 100px; /* Asegurar espacio para el header */
    position: relative;
    z-index: 1; /* Asegurar que esté por encima del fondo pero debajo del header */
    justify-content: center;
    perspective: 1000px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    margin-bottom: 60px;
}

.carousel-3d-horizontal {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateHorizontal 30s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-3d-horizontal img {
    position: absolute;
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform-origin: center center;
    transition: all 0.5s ease;
    opacity: 0.9;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

/* Distribución de las imágenes en un círculo horizontal */
.carousel-3d-horizontal img:nth-child(1) { transform: rotateY(0deg) translateZ(400px); }
.carousel-3d-horizontal img:nth-child(2) { transform: rotateY(60deg) translateZ(400px); }
.carousel-3d-horizontal img:nth-child(3) { transform: rotateY(120deg) translateZ(400px); }
.carousel-3d-horizontal img:nth-child(4) { transform: rotateY(180deg) translateZ(400px); }
.carousel-3d-horizontal img:nth-child(5) { transform: rotateY(240deg) translateZ(400px); }
.carousel-3d-horizontal img:nth-child(6) { transform: rotateY(300deg) translateZ(400px); }

/* Efecto hover para las imágenes */
/* .carousel-3d-horizontal img:hover {
    transform: scale(1.1) translateZ(400px);
    opacity: 1;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    z-index: 10;
} */

@keyframes rotateHorizontal {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(-360deg); }
}

/* Efecto de reflejo */
.gallery-3d-horizontal::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
    transform: scaleY(-1);
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .gallery-3d-horizontal {
        height: 350px;
    }
    
    .carousel-3d-horizontal img {
        width: 250px;
        height: 180px;
    }
    
    .carousel-3d-horizontal img:nth-child(n) { 
        transform: rotateY(calc(var(--i) * 60deg)) translateZ(350px);
    }
}

@media (max-width: 768px) {
    .gallery-3d-horizontal {
        height: 250px;
    }
    
    .carousel-3d-horizontal img {
        width: 180px;
        height: 130px;
    }
    
    .carousel-3d-horizontal img:nth-child(n) { 
        transform: rotateY(calc(var(--i) * 60deg)) translateZ(250px);
    }
}
