:root {
    --rep-ink: #0a0a0a;
    --rep-dark: #05070b;
    --rep-navy: #0f172a;
    --rep-white: #ffffff;
    --rep-paper: #f6f8fb;
    --rep-muted: #64748b;
    --rep-line: #e2e8f0;
    --rep-cyan: #0ea5e9;
    --rep-cyan-soft: rgba(14, 165, 233, 0.1);
    --rep-heading: "Outfit", "Inter", sans-serif;
    --rep-body: "Inter", sans-serif;
    --rep-transition: cubic-bezier(0.16, 1, 0.3, 1);
}

.rep-page,
.rep-page *,
.rep-page *::before,
.rep-page *::after {
    box-sizing: border-box;
}

.rep-page {
    overflow: hidden;
    background: var(--rep-white);
    color: var(--rep-ink);
    font-family: var(--rep-body);
    white-space: normal;
}

.rep-page h1,
.rep-page h2,
.rep-page h3,
.rep-page p,
.rep-page span {
    max-width: 100%;
    overflow-wrap: break-word;
    white-space: normal;
}

.rep-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

.rep-hero {
    position: relative;
    min-height: 660px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--rep-white);
    background:
        radial-gradient(circle at 78% 24%, rgba(14, 165, 233, 0.22), transparent 25%),
        linear-gradient(125deg, #050505 0%, #0b1220 62%, #06111a 100%);
}

.rep-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.02) 40%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.02) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
    transform: translateX(-150%) skewX(-20deg);
    animation: repHeroShimmer 5s linear infinite;
}

@keyframes repHeroShimmer {
    0% { transform: translateX(-150%) skewX(-20deg); }
    20% { transform: translateX(200%) skewX(-20deg); }
    100% { transform: translateX(200%) skewX(-20deg); }
}

.rep-hero::after {
    content: "";
    position: absolute;
    right: -180px;
    bottom: -330px;
    width: 720px;
    height: 720px;
    border: 1px solid rgba(125, 211, 252, 0.14);
    border-radius: 50%;
    box-shadow:
        0 0 0 72px rgba(125, 211, 252, 0.025),
        0 0 0 148px rgba(125, 211, 252, 0.015);
    transform-origin: center;
    animation: repHeroRingsPulse 3s ease-in-out infinite alternate;
}

@keyframes repHeroRingsPulse {
    0% {
        transform: scale(0.95) rotate(-5deg);
        opacity: 0.6;
        border-color: rgba(125, 211, 252, 0.1);
        box-shadow:
            0 0 0 60px rgba(125, 211, 252, 0.015),
            0 0 0 130px rgba(125, 211, 252, 0.01);
    }
    100% {
        transform: scale(1.15) rotate(15deg);
        opacity: 1;
        border-color: rgba(125, 211, 252, 0.35);
        box-shadow:
            0 0 0 90px rgba(125, 211, 252, 0.06),
            0 0 0 180px rgba(125, 211, 252, 0.04);
    }
}

.rep-hero__grid {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% + 72px);
    height: calc(100% + 72px);
    opacity: 0.4;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to right, #000, transparent 86%);
    -webkit-mask-image: linear-gradient(to right, #000, transparent 86%);
    animation: repHeroGridPan 12s linear infinite;
    pointer-events: none;
}

@keyframes repHeroGridPan {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-72px, -72px); }
}

.rep-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: center;
}

.rep-hero__eyebrow {
    margin: 0 0 24px;
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.rep-hero h1 {
    max-width: 900px;
    margin: 0 auto;
    font-family: var(--rep-heading);
    font-size: clamp(40px, 5.4vw, 76px);
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: -0.038em;
    word-break: break-word;
}

.rep-hero h2 {
    max-width: 840px;
    margin: 30px auto 0;
    font-family: var(--rep-heading);
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.rep-hero__summary {
    max-width: 780px;
    margin: 24px auto 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
    line-height: 1.75;
    text-align: justify;
    text-align-last: center;
}

.rep-intro {
    padding: 32px 0 0;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.rep-intro__layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(34px, 6vw, 78px);
    align-items: center;
}

.rep-intro__media {
    min-height: 430px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--rep-dark);
    box-shadow: 0 24px 62px rgba(15, 23, 42, 0.12);
}

.rep-intro__media img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    object-fit: cover;
    opacity: 0.94;
    transition: transform 520ms var(--rep-transition), opacity 520ms ease;
}

.rep-intro__media:hover img {
    opacity: 1;
    transform: scale(1.04);
}

