:root {
    --sa-teal: #128ea3;
    --sa-nav: #1b5f9e;
    --sa-hero-btn: #2b6eab;
    --sa-services: #1c4f86;
    --sa-partners: #163e68;
    --sa-contact: #12365c;
    --sa-footer: #0e2c4a;
    --sa-white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: #182433;
    background: var(--sa-nav);
}

.sa-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.sa-top,
.sa-nav,
.sa-hero,
.sa-band,
.sa-footer {
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.sa-wrap {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.sa-top {
    background: var(--sa-teal);
    font-size: 0.82rem;
}

.sa-top-inner {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 42px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.sa-top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sa-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.sa-phone span {
    white-space: nowrap;
}

.sa-phone:hover {
    background: rgba(0, 0, 0, 0.28);
}

.sa-sos {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 3px;
    background: #e23b3b;
    font-weight: 700;
}

.sa-nav {
    background: var(--sa-nav);
    position: sticky;
    top: 0;
    z-index: 20;
}

.sa-nav-inner {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sa-logo {
    width: auto;
    height: 62px;
}

.sa-wordmark {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none;
}

.sa-links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sa-links a:hover,
.sa-drop-btn:hover {
    opacity: 0.75;
}

.sa-drop {
    position: relative;
}

.sa-drop-btn {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.sa-drop-menu {
    display: none;
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 250px;
    padding: 8px 0;
    background: #0e3d6b;
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    z-index: 30;
}

.sa-drop:hover .sa-drop-menu,
.sa-drop:focus-within .sa-drop-menu,
.sa-drop.is-open .sa-drop-menu {
    display: block;
}

.sa-drop-menu a {
    display: block;
    padding: 10px 16px;
    text-align: left;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.sa-drop-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

.sa-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
}

.sa-hero {
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(rgba(12, 42, 78, 0.45), rgba(12, 42, 78, 0.45)),
        url("../img/sitio/hero-seguros.png") center / cover no-repeat;
}

.sa-hero-copy {
    width: min(760px, calc(100% - 32px));
    padding: 48px 0;
}

.sa-hero h1 {
    margin: 0 0 14px;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sa-hero p {
    margin: 0 auto 22px;
    max-width: 560px;
    font-size: 1.05rem;
    line-height: 1.5;
}

.sa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 3px;
    background: var(--sa-hero-btn);
    color: #ffffff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

.sa-hero .sa-btn {
    background: #ffffff;
    color: #1b5f9e;
}

.sa-btn:hover,
.sa-hero .sa-btn:hover {
    background: #e8f4fc;
    color: #1b5f9e;
}

.sa-band {
    padding: 62px 0 54px;
    text-align: center;
}

.sa-band h2 {
    margin: 0 0 28px;
    font-size: 1.7rem;
    font-weight: 400;
}

.sa-band h2 span {
    font-weight: 600;
}

.sa-seguros,
.sa-socios,
.sa-contacto {
    scroll-margin-top: 88px;
}

.sa-seguros {
    background: var(--sa-services);
}

.sa-circulos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 34px;
}

.sa-circulo {
    width: 148px;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: center;
    cursor: pointer;
}

.sa-circulo img {
    transition: transform 0.2s ease;
}

.sa-circulo:hover img,
.sa-circulo:focus-visible img {
    transform: scale(1.04);
}

.sa-circulo img {
    width: 132px;
    height: 132px;
    margin: 0 auto 10px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.sa-circulo span {
    display: block;
    font-size: 0.92rem;
    line-height: 1.25;
}

.sa-socios {
    background: var(--sa-partners);
    padding-bottom: 48px;
}

.sa-marquee {
    overflow: hidden;
    width: 100%;
}

.sa-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    animation: sa-slide 52s linear infinite;
}

.sa-marquee:hover .sa-track {
    animation-play-state: paused;
}

.sa-logo-item {
    display: flex;
    flex: 0 0 180px;
    align-items: center;
    justify-content: center;
    width: 180px;
    min-width: 180px;
    height: 110px;
    margin: 0 18px;
}

.sa-logo-item img {
    max-width: 150px;
    max-height: 88px;
    width: auto;
    height: auto;
    mix-blend-mode: screen;
}

.sa-logo-item span {
    font-weight: 700;
    letter-spacing: 0.04em;
}

@keyframes sa-slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.sa-contacto {
    background: #eef3f8;
    color: #182433;
    padding-top: 0;
    padding-bottom: 64px;
}

.sa-quote-banner {
    margin-bottom: 32px;
    padding: 26px 16px;
    background: linear-gradient(100deg, #0e7c90 0%, #1b5f9e 58%, #163e68 100%);
    color: #ffffff;
}

.sa-quote-banner h2 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 600;
}

.sa-quote-banner p {
    max-width: 640px;
    margin: 8px auto 0;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}

.sa-section-lead {
    margin: -12px auto 24px;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.82);
}

.sa-form-card {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 28px;
    text-align: left;
    background: #ffffff;
    color: #182433;
    border-radius: 12px;
    border-top: 4px solid #128ea3;
    box-shadow: 0 18px 40px rgba(18, 50, 84, 0.12);
}

.sa-legal-note {
    margin: 12px 0 0;
    color: #526277;
    font-size: 0.82rem;
    line-height: 1.45;
}

.sa-legal-note a {
    color: #1b5f9e;
    font-weight: 600;
}

.sa-note-ok {
    color: #0e7a45;
    text-align: center;
}

.sa-form-grid {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 14px;
}

.sa-field {
    margin-bottom: 14px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d5dbe3;
    border-radius: 4px;
    background: #ffffff;
    color: #182433;
    font: inherit;
    color-scheme: light;
}

textarea {
    height: auto;
    min-height: 88px;
    padding: 10px 12px;
    resize: vertical;
}

select option {
    color: #182433 !important;
    background-color: #ffffff !important;
}

.sa-form-card .sa-btn {
    width: 100%;
    margin-top: 4px;
}

.sa-note {
    min-height: 20px;
    margin: 10px 0 0;
    color: #c0392b;
    font-size: 0.88rem;
}

.sa-footer {
    background: var(--sa-footer);
    font-size: 0.88rem;
}

.sa-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
}

@media (max-width: 800px) {
    .sa-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sa-nav-inner {
        position: relative;
    }

    .sa-logo {
        height: 50px;
    }

    .sa-links {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 20px 16px;
        background: var(--sa-nav);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .sa-links.is-open {
        display: flex;
    }

    .sa-links a {
        width: 100%;
        padding: 12px 0;
    }

    .sa-hero {
        min-height: 460px;
    }

    .sa-hero h1 {
        font-size: 1.7rem;
    }

    .sa-form-grid,
    .sa-footer-inner {
        display: flex;
        flex-direction: column;
    }

    .sa-top-inner {
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 8px 0;
    }

    .sa-drop {
        width: 100%;
    }

    .sa-drop-btn {
        width: 100%;
        padding: 12px 0;
        text-align: left;
    }

    .sa-drop-menu,
    .sa-drop:hover .sa-drop-menu,
    .sa-drop:focus-within .sa-drop-menu {
        display: none;
        position: static;
        transform: none;
        min-width: 0;
        padding: 0 0 8px 10px;
        background: transparent;
        box-shadow: none;
    }

    .sa-drop.is-open .sa-drop-menu {
        display: block;
    }
}

.sa-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.sa-footer-links a:hover {
    opacity: 0.75;
}

.sa-drop-menu::before {
    content: "";
    position: absolute;
    top: -18px;
    right: 0;
    left: 0;
    height: 18px;
}

.sa-page {
    flex: 1 0 auto;
    background: #f4f7fb;
    color: #182433;
    padding: 0 0 72px;
}

.sa-page-banner {
    padding: 56px 16px 72px;
    text-align: center;
    color: #ffffff;
    background:
        linear-gradient(rgba(12, 42, 78, 0.72), rgba(12, 42, 78, 0.78)),
        url("../img/sitio/hero-seguros.png") center / cover no-repeat;
}

.sa-page-banner h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.sa-page-banner p {
    max-width: 720px;
    margin: 12px auto 0;
    line-height: 1.55;
}

.sa-article {
    width: min(860px, calc(100% - 32px));
    margin: -32px auto 0;
    padding: 32px 32px 36px;
    text-align: left;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(18, 50, 84, 0.08);
}

.sa-article h2 {
    margin: 28px 0 10px;
    color: #1b5f9e;
    font-size: 1.25rem;
}

.sa-article h2:first-child,
.sa-article h3 {
    margin-top: 0;
}

.sa-article h3 {
    margin: 18px 0 8px;
    font-size: 1rem;
}

.sa-article p,
.sa-article li {
    line-height: 1.65;
}

.sa-article ul,
.sa-article ol {
    margin: 0 0 16px;
    padding-left: 20px;
}

.sa-article li {
    margin: 6px 0;
}

.sa-article a {
    color: #1b5f9e;
    font-weight: 600;
}

.sa-article .sa-btn {
    color: #ffffff;
    font-weight: 700;
}

.sa-article .sa-btn:hover {
    background: #e8f4fc;
    color: #1b5f9e;
}

.sa-article-cta {
    margin: 28px 0 0;
}

.sa-legal {
    font-size: 0.98rem;
}

.sa-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(8, 24, 44, 0.72);
}

.sa-modal[hidden] {
    display: none;
}

body.sa-modal-abierto {
    overflow: hidden;
}

.sa-modal-card {
    position: relative;
    width: min(680px, 100%);
    max-height: min(88vh, 840px);
    overflow: auto;
    background: #ffffff;
    color: #182433;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.sa-modal-banner {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.sa-modal-body {
    padding: 22px 24px 28px;
    text-align: left;
}

.sa-modal-body h3 {
    margin: 0 0 12px;
    font-size: 1.45rem;
}

.sa-modal-body p,
.sa-modal-body li {
    line-height: 1.55;
}

.sa-modal-body ul {
    margin: 0 0 18px;
    padding-left: 18px;
}

.sa-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #16324f;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.sa-social {
    position: fixed;
    top: 50%;
    left: 16px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-50%);
}

.sa-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.sa-social a[data-red="facebook"] {
    background: #1877f2;
}

.sa-social a[data-red="instagram"] {
    border-radius: 12px;
    background: radial-gradient(circle at 30% 110%, #f9ce34, #ee2a7b 42%, #6228d7);
}

.sa-social a[data-red="tiktok"] {
    background: #111111;
}

.sa-social a:hover {
    transform: translateY(-2px);
}

@media (max-width: 800px) {
    .sa-article {
        padding: 24px 18px 28px;
    }

    .sa-page-banner h1 {
        font-size: 1.55rem;
    }

    .sa-modal-banner {
        height: 180px;
    }

    html,
    body {
        overflow-x: hidden;
    }

    .sa-main {
        padding-left: 0;
    }

    .sa-footer {
        padding-bottom: 72px;
    }

    .sa-social {
        position: fixed;
        top: auto;
        right: 0;
        bottom: 14px;
        left: 0;
        z-index: 40;
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        padding: 0;
        transform: none;
        background: transparent;
    }

    .sa-social a {
        width: 36px;
        height: 36px;
    }
}
