/* ==========================================================
   LAW TECHNOLOGY
   styles.css
   ========================================================== */


/* ==========================================================
   1. VARIABLES
   ========================================================== */

:root {
    --navy-950: #020817;
    --navy-900: #041426;
    --navy-850: #061a33;
    --navy-800: #082343;
    --navy-700: #0b315e;

    --blue-700: #0066e6;
    --blue-600: #087cf0;
    --blue-500: #0a8cff;
    --blue-400: #28a7ff;

    --cyan-500: #00c8f8;
    --cyan-400: #22d8ff;
    --cyan-300: #6ce8ff;

    --white: #ffffff;
    --off-white: #f8fbff;
    --soft-blue: #f1f8ff;
    --soft-blue-2: #eaf5ff;

    --text: #071c37;
    --text-soft: #48617d;
    --text-muted: #71849a;

    --border: #dceaf7;
    --border-blue: rgba(8, 124, 240, 0.18);

    --shadow-sm:
        0 8px 25px rgba(6, 42, 77, 0.06);

    --shadow-md:
        0 18px 45px rgba(4, 42, 82, 0.10);

    --shadow-blue:
        0 20px 55px rgba(0, 115, 230, 0.15);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --container: 1240px;

    --transition: 0.28s ease;
}


/* ==========================================================
   2. RESET
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
}

::selection {
    background: var(--blue-500);
    color: var(--white);
}


/* ==========================================================
   3. UTILIDADES GENERALES
   ========================================================== */

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--navy-800);

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.section-label > span {
    width: 34px;
    height: 2px;

    background: linear-gradient(
        90deg,
        var(--blue-600),
        var(--cyan-400)
    );

    border-radius: 999px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 24px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--blue-600);

    font-size: 0.84rem;
    font-weight: 700;

    transition:
        color var(--transition),
        transform var(--transition);
}

.section-link:hover {
    color: var(--cyan-500);
    transform: translateX(3px);
}


/* ==========================================================
   4. HEADER
   ========================================================== */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;

    height: 74px;

    background:
        linear-gradient(
            90deg,
            rgba(3, 19, 39, 0.97),
            rgba(4, 37, 70, 0.94)
        );

    border-bottom: 1px solid rgba(100, 220, 255, 0.12);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        background var(--transition),
        box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(3, 20, 39, 0.97);

    box-shadow:
        0 10px 35px rgba(0, 15, 35, 0.15);
}

.header-container {
    height: 100%;

    display: flex;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    flex-shrink: 0;
}

.brand-logo {
    width: 44px;
    height: 44px;

    object-fit: contain;

    filter:
        drop-shadow(0 0 8px rgba(0, 200, 248, 0.20));
}

.brand-name {
    color: var(--white);

    font-size: 0.93rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;

    margin-left: auto;
    margin-right: 34px;
}

.nav-link {
    position: relative;

    color: rgba(255, 255, 255, 0.76);

    font-size: 0.79rem;
    font-weight: 500;

    transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -11px;

    width: 0;
    height: 2px;

    transform: translateX(-50%);

    background: linear-gradient(
        90deg,
        var(--blue-400),
        var(--cyan-400)
    );

    border-radius: 10px;

    box-shadow:
        0 0 10px rgba(0, 210, 255, 0.65);

    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 39px;

    padding: 0 18px;

    border: 1px solid rgba(37, 176, 255, 0.7);
    border-radius: 8px;

    color: var(--white);

    font-size: 0.78rem;
    font-weight: 600;

    background:
        rgba(0, 116, 221, 0.08);

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.header-cta:hover {
    background: rgba(0, 145, 255, 0.18);
    border-color: var(--cyan-400);

    box-shadow:
        0 0 20px rgba(0, 190, 255, 0.15);
}

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    margin-left: auto;

    padding: 9px;

    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: var(--white);

    border-radius: 10px;
}


/* ==========================================================
   5. HERO
   ========================================================== */

