/* Estilos para Sección 6 */
.projects-section-6 {
    padding: 20px 0;
    background-color: #fff;
}

.section-6-container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

/* Columna de texto */
.section-6-text {
    flex: 1;
    display: flex;
    align-items: center;
}

.section-6-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 100%;
}

.section-6-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: #010101;
    margin-bottom: 20px;
    position: relative;
}

.section-6-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #9B877E;
}

.section-6-description {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Carrusel */
.section-6-slider {
    flex: 1.5;
	padding: 0px;
	margin: 0px;
}

.section-6-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.section-6-carousel {
    position: relative;
    width: 100%;
    height: 400px;
}

.section-6-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.section-6-slide{
	display: flex;
    align-items: center;
    justify-content: center;
}

.section-6-slide{
	max-width: 100%;
    max-height: 100%;
}

.section-6-slide.active {
    opacity: 1;
    z-index: 2;
}

.section-6-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Flechas */
.section-6-nav {
    position: absolute;
    top: 0;
    height: 100%;
    width: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-6-prev {
    left: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
}

.section-6-next {
    right: 0;
    background: linear-gradient(270deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
}

.section-6-slider-container:hover .section-6-nav {
    opacity: 1;
}

.section-6-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 20px;
}

.section-6-arrow svg {
    width: 30px;
    height: 30px;
    fill: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.section-6-arrow:hover svg {
    fill: #fff;
    transform: scale(1.2);
}

/* Indicadores */
.section-6-dots {
	position: relative;
    display: flex;
    justify-content: center;
    gap: 10px;
	z-index: 3;
    margin-top: 20px;
}

.section-6-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(155, 135, 126, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-6-dot.active {
    background-color: #010101;
    transform: scale(1.2);
}

/* ================================
   RESPONSIVE - 1024px a 769px
   ================================ */
   
@media (max-width: 1024px) {
	
	/*--- Seccion deslizable ---*/
	
	.section-6-slider-container::after {
        content: '← Desliza →';
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 12px;
        font-weight: 600;
        background: rgba(0, 0, 0, 0.6);
        padding: 8px 16px;
        border-radius: 20px;
        z-index: 4;
        opacity: 1;
        animation: swipeHintMobile 2.5s ease-in-out infinite;
        pointer-events: none;
        white-space: nowrap;
        letter-spacing: 1px;
    }
	
	@keyframes swipeHintMobile {
        0%, 100% {
            transform: translateX(-50%);
            opacity: 0.6;
        }
        50% {
            transform: translateX(calc(-50% + 10px));
            opacity: 1;
        }
    }
	
	/*--- Seccion deslizable ---*/
	
    .section-6-container {
        flex-direction: column-reverse;
        gap: 30px;
    }
    
    .section-6-content {
		padding: 30px 20px 20px;
        margin: 0 auto 10px;
    }
    
	.section-6-title {
		text-align: center;
	}
	
	.section-6-title::after{
		left: 50%;
        transform: translateX(-50%);
	}
	
    .section-6-carousel {
        height: auto !important; /* Elimina altura fija */
        min-height: 300px;  /*Altura mínima opcional */
        aspect-ratio: 16/9; /* Proporción recomendada para arquitectura */
		margin-top: 0;
    }
	
	.section-6-carousel .section-6-slide img {
		width: 100%;
        height: auto;
        object-fit: contain; /* Muestra imagen completa sin recortar */
        object-position: center;
	}
    
	.section-6-slider-container{
		height: auto; /* Contenedor se adapta al contenido */
	}
    
    .section-6-nav {
        width: 20%;
    }
}

/* ================================
   RESPONSIVE -  768px a 481px
   ================================ */

@media (max-width: 768px) {
	
	/*--- Seccion deslizable ---*/
	
	.section-6-slider-container::after {
        content: '← →';
        font-size: 11px;
        padding: 6px 14px;
        background: rgba(0, 0, 0, 0.5);
        animation: swipeHintMobile 2s ease-in-out infinite;
    }
    
    @keyframes swipeHintMobile {
        0%, 100% {
            transform: translateX(-50%);
            opacity: 0.5;
        }
        50% {
            transform: translateX(calc(-50% + 10px));
            opacity: 1;
        }
    }
	
	/*--- Seccion deslizable ---*/
	
	.section-6-container {
        gap: 10px;
    }
	
	.section-6-content {
        padding: 15px 20px;
    }
	
    .section-6-title {
        font-size: 1.8rem;
		margin-bottom: 15px;
    }
    
    .section-6-carousel {
        height: auto !important;
        min-height: 250px;
        aspect-ratio: 16/9; /* Proporción más vertical para móviles */
    }
    
	.section-6-carousel .section-6-slide img {
		object-fit: contain;
	}
    
    .section-6-arrow svg {
        width: 24px;
        height: 24px;
    }
}

/* ================================
   RESPONSIVE -  480px a 0px
   ================================ */

@media (max-width: 480px) {
	
	/*--- Seccion deslizable ---*/
	
	.section-6-slider-container::after {
        content: '← →';
        font-size: 10px;
        padding: 6px 14px;
        background: rgba(0, 0, 0, 0.4);
        animation: swipeHintMobile 2s ease-in-out infinite;
    }
    
    @keyframes swipeHintMobile {
        0%, 100% {
            transform: translateX(-50%);
            opacity: 0.4;
        }
        50% {
            transform: translateX(calc(-50% + 10px));
            opacity: 1;
        }
    }
	
	/*--- Seccion deslizable ---*/
	
    .projects-section-6 {
        padding: 10px 0;
    }
    
    .section-6-carousel {
        height: auto !important;
        min-height: 200px;
        aspect-ratio: 16/9; /* Cuadrado o proporción móvil */
    }
    
    .section-6-dot {
        width: 10px;
        height: 10px;
    }
    
    .section-6-nav {
        width: 25%;
    }
}