/* SoftSystemPro home — layout Aguilera + fondo claro corporativo */
body.ssp-home-brand {
    --ssp-navy: #193a63;
    --ssp-mid: #2d5a8f;
    --ssp-light: #5b8ec4;
    --ssp-accent: #0967c4;
    --ssp-sky: #65c3fc;
    --ssp-soft: #ebf4f7;
    --ssp-bg: #ffffff;
    --ssp-bg-2: #f4f7fb;
    --ssp-text: #0f2747;
    --ssp-muted: #5b6b7c;
    --ssp-border: #dbe5ef;
    background: var(--ssp-bg) !important;
    color: var(--ssp-text);
}

/* Subtle corporate atmosphere (not flat white void) */
body.ssp-home-brand {
    background-image:
        radial-gradient(ellipse 70% 40% at 85% 0%, rgba(101, 195, 252, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 35% at 10% 15%, rgba(25, 58, 99, 0.06), transparent 50%);
    background-attachment: fixed;
}

/* Nav stays light/corporate */
body.ssp-home-brand .ssp-nav {
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 1px 2px rgba(15, 36, 57, 0.06) !important;
}
body.ssp-home-brand .ssp-nav__cta {
    background: var(--ssp-navy) !important;
    color: #fff !important;
}
body.ssp-home-brand .ssp-nav__cta:hover {
    background: var(--ssp-mid) !important;
    color: #fff !important;
}

/* Hero Aguilera-style on light */
.ssp-hero-v2 {
    position: relative;
    isolation: isolate;
    min-height: min(86vh, 44rem);
    display: flex;
    align-items: center;
    padding: 2.25rem 0 4.75rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 75% at 90% 40%, rgba(101, 195, 252, 0.42), transparent 64%),
        radial-gradient(ellipse 50% 60% at 8% 25%, rgba(25, 58, 99, 0.16), transparent 60%),
        radial-gradient(ellipse 40% 45% at 45% 100%, rgba(9, 103, 196, 0.12), transparent 55%),
        linear-gradient(145deg, #d9e8f5 0%, #eaf2f8 32%, #f7fafc 62%, #e3eef8 100%);
}
.ssp-hero-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
    background-image: radial-gradient(circle at 1px 1px, rgba(25, 58, 99, 0.16) 1px, transparent 0);
    background-size: 20px 20px;
    mask-image: linear-gradient(95deg, rgba(0,0,0,0.7), rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.55));
    -webkit-mask-image: linear-gradient(95deg, rgba(0,0,0,0.7), rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.55));
}
/* Wave + line divider into next section (#f4f7fb doors) */
.ssp-hero-v2::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: clamp(4.25rem, 9vw, 6.5rem);
    pointer-events: none;
    z-index: 2;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 52c180 38 360-28 540 4 180 32 360 58 540 28 120-20 240-42 360-18v54H0Z' fill='%23e8f0f7'/%3E%3Cpath d='M0 72c200 34 400-22 600 6s400 46 600 18c80-12 160-28 240-10v34H0Z' fill='%23f4f7fb'/%3E%3Cpath d='M0 44c200 42 400-30 600 2s400 54 600 22c80-14 160-36 240-12' fill='none' stroke='%23193a63' stroke-opacity='.22' stroke-width='2'/%3E%3Cpath d='M0 58c220 36 420-24 640 4s420 48 620 16c60-10 120-22 180-8' fill='none' stroke='%230967c4' stroke-opacity='.28' stroke-width='1.5'/%3E%3C/svg%3E")
        no-repeat bottom / 100% 100%;
}
.ssp-hero-v2__grid {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--ssp-content-max, 90rem);
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    gap: 2.25rem;
    align-items: center;
}
@media (min-width: 640px) {
    .ssp-hero-v2__grid { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
    .ssp-hero-v2__grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 3rem;
        padding: 0 2rem;
    }
}
.ssp-hero-v2__brand {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ssp-mid);
    margin: 0 0 1rem;
}
.ssp-hero-v2__title {
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    font-size: clamp(2.25rem, 5vw, 4.1rem);
    color: var(--ssp-navy);
    margin: 0 0 1.15rem;
    max-width: 14ch;
}
.ssp-hero-v2__lead {
    margin: 0 0 1.6rem;
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
    line-height: 1.55;
    color: var(--ssp-muted);
    max-width: 36rem;
}
.ssp-hero-v2__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}
.ssp-hero-v2__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.65rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}
.ssp-hero-v2__btn--primary {
    background: var(--ssp-navy);
    color: #fff;
}
.ssp-hero-v2__btn--primary:hover {
    background: var(--ssp-mid);
    color: #fff;
}
.ssp-hero-v2__btn--ghost {
    background: transparent;
    color: var(--ssp-navy);
    border: 1px solid rgba(25, 58, 99, 0.28);
}
.ssp-hero-v2__btn--ghost:hover {
    border-color: var(--ssp-navy);
    background: var(--ssp-soft);
}
.ssp-hero-v2__note {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    color: var(--ssp-muted);
}