.hero {
    position: relative;

    min-height: 640px;

    padding-top: 74px;

    overflow: hidden;

    background-image:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.06) 0%,
            rgba(255, 255, 255, 0.02) 45%,
            rgba(2, 20, 39, 0.04) 100%
        ),
        url("../img/hero/hero-law-technology.png");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(12, 114, 205, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(12, 114, 205, 0.035) 1px,
            transparent 1px
        );

    background-size: 56px 56px;

    mask-image:
        linear-gradient(
            90deg,
            transparent,
            rgba(0, 0, 0, 0.8),
            rgba(0, 0, 0, 0.3)
        );
}

.hero::after {
    content: "";

    position: absolute;

    right: 9%;
    top: 28%;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 206, 255, 0.16) 0%,
            rgba(0, 128, 255, 0.08) 35%,
            transparent 70%
        );

    filter: blur(8px);

    pointer-events: none;
}

.hero-network {
    position: absolute;
    inset: 0;

    opacity: 0.34;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 61% 26%,
            rgba(0, 193, 255, 0.9) 0 2px,
            transparent 3px
        ),
        radial-gradient(
            circle at 70% 45%,
            rgba(0, 193, 255, 0.7) 0 2px,
            transparent 3px
        ),
        radial-gradient(
            circle at 84% 31%,
            rgba(0, 193, 255, 0.8) 0 2px,
            transparent 3px
        ),
        radial-gradient(
            circle at 92% 58%,
            rgba(0, 193, 255, 0.8) 0 2px,
            transparent 3px
        );
}

.hero-glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(90px);

    pointer-events: none;
}

.hero-glow-one {
    right: 17%;
    top: 10%;

    width: 340px;
    height: 340px;

    background: rgba(0, 171, 255, 0.14);
}

.hero-glow-two {
    left: 42%;
    bottom: -120px;

    width: 300px;
    height: 300px;

    background: rgba(35, 211, 255, 0.12);
}

.hero-container {
    position: relative;
    z-index: 2;

    min-height: 566px;

    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;

    gap: 40px;
}

.hero-content {
    padding: 0px 0 65px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 20px;

    color: #6684a4;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.eyebrow-line {
    width: 34px;
    height: 2px;

    background: linear-gradient(
        90deg,
        var(--blue-600),
        var(--cyan-400)
    );

    border-radius: 999px;
}

.hero h1 {
    max-width: 650px;

    margin: 0 0 20px;

    color: var(--navy-900);

    font-size: clamp(2.7rem, 4.5vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 800;
}

.hero h1 span {
    display: block;

    margin-top: 6px;

    color: var(--blue-600);
}

.hero-description {
    max-width: 590px;

    margin: 0 0 28px;

    color: #304c69;

    font-size: 1.02rem;
    line-height: 1.62;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;

    margin-bottom: 27px;
}

.btn {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 0 22px;

    border-radius: 8px;

    font-size: 0.82rem;
    font-weight: 700;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--blue-600),
            #009de8
        );

    box-shadow:
        0 12px 28px rgba(0, 119, 230, 0.22);
}

.btn-primary:hover {
    box-shadow:
        0 15px 36px rgba(0, 128, 235, 0.30);
}

.btn-secondary {
    color: var(--blue-600);

    background: rgba(255, 255, 255, 0.72);

    border: 1px solid rgba(0, 120, 235, 0.42);
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--blue-500);
}

.hero-topics {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;

    color: #45627e;

    font-size: 0.76rem;
    font-weight: 500;
}

.hero-topics span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-topics i {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--blue-500);

    box-shadow:
        0 0 10px rgba(0, 156, 255, 0.30);
}


/* HERO VISUAL */

.hero-visual {
    position: relative;

    min-height: 520px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate(-30px, -40px);
}

.hero-logo-glow {
    position: absolute;

    width: 390px;
    height: 390px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(39, 220, 255, 0.30),
            rgba(0, 111, 230, 0.11) 45%,
            transparent 70%
        );

    filter: blur(20px);
}