.rep-intro__content h2 {
    margin: 0;
    font-family: var(--rep-heading);
    font-size: clamp(34px, 4.2vw, 54px);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.rep-intro__content p {
    max-width: 660px;
    margin: 20px 0 0;
    color: var(--rep-muted);
    font-size: 16px;
    line-height: 1.75;
    text-align: justify;
    text-align-last: center;
}

.rep-grid-section {
    padding: 32px 0;
    background: #f8fafc;
}

.rep-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--rep-cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rep-kicker::before {
    content: "";
    width: 26px;
    height: 2px;
    background: currentColor;
}

.rep-section-heading {
    max-width: 760px;
    margin: 0 auto 52px;
    text-align: center;
}

.rep-section-heading h2 {
    margin: 0;
    font-family: var(--rep-heading);
    font-size: clamp(34px, 4.4vw, 54px);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.rep-section-heading p {
    max-width: 680px;
    margin: 18px auto 0;
    color: var(--rep-muted);
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
    text-align-last: center;
}

.rep-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    min-width: 0;
}

.rep-card {
    position: relative;
    min-width: 0;
    min-height: 390px;
    padding: clamp(28px, 3vw, 38px);
    overflow: hidden;
    border: 1px solid var(--rep-line);
    border-radius: 14px;
    background: var(--rep-white);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.05);
    transition: transform 250ms var(--rep-transition), border-color 250ms ease, box-shadow 250ms ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.rep-card::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: 50%;
}

.rep-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.09);
}

.rep-card__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: stretch;
}

.rep-card__logo {
    width: 100%;
    min-height: 150px;
    display: grid;
    place-items: center;
    padding: 24px 28px;
    border: 1px solid rgba(14, 165, 233, 0.16);
    border-radius: 14px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.rep-card__logo img {
    width: auto;
    max-width: min(100%, 430px);
    max-height: 108px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.08));
}

.rep-card__placeholder {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.1);
    font-size: 22px;
    font-weight: 800;
    color: #0284c7;
    text-transform: uppercase;
}

.rep-card__body {
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rep-card h3 {
    margin: 30px 0 18px;
    font-family: var(--rep-heading);
    font-size: clamp(26px, 2.5vw, 34px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-align: center;
}

.rep-card__details {
    display: grid;
    gap: 16px;
    margin: 0 0 24px 0;
}

.rep-card__details p {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.68;
    text-align: justify;
    text-align-last: center;
    hyphens: auto;
}

.rep-card__details strong {
    display: block;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rep-card__footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.rep-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    background: var(--rep-white);
    border: 1px solid var(--rep-line);
    color: var(--rep-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.rep-card__btn:hover {
    background: var(--rep-white);
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.rep-cta {
    padding-top: 32px;
    padding-bottom: 64px;
    background: var(--rep-white);
}

.rep-cta__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(30px, 5vw, 68px);
    align-items: center;
    padding: clamp(42px, 6vw, 72px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    color: var(--rep-white);
    background:
        radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.24), transparent 28%),
        linear-gradient(135deg, #111827, #050505 75%);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
}

.rep-cta__panel > div {
    position: relative;
    z-index: 1;
}

.rep-cta__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        115deg,
        transparent 20%,
        rgba(14, 165, 233, 0.1) 40%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(14, 165, 233, 0.1) 60%,
        transparent 80%
    );
    transform: translateX(-100%);
    pointer-events: none;
    animation: repCtaShimmer 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes repCtaShimmer {
    0% { transform: translateX(-100%); }
    25%, 100% { transform: translateX(100%); }
}

.rep-cta__panel::after {
    content: "";
    position: absolute;
    right: -86px;
    bottom: -120px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(125, 211, 252, 0.3);
    border-radius: 50%;
    box-shadow:
        0 0 0 42px rgba(125, 211, 252, 0.035),
        0 0 0 86px rgba(125, 211, 252, 0.02);
    pointer-events: none;
    transform-origin: center;
    animation: repCtaRingsPulse 4s ease-in-out infinite alternate;
}

@keyframes repCtaRingsPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
        box-shadow:
            0 0 0 20px rgba(125, 211, 252, 0.05),
            0 0 0 40px rgba(125, 211, 252, 0.03);
    }
    100% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow:
            0 0 0 60px rgba(125, 211, 252, 0.1),
            0 0 0 120px rgba(125, 211, 252, 0.05);
    }
}

.rep-cta__panel h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: var(--rep-heading);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--rep-white);
}

.rep-cta__panel p {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 16px;
    line-height: 1.72;
    text-align: justify;
    text-align-last: center;
}

