.mr-2,
.mx-2 {
    margin-right: 0.5rem !important;
}

.mb-2,
.my-2 {
    margin-bottom: 0.5rem !important;
}

.ml-2,
.mx-2 {
    margin-left: 0.5rem !important;
}

.btn-primary {
    color: #fff;
    background-color: #195b72;
    &:hover {
        background-color: #195b72 !important;
        color: #fff;
    }
    border-color: #195b72 !important;
}

.btn-outline-primary {
    border-color: #195b72;
    color: #195b72;
    &:hover {
        background-color: #195b72;
        color: #fff;
        border-color: #195b72 !important;
    }
}

.header .logo img {
    max-height: 52px;
    filter: brightness(0) saturate(100%) invert(66%) sepia(40%) saturate(600%) hue-rotate(158deg) brightness(98%) contrast(90%);
}

body {
    background-color: #f5f4f4;
}

.header {
    background-color: #f5f4f4;
}

/* Botones dentro del menú: anular el padding del tema (18px 15px y el
   padding-right:0 del último item) para que tengan márgenes simétricos */
.header .navmenu a.btn,
.header .navmenu li:last-child a.btn {
    padding: 0.4rem 1rem;
    font-size: 14px;
    border-radius: 0.25rem;
    display: inline-flex;
}

/* Contacto: mantener estilo outline aunque el nav le agregue la clase active */
.header .navmenu a.btn-outline-primary,
.header .navmenu a.btn-outline-primary.active,
.header .navmenu a.btn-outline-primary:focus {
    background-color: transparent !important;
    color: #195b72 !important;
    border-color: #195b72 !important;
}
.header .navmenu a.btn-outline-primary:hover {
    background-color: #195b72 !important;
    color: #fff !important;
}

/* Acceder: texto siempre blanco independientemente del estado del nav */
.header .navmenu a.btn-primary,
.header .navmenu a.btn-primary.active,
.header .navmenu a.btn-primary:focus {
    color: #fff !important;
}

.header .navmenu li {
    display: flex;
    align-items: center;
}

/* ── Mobile nav: botones Contacto y Acceder ── */
@media (max-width: 1199px) {
    /* Botones al 100% del ancho en mobile */
    .header .navmenu a.btn,
    .header .navmenu a.btn:focus {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
        padding: 0.6rem 1.25rem !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        border-radius: 0.25rem !important;
    }

    /* Sin padding extra en el li contenedor */
    .header .navmenu li:has(a.btn) {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    /* Separador antes del primer botón */
    .header .navmenu li:has(a.btn-outline-primary) {
        border-top: 1px solid rgba(0,0,0,0.08);
        padding-top: 16px;
        margin-top: 4px;
    }
}

.hero .hero-cta .btn-primary {
    background-color: #195b72;
}

.about .cta-section .btn-primary,
.about .cta-section .btn-primary:focus {
    background-color: #0f4456 !important;
    color: #fff !important;
}
.about .cta-section .btn-primary:hover {
    background-color: #0a3040 !important;
}

.hero .hero-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 700;
    color: #4db4d6;
    margin-bottom: 16px;
}

/* ===== Productos y Servicios ===== */
.ps-card {
    background: linear-gradient(135deg, #0e4f63 0%, #16607a 100%);
    border-radius: 28px;
    padding: 52px 56px;
    color: #fff;
}

.ps-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #8fd0e3;
    border-top: 2px solid #8fd0e3;
    padding-top: 10px;
    margin-bottom: 22px;
}