.ssp-hero-v2__visual {
    --mx: 0;
    --my: 0;
    position: relative;
    justify-self: center;
    width: min(100%, 26rem);
    aspect-ratio: 1;
    transform: translate3d(calc(var(--mx) * 10px), calc(var(--my) * 8px), 0);
    transition: transform 0.05s linear;
    will-change: transform;
}
.ssp-hero-v2__glow {
    position: absolute;
    inset: 16%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(101, 195, 252, 0.4), transparent 70%);
    filter: blur(14px);
    pointer-events: none;
    animation: ssp-hero-glow 5.5s ease-in-out infinite;
}
.ssp-hero-v2__ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1px solid rgba(9, 103, 196, 0.22);
    pointer-events: none;
}
.ssp-hero-v2__ring--outer {
    animation: ssp-hero-spin 28s linear infinite;
}
.ssp-hero-v2__ring--inner {
    inset: 7%;
    border-color: rgba(25, 58, 99, 0.16);
    animation: ssp-hero-spin-rev 38s linear infinite;
}
.ssp-hero-v2__photo {
    position: absolute;
    inset: 14%;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 0 0 1px rgba(25, 58, 99, 0.08),
        0 22px 48px -20px rgba(15, 36, 57, 0.45);
    background: var(--ssp-soft);
    transform: translate3d(calc(var(--mx) * -6px), calc(var(--my) * -5px), 0);
    transition: transform 0.05s linear;
}
.ssp-hero-v2__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}
.ssp-hero-v2__chip {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.65rem;
    height: 2.65rem;
    margin: -1.325rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ssp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ssp-navy);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 18px rgba(15, 36, 57, 0.12);
    transform: rotate(var(--a, 0deg)) translateX(calc(50% - 0.2rem)) translateX(11.2rem) rotate(calc(-1 * var(--a, 0deg)));
}
.ssp-hero-v2__ring--inner .ssp-hero-v2__chip {
    transform: rotate(var(--a, 0deg)) translateX(calc(50% - 0.2rem)) translateX(9.55rem) rotate(calc(-1 * var(--a, 0deg)));
}
.ssp-hero-v2__ring--outer .ssp-hero-v2__chip:nth-child(2),
.ssp-hero-v2__ring--inner .ssp-hero-v2__chip:nth-child(1) {
    color: var(--ssp-accent);
}
.ssp-hero-v2__ring--inner .ssp-hero-v2__chip:nth-child(2) {
    color: var(--ssp-mid);
}

.ssp-hero-v2__reveal {
    opacity: 0;
    transform: translateY(1rem);
    animation: ssp-hero-v2-in 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--d, 0ms);
}
@keyframes ssp-hero-v2-in {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes ssp-hero-spin {
    to { transform: rotate(360deg); }
}
@keyframes ssp-hero-spin-rev {
    to { transform: rotate(-360deg); }
}
@keyframes ssp-hero-glow {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
    .ssp-hero-v2__reveal { animation: none; opacity: 1; transform: none; }
    .ssp-hero-v2__ring--outer,
    .ssp-hero-v2__ring--inner,
    .ssp-hero-v2__glow { animation: none !important; }
    .ssp-hero-v2__visual,
    .ssp-hero-v2__photo { transform: none !important; }
}
@media (max-width: 1023px) {
    .ssp-hero-v2__visual { order: -1; width: min(100%, 18rem); }
    .ssp-hero-v2__title { max-width: none; }
    .ssp-hero-v2__chip {
        transform: rotate(var(--a, 0deg)) translateX(calc(50% - 0.2rem)) translateX(7.7rem) rotate(calc(-1 * var(--a, 0deg)));
    }
    .ssp-hero-v2__ring--inner .ssp-hero-v2__chip {
        transform: rotate(var(--a, 0deg)) translateX(calc(50% - 0.2rem)) translateX(6.55rem) rotate(calc(-1 * var(--a, 0deg)));
    }
}

/* Soft accent polish on existing light sections */
body.ssp-home-brand .ssp-doors__kicker { color: var(--ssp-accent) !important; }
body.ssp-home-brand .ssp-doors__title { color: var(--ssp-navy) !important; }
body.ssp-home-brand .ssp-doors__card:hover { border-color: var(--ssp-navy) !important; }
body.ssp-home-brand .ssp-doors__link { background: var(--ssp-navy) !important; }
body.ssp-home-brand .ssp-doors__link:hover { background: var(--ssp-mid) !important; }

body.ssp-home-brand .ssp-stage {
    background: linear-gradient(160deg, #0f2747 0%, #193a63 70%, #1f4675 100%) !important;
}
body.ssp-home-brand .ssp-stage__kicker { color: var(--ssp-sky) !important; }

body.ssp-home-brand .ssp-trust-sec__list li::before { background: var(--ssp-navy) !important; }
body.ssp-home-brand .ssp-blog-strip__kicker { color: var(--ssp-accent) !important; }
body.ssp-home-brand .ssp-garantias__kicker { color: var(--ssp-accent) !important; }