.hero-isotipo {
    position: relative;
    z-index: 3;

    width: min(390px, 72%);

    object-fit: contain;

    /* desplaza el isotipo ligeramente hacia la izquierda */
    left: -55px;

    filter:
        drop-shadow(0 0 14px rgba(35, 221, 255, 0.26))
        drop-shadow(0 18px 35px rgba(0, 30, 70, 0.24));

    animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-data {
    position: absolute;

    right: -5px;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    gap: 13px;
}

.hero-data span {
    position: relative;

    color: rgba(255, 255, 255, 0.74);

    font-size: 0.61rem;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.hero-data span::before {
    content: "";

    position: absolute;

    left: -18px;
    top: 50%;

    width: 6px;
    height: 6px;

    transform: translateY(-50%);

    border-radius: 50%;

    background: var(--cyan-400);

    box-shadow:
        0 0 12px rgba(0, 220, 255, 0.8);
}


/* ==========================================================
   6. QUÉ HACEMOS
   ========================================================== */

.what-we-do {
    position: relative;
    z-index: 3;

    padding: 35px 0 39px;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fbfdff
        );

    border-bottom: 1px solid #edf4fa;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-top: 24px;
}

.capability {
    display: grid;
    grid-template-columns: 62px 1fr;
    align-items: center;

    gap: 17px;

    padding: 7px 34px;
}

.capability:first-child {
    padding-left: 0;
}

.capability + .capability {
    border-left: 1px solid var(--border);
}

.capability-icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    color: var(--blue-600);

    background:
        linear-gradient(
            135deg,
            #edf7ff,
            #e4f2ff
        );

    font-size: 1.65rem;
    font-weight: 700;
}

.capability h2 {
    margin: 0 0 4px;

    color: var(--navy-900);

    font-size: 1rem;
    line-height: 1.3;
}

.capability p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.78rem;
    line-height: 1.55;
}


/* ==========================================================
   7. SOLUCIONES
   ========================================================== */

.solutions {
    padding: 45px 0 36px;

    background:
        linear-gradient(
            180deg,
            #f7fbff 0%,
            #ffffff 100%
        );
}

.solution-featured {
    position: relative;

    min-height: 315px;

    display: grid;
    grid-template-columns: 1.12fr 0.88fr 0.63fr;

    overflow: hidden;

    border-radius: 15px;

    background:
        linear-gradient(
            115deg,
            #04182f 0%,
            #05284d 52%,
            #06345f 100%
        );

    box-shadow: var(--shadow-blue);
}

.solution-featured::before {
    content: "";

    position: absolute;

    width: 340px;
    height: 340px;

    right: -80px;
    top: -150px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 213, 255, 0.20),
            transparent 70%
        );
}

.solution-image {
    position: relative;

    min-height: 315px;

    overflow: hidden;
}

.solution-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent 50%,
            #041d39 100%
        );
}

.solution-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.solution-content {
    position: relative;
    z-index: 2;

    align-self: center;

    padding: 42px 30px;
}

.solution-kicker {
    display: block;

    margin-bottom: 7px;

    color: var(--cyan-400);

    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.solution-content h2 {
    margin: 0 0 11px;

    color: var(--white);

    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.solution-content p {
    margin: 0 0 20px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 0.84rem;
    line-height: 1.62;
}

.solution-button {
    min-height: 42px;

    color: var(--white);

    border: 1px solid rgba(0, 191, 255, 0.55);

    background:
        rgba(0, 133, 235, 0.13);
}

.solution-button:hover {
    background:
        rgba(0, 147, 255, 0.25);

    border-color: var(--cyan-400);

    box-shadow:
        0 0 24px rgba(0, 203, 255, 0.13);
}

.solution-features {
    position: relative;
    z-index: 2;

    align-self: center;

    display: flex;
    flex-direction: column;
    gap: 16px;

    padding: 35px 30px 35px 5px;
}

.solution-feature {
    display: flex;
    align-items: center;
    gap: 11px;

    color: rgba(255, 255, 255, 0.89);

    font-size: 0.75rem;
    font-weight: 500;
}

.feature-icon {
    width: 39px;
    height: 39px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border: 1px solid rgba(0, 187, 255, 0.25);
    border-radius: 9px;

    color: var(--cyan-300);

    background:
        rgba(4, 65, 111, 0.34);
}


/* ==========================================================
   8. ARTÍCULOS
   ========================================================== */

.articles-section {
    padding: 38px 0 50px;

    background: var(--white);
}

.articles-grid {
    display: grid;

    grid-template-columns:
        1.45fr
        0.9fr
        0.9fr;

    gap: 18px;
}

.article-card {
    overflow: hidden;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--white);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);

    border-color: rgba(0, 135, 245, 0.24);

    box-shadow:
        0 20px 45px rgba(0, 60, 115, 0.11);
}