.ps-title {
    color: #fff;
    font-weight: 400;
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.ps-item {
    display: grid;
    grid-template-columns: 110px 270px 1fr;
    align-items: center;
    gap: 28px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Ítems sin descripción: el título ocupa todo el ancho disponible */
.ps-item:has(.ps-item-text:empty) {
    grid-template-columns: 110px 1fr;
}

.ps-item-text:empty {
    display: none;
}

.ps-icon {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    background: #4db4d6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
}

.ps-item-title {
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    line-height: 1.25;
    margin: 0;
}

.ps-item-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.6;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 30px;
    margin: 0;
}

@media (max-width: 991px) {
    .ps-item {
        grid-template-columns: 90px 220px 1fr;
        gap: 20px;
    }

    .ps-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .ps-card {
        padding: 32px 22px;
        border-radius: 20px;
    }

    .ps-title {
        font-size: 26px;
    }

    .ps-item {
        grid-template-columns: 56px 1fr;
        grid-template-areas:
            "icon title"
            "text text";
        gap: 10px 16px;
        padding: 22px 0;
    }

    .ps-icon {
        grid-area: icon;
        width: 56px;
        height: 56px;
        border-radius: 14px;
        font-size: 22px;
    }

    .ps-item-title {
        grid-area: title;
        font-size: 20px;
    }

    .ps-item-text {
        grid-area: text;
        border-left: 0;
        padding-left: 0;
    }
}

/* ===== Impacto en tu operación ===== */
.impact-heading {
    font-size: 34px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 28px;
}

.impact-item {
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.impact-item:first-of-type {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.impact-item-title {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 14px;
    font-weight: 600;
    color: #4db4d6;
    margin-bottom: 8px;
}

.impact-item-text {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.impact-image {
    overflow: hidden;
    border-radius: 8px;
}

.impact-image img {
    width: 100%;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.impact-image:hover img {
    filter: grayscale(0%);
}

/* ===== Inteligencia aplicada ===== */
.intel.section {
    background:
        radial-gradient(circle at 80% 60%, rgba(77, 180, 214, 0.12) 0%, transparent 45%),
        linear-gradient(135deg, #0c3947 0%, #0f4456 100%);
    color: #fff;
    overflow: hidden;
}

.intel-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #4db4d6;
    margin-bottom: 18px;
}

.intel-title {
    color: #fff;
    font-weight: 400;
    font-size: 46px;
    line-height: 1.12;
    margin-bottom: 18px;
}

.intel-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 40px;
}

.intel-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 440px;
}

.intel-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 16px 22px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.intel-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.intel-card-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(77, 180, 214, 0.15);
    color: #4db4d6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.intel-card-body h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 2px;
}

.intel-card-body p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* Tagline arriba a la derecha */
.intel-tagline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.35;
}

.intel-tagline i {
    color: #4db4d6;
    font-size: 22px;
}

/* Visual: anillo + hexágono + marca */
.intel-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intel-ring {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.intel-ring::before {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    border: 2px dotted rgba(77, 180, 214, 0.45);
}

.intel-ring::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: conic-gradient(from 150deg, transparent 0deg, #4db4d6 70deg, transparent 150deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}

.intel-hex {
    position: relative;
    width: 46%;
    aspect-ratio: 1 / 1.1;
    background: rgba(77, 180, 214, 0.12);
    border: 1px solid rgba(77, 180, 214, 0.25);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Marca Assiseg recreada con CSS */
.intel-logo {
    position: relative;
    width: 44%;
    aspect-ratio: 1 / 1.05;
    background: #4db4d6;
    clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 100%, 0 100%, 0 22%);
}

.intel-logo::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 22%;
    height: 16%;
    background: #0e4150;
}

.intel-tm {
    position: absolute;
    top: 24%;
    right: 16%;
    color: #4db4d6;
    font-size: 14px;
}

@media (max-width: 991px) {
    .intel-title {
        font-size: 34px;
    }

    .intel-tagline {
        justify-content: flex-start;
    }

    .intel-visual {
        max-width: 360px;
        margin-top: 20px;
    }
}

/* ===== Contacto ===== */
.contact .contact-aside {
    padding-right: 24px;
}

.contact .contact-aside-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ececec;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 28px;
}

.contact .contact-aside-title {
    font-size: 30px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 14px;
}

.contact .contact-aside-text {
    color: #8a8a8a;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 38px;
    max-width: 360px;
}

.contact .contact-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.contact .cd-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact .cd-item i {
    font-size: 20px;
    color: #444;
    margin-top: 3px;
}

.contact .cd-content {
    display: flex;
    flex-direction: column;
}

.contact .cd-label {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    font-weight: 600;
    color: #9a9a9a;
    margin-bottom: 4px;
}

.contact .cd-value {
    font-size: 16px;
    color: #333;
}

.contact .contact-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 44px 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.contact .cf-title {
    font-size: 30px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.25;
    margin-bottom: 18px;
}

.contact .cf-text {
    color: #8a8a8a;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact .contact-form-card .form-group {
    margin-bottom: 22px;
}

.contact .contact-form-card label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.contact .contact-form-card input,
.contact .contact-form-card textarea {
    width: 100%;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact .contact-form-card input:focus,
.contact .contact-form-card textarea:focus {
    outline: none;
    border-color: #4db4d6;
    box-shadow: 0 0 0 3px rgba(77, 180, 214, 0.15);
}

.contact .contact-form-card .submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #195b72;
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.contact .contact-form-card .submit-btn:hover {
    background: #14495c;
}

@media (max-width: 991px) {
    .contact .contact-aside {
        padding-right: 0;
        margin-bottom: 36px;
    }

    .contact .contact-form-card {
        padding: 30px 24px;
    }
}

/* ===== Footer ===== */
.footer.dark-background {
    background-color: #3eadd2;
    color: rgba(255, 255, 255, 0.9);
}

.footer .footer-top {
    padding: 60px 0 40px;
}

/* Logo del footer: igual que el header pero en blanco */
.footer .footer-about .logo img.footer-logo {
    max-height: 52px;
    filter: brightness(0) invert(1) !important;
}

.footer .footer-about p {
    margin-top: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.footer .social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 12px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.footer .social-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.footer .footer-links h4,
.footer .footer-contact h4 {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
}

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

.footer .footer-links ul li {
    margin-bottom: 12px;
}

.footer .footer-links ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer .footer-links ul a:hover {
    color: #fff;
}

.footer .footer-contact p {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.8);
}

.footer .copyright {
    background: rgba(255, 255, 255, 0.06);
    padding: 18px 0;
    margin-top: 30px;
}

.footer .copyright p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}