/* Estilos generales para la sección */
.about {
    padding: 100px 0;
    background-color: #ffffff;
    overflow: hidden;
    position: relative;

}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contenido de texto */
.about-content {
    padding-right: 30px;
}

.about h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.about p {
    color: #34495e;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.about h3 {
    font-size: 1.8rem;
    color: #4CAF50;
    margin: 30px 0 15px;
    font-weight: 600;
}

/* Estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Imagen principal */
.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    height: 500px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Carrusel de perfiles */
.projects-carousel-container {
    grid-column: 1 / -1;
    margin-top: 60px;
    position: relative;
}

.projects-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 0;
    margin: 0 -15px;
    scrollbar-width: none;
}

.projects-carousel::-webkit-scrollbar {
    display: none;
}

/* Tarjetas de perfil */
.project-card {
    scroll-snap-align: start;
    flex: 0 0 calc(50% - 15px);
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.project-image {
    height: 70%;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-details {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-details h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-details p {
    color: #7f8c8d;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Botones de navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4CAF50;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

/* Responsive */
@media (max-width: 1024px) {
    .about .container {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        padding-right: 0;
    }
    
    .about-image {
        height: 400px;
        order: -1;
    }
    
    .project-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .about {
        padding: 60px 0;
        
    }
    
    .about h2 {
        font-size: 2rem;
    }
    
    .about h3 {
        font-size: 1.5rem;
    }
    
    .project-card {
        flex: 0 0 85%;
    }
    
    .project-image {
        height: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-btn.prev {
        left: -15px;
    }
    
    .carousel-btn.next {
        right: -15px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 250px;
    }
    
    .project-details h3 {
        font-size: 1.2rem;
    }
}