/* Identidad visual compartida: AXLUON / claridad en movimiento. */
:root {
    --brand-ink: #071a30;
    --brand-blue: #0759d3;
    --brand-cyan: #00bcd4;
    --brand-paper: #f2f6f8;
    --brand-line: #cedee8;
    --brand-shadow: 0 26px 70px rgba(7, 33, 59, .12);
}

body {
    color: var(--brand-ink);
    background: var(--brand-paper);
    font-family: "Aptos", "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, legend {
    font-family: "Aptos Display", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    letter-spacing: -.045em;
    text-wrap: balance;
}

p { text-wrap: pretty; }
img { max-width: 100%; }

/* Una línea de marca recorre la navegación y los grandes bloques editoriales. */
.header, .site-header { position: relative; }
.header::after, .site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan) 52%, transparent);
    pointer-events: none;
}
.site-header { background: rgba(255, 255, 255, .97); }
.header .nav-links a, .site-header .back-link, .site-header nav a { transition: color .2s ease; }
.header .nav-links a:hover, .site-header .back-link:hover, .site-header nav a:hover { color: #007d9b; }

/* Portada: composición de estudio digital, con la interfaz real como protagonista. */
.hero, .case-hero, .contact-band {
    background-color: var(--brand-ink);
    background-image:
        radial-gradient(circle at 80% 20%, rgba(0, 188, 212, .22), transparent 34%),
        linear-gradient(125deg, #06172d 0%, #0a2d4d 72%, #07576b 100%);
}
.hero::before, .case-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(172, 234, 241, .07) 25%);
    pointer-events: none;
}
.hero { padding-block: clamp(84px, 9vw, 145px) clamp(95px, 10vw, 150px); color: #f5fbff; }
.hero-content { gap: clamp(40px, 6vw, 92px); }
.hero .badge, .case-hero .eyebrow {
    color: #9bf1fa;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-size: 11px;
}
.hero h1 { max-width: 780px; font-size: clamp(46px, 5.1vw, 78px); line-height: 1.035; letter-spacing: -.065em; }
.hero h1 span, .case-hero .hero-copy h1 em { color: #73edfa; }
.hero-text p { max-width: 540px; color: #d7e7f2; line-height: 1.7; }
.hero .btn, .btn, .button, .primary-link { border-radius: 999px; }
.hero .btn-primary { background: #73edfa; color: #062540; }
.hero .btn-primary:hover { background: #b8f8ff; }
.portfolio-hero-visual {
    padding: clamp(10px, 1.5vw, 21px);
    border-radius: 27px;
    background: linear-gradient(140deg, rgba(190, 245, 252, .2), rgba(4, 22, 44, .45));
    box-shadow: 0 44px 100px rgba(0, 8, 25, .43);
    transform: rotate(1.2deg);
}
.portfolio-screen-link, .screen-frame, .image-frame, .portfolio-feature-visual { box-shadow: var(--brand-shadow); }

/* Espaciado, numeración y escala tipográfica consistentes. */
.section { padding-block: clamp(76px, 8vw, 132px); }
.section-title { max-width: 810px; margin-bottom: 58px; }
.section-title h2, .two-columns h2 { font-size: clamp(36px, 4.3vw, 58px); line-height: 1.08; }
.section-title > span, .mini-title, .portfolio-eyebrow,
.solutions-heading .eyebrow, .intro .eyebrow, .section-heading .eyebrow,
.feature-copy .eyebrow, .next-step .eyebrow, .closing .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #087e96;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.section-title > span::before, .mini-title::before, .portfolio-eyebrow::before,
.solutions-heading .eyebrow::before, .intro .eyebrow::before,
.section-heading .eyebrow::before, .feature-copy .eyebrow::before,
.next-step .eyebrow::before, .closing .eyebrow::before {
    content: "";
    display: inline-block;
    flex: none;
    width: 27px;
    height: 2px;
    background: currentColor;
}
.cta-box .mini-title { color: #9bf1fa; }

.solutions-section { background: #f2f6f8; }
.solutions-heading h2, .portfolio-feature-copy h2 { font-size: clamp(38px, 4.5vw, 62px); line-height: 1.06; letter-spacing: -.055em; }
.solution-showcase { border-radius: 28px; box-shadow: var(--brand-shadow); }
.solution-preview { background: radial-gradient(circle at 80% 14%, rgba(0, 188, 212, .31), transparent 35%), linear-gradient(155deg, #06172d, #0d3656); }
.solution-tab { border-radius: 999px; }
.solution-tab[aria-pressed="true"] { background: #092f4d; }

#servicios .card, #proceso .card {
    position: relative;
    overflow: hidden;
    min-height: 255px;
    padding: 34px;
    border-color: var(--brand-line);
    border-radius: 21px;
    box-shadow: 0 12px 40px rgba(11, 42, 66, .045);
}
#servicios .card::after, #proceso .card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -86px;
    width: 160px;
    height: 160px;
    border: 1px solid #d5e7ed;
    border-radius: 50%;
    pointer-events: none;
}
#servicios .card-icon, #proceso .card-number {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 28px;
    border-radius: 16px;
    background: #e5f6fa;
    color: #056c85;
}
#servicios .card-icon svg { width: 31px; height: 31px; }
#proceso .card-number { font-size: 18px; }
#servicios .card h3, #proceso .card h3 { font-size: 23px; line-height: 1.18; }

.diagnostic-promo, .try-section, .next-step, .closing {
    border: 1px solid #b9d6e1;
    border-radius: 26px;
    background: linear-gradient(115deg, #e5f6f9, #f4f9fb 58%, #e8f0fa);
    box-shadow: 0 18px 50px rgba(12, 54, 77, .065);
}
.next-step { color: var(--brand-ink); }
.next-step .eyebrow { color: #065d72; }
.next-step p { color: #31536a; }
.portfolio-feature-section { background: #fff; }
.portfolio-feature-visual { border-radius: 23px; }
.portfolio-feature-bottom { border-radius: 19px; }
.cta-box, .contact-band { border-radius: 25px; }

/* Páginas internas: el mismo lenguaje editorial sin tocar la UI de las demos. */
body:has(.site-header) > main { position: relative; }
body:has(.site-header) > main::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: min(560px, 52vw);
    z-index: -1;
    background: radial-gradient(circle at 83% 0%, rgba(0, 188, 212, .12), transparent 36%), linear-gradient(#f1f8fa, #f2f6f8);
    pointer-events: none;
}
body:has(.case-hero) > main::before { display: none; }
.intro h1, .hero-copy h1 { letter-spacing: -.055em; }
.intro h1 { max-width: 800px; font-size: clamp(42px, 5.5vw, 72px); line-height: 1.06; }
.intro p { line-height: 1.68; }
.intro-note { border-radius: 21px; }
.guide-card, .walkthrough-card, .story-card, .more-card { border-radius: 19px; }
.demo-app, .diagnostic-card { border-radius: 25px; box-shadow: var(--brand-shadow); }
.diagnostic-card { border-top: 4px solid var(--brand-cyan); }
.choice { border-radius: 14px; }
.choice:has(input:checked) { border-color: #078da4; background: #e8f9fb; box-shadow: inset 0 0 0 1px #078da4; }
.progress-track span { background: linear-gradient(90deg, #0759d3, #00bcd4); }
.site-footer { border-top: 1px solid var(--brand-line); }

/* Respeto a las preferencias del visitante y al espacio real de móvil. */
@media (max-width: 900px) {
    .hero { padding-block: 73px 90px; }
    .portfolio-hero-visual { transform: none; }
    .section { padding-block: 78px; }
}
@media (max-width: 600px) {
    .hero { padding-block: 58px 72px; }
    .hero h1 { font-size: clamp(42px, 10vw, 56px); }
    .portfolio-hero-visual { border-radius: 18px; }
    .section { padding-block: 66px; }
    .section-title h2, .two-columns h2 { font-size: clamp(35px, 9vw, 46px); }
    .diagnostic-promo, .try-section, .next-step, .closing { border-radius: 19px; }
    .intro h1 { font-size: clamp(39px, 9vw, 54px); }
    #servicios .card, #proceso .card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