.rep-cta__button {
    position: relative;
    z-index: 1;
    min-width: 220px;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 24px;
    border-radius: 14px;
    background: var(--rep-white);
    color: var(--rep-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    transition: transform 220ms var(--rep-transition), background 220ms ease;
}

.rep-cta__button svg {
    width: 19px;
    height: 19px;
}

.rep-cta__button:hover {
    transform: translateY(-3px);
    background: #e2e8f0;
}

.rep-reveal {
    opacity: 1;
    transform: none;
    transition:
        opacity 360ms var(--rep-transition),
        transform 360ms var(--rep-transition);
}

.rep-page.rep-motion-ready .rep-reveal {
    opacity: 0;
    transform: translateY(18px);
}

.rep-page.rep-motion-ready .rep-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.rep-grid .rep-reveal:nth-child(2) {
    transition-delay: 80ms;
}
.rep-grid .rep-reveal:nth-child(3) {
    transition-delay: 160ms;
}
.rep-grid .rep-reveal:nth-child(4) {
    transition-delay: 240ms;
}
.rep-grid .rep-reveal:nth-child(5) {
    transition-delay: 320ms;
}

@media (max-width: 980px) {
    .rep-hero {
        min-height: 610px;
    }

    .rep-intro__layout {
        grid-template-columns: 1fr;
    }

    .rep-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .rep-container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .rep-hero {
        min-height: auto;
    }

    .rep-hero__content {
        padding-top: 82px;
        padding-bottom: 82px;
    }

    .rep-hero h1 {
        font-size: clamp(32px, 10vw, 46px);
        word-break: break-word;
    }

    .rep-hero h2 {
        font-size: 25px;
    }

    .rep-hero__summary {
        font-size: 15px;
        line-height: 1.65;
    }

    .rep-intro,
    .rep-grid-section {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .rep-cta {
        padding-top: 24px;
        padding-bottom: 48px;
    }

    .rep-intro__media {
        min-height: 300px;
        border-radius: 20px;
    }

    .rep-grid,
    .rep-cta__panel {
        grid-template-columns: 1fr;
    }

    .rep-section-heading {
        margin-bottom: 36px;
    }

    .rep-section-heading h2,
    .rep-intro__content h2,
    .rep-cta__panel h2 {
        font-size: 34px;
    }

    .rep-card {
        padding: 28px 24px;
    }

    .rep-card h3 {
        margin-top: 34px;
        font-size: 29px;
    }

    .rep-cta {
        padding-top: 0;
    }

    .rep-cta__panel {
        gap: 28px;
        padding: 34px 24px;
        border-radius: 20px;
    }

    .rep-cta__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rep-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .rep-card,
    .rep-cta__button {
        transition: none;
    }
}

/*
==========================================================================
Immersive app-like refinements
==========================================================================
*/

.rep-page {
    background:
        linear-gradient(180deg, #ffffff 0%, #f7fbff 42%, #ffffff 100%);
}

.rep-hero,
.rep-cta__panel {
    isolation: isolate;
}

.rep-kicker,
.rep-hero__eyebrow {
    width: fit-content;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid rgba(14, 165, 233, 0.22);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.08);
}

.rep-hero__eyebrow,
.rep-section-heading .rep-kicker {
    margin-left: auto;
    margin-right: auto;
}

.rep-card,
.rep-intro__media,
.rep-cta__panel {
    transform: translateZ(0);
}

.rep-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.13), transparent 35%);
    opacity: 0;
    transition: opacity 220ms ease;
}

.rep-card:hover::before {
    opacity: 1;
}

.rep-card__logo {
    background:
        radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.13), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.rep-card__btn {
    min-height: 46px;
    border-color: rgba(14, 165, 233, 0.18);
    background: #f8fbff;
    font-weight: 850;
}

.rep-card__btn:hover {
    background: #050505;
    border-color: #050505;
    color: #ffffff;
}

@media (max-width: 720px) {
    .rep-hero {
        margin: 12px 12px 0;
        border-radius: 26px;
        min-height: 0;
        box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
    }

    .rep-hero__content {
        padding-top: 64px;
        padding-bottom: 66px;
    }

    .rep-intro,
    .rep-grid-section {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .rep-cta {
        padding-top: 16px;
        padding-bottom: 48px;
    }

    .rep-card {
        border-radius: 20px;
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
    }

    .rep-card:active {
        transform: scale(0.985);
    }

    .rep-card__logo {
        min-height: 128px;
    }

    .rep-card__logo img {
        max-height: 92px;
    }
}

/* Acople perfecto del footer en representaciones */
.layout-publico .footer-publico {
    margin-top: 0 !important;
}
