/* ===== Floating Cards Component Styles ===== */
.floating-cards-section {
    position: relative;
    width: 100%;
    min-height: 800px;
    height: 100vh;
    overflow: visible;
    display: block;
}

/* Imagen de fondo de la casa */
.house-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.house-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 25%, #8b5cf6 50%, #6366f1 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    position: relative;
}

.house-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 107, 53, 0.3) 0%, rgba(139, 92, 246, 0.5) 100%);
}

/* Textos superiores */
.floating-cards-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 3rem 4rem;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.services-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.services-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-align: right;
}

.floating-cards-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 800px;
    height: 100%;
    z-index: 10;
    padding: 0;
}

/* Cards Flotantes Transparentes */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    width: 280px;
    overflow: hidden;
    margin: 0;
}

.floating-card:hover {
    transform: translateY(-15px) scale(1.08);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.floating-card-image {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.service-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.service-placeholder svg {
    width: 80%;
    height: 80%;
}

.ac-placeholder {
    background: rgba(135, 206, 250, 0.15);
}

.solar-placeholder {
    background: rgba(255, 215, 0, 0.15);
}

.light-placeholder {
    background: rgba(255, 255, 0, 0.15);
}

.floating-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

/* Posicionamiento de las cards - Distribuidas alrededor de la casa */
/* Card 1: Aire Acondicionado - Izquierda, nivel medio-alto */
.card-top-left {
    position: absolute;
    left: 3%;
    top: 280px;
    transform: rotate(-5deg);
    z-index: 12;
}

.card-top-left:hover {
    transform: rotate(-2deg) translateY(-15px) scale(1.08);
    z-index: 20;
}

/* Card 2: Paneles Solares - Derecha, arriba */
.card-top-right {
    position: absolute;
    right: 3%;
    top: 100px;
    transform: rotate(8deg);
    z-index: 12;
}

.card-top-right:hover {
    transform: rotate(3deg) translateY(-15px) scale(1.08);
    z-index: 20;
}

/* Card 3: Iluminación - Derecha, abajo */
.card-bottom-right {
    position: absolute;
    right: 5%;
    bottom: 180px;
    transform: rotate(-10deg);
    z-index: 12;
}

.card-bottom-right:hover {
    transform: rotate(-3deg) translateY(-15px) scale(1.08);
    z-index: 20;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-cards-section {
        min-height: 600px;
    }

    .floating-cards-header {
        padding: 2rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .services-title {
        font-size: 1.2rem;
    }

    .services-subtitle {
        font-size: 0.9rem;
        text-align: left;
    }

    .floating-cards-container {
        min-height: 500px;
        padding: 2rem 1rem;
    }

    .floating-card {
        position: relative;
        min-width: 200px;
        max-width: 100%;
        padding: 1.5rem;
        margin: 1.5rem auto;
        transform: none !important;
    }

    .card-top-left,
    .card-top-right,
    .card-bottom-right {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none !important;
        margin: 1.5rem auto;
    }

    .floating-card:hover {
        transform: translateY(-8px) scale(1.03) !important;
    }

    .floating-card-image {
        height: 150px;
    }
    
    .service-image {
        width: 100%;
        height: 100%;
    }
}