.article-image {
    position: relative;

    display: block;

    height: 170px;

    overflow: hidden;

    background: #dcecff;
}

.article-card-featured .article-image {
    height: 215px;
}

.article-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 60%,
            rgba(1, 19, 37, 0.13)
        );
}

.article-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.035);
}

.article-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 18px 19px 17px;
}

.article-card-featured .article-content {
    padding: 21px 23px 18px;
}

.article-category {
    align-self: flex-start;

    margin-bottom: 8px;

    padding: 4px 8px;

    border-radius: 999px;

    color: var(--blue-600);

    background: #edf7ff;

    font-size: 0.59rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.article-content h2 {
    margin: 0 0 8px;

    color: var(--navy-900);

    font-size: 1.1rem;
    line-height: 1.22;
    letter-spacing: -0.025em;
}

.article-card-featured h2 {
    font-size: 1.48rem;
}

.article-content h2 a {
    transition: color var(--transition);
}

.article-content h2 a:hover {
    color: var(--blue-600);
}

.article-content p {
    margin: 0 0 20px;

    color: var(--text-soft);

    font-size: 0.78rem;
    line-height: 1.52;
}

.article-card-featured .article-content p {
    max-width: 90%;

    font-size: 0.85rem;
}

.article-footer {
    margin-top: auto;

    display: flex;
    align-items: center;
    gap: 11px;

    padding-top: 14px;

    border-top: 1px solid #eef4f8;

    color: var(--text-muted);

    font-size: 0.65rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 7px;
}

.author-avatar {
    width: 24px;
    height: 24px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 50%;

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--blue-600),
            var(--cyan-500)
        );

    font-size: 0.53rem;
    font-weight: 700;
}

.article-footer time {
    padding-left: 11px;

    border-left: 1px solid #dfeaf3;
}

.article-arrow {
    margin-left: auto;

    color: var(--blue-500);

    font-size: 1.25rem;

    transition: transform var(--transition);
}

.article-card:hover .article-arrow {
    transform: translateX(3px);
}


/* ==========================================================
   9. HISTORIA
   ========================================================== */

.history-section {
    position: relative;

    padding: 40px 0 48px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #fbfdff 0%,
            #f3f9ff 100%
        );
}

.history-section::before {
    content: "";

    position: absolute;

    left: -90px;
    bottom: -170px;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 160, 255, 0.08),
            transparent 70%
        );
}

.history-timeline {
    position: relative;

    display: grid;
    grid-template-columns:
        1fr
        50px
        1fr
        50px
        0.9fr;

    align-items: center;

    gap: 15px;

    margin-top: 28px;
}

.history-item {
    position: relative;

    display: grid;
    grid-template-columns: auto 1fr;

    gap: 14px;

    align-items: center;
}

.history-year {
    grid-column: 1 / -1;

    margin-left: 72px;
    margin-bottom: -4px;

    color: #7590aa;

    font-size: 0.72rem;
    font-weight: 700;
}

.history-icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: var(--white);

    box-shadow: var(--shadow-sm);
}

.history-icon span {
    font-size: 2rem;
    font-weight: 700;
}

.legal-movil {
    color: #e2b94d;

    background:
        linear-gradient(
            135deg,
            #050505,
            #171717
        );

    border: 1px solid rgba(226, 185, 77, 0.65);

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.16);
}

.infocontrataciones-icon {
    color: var(--blue-600);

    border: 1px solid #e1edf7;
}

.history-content h2 {
    margin: 0 0 4px;

    color: var(--navy-900);

    font-size: 0.98rem;
}

.history-content p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.73rem;
    line-height: 1.5;
}

.history-arrow {
    color: #bad0e4;

    text-align: center;

    font-size: 1.5rem;
}

.history-current {
    display: block;

    padding: 22px;

    border: 1px solid #dfedf8;
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #eef8ff
        );

    box-shadow: var(--shadow-sm);
}

