/* Fase 1: ajustes seguros sobre la plantilla existente. */

.hero-cta-group {
    margin-top: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-cta-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0;
    line-height: 1.2;
}

.btn-cta-secondary {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.btn-cta-secondary:hover,
.btn-cta-secondary:focus {
    background: #1fb85a;
    border-color: #1fb85a;
    color: #fff;
}

.kapta-metrics {
    margin-top: 28px;
}

.kapta-metric {
    min-height: 120px;
    padding: 24px 18px;
    margin-bottom: 20px;
    border: 1px solid #ececec;
    background: #fff;
    text-align: center;
}

.kapta-metric strong {
    display: block;
    font-size: 28px;
    line-height: 1.2;
    color: #252525;
}

.kapta-metric span {
    display: block;
    margin-top: 8px;
    color: #555;
}

.service-extra-list {
    margin-top: 20px;
}

.service-extra-list .ico-box {
    height: 100%;
}

.contact-note {
    margin-top: 12px;
    color: #666;
    font-size: 14px;
}

.contact-confirmation {
    color: #1f8f4d;
    font-weight: 600;
}

.contact-error {
    color: #b3261e;
    font-weight: 600;
}

.service-hero-copy {
    max-width: 780px;
    margin: 18px auto 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.55;
}

.service-hero-actions,
.service-final-actions {
    justify-content: center;
}

.kapta-service-card,
.kapta-related-card {
    height: 100%;
    padding: 28px 24px;
    margin-bottom: 24px;
    border: 1px solid #ececec;
    background: #fff;
}

.kapta-service-card h3,
.kapta-related-card h4 {
    margin-bottom: 18px;
}

.kapta-service-card ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.kapta-service-card li {
    margin-bottom: 10px;
}

.kapta-related-card .link-more {
    display: inline-block;
    margin-top: 12px;
}

.kapta-article {
    font-size: 17px;
    line-height: 1.75;
}

.kapta-article h2 {
    margin-top: 34px;
    margin-bottom: 16px;
}

.kapta-article-cta {
    margin: 34px 0;
    padding: 28px;
    border: 1px solid #ececec;
    background: #f8f8f8;
}

.kapta-article-cta .btn {
    margin: 8px 8px 0 0;
}

.kapta-article-cta.final {
    background: #fff;
}

@media (max-width: 767px) {
    .banner-home .slider-sub-title {
        max-width: calc(100vw - 52px) !important;
        font-size: 16px !important;
        line-height: 1.35 !important;
        letter-spacing: 4px !important;
        white-space: normal !important;
    }

    .banner-home .slider-main-title {
        display: none !important;
        visibility: hidden !important;
    }

    .banner-home .tp-caption.text-white:not(.slider-sub-title):not(.slider-main-title):not(.tp-shape) {
        max-width: calc(100vw - 52px) !important;
        font-size: 14px !important;
        line-height: 1.42 !important;
        white-space: normal !important;
    }

    .banner-home .hero-cta-group {
        margin-top: 16px;
        gap: 10px;
    }

    .hero-cta-group .btn {
        display: block;
        width: 100%;
        min-height: 50px;
        padding: 15px 18px;
        white-space: normal;
        letter-spacing: 2px;
    }

    .kapta-metric {
        min-height: auto;
    }

    .service-hero-copy {
        font-size: 16px;
        line-height: 1.45;
    }

    .service-detail-hero .visual-title {
        max-width: calc(100vw - 40px);
        margin-left: auto;
        margin-right: auto;
        font-size: 30px;
        line-height: 1.15;
        overflow-wrap: break-word;
    }

    .service-detail-hero .visual-text {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 420px) {
    .banner-home .slider-sub-title {
        font-size: 14px !important;
        letter-spacing: 3px !important;
    }

    .banner-home .tp-caption.text-white:not(.slider-sub-title):not(.slider-main-title):not(.tp-shape) {
        font-size: 14px !important;
        line-height: 1.42 !important;
    }

    .banner-home .hero-cta-group .btn {
        font-size: 13px;
        letter-spacing: 1.8px;
    }

    .service-detail-hero .visual-title {
        font-size: 26px;
    }
}
