.page-heading {
    background: rgba(254, 182, 69, 1);
    background: -moz-linear-gradient(top, rgba(254, 182, 69, 1) 0%, rgba(245, 199, 0, 1) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(254, 182, 69, 1)), color-stop(100%, rgba(245, 199, 0, 1)));
    background: -webkit-linear-gradient(top, rgba(254, 182, 69, 1) 0%, rgba(245, 199, 0, 1) 100%);
    background: -o-linear-gradient(top, rgba(254, 182, 69, 1) 0%, rgba(245, 199, 0, 1) 100%);
    background: -ms-linear-gradient(top, rgba(254, 182, 69, 1) 0%, rgba(245, 199, 0, 1) 100%);
    background: linear-gradient(to bottom, rgba(254, 182, 69, 1) 0%, rgba(245, 199, 0, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#feb645', endColorstr='#f5c700', GradientType=0);
    overflow: auto;
}

.page-heading .container {
    display: block;
}

.page-heading h1 {
    margin-top: 10px;
    font-size: 24px;
    float: left;
    text-transform: none;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
}

.legacy {
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    color: #727272;
    line-height: 1.62857;
}

.service-page-body {
    padding: 28px 0 40px;
}

.service-page-body .row {
    margin-top: 0;
    row-gap: 32px;
    align-items: center;
}

.servicios-div {
    min-width: 0;
}

.service-page-body img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 18px;
}

#fondo_aeptic {
    width: min(100%, 380px);
}

.heading {
    margin-bottom: 24px;
    font-size: 19px;
    text-align: center;
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
}

.heading span {
    border-bottom: 1px solid #ececec;
    display: inline-block;
    padding: 0 58px 20px;
}

.service-page-body p,
.service-page-body li {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.service-page-body ul,
.service-page-body ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.buttons-container {
    max-width: 1120px;
    margin: 12px auto 40px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.custom-button {
    position: relative;
    width: 100%;
    min-height: 84px;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 16px;
    outline: none;
    background-image: url("/static/img/filosofia_button.jpg");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.custom-button.testimonios {
    background-image: url("/static/img/testimonios.jpg");
}

.custom-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(10, 67, 129, 0.5);
    z-index: 1;
    transition: opacity 0.3s;
    opacity: 1;
}

.custom-button:hover::after {
    background-color: rgba(10, 67, 129, 0.7);
}

.custom-button span {
    position: relative;
    z-index: 2;
    font-weight: 700;
}

.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

#testimonialsGrid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#testimonialsGrid .testimonial-container {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.testimonial {
    background-color: #f9f9f9;
    padding: 24px 22px;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.quote {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 10px;
}

.author {
    font-size: 16px;
    font-weight: bold;
    text-align: right;
    margin-top: auto;
}

.testimonial::before {
    content: open-quote;
    font-size: 3em;
    color: #ccc;
    position: absolute;
    left: 10px;
    top: 5px;
    opacity: 0.3;
}

.testimonial::after {
    content: close-quote;
    font-size: 3em;
    color: #ccc;
    position: absolute;
    right: 10px;
    bottom: 5px;
    opacity: 0.3;
}

@media (min-width: 992px) {
    #testimonialsGrid .testimonial-container {
        flex: 1 1 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .page-heading .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .service-page-body {
        padding: 20px 0 32px;
    }

    .service-page-body .row {
        row-gap: 20px;
    }

    .heading {
        font-size: 17px;
        margin-bottom: 18px;
    }

    .heading span {
        padding: 0 18px 12px;
    }

    .service-page-body p,
    .service-page-body li {
        font-size: 15px;
        line-height: 1.7;
    }

    .buttons-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 16px;
        margin: 8px auto 32px;
    }

    .custom-button {
        min-height: 72px;
        font-size: 16px;
    }

    #fondo_aeptic {
        width: min(100%, 260px);
    }

    #testimonialsGrid {
        padding: 0 16px 32px;
    }

    #testimonialsGrid .testimonial-container {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .testimonial {
        padding: 20px 18px;
    }

    .quote {
        font-size: 16px;
    }

    .author {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .service-page-body img {
        border-radius: 14px;
    }
}
