/* =========================================================
   UX FINAL CAPI SPIRAL
   Botones visibles + Testimonios + Áreas de trabajo premium
   Pegar al final de css/styles.css
   ========================================================= */

/* BOTONES GENERALES MÁS LEGIBLES */
.btn-solid-reg,
.btn-solid-lg,
.form-control-submit-button {
    background: linear-gradient(135deg, var(--capi-secondary), #098FD8) !important;
    border: 1px solid var(--capi-secondary) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 14px 30px rgba(0,168,232,.22) !important;
}

.btn-solid-reg:hover,
.btn-solid-lg:hover,
.form-control-submit-button:hover {
    background: var(--capi-primary) !important;
    border-color: var(--capi-primary) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
}

/* BOTÓN CONTACTAR EN SECCIÓN CLARA */
.basic-3 .btn-outline-reg,
.basic-2 .btn-outline-reg,
.basic-4 .btn-outline-reg {
    background: #ffffff !important;
    border: 1.5px solid var(--capi-secondary) !important;
    color: var(--capi-primary) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(7,27,68,.08) !important;
}

.basic-3 .btn-outline-reg:hover,
.basic-2 .btn-outline-reg:hover,
.basic-4 .btn-outline-reg:hover {
    background: var(--capi-primary) !important;
    border-color: var(--capi-primary) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
}

/* BOTONES EN HERO */
.header .btn-outline-lg {
    background: rgba(255,255,255,.12) !important;
    border: 1.5px solid rgba(255,255,255,.85) !important;
    color: #ffffff !important;
    backdrop-filter: blur(8px) !important;
}

.header .btn-outline-lg:hover {
    background: #ffffff !important;
    color: var(--capi-primary) !important;
}

/* LINKS DENTRO DE BOTONES */
.btn-solid-reg a,
.btn-outline-reg a,
.btn-solid-lg a,
.btn-outline-lg a {
    color: inherit !important;
    text-decoration: none !important;
}

/* =========================================================
   TESTIMONIOS / ENFOQUE DE TRABAJO
   ========================================================= */

.slider-1 {
    position: relative !important;
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
    background:
        linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%) !important;
    overflow: hidden !important;
}

.slider-1::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    left: -260px;
    top: 60px;
    background: radial-gradient(circle, rgba(0,168,232,.16), transparent 62%);
    pointer-events: none;
}

.slider-1::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    right: -260px;
    bottom: 20px;
    background: radial-gradient(circle, rgba(109,53,196,.16), transparent 62%);
    pointer-events: none;
}

.slider-1 .container {
    position: relative !important;
    z-index: 2 !important;
}

.slider-1 .quotes-decoration {
    opacity: .06 !important;
    width: 210px !important;
}

.slider-1 .slider-container {
    width: 100% !important;
    max-width: 980px !important;
    margin: 0 auto !important;
}

.slider-1 .swiper-container {
    width: 100% !important;
    padding: 1rem 0 2.5rem 0 !important;
}

.slider-1 .swiper-slide {
    background: #ffffff !important;
    border-radius: 28px !important;
    padding: 3rem 3.5rem !important;
    box-shadow: 0 26px 70px rgba(7,27,68,.12) !important;
    border: 1px solid rgba(0,168,232,.10) !important;
}

.slider-1 .testimonial-image {
    width: 92px !important;
    height: 92px !important;
    margin-bottom: 1.5rem !important;
    border-radius: 24px !important;
    object-fit: cover !important;
    box-shadow: 0 18px 40px rgba(7,27,68,.15) !important;
}

.slider-1 .testimonial-text {
    max-width: 760px !important;
    margin: 0 auto 1.5rem auto !important;
    color: #263247 !important;
    font-size: 1.35rem !important;
    line-height: 2.15rem !important;
    font-style: normal !important;
    font-weight: 600 !important;
}

.slider-1 .testimonial-author {
    color: var(--capi-primary) !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}

.slider-1 .testimonial-position {
    color: var(--capi-text) !important;
    font-size: .95rem !important;
    font-weight: 600 !important;
}

.slider-1 .swiper-button-prev,
.slider-1 .swiper-button-next {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(7,27,68,.16) !important;
    background-size: 14px 22px !important;
}