.history-current .history-year {
    margin: 0 0 4px;

    color: var(--blue-500);
}

.history-link {
    display: inline-flex;
    gap: 7px;

    margin-top: 11px;

    color: var(--blue-600);

    font-size: 0.72rem;
    font-weight: 700;
}


/* ==========================================================
   10. PROPÓSITO
   ========================================================== */

.purpose-section {
    position: relative;

    min-height: 225px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #f5faff,
            #e8f4ff
        );
}

.purpose-background {
    position: absolute;
    inset: 0;

    opacity: 0.50;

    background:
        radial-gradient(
            ellipse at 20% 110%,
            rgba(0, 104, 196, 0.14),
            transparent 38%
        ),
        radial-gradient(
            ellipse at 80% 120%,
            rgba(0, 154, 238, 0.12),
            transparent 42%
        );
}

.purpose-background::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 55%;

    opacity: 0.28;

    background:
        linear-gradient(
            150deg,
            transparent 0 8%,
            rgba(17, 105, 175, 0.13) 8.3% 12%,
            transparent 12.3% 17%,
            rgba(19, 114, 185, 0.11) 17.3% 22%,
            transparent 22.3% 27%,
            rgba(25, 125, 194, 0.12) 27.3% 32%,
            transparent 32.3% 100%
        );
}

.purpose-container {
    position: relative;
    z-index: 2;

    text-align: center;
}

.purpose-label {
    display: block;

    margin-bottom: 8px;

    color: #7894ae;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.purpose-container h2 {
    margin: 0;

    color: var(--navy-900);

    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.purpose-container h2 span {
    color: var(--blue-600);
}

.purpose-line {
    width: 40px;
    height: 2px;

    margin: 17px auto 0;

    background:
        linear-gradient(
            90deg,
            var(--blue-600),
            var(--cyan-400)
        );

    border-radius: 999px;
}


/* ==========================================================
   11. FOOTER
   ========================================================== */

.site-footer {
    position: relative;

    padding: 48px 0;

    overflow: hidden;

    color: var(--white);

    background:
        linear-gradient(
            110deg,
            #031326,
            #041d38 65%,
            #052847
        );
}

.site-footer::before {
    content: "";

    position: absolute;

    right: -140px;
    top: -180px;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 196, 255, 0.09),
            transparent 70%
        );
}

.footer-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns:
        1.6fr
        0.7fr
        0.7fr
        0.7fr
        1fr;

    gap: 35px;
}

.footer-brand p {
    margin: 13px 0 0;

    color: rgba(255, 255, 255, 0.55);

    font-size: 0.7rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-column h3 {
    margin: 0 0 4px;

    color: var(--white);

    font-size: 0.75rem;
}

.footer-column a,
.footer-column span {
    color: rgba(255, 255, 255, 0.55);

    font-size: 0.68rem;

    transition: color var(--transition);
}

.footer-column a:hover {
    color: var(--cyan-300);
}

.footer-company {
    justify-self: end;
}

.social-links {
    display: flex;
    gap: 8px;

    margin-bottom: 16px;
}

.social-links a {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;

    color: rgba(255, 255, 255, 0.8);

    font-size: 0.7rem;
    font-weight: 700;

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition);
}

.social-links a:hover {
    color: var(--cyan-300);

    border-color: rgba(0, 213, 255, 0.35);

    background: rgba(0, 190, 255, 0.08);
}

.footer-company p {
    margin: 0;

    color: rgba(255, 255, 255, 0.50);

    font-size: 0.67rem;
    line-height: 1.6;
}


/* ==========================================================
   12. ANIMACIONES PARA SCROLL
   Se activarán desde main.js
   ========================================================== */

