/*
 * Ajustes propios del footer. Va DESPUÉS de assets/css/style.css para poder
 * sobreescribir al template sin editar sus 40.000 líneas.
 *
 * El problema que resuelve: .service-contain venía como flex con
 * space-between y sin gap, así que el texto de un ítem quedaba pegado al
 * icono del siguiente. Aquí pasa a grid de columnas iguales, que reparte el
 * ancho de forma predecible y deja respirar cada bloque.
 */

.service-section .service-contain {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    align-items: stretch;
    padding: 0;
    margin-bottom: calc(30px + 20 * (100vw - 320px) / 1600);
    border-top: 1px solid #eef0f2;
    border-bottom: 1px solid #eef0f2;
}

/* El template la ocultaba entera por debajo de 768px. Es justo la información
   que más sirve en móvil (envío, entrega), así que se muestra en 2 columnas. */
@media (max-width: 767px) {
    .service-section .service-contain {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-section .service-contain .service-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: auto;              /* anula el width:50% del template */
    margin-bottom: 0;
    padding: 26px 18px;
    text-align: center;
}

/* Separadores: sólo entre columnas, nunca al inicio de una fila. */
.service-section .service-contain .service-box + .service-box {
    border-left: 1px solid #eef0f2;
}

@media (max-width: 767px) {
    /* En 2 columnas, la 3ª empieza fila nueva: no lleva borde izquierdo. */
    .service-section .service-contain .service-box:nth-child(odd) {
        border-left: 0;
    }
    .service-section .service-contain .service-box:nth-child(-n + 2) {
        border-bottom: 1px solid #eef0f2;
    }
    .service-section .service-contain .service-box {
        padding: 20px 12px;
        gap: 10px;
    }
}

/* El pseudo-elemento del separador original estaba posicionado a la izquierda
   con un left negativo fijo; con grid sobra y descuadra. */
.service-section .service-contain .service-box::before {
    display: none;
}

/* Icono dentro de un círculo tintado del color del tema. */
.service-section .service-contain .service-box .service-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(var(--theme-color-rgb), 0.12);
    transition: background .25s ease, transform .25s ease;
}

.service-section .service-contain .service-box:hover .service-image {
    background: rgba(var(--theme-color-rgb), 0.22);
    transform: translateY(-3px);
}

.service-section .service-contain .service-box .service-image img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* El template empujaba el texto con margin-left; en columna sobra. */
.service-section .service-contain .service-box .service-detail {
    margin-left: 0;
    margin-right: 0;
}

.service-section .service-contain .service-box .service-detail h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: #222;
    /* Sin capitalize: el texto ya viene escrito como debe leerse, y el
       capitalize del tema rompía "a $ 70.000" y palabras como "Mismo Día". */
    text-transform: none;
}

@media (max-width: 991px) {
    .service-section .service-contain .service-box .service-detail h5 {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-section .service-contain .service-box .service-image,
    .service-section .service-contain .service-box:hover .service-image {
        transition: none;
        transform: none;
    }
}

/* Hover de los enlaces del footer: el template lo dejaba en blanco (#fff),
   invisible sobre el fondo claro. Se cambia a verde claro y en negrilla. */
.footer-section-2 .main-footer .footer-list li a:hover {
    color: #b0e0b3;
    font-weight: 700;
}
