body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #0f172a;
}

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

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.sj-page-hero {
    background: linear-gradient(135deg, #031b40 0%, #0e2f6e 100%);
    color: #fff;
    padding: 56px 0 48px;
    text-align: center;
}

.sj-page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sj-page-hero p {
    margin: 0;
    color: #d4dcf0;
    font-size: 1.05rem;
}

.sj-page-main {
    padding: 48px 0 64px;
}

.sj-section-title {
    margin: 0 0 28px;
    color: #031b40;
    font-size: clamp(1.4rem, 3vw, 2rem);
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: center;
}

.sj-services-grid {
    display: grid;
    gap: 24px;
}

.sj-service-card {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 24px;
    align-items: center;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(3, 27, 64, .08);
}

.sj-service-card:nth-child(even) .sj-service-media {
    order: -1;
}

.sj-service-content {
    padding: 28px;
}

.sj-service-content h2 {
    margin: 0 0 14px;
    color: #0e2f6e;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.sj-service-content .desc {
    color: #344054;
    line-height: 1.75;
    font-size: 1rem;
}

.sj-service-content .desc p {
    margin: 0 0 12px;
}

.sj-service-media img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

.sj-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.sj-blog-card {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(3, 27, 64, .06);
    display: flex;
    flex-direction: column;
}

.sj-blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.sj-blog-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sj-blog-body h3 {
    margin: 0 0 10px;
    color: #031b40;
    font-size: 1.05rem;
    line-height: 1.35;
}

.sj-blog-body .excerpt {
    color: #475467;
    line-height: 1.65;
    font-size: .95rem;
    margin-bottom: 16px;
    flex: 1;
}

.sj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0077c8;
    color: #fff;
    font-weight: 700;
    padding: 11px 18px;
    border-radius: 999px;
    font-size: .92rem;
}

.sj-btn:hover {
    background: #005fa3;
}

.sj-btn-wa {
    background: #25d366;
    box-shadow: 0 8px 22px rgba(37, 211, 102, .35);
}

.sj-btn-wa:hover {
    background: #1fb855;
}

.sj-contact-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 36px;
    position: relative;
    padding: 22px 22px 20px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8fe 100%);
    border: 1px solid #dbe7f6;
    box-shadow: 0 10px 28px rgba(3, 27, 64, .08);
}

.sj-contact-intro::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0077c8;
    box-shadow: 0 8px 18px rgba(0, 119, 200, .3);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='black' d='M256 32C114.6 32 0 125.1 0 240c0 49.6 21.5 95 57.3 130.1-8.8 31.1-29.4 58.6-29.7 58.9-2.4 3.2-2.7 7.5-.8 11 1.9 3.5 5.7 5.6 9.7 5.6 52.7 0 93.9-24.2 120.2-43.7 30.4 9.7 63.8 15.1 99.3 15.1 141.4 0 256-93.1 256-208S397.4 32 256 32z'/%3E%3C/svg%3E") center / 55% 55% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='black' d='M256 32C114.6 32 0 125.1 0 240c0 49.6 21.5 95 57.3 130.1-8.8 31.1-29.4 58.6-29.7 58.9-2.4 3.2-2.7 7.5-.8 11 1.9 3.5 5.7 5.6 9.7 5.6 52.7 0 93.9-24.2 120.2-43.7 30.4 9.7 63.8 15.1 99.3 15.1 141.4 0 256-93.1 256-208S397.4 32 256 32z'/%3E%3C/svg%3E") center / 55% 55% no-repeat;
}

.sj-contact-intro p {
    margin: 0;
    color: #17345e;
    font-size: 1.07rem;
    line-height: 1.75;
    font-weight: 600;
}

.sj-contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 40px;
}