.reveal {
    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================
   13. TABLET
   ========================================================== */

@media (max-width: 1050px) {

    .main-nav {
        gap: 19px;

        margin-right: 20px;
    }

    .nav-link {
        font-size: 0.72rem;
    }

    .hero-container {
        grid-template-columns: 1fr 0.85fr;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 5vw, 4rem);
    }

    .hero-data {
        display: none;
    }

    .capability {
        padding-inline: 20px;
    }

    .solution-featured {
        grid-template-columns: 1fr 1fr;
    }

    .solution-features {
        grid-column: 1 / -1;

        display: grid;
        grid-template-columns: repeat(4, 1fr);

        padding: 20px 28px 26px;

        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .solution-feature {
        font-size: 0.68rem;
    }

    .articles-grid {
        grid-template-columns: 1.2fr 1fr;
    }

    .article-card:last-child {
        grid-column: 1 / -1;
    }

    .article-card:last-child {
        display: grid;
        grid-template-columns: 0.65fr 1fr;
    }

    .article-card:last-child .article-image {
        height: 100%;
        min-height: 220px;
    }

    .history-timeline {
        grid-template-columns: 1fr 30px 1fr;
    }

    .history-arrow:nth-of-type(2),
    .history-current {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, 0.7fr);
    }

    .footer-company {
        grid-column: 1 / -1;

        justify-self: start;
    }
}


/* ==========================================================
   14. MOBILE / TABLET PEQUEÑA
   ========================================================== */

