/* ==========================================
   CAROUSEL 3D SERVICIOS - ESTILOS CSS
   ========================================== */

.carousel-container {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.carousel-wrapper {
    position: relative;
    width: 300px;
    height: 400px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.carousel-item {
    position: absolute;
    width: 300px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-item:hover {
    transform: scale(1.05) translateZ(50px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-item:hover .carousel-img {
    transform: scale(1.1);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 1; /* Cambiado de 0 a 1 para mostrar siempre */
    transition: opacity 0.3s ease;
}

/* Eliminamos el hover que cambiaba la opacidad */
/* .carousel-item:hover .carousel-overlay {
    opacity: 1;
} */

.carousel-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #D1A246; /* Cambio a dorado elegante */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Mejor legibilidad */
}

.carousel-button {
    background: rgba(209, 162, 70, 0.2); /* Fondo dorado translúcido */
    border: 1px solid rgba(209, 162, 70, 0.4); /* Borde dorado */
    color: #F5E6A3; /* Color dorado más claro para el texto */
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: inline-block;
    width: fit-content;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-button:hover {
    background: rgba(209, 162, 70, 0.4); /* Fondo dorado más intenso al hover */
    border-color: #D1A246;
    transform: translateY(-2px);
    color: #F5E6A3;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(209, 162, 70, 0.3);
}

/* ==========================================
   CONTROLES DE NAVEGACIÓN
   ========================================== */

.controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 100;
}

.control-btn {
    width: 50px;
    height: 50px;
    background: rgba(209, 162, 70, 0.1); /* Fondo dorado sutil */
    border: 1px solid rgba(209, 162, 70, 0.3); /* Borde dorado */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(209, 162, 70, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(209, 162, 70, 0.2);
}

.control-btn::before {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid #D1A246; /* Flechas doradas */
    border-right: 2px solid #D1A246;
}

.prev::before {
    transform: rotate(-135deg);
}

.next::before {
    transform: rotate(45deg);
}

/* ==========================================
   INDICADORES
   ========================================== */

.indicators {
    position: absolute;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(209, 162, 70, 0.3); /* Indicadores dorados */
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #D1A246; /* Indicador activo dorado */
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(209, 162, 70, 0.5);
}

/* ==========================================
   ESTILOS ADICIONALES PARA TEXTO DORADO
   ========================================== */

/* Si tienes párrafos u otros elementos de texto dentro del overlay */
.carousel-overlay p,
.carousel-overlay span,
.carousel-overlay div {
    color: #F5E6A3; /* Color dorado claro para texto secundario */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .carousel-wrapper {
        width: 250px;
        height: 350px;
    }
    
    .carousel-item {
        width: 250px;
        height: 350px;
    }
    
    .carousel-title {
        font-size: 1.2rem;
    }
    
    .carousel-button {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .control-btn::before {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        width: 200px;
        height: 300px;
    }
    
    .carousel-item {
        width: 200px;
        height: 300px;
    }
    
    .carousel-overlay {
        padding: 1.5rem;
    }
    
    .carousel-title {
        font-size: 1rem;
    }
}