.sj-contact-coverage {
    margin-top: 8px;
    padding: 36px 28px 40px;
    border-radius: 20px;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(99, 208, 245, .22) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgba(0, 119, 200, .15) 0%, transparent 50%),
        linear-gradient(160deg, #e8f2fa 0%, #d4e6f5 45%, #c5daf0 100%);
    border: 1px solid rgba(3, 27, 64, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.sj-contact-coverage .sj-section-title {
    margin-bottom: 24px;
}

.sj-contact-coverage-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sj-contact-map {
    margin: 0;
    width: 100%;
}

.sj-contact-map-frame {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(145deg, #031b40 0%, #0e3d7a 55%, #1565a8 100%);
    box-shadow:
        0 4px 6px rgba(3, 27, 64, .12),
        0 20px 48px rgba(3, 27, 64, .28);
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
}

.sj-contact-map-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        120deg,
        rgba(99, 208, 245, .9),
        rgba(255, 221, 0, .75),
        rgba(0, 119, 200, .9),
        rgba(99, 208, 245, .9)
    );
    background-size: 300% 300%;
    animation: sjMapBorderGlow 8s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

.sj-contact-map-shine {
    position: absolute;
    inset: -50% -30%;
    background: linear-gradient(
        105deg,
        transparent 42%,
        rgba(255, 255, 255, .12) 50%,
        transparent 58%
    );
    animation: sjMapShine 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.sj-contact-map-lead {
    margin: 0 0 18px;
    max-width: 52rem;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.55;
}

.sj-contact-map-canvas {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: clamp(320px, 42vw, 520px);
    border-radius: 12px;
    background: #031b40;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
    overflow: hidden;
}

.sj-contact-map-canvas .leaflet-container {
    width: 100%;
    height: 100%;
    font-family: inherit;
}

.sj-contact-map-caption {
    margin: 10px 2px 0;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
}

.sj-contact-map-fallback {
    margin: 0;
    padding: 1.25rem;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.sj-contact-map-pin-wrap {
    background: transparent !important;
    border: none !important;
}

.sj-contact-map-frame:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 12px rgba(3, 27, 64, .14),
        0 28px 56px rgba(0, 119, 200, .22);
}

@keyframes sjMapBorderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes sjMapShine {
    0%, 100% { transform: translateX(-30%); opacity: 0; }
    20%, 80% { opacity: 1; }
    50% { transform: translateX(30%); }
}

@keyframes sjMapFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.sj-coverage-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

@media (max-width: 1280px) {
    .sj-coverage-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .sj-coverage-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sj-coverage-item {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(3, 27, 64, .78) 0%, rgba(7, 36, 78, .9) 100%),
        url('/assets/sj/contacto/mapa-sedes.png') center / cover no-repeat;
    border: 1px solid rgba(0, 119, 200, .35);
    border-radius: 12px;
    padding: 18px 18px 16px;
    box-shadow: 0 10px 28px rgba(3, 27, 64, .14);
    transition: transform .25s ease, box-shadow .25s ease;
}

.sj-coverage-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(3, 27, 64, .24);
}

.sj-coverage-logo {
    width: 88px;
    height: auto;
    display: block;
    opacity: .92;
    margin-bottom: 8px;
}

.sj-coverage-pin {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffdd00;
    box-shadow: 0 8px 18px rgba(255, 221, 0, .35);
    margin-bottom: 8px;
}

.sj-coverage-pin svg {
    width: 19px;
    height: 19px;
    fill: #113469;
}

.sj-coverage-item h3 {
    margin: 0 0 6px;
    color: #63d0f5;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    font-weight: 800;
}

.sj-coverage-item p {
    margin: 0 0 6px;
    color: #f4f8ff;
    line-height: 1.6;
    font-size: .95rem;
    font-weight: 600;
}

.sj-coverage-item p:last-child {
    margin-bottom: 0;
}

.sj-coverage-item > p:has(.sj-btn-map) {
    margin-top: auto;
    padding-top: 10px;
}

.sj-btn-map {
    background: linear-gradient(135deg, #16b7ea 0%, #0497cd 100%);
    box-shadow: 0 8px 20px rgba(4, 151, 205, .32);
}

.sj-btn-map svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.sj-contact-form-wrap {
    margin-top: 48px;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 28px rgba(3, 27, 64, .06);
}

.sj-contact-form-wrap h2 {
    margin: 0 0 10px;
    color: #031b40;
    text-transform: uppercase;
    letter-spacing: .03em;
    text-align: center;
}

.sj-contact-form-wrap .lead {
    text-align: center;
    color: #475467;
    line-height: 1.7;
    margin: 0 0 24px;
}

.sj-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sj-form-grid label {
    display: block;
    font-weight: 700;
    color: #00134b;
    margin-bottom: 6px;
    font-size: .92rem;
}

.sj-form-grid input,
.sj-form-grid textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 12px 14px;
    font: inherit;
    background: #dedede;
}

.sj-form-grid textarea {
    min-height: 120px;
    resize: vertical;
}

.sj-form-full {
    grid-column: 1 / -1;
}

.sj-form-actions {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 8px;
}

.sj-form-actions button {
    border: none;
    background: #024775;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
}

.sj-page-footer {
    background: #031b40;
    color: #d4dcf0;
    padding: 22px 0;
    text-align: center;
}

@media (max-width: 992px) {
    .sj-service-card,
    .sj-service-card:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .sj-service-card:nth-child(even) .sj-service-media {
        order: 0;
    }

    .sj-blog-grid,
    .sj-form-grid {
        grid-template-columns: 1fr;
    }

    .sj-contact-coverage {
        padding: 28px 18px 32px;
    }
}

@media (max-width: 640px) {
    .sj-page-hero {
        padding: 40px 0 32px;
    }

    .sj-page-hero h1 {
        font-size: clamp(1.5rem, 6.5vw, 2rem);
    }

    .sj-page-main {
        padding: 32px 0 40px;
    }

    .sj-service-card {
        padding: 18px;
        gap: 16px;
    }

    .sj-service-card img {
        max-height: 240px;
        object-fit: cover;
        width: 100%;
    }

    .sj-coverage-item {
        padding: 16px;
    }

    .sj-coverage-list {
        grid-template-columns: 1fr;
    }

    .sj-contact-map-canvas {
        height: clamp(280px, 62vw, 380px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sj-contact-map-frame::before,
    .sj-contact-map-shine {
        animation: none;
    }
}
