/* ===================================================
   SECCIÓN INFRAESTRUCTURA / PLANTA INDUSTRIAL
   =================================================== */

.seccion-destacada-planta {
    width: 100%;
    margin: 0 auto;
    /* Sin padding vertical para que respete el gap de .body */
}

/* Cabecera de la sección */
.planta-header {
    margin-top: 0;
    margin-bottom: 2rem;
}

.planta-subtitulo {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--detalles);
    display: inline-block;
    margin-bottom: 0.3rem;
}

.planta-titulo {
    color: var(--color-principal-hover) !important;
    margin: 0 !important;
}

.planta-linea-decorativa {
    width: 70px;
    height: 4px;
    background: var(--gradiente-botones);
    margin: 0.8rem auto 0 auto;
    border-radius: 4px;
}

/* Imagen panorámica */
.planta-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 460px;
    background-color: var(--color-principal-hover);
}

.planta-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 65%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.planta-banner:hover img {
    transform: scale(1.02);
}

/* Tarjeta flotante sobre la imagen */
.planta-overlay-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    max-width: 440px;
    background: rgba(14, 59, 92, 0.88);
    /* Basado en tu color-principal-hover */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.planta-overlay-card .overlay-icon i {
    font-size: 2.2rem;
    color: var(--hover);
}

.planta-overlay-card h4 {
    margin: 0 0 4px 0 !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: #ffffff !important;
}

.planta-overlay-card p {
    margin: 0 !important;
    font-size: 0.9rem !important;
    color: var(--color-letras-footer) !important;
    line-height: 1.35;
}

/* Grilla de Métricas */
.planta-metricas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-top: 2rem;
}

.metrica-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.3rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--borde-recuadro);
    box-shadow: 0 4px 12px rgba(31, 107, 167, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.metrica-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(31, 107, 167, 0.16);
    border-color: var(--color-principal);
}

.metrica-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--recuadro);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metrica-icon i {
    font-size: 1.6rem;
    color: var(--color-principal);
}

.metrica-info {
    display: flex;
    flex-direction: column;
}

.metrica-numero {
    font-family: 'Concert One', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-principal-hover);
    line-height: 1.1;
}

.metrica-label {
    font-size: 0.85rem;
    color: #555555;
    margin-top: 3px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

/* ===================================================
   RESPONSIVE DESIGN
   =================================================== */

@media screen and (max-width: 1200px) {
    .planta-metricas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .planta-banner {
        height: 380px;
    }
}

@media screen and (max-width: 768px) {
    .planta-banner {
        height: 280px;
    }

    .planta-overlay-card {
        bottom: 12px;
        left: 12px;
        right: 12px;
        max-width: none;
        padding: 0.8rem 1rem;
    }

    .planta-overlay-card p {
        display: none;
        /* Simplifica el texto para mantener visible la fachada en tablets/móviles */
    }
}

@media screen and (max-width: 576px) {
    .planta-header {
        margin-bottom: 1.2rem;
    }

    .planta-banner {
        height: 220px;
    }

    .planta-overlay-card {
        display: none;
        /* En teléfonos chicos se oculta para no tapar los galpones */
    }

    .planta-metricas-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-top: 1.2rem;
    }
}