/* HEADER ESPECÍFICO (Ajustado a 75vh - 3/4 de pantalla) */
.servicios-header {
    height: 95vh;           /* Altura 3/4 de pantalla */
    min-height: 500px;      /* Mínimo para móviles */
    background: url('../img/servicios_hero.jpg') center/cover no-repeat;
    position: relative;
    
    /* Ajustes para que quede DETRÁS del menú transparente */
    margin-top: -80px;
    padding-top: 80px;
}

.overlay-dark {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.75); /* Oscurece la imagen para leer el texto */
}

/* Ajustes de texto */
.letter-spacing-3 { letter-spacing: 3px; }
.text-shadow { text-shadow: 0 4px 20px rgba(0,0,0,0.5); }


/* --- 2. TARJETAS INTERACTIVAS (CATÁLOGO VISUAL) --- */
.interactive-card {
    height: 450px; /* Altura fija para impacto visual */
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    background-color: #000; /* Fondo negro por si tarda en cargar la imagen */
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Imagen de fondo de la tarjeta */
.card-bg-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0.9;
}

/* Capa oscura (Overlay) */
.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradiente suave al principio */
    background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.3) 60%, rgba(15,23,42,0) 100%);
    transition: background 0.4s ease;
    z-index: 2;
}

/* Contenido (Texto) */
.overlay-content {
    transform: translateY(40px); /* Empieza desplazado hacia abajo */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

/* Elementos que aparecen al Hover */
.card-desc, .specs-list{
    opacity: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* --- EFECTOS HOVER (INTERACCIÓN) --- */
.interactive-card:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.interactive-card:hover .card-bg-img {
    transform: scale(1.1); /* Zoom in */
    opacity: 0.4; /* Se oscurece la imagen para leer texto */
}

.interactive-card:hover .card-overlay {
    /* Gradiente más oscuro y sólido al hacer hover */
    background: linear-gradient(to top, rgba(15,23,42,1) 20%, rgba(15,23,42,0.6) 100%);
}

.interactive-card:hover .overlay-content {
    transform: translateY(0); /* El contenido sube a su lugar */
}

.interactive-card:hover .card-desc,
.interactive-card:hover .btn-primary {
    opacity: 1;
    max-height: 200px; /* Se abre espacio para el texto */
    margin-top: 1rem;
}

/* Iconos dentro de las tarjetas */
.icon-box {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
}


/* --- 3. SECCIÓN CATÁLOGOS (PARALLAX) --- */
.catalog-parallax {
    min-height: 600px;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 5rem;
    display: flex;
    align-items: center;
}

.catalog-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%; /* Altura extra para el movimiento */
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
}

.catalog-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85); /* Azul corporativo traslúcido */
    z-index: 1;
}

/* Tarjetas de Descarga (Botones grandes) */
.download-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important;
}

.icon-circle {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}


/* --- 4. CTA FINAL (PARALLAX INMERSIVO) --- */
.cta-final-parallax {
    min-height: 500px;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-bg-img {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.cta-overlay-dark {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85); /* Oscuro para legibilidad */
    z-index: 1;
}

/* Utilidad Hover Scale */
.hover-scale {
    transition: transform 0.3s ease;
}
.hover-scale:hover {
    transform: scale(1.05);
}

/* Permite que la tarjeta de lavanderías muestre más contenido */
.interactive-card:hover .card-desc {
    max-height: 300px; /* Aumentado de 200px a 300px para que quepan las 2 columnas */
}