@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    --blue: #1A6FE8;
    --red: #D93025;
    --dark: #1A1A2E;
    --navy: #0F1A35;
    --light: #F4F7FE;
    --gray: #6B7280;
    --lgray: #E0E8F8;
    --white: #fff;
    --teal: #0D9488;
    --purple: #7C3AED;
    --green: #059669;
    --amber: #D97706;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--white);
    color: var(--dark);
    overflow-x: hidden
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(10, 18, 42, .96);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    height: 62px;
    border-bottom: 1px solid rgba(255, 255, 255, .07)
}

.nav-logo {
    height: 34px
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none
}

.nav-links a {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color .2s
}

.nav-links a:hover {
    color: #fff
}

.nav-cta {
    background: var(--blue);
    color: #fff;
    padding: 9px 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap
}

.nav-cta:hover {
    background: #1458CC;
    transform: translateY(-1px)
}

@media (max-width: 700px) {
    .nav-links {
        display: none
    }
}

/* SECTIONS */
section {
    padding: 80px 5vw
}

.eyebrow {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px
}

.eyebrow::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--blue)
}

h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 14px
}

.lead {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 44px
}

/* HERO */
.hero {
    min-height: 100vh;
    background: var(--navy);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 100px 5vw 60px;
    gap: 40px;
    flex-wrap: wrap
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 55% at 65% 25%, rgba(26, 111, 232, .2) 0%, transparent 60%), radial-gradient(ellipse 50% 50% at 15% 80%, rgba(217, 48, 37, .14) 0%, transparent 50%)
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%)
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    flex: 1 1 400px
}

.hero-logo {
    height: 52px;
    margin-bottom: 26px;
    display: block
}

.hero-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blue)
}

h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    line-height: 1.12;
    color: #fff;
    margin-bottom: 18px
}

h1 em {
    font-style: italic;
    color: var(--blue)
}

h1 .r {
    color: var(--red)
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .62);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 510px
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(26, 111, 232, .45)
}

.btn-primary:hover {
    background: #1458CC;
    transform: translateY(-2px)
}

.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, .25);
    color: rgba(255, 255, 255, .85);
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
    display: inline-block
}

.btn-outline:hover {
    border-color: #fff;
    color: #fff
}

.hero-illo {
    position: relative;
    z-index: 2;
    flex: 1 1 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px
}

/* STATS */
.stats-bar {
    background: var(--dark);
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    border-top: 3px solid var(--blue)
}

.stat-item {
    padding: 26px 20px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .07)
}

.stat-item:last-child {
    border-right: none
}

.stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--blue);
    line-height: 1
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, .45);
    margin-top: 5px
}

@media (max-width: 600px) {
    .stats-bar {
        grid-template-columns:repeat(2, 1fr)
    }
}

/* PRESSUPOSTOS */
.pressupostos {
    background: var(--light)
}

.pres-grid {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px
}

.pres-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
    display: flex;
    transition: transform .25s, box-shadow .25s
}

.pres-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .12)
}

.pres-accent {
    width: 5px;
    flex-shrink: 0
}

.pres-body {
    padding: 18px 18px 18px 16px
}

.pres-icon {
    font-size: 22px;
    margin-bottom: 8px;
    display: block
}

.pres-card h3 {
    font-size: .97rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark)
}

.pres-card p {
    font-size: .87rem;
    color: var(--gray);
    line-height: 1.6
}

/* HOW */
.how {
    background: #fff
}

.steps {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(270px, 1fr));
    border: 1px solid var(--lgray)
}

.step {
    padding: 26px 22px;
    border-right: 1px solid var(--lgray);
    border-bottom: 1px solid var(--lgray);
    transition: background .2s
}

.step:hover {
    background: var(--light)
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px
}

.step h3 {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 7px
}

.step p {
    font-size: .85rem;
    color: var(--gray);
    line-height: 1.6
}

.step-actor {
    display: inline-block;
    margin-top: 10px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--light)
}

/* ROLES */
.roles {
    background: var(--navy)
}

.roles h2 {
    color: #fff
}

.roles .lead {
    color: rgba(255, 255, 255, .5)
}

.roles-grid {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px
}

.role-card {
    border-radius: 14px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s
}

.role-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35)
}

.role-head {
    padding: 26px 24px 18px;
    position: relative;
    overflow: hidden
}

.role-head::after {
    content: attr(data-icon);
    position: absolute;
    right: 16px;
    top: 10px;
    font-size: 50px;
    opacity: .18
}

.role-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 5px
}

.role-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.55rem;
    color: #fff;
    margin-bottom: 5px
}

.role-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, .6)
}

.role-body {
    padding: 22px 24px;
    background: #fff
}

.role-desc {
    font-size: .88rem;
    color: var(--gray);
    line-height: 1.65;
    margin-bottom: 14px
}

.role-pros {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px
}

.role-pros li {
    font-size: .85rem;
    color: var(--dark);
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.45
}

.role-pros li::before {
    content: '✓';
    font-weight: 700;
    color: var(--blue);
    flex-shrink: 0
}

.role-badge {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none
}

/* ILLO SECTIONS */
.illo-section {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 5vw
}

@media (max-width: 768px) {
    .illo-section {
        grid-template-columns:1fr
    }
}

.illo-section.rev .illo-text {
    order: 2
}

.illo-section.rev .illo-img {
    order: 1
}

.illo-img {
    display: flex;
    justify-content: center
}

/* BENEFITS */
.benefits {
    background: var(--dark)
}

.benefits h2 {
    color: #fff
}

.benefits .lead {
    color: rgba(255, 255, 255, .45)
}

.benefits-grid {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px
}

.benefit-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 26px 22px;
    transition: background .2s, transform .2s
}

.benefit-card:hover {
    background: rgba(255, 255, 255, .09);
    transform: translateY(-3px)
}

.benefit-icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: block
}

.benefit-card h3 {
    font-size: .97rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 7px
}

.benefit-card p {
    font-size: .865rem;
    color: rgba(255, 255, 255, .48);
    line-height: 1.6
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--blue) 0%, #0D4DC0 100%);
    text-align: center;
    padding: 80px 5vw
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 14px
}

.cta-section > p {
    color: rgba(255, 255, 255, .7);
    font-size: 1.05rem;
    max-width: 460px;
    margin: 0 auto 36px;
    line-height: 1.7
}

.cta-form {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center
}

.cta-form input {
    flex: 1;
    min-width: 200px;
    padding: 13px 16px;
    border-radius: 7px;
    border: 1.5px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    outline: none
}

.cta-form input::placeholder {
    color: rgba(255, 255, 255, .5)
}

.cta-form input:focus {
    border-color: rgba(255, 255, 255, .65);
    background: rgba(255, 255, 255, .2)
}

.cta-form button {
    padding: 13px 26px;
    border-radius: 7px;
    border: none;
    background: #fff;
    color: var(--blue);
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s
}

.cta-form button:hover {
    background: var(--light);
    transform: translateY(-1px)
}

/* ANIMATE */
.fi {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .55s ease, transform .55s ease
}

.fi.v {
    opacity: 1;
    transform: translateY(0)
}