.slider-1 .swiper-button-prev {
    left: -8px !important;
}

.slider-1 .swiper-button-next {
    right: -8px !important;
}

/* =========================================================
   ÁREAS DE TRABAJO PREMIUM
   ========================================================= */

.cards-2.bg-gray {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
    background:
        linear-gradient(180deg, #f3f7fc 0%, #ffffff 100%) !important;
}

.cards-2 .h2-heading {
    color: var(--capi-heading) !important;
    font-size: 2.35rem !important;
    line-height: 2.9rem !important;
    margin-bottom: 1rem !important;
}

.cards-2 .p-heading {
    color: var(--capi-text) !important;
    font-size: 1rem !important;
    line-height: 1.7rem !important;
    margin-bottom: 4rem !important;
}

/* Solo el contenedor de tarjetas */
.cards-2 .row:nth-of-type(2) .col-lg-12 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.7rem !important;
    align-items: stretch !important;
}

/* Quitar comportamiento viejo inline-block */
.cards-2 .row:nth-of-type(2) .card,
.cards-2 .row:nth-of-type(2) .card:nth-of-type(4n+2),
.cards-2 .row:nth-of-type(2) .card:nth-of-type(4n+3) {
    display: flex !important;
    flex-direction: column !important;
    width: auto !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 26px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 22px 55px rgba(7,27,68,.10) !important;
    transition: transform .25s ease, box-shadow .25s ease !important;
}

.cards-2 .row:nth-of-type(2) .card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 34px 78px rgba(7,27,68,.16) !important;
}

.cards-2 .card-image {
    position: relative !important;
    height: 175px !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: var(--capi-primary) !important;
}

.cards-2 .card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,27,68,0) 30%, rgba(7,27,68,.45) 100%);
    pointer-events: none;
}

.cards-2 .card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    transition: transform .35s ease !important;
}

.cards-2 .card:hover .card-image img {
    transform: scale(1.06) !important;
}

.cards-2 .card-body {
    flex: 1 !important;
    padding: 1.7rem 1.45rem 1.8rem 1.45rem !important;
    text-align: left !important;
}

.cards-2 .card-title {
    color: var(--capi-primary) !important;
    font-size: 1.08rem !important;
    line-height: 1.45rem !important;
    margin-bottom: .8rem !important;
    font-weight: 800 !important;
}

.cards-2 .card-text {
    color: var(--capi-text) !important;
    font-size: .95rem !important;
    line-height: 1.65rem !important;
    margin-bottom: 0 !important;
}

/* Agregar línea decorativa superior en cada área */
.cards-2 .card-body::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    border-radius: 999px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--capi-secondary), var(--capi-accent));
}

/* =========================================================
   CONTACTO MÁS LEGIBLE
   ========================================================= */

#contact.form-1 {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
    background:
        linear-gradient(120deg, rgba(7,27,68,.92), rgba(6,47,110,.86), rgba(109,53,196,.72)),
        url('../images/contact-background.png') center center no-repeat !important;
    background-size: cover !important;
}

#contact.form-1 .h2-heading {
    color: #ffffff !important;
    text-shadow: 0 8px 22px rgba(0,0,0,.25) !important;
}

#contact.form-1 .p-heading,
#contact.form-1 .contact-list,
#contact.form-1 .contact-list li {
    color: #eef7ff !important;
}

#contact.form-1 .contact-list a {
    color: #ffffff !important;
    font-weight: 700 !important;
}

#contact.form-1 form {
    max-width: 760px !important;
    margin: 2rem auto 0 auto !important;
    padding: 2rem !important;
    border-radius: 26px !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 28px 70px rgba(0,0,0,.22) !important;
    border: 1px solid rgba(255,255,255,.65) !important;
}

#contact.form-1 .form-control-input,
#contact.form-1 .form-control-textarea {
    background: #ffffff !important;
    color: #172033 !important;
    border: 1px solid #d7dde8 !important;
}

#contact.form-1 .form-control-input::placeholder,
#contact.form-1 .form-control-textarea::placeholder {
    color: #66758a !important;
}

#contact.form-1 .privacy-line {
    color: #4D5A68 !important;
}

