/* =============================================
        PÁGINA: SERVICIOS & MAQUINARIA
============================================= */
.servicios-premium {
    background-color: #ffffff;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #111;
    overflow-x: hidden;
}

/* --- HERO EDITORIAL --- */
.hero-editorial {
    display: flex;
    align-items: center;
    min-height: 430px;
    padding: 80px 5%;
    background-image: linear-gradient(90deg, rgba(8, 20, 34, .88) 0%, rgba(8, 20, 34, .62) 52%, rgba(8, 20, 34, .2) 100%), url('img/maquinas/pincipal.webp');
    background-position: center;
    background-size: cover;
    border-top: 4px solid #2966C4;
}

.hero-text-box {
    max-width: 800px;
    position: relative;
}

.linea-decorativa {
    width: 60px; /* Línea más pequeña */
    height: 5px;
    background-color: #FFCB11;
    margin-bottom: 20px;
}

.hero-editorial h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Título más pequeño */
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 15px;
    color: #fff;
}

.texto-azul {
    color: #FFCB11;
}

.hero-editorial p {
    font-size: 1.1rem; /* Párrafo más pequeño */
    color: #e5edf5;
    line-height: 1.5;
    max-width: 600px;
}

/* --- BLOQUES EDITORIALES (SPLIT SCREEN - ULTRA COMPACTOS) --- */
.bloque-editorial {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #eee;
}

.bloque-editorial.invertido {
    flex-direction: row-reverse;
}

/* MITAD IMAGEN (CARRUSEL) */
.carrusel-servicios {
    width: 50%;
    position: relative;
    overflow: hidden;
    min-height: 320px; /* Altura mínima reducida drásticamente (antes 400px) */
}

.img-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
    transition: opacity 1s ease-in-out, transform 6s ease;
}

.img-slide.activa {
    opacity: 1;
    z-index: 1;
    transform: scale(1.05);
}

.overlay-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(41, 102, 196, 0.1);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.bloque-editorial:hover .overlay-hover {
    opacity: 1;
}

.etiqueta-flotante {
    position: absolute;
    bottom: 15px; /* Pegado casi al borde */
    right: 15px;
    background: #111;
    color: white;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 3;
}

.bloque-editorial.invertido .etiqueta-flotante {
    right: auto;
    left: 15px;
}

/* MITAD CONTENIDO (Textos y Grilla) */
.mitad-contenido {
    width: 50%;
    padding: 35px 4%; /* Padding muy reducido (antes 50px) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
}

 .numero-seccion {
    font-size: 2.2rem; /* Número de fondo mucho más chico */
    font-weight: 900;
    color: black;
    line-height: 1;
    margin-bottom: -5px;
} 

.mitad-contenido h2 {
    font-size: 1.8rem; /* Título de sección más compacto */
    font-weight: 800;
    color: #2966C4;
    margin-bottom: 10px;
    line-height: 1.1;
}

.desc-principal {
    font-size: 0.95rem; /* Texto más pequeño */
    color: #444;
    line-height: 1.5;
    margin-bottom: 18px; /* Menos espacio hacia abajo */
}

/* GRILLA TÉCNICA (Súper compacta) */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px; /* Cajas más juntas */
    background-color: #f8f9fa;
    padding: 12px 15px; /* Menos padding interno */
    border-left: 4px solid #FFCB11;
    margin-bottom: 18px;
}

.grid-box {
    display: flex;
    flex-direction: column;
}

.grid-box i {
    color: #2966C4;
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.grid-box strong {
    font-size: 0.75rem; /* Textos de etiqueta mini */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 2px;
}

.grid-box span {
    font-size: 0.85rem; /* Valor de etiqueta mini */
    font-weight: 700;
    color: #111;
}

/* LISTA MINIMALISTA */
.lista-minimalista {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.lista-minimalista li {
    font-size: 0.9rem; /* Letras de la lista más chicas */
    color: #333;
    padding: 6px 0; /* Menos espacio entre líneas */
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 18px;
}

.lista-minimalista li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2966C4;
    font-weight: bold;
}

/* BOTÓN EDITORIAL (Botón más delgado) */
.btn-editorial {
    align-self: flex-start;
    background-color: #111;
    color: white;
    padding: 12px 24px; /* Botón menos alto y ancho */
    font-size: 0.9rem; /* Letra de botón reducida */
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-editorial:hover {
    background-color: #2966C4;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(41, 102, 196, 0.2);
}

/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 992px) {
    .bloque-editorial, .bloque-editorial.invertido {
        flex-direction: column;
    }

    .carrusel-servicios, .mitad-contenido {
        width: 100%;
    }

    .carrusel-servicios {
        height: 250px; /* Imágenes mucho más chatas en móvil */
        min-height: auto;
    }

    .mitad-contenido {
        padding: 30px 5%; /* Padding apretado para celular */
    }

    .hero-editorial {
        min-height: 360px;
        padding: 64px 7%;
        background-position: 62% center;
    }

    .hero-text-box {
        max-width: 620px;
    }

    .hero-editorial h1 {
        font-size: clamp(2.3rem, 7vw, 3.4rem);
    }

    .hero-editorial p {
        max-width: 540px;
        font-size: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .mitad-contenido {
        padding: 34px 7%;
    }

    .lista-minimalista {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .hero-editorial {
        min-height: 390px;
        padding: 52px 6% 58px;
        background-position: 68% center;
    }

    .hero-editorial h1 {
        font-size: clamp(2rem, 11vw, 2.8rem);
    }

    .hero-editorial p {
        font-size: .95rem;
        line-height: 1.55;
    }

    .carrusel-servicios {
        height: 230px;
    }

    .mitad-contenido {
        padding: 28px 6%;
    }

    .mitad-contenido h2 {
        font-size: 1.55rem;
    }

    .desc-principal {
        font-size: .92rem;
        line-height: 1.55;
    }

    .info-grid {
        padding: 12px;
    }

    .grid-box span {
        overflow-wrap: anywhere;
    }

    .lista-minimalista li {
        font-size: .86rem;
        line-height: 1.45;
    }

    .btn-editorial {
        width: 100%;
        text-align: center;
        padding: 11px 16px;
    }

    .etiqueta-flotante {
        max-width: calc(100% - 30px);
        font-size: .65rem;
    }
}