@media (max-width: 820px) {

    .container {
        width: min(calc(100% - 34px), var(--container));
    }

    .site-header {
        height: 68px;
    }

    .brand-logo {
        width: 39px;
        height: 39px;
    }

    .brand-name {
        font-size: 0.82rem;
    }

    .main-nav,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }


    /* Menú abierto desde JS */

    .site-header.menu-open {
        height: auto;
    }

    .site-header.menu-open .header-container {
        flex-wrap: wrap;
    }

    .site-header.menu-open .main-nav {
        order: 5;

        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: flex-start;

        gap: 0;

        margin: 10px 0 20px;

        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .site-header.menu-open .nav-link {
        width: 100%;

        padding: 13px 0;

        border-bottom: 1px solid rgba(255, 255, 255, 0.06);

        font-size: 0.8rem;
    }

    .site-header.menu-open .nav-link::after {
        display: none;
    }


    /* Hero */

    .hero {
        padding-top: 68px;

        background:
            linear-gradient(
                180deg,
                #ffffff 0%,
                #f7fbff 52%,
                #dceefa 75%,
                #082847 100%
            );
    }

    .hero-container {
        min-height: auto;

        grid-template-columns: 1fr;

        gap: 0;
    }

    .hero-content {
        padding: 55px 0 25px;

        text-align: center;
    }

    .eyebrow {
        justify-content: center;
    }

    .hero h1 {
        max-width: 650px;

        margin-inline: auto;

        font-size: clamp(2.4rem, 9vw, 3.7rem);
    }

    .hero-description {
        margin-inline: auto;

        font-size: 0.95rem;
    }

    .hero-actions,
    .hero-topics {
        justify-content: center;
    }

    .hero-visual {
        min-height: 380px;
    }

    .hero-isotipo {
        width: min(330px, 70%);
    }

    .hero-logo-glow {
        width: 300px;
        height: 300px;
    }


    /* Qué hacemos */

    .what-we-do {
        padding-top: 42px;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .capability,
    .capability:first-child {
        padding: 20px 0;
    }

    .capability + .capability {
        border-left: 0;
        border-top: 1px solid var(--border);
    }


    /* Soluciones */

    .solution-featured {
        grid-template-columns: 1fr;
    }

    .solution-image {
        min-height: 270px;
    }

    .solution-image::after {
        background:
            linear-gradient(
                180deg,
                transparent 50%,
                #041d39 100%
            );
    }

    .solution-content {
        padding: 30px 28px;
    }

    .solution-features {
        grid-column: auto;

        grid-template-columns: 1fr 1fr;

        padding: 0 28px 30px;
    }


    /* Artículos */

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card:last-child {
        grid-column: auto;

        display: flex;
    }

    .article-card:last-child .article-image {
        height: 180px;
        min-height: 0;
    }

    .article-card-featured .article-image {
        height: 220px;
    }


    /* Historia */

    .history-timeline {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .history-arrow {
        display: none;
    }

    .history-current {
        display: block;
    }

    .history-item {
        padding-bottom: 22px;

        border-bottom: 1px solid var(--border);
    }

    .history-current {
        border-bottom: 1px solid #dfedf8;
    }


    /* Footer */

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-company {
        grid-column: 1 / -1;
    }
}


/* ==========================================================
   15. MOBILE
   ========================================================== */

@media (max-width: 560px) {

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .brand-name {
        font-size: 0.74rem;
    }

    .hero-content {
        padding-top: 45px;
    }

    .eyebrow {
        font-size: 0.63rem;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 11vw, 3.15rem);
        line-height: 1.01;
    }

    .hero-description {
        font-size: 0.89rem;
    }

    .hero-actions {
        flex-direction: column;

        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-topics {
        gap: 12px 18px;
    }

    .hero-visual {
        min-height: 310px;
    }

    .hero-isotipo {
        width: 250px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 9px;
    }

    .solution-image {
        min-height: 220px;
    }

    .solution-content h2 {
        font-size: 1.65rem;
    }

    .solution-features {
        grid-template-columns: 1fr;
    }

    .article-card-featured .article-image,
    .article-image {
        height: 190px;
    }

    .article-card-featured h2 {
        font-size: 1.25rem;
    }

    .article-footer {
        flex-wrap: wrap;
    }

    .article-footer time {
        border-left: 0;
        padding-left: 0;
    }

    .article-arrow {
        margin-left: auto;
    }

    .history-item {
        grid-template-columns: 52px 1fr;
    }

    .history-year {
        margin-left: 66px;
    }

    .history-icon {
        width: 52px;
        height: 52px;
    }

    .purpose-section {
        min-height: 190px;
    }

    .purpose-container h2 span {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;

        gap: 30px 20px;
    }
}


/* ==========================================================
   16. ACCESIBILIDAD / REDUCCIÓN DE MOVIMIENTO
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-isotipo {
        animation: none;
    }
}
/* ==========================================================
   17. AJUSTE FINAL HERO RESPONSIVE
   ========================================================== */

/* Tablet y móvil */
@media (max-width: 820px) {

    .hero {
        min-height: auto;
        background-position: center center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 0;
    }

    .hero-content {
        padding: 42px 0 20px;
        text-align: center;
    }

    .eyebrow {
        justify-content: center;
    }

    .hero h1 {
        margin-inline: auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-topics {
        justify-content: center;
    }

    /* Reinicia el desplazamiento usado en escritorio */
    .hero-visual {
        min-height: 360px;
        transform: none;
    }

    /* En móvil el isotipo vuelve al centro */
    .hero-isotipo {
        width: min(310px, 68vw);
        left: 0;
    }

    .hero-logo-glow {
        width: 290px;
        height: 290px;
    }

    /* Los textos laterales no son necesarios en móvil */
    .hero-data {
        display: none;
    }
}


/* Teléfonos */
@media (max-width: 560px) {

    .hero-content {
        padding: 34px 0 14px;
    }

    .hero h1 {
        font-size: clamp(2.15rem, 10.5vw, 3rem);
        line-height: 1.02;
    }

    .hero-description {
        font-size: 0.89rem;
        line-height: 1.6;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-topics {
        gap: 10px 16px;
    }

    .hero-visual {
        min-height: 285px;
        transform: none;
    }

    .hero-isotipo {
        width: min(245px, 67vw);
        left: 0;
    }

    .hero-logo-glow {
        width: 235px;
        height: 235px;
    }
}


/* Teléfonos pequeños */
@media (max-width: 390px) {

    .hero-content {
        padding-top: 28px;
    }

    .hero h1 {
        font-size: 2.05rem;
    }

    .hero-description {
        font-size: 0.86rem;
    }

    .hero-visual {
        min-height: 255px;
    }

    .hero-isotipo {
        width: 215px;
    }

    .hero-logo-glow {
        width: 205px;
        height: 205px;
    }
}
@media (max-width: 820px) {

    .hero {
        min-height: auto;
        padding-top: 68px;

        background-image:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.10) 0%,
                rgba(230, 245, 255, 0.06) 45%,
                rgba(3, 31, 58, 0.08) 100%
            ),
            url("../img/hero/hero-law-technology.png");

        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

}