#contact.form-1 .privacy-line a {
    color: var(--capi-primary) !important;
    font-weight: 800 !important;
}

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

@media (max-width: 1199.98px) {
    .cards-2 .row:nth-of-type(2) .col-lg-12 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767.98px) {
    .slider-1 .swiper-slide {
        padding: 2.2rem 1.7rem !important;
    }

    .slider-1 .testimonial-text {
        font-size: 1.08rem !important;
        line-height: 1.75rem !important;
    }

    .cards-2 .row:nth-of-type(2) .col-lg-12 {
        grid-template-columns: 1fr !important;
    }

    .cards-2 .card-image {
        height: 210px !important;
    }

    #contact.form-1 form {
        padding: 1.4rem !important;
    }
}
/* =========================================================
   FOOTER PREMIUM CAPI SPIRAL
   ========================================================= */

.footer-premium {
    position: relative;
    padding: 4.5rem 0 0 0 !important;
    background:
        radial-gradient(circle at 15% 20%, rgba(0,168,232,.18), transparent 30%),
        radial-gradient(circle at 85% 75%, rgba(109,53,196,.22), transparent 35%),
        linear-gradient(135deg, #071B44 0%, #062F6E 55%, #091F4A 100%) !important;
    color: #ffffff !important;
    overflow: hidden;
}

.footer-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 70px 70px;
    opacity: .22;
    pointer-events: none;
}

.footer-premium .container {
    position: relative;
    z-index: 2;
}

.footer-premium-grid {
    display: grid;
    grid-template-columns: 1.35fr .85fr 1fr;
    gap: 3rem;
    align-items: start;
    padding-bottom: 3.5rem;
}

.footer-brand,
.footer-links,
.footer-contact {
    min-width: 0;
}

.footer-logo-box {
    width: 285px;
    height: 86px;
    margin-bottom: 1.5rem;
    padding: .65rem 1rem;
    background: #ffffff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 22px 48px rgba(0,0,0,.22);
    overflow: hidden;
}

.footer-logo-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 255px;
    max-height: 66px;
    object-fit: contain;
    object-position: center;
    filter: none !important;
    transform: none !important;
}

.footer-premium h6 {
    margin-bottom: 1rem !important;
    color: #ffffff !important;
    font-size: 1.05rem;
    line-height: 1.45rem;
    font-weight: 800;
}

.footer-premium p {
    margin-bottom: 0;
    color: rgba(255,255,255,.78) !important;
    font-size: .98rem;
    line-height: 1.75rem;
}

.footer-premium ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-premium li {
    margin-bottom: .85rem;
    color: rgba(255,255,255,.78);
    font-size: .96rem;
    line-height: 1.55rem;
}

.footer-premium a {
    color: rgba(255,255,255,.82) !important;
    text-decoration: none !important;
    transition: color .2s ease, transform .2s ease;
}

.footer-premium a:hover {
    color: var(--capi-secondary) !important;
    text-decoration: none !important;
}

.footer-links li {
    position: relative;
    padding-left: 1.05rem;
}

.footer-links li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65rem;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--capi-secondary);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.footer-contact i {
    width: 18px;
    margin-top: .25rem;
    color: var(--capi-secondary);
}

.footer-contact span {
    color: rgba(255,255,255,.78);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.35rem 0;
    border-top: 1px solid rgba(255,255,255,.14);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,.72) !important;
    font-size: .9rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: rgba(255,255,255,.55);
    font-size: .9rem;
}

.footer-bottom-links a {
    color: rgba(255,255,255,.72) !important;
}

.footer-bottom-links a:hover {
    color: var(--capi-secondary) !important;
}

/* Evitar estilos viejos del footer */
.footer-premium .footer-col,
.footer-premium .logo-footer {
    all: unset;
}

/* Responsive */
@media (max-width: 991.98px) {
    .footer-premium-grid {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .footer-logo-box {
        width: 260px;
        height: 80px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .footer-premium {
        padding-top: 3.5rem !important;
    }

    .footer-logo-box {
        width: 235px;
        height: 74px;
    }

    .footer-logo-img {
        max-width: 215px;
        max-height: 58px;
    }

    .footer-premium-grid {
        gap: 2rem;
        padding-bottom: 2.7rem;
    }
}