/* ===== Tokens ===== */
:root {
    --navy-900: #060912;
    --navy-800: #0a0e27;
    --navy-700: #0d142e;
    --navy-600: #131b3a;
    --cyan: #3dd7e0;
    --cyan-bright: #5cf0f5;
    --cyan-deep: #1aa7b0;
    --wa: #25d366;
    --wa-dark: #1da851;
    --text: #e8edff;
    --text-dim: #9aa6c9;
    --line: rgba(120, 160, 220, .14);
    --radius: 18px;
    --radius-sm: 12px;
    --maxw: 1140px;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
    --shadow-glow: 0 0 0 1px rgba(61, 215, 224, .25), 0 18px 50px -18px rgba(61, 215, 224, .45);
}

/* ===== Respaldo tipográfico con métricas igualadas =====
   El texto se pinta primero con la fuente del sistema y cambia a la web cuando
   llega. Si las dos no ocupan lo mismo, todo se recoloca en ese instante: eso
   provocaba un CLS de 0,145 en la portada (medido con y sin fuentes web: sin
   ellas el CLS era 0).
   Estos descriptores ajustan Arial para que ocupe exactamente lo mismo que
   Inter y que Space Grotesk. Los valores salen de comparar las métricas reales
   de cada archivo: ancho medio de minúsculas, ascendente y descendente.
   Cuesta cero bytes y no cambia nada visualmente. */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial');
    size-adjust: 109.56%;
    ascent-override: 88.42%;
    descent-override: 22.02%;
    line-gap-override: 0%;
}
@font-face {
    font-family: 'Space Grotesk Fallback';
    src: local('Arial');
    size-adjust: 113.76%;
    ascent-override: 86.50%;
    descent-override: 25.67%;
    line-gap-override: 0%;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif;
    background: var(--navy-800);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
/* height:auto por defecto: si una <img> lleva los atributos width y height
   (recomendable, porque reservan el espacio y evitan que la página salte al
   cargar) y el CSS solo fija el ancho, el navegador conserva el alto del
   atributo y la imagen sale deformada. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; line-height: 1.12; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.text-gradient {
    background: linear-gradient(100deg, var(--cyan-bright), var(--cyan), #8a7bff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
    display: inline-block;
    font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--cyan); margin-bottom: 14px;
}

/* ===== Buttons ===== */
.btn {
    --pad-y: .82em; --pad-x: 1.5em;
    display: inline-flex; align-items: center; gap: .55em; justify-content: center;
    padding: var(--pad-y) var(--pad-x);
    font: inherit; font-weight: 600; font-size: .98rem;
    border: 1px solid transparent; border-radius: 999px; cursor: pointer;
    transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
    background: linear-gradient(120deg, var(--wa), var(--wa-dark));
    color: #04220f; box-shadow: 0 12px 30px -12px rgba(37, 211, 102, .7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(37, 211, 102, .85); }
.btn--ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn--lg { --pad-y: 1.02em; --pad-x: 1.9em; font-size: 1.05rem; }
.btn--sm { --pad-y: .6em; --pad-x: 1.1em; font-size: .9rem; }
.ico-wa { width: 1.35em; height: 1.35em; fill: currentColor; flex: none; }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 14, 39, .72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; }
.brand__logo { width: 40px; height: 40px; border-radius: 10px; }
.brand__name { font-size: 1.18rem; font-weight: 500; color: var(--text-dim); letter-spacing: .3px; }
.brand__name strong { color: var(--text); font-weight: 700; }

.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__menu a:not(.btn) { color: var(--text-dim); font-weight: 500; font-size: .96rem; transition: color .2s; }
.nav__menu a:not(.btn):hover { color: var(--cyan); }

.nav__toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer;
    /* 44x44 es el área táctil mínima cómoda; las barras siguen midiendo 26px */
    width: 44px; height: 44px; align-items: center; justify-content: center;
}
.nav__toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: clamp(48px, 9vw, 110px) 0 70px; overflow: hidden; }
.hero__glow {
    position: absolute; inset: -20% 30% auto -10%; height: 620px;
    background: radial-gradient(closest-side, rgba(61, 215, 224, .22), transparent 70%),
                radial-gradient(closest-side, rgba(124, 92, 255, .18), transparent 70%);
    background-position: 20% 30%, 80% 10%; background-repeat: no-repeat;
    filter: blur(10px); pointer-events: none; z-index: 0;
}
.hero__inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
}
.hero__title { font-size: clamp(2.3rem, 5.2vw, 4rem); margin-bottom: 22px; letter-spacing: -.5px; }
.hero__subtitle { font-size: 1.12rem; color: var(--text-dim); max-width: 560px; margin-bottom: 32px; }
.hero__subtitle strong { color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero__stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; font-size: 1.7rem; color: var(--cyan); }
.hero__stats span { font-size: .85rem; color: var(--text-dim); }

/* Hero visual */
.hero__visual { display: flex; justify-content: center; }
.hero__card {
    position: relative; width: min(420px, 100%); aspect-ratio: 1;
    border-radius: 28px; padding: 18px;
    background: linear-gradient(160deg, rgba(61, 215, 224, .12), rgba(124, 92, 255, .08));
    border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero__bot { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.chip {
    position: absolute; background: rgba(10, 14, 39, .92); border: 1px solid var(--line);
    color: var(--text); font-size: .82rem; font-weight: 600;
    padding: 9px 14px; border-radius: 999px; box-shadow: var(--shadow);
    animation: float 4s ease-in-out infinite;
}
.chip--1 { top: 6%; left: -8%; }
.chip--2 { bottom: 16%; left: -6%; animation-delay: .8s; }
.chip--3 { top: 24%; right: -7%; animation-delay: 1.4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ===== Trust strip ===== */
.trust { border-block: 1px solid var(--line); background: var(--navy-700); }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; padding-block: 26px; }
.trust__inner > span { color: var(--text-dim); font-size: .9rem; }
.trust__list { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.trust__list li { font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; font-weight: 600; color: var(--text); opacity: .72; letter-spacing: .3px; }

/* ===== Sections ===== */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section--alt { background: var(--navy-700); }
.section__head { max-width: 640px; margin: 0 auto clamp(38px, 5vw, 60px); text-align: center; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.section__head p { color: var(--text-dim); font-size: 1.05rem; }

/* Grid + cards */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
    background: linear-gradient(180deg, var(--navy-600), var(--navy-700));
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(61, 215, 224, .45); box-shadow: var(--shadow-glow); }
.card__icon {
    width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.55rem;
    border-radius: 14px; margin-bottom: 18px;
    background: rgba(61, 215, 224, .1); border: 1px solid rgba(61, 215, 224, .25);
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: .98rem; }

/* ===== Beneficios ===== */
.benefits { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.benefits__media { display: flex; justify-content: center; }
.benefits__img {
    width: min(380px, 100%); border-radius: 24px; border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: linear-gradient(160deg, rgba(61, 215, 224, .1), transparent);
}
.benefits__content h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.benefits__lead { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 26px; }
.checklist { display: grid; gap: 14px; margin-bottom: 32px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; }
.checklist span {
    flex: none; width: 24px; height: 24px; display: grid; place-items: center; margin-top: 2px;
    border-radius: 50%; background: rgba(37, 211, 102, .15); color: var(--wa);
    font-size: .8rem; font-weight: 700;
}

/* ===== Proceso ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
    position: relative; padding: 30px 24px; border-radius: var(--radius);
    background: var(--navy-700); border: 1px solid var(--line);
}
.step__num {
    display: inline-block; font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; font-weight: 700;
    font-size: 1.5rem; color: var(--cyan); margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: .96rem; }

/* ===== CTA ===== */
.cta { padding: clamp(64px, 9vw, 110px) 0; }
.cta__inner {
    text-align: center; max-width: 760px; margin-inline: auto;
    padding: clamp(40px, 6vw, 70px) 30px; border-radius: 26px;
    background:
        radial-gradient(closest-side at 50% 0%, rgba(61, 215, 224, .25), transparent 70%),
        linear-gradient(160deg, var(--navy-600), var(--navy-700));
    border: 1px solid rgba(61, 215, 224, .3); box-shadow: var(--shadow);
}
.cta__inner h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta__inner p { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 30px; }
.cta__note { display: block; margin-top: 18px; font-size: .9rem; color: var(--text-dim); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); background: var(--navy-900); padding: 50px 0 36px; }
.footer__inner { display: grid; justify-items: center; gap: 16px; text-align: center; }
.footer__tag { color: var(--text-dim); max-width: 420px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; }
.footer__links a { color: var(--text-dim); font-size: .95rem; transition: color .2s; }
.footer__links a:hover { color: var(--cyan); }
.footer__copy { color: var(--text-dim); font-size: .85rem; opacity: .75; }

/* ===== Floating WhatsApp ===== */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 60;
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(120deg, var(--wa), var(--wa-dark)); color: #04220f;
    padding: 13px 18px 13px 14px; border-radius: 999px; font-weight: 700; font-size: .95rem;
    box-shadow: 0 16px 36px -12px rgba(37, 211, 102, .75);
    transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float::after {
    content: ""; position: absolute; inset: -4px; border-radius: 999px;
    border: 2px solid rgba(37, 211, 102, .5); animation: pulse 2.2s ease-out infinite; z-index: -1;
}
@keyframes pulse { 0% { opacity: .8; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .nav__toggle { display: flex; }
    .nav__menu {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 6px;
        background: rgba(10, 14, 39, .98); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line); padding: 14px 22px 22px;
        transform: translateY(-130%); transition: transform .32s ease; visibility: hidden;
    }
    .nav__menu.is-open { transform: none; visibility: visible; }
    .nav__menu li { width: 100%; }
    .nav__menu a:not(.btn) { display: block; padding: 10px 4px; }
    .nav__menu .btn { width: 100%; margin-top: 6px; }

    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__subtitle { margin-inline: auto; }
    .hero__actions, .hero__stats { justify-content: center; }
    .hero__visual { order: -1; }
    .hero__card { width: min(330px, 80%); }

    .grid--3 { grid-template-columns: 1fr 1fr; }
    .benefits { grid-template-columns: 1fr; gap: 36px; }
    .benefits__content { text-align: center; }
    .checklist li { text-align: left; }
    .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .grid--3, .steps { grid-template-columns: 1fr; }
    .hero__stats { gap: 22px; }
    .wa-float__txt { display: none; }
    .wa-float { padding: 14px; }
    .chip--1 { left: 0; } .chip--2 { left: 2%; } .chip--3 { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ===== Experience / real clients ===== */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.experience-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px 25px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(19, 27, 58, .96), rgba(13, 20, 46, .96));
    box-shadow: 0 16px 42px -30px rgba(0, 0, 0, .9);
}
.experience-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.project-type,
.project-status,
.project-card__kind,
.private-label {
    font-size: .78rem;
    font-weight: 600;
}
.project-type,
.project-card__kind {
    color: var(--cyan);
    background: rgba(61, 215, 224, .08);
    border: 1px solid rgba(61, 215, 224, .22);
    border-radius: 999px;
    padding: 6px 10px;
}
.project-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-dim);
}
.project-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wa);
    box-shadow: 0 0 0 4px rgba(37, 211, 102, .1);
}
.experience-card h3 {
    font-size: 1.35rem;
    margin-bottom: 7px;
}
.experience-card__subtitle {
    color: var(--text-dim);
    margin-bottom: 18px;
    font-size: .95rem;
}
.project-list {
    display: grid;
    gap: 9px;
    margin-bottom: 22px;
}
.project-list li {
    position: relative;
    padding-left: 17px;
    color: var(--text-dim);
    font-size: .93rem;
}
.project-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .66em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
}
.metric-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 17px;
}
.metric-row span {
    flex: 1 1 120px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
    color: var(--text-dim);
    font-size: .82rem;
}
.metric-row strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text);
    font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
    font-size: 1rem;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-list span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--line);
    color: var(--text-dim);
    font-size: .76rem;
    font-weight: 600;
}

/* ===== Portfolio ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--navy-700);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(61, 215, 224, .42);
    box-shadow: var(--shadow-glow);
}
.project-card__visual {
    min-height: 145px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background:
        radial-gradient(circle at 25% 30%, rgba(61, 215, 224, .22), transparent 36%),
        linear-gradient(150deg, rgba(61, 215, 224, .09), rgba(124, 92, 255, .07));
    border-bottom: 1px solid var(--line);
}
.project-card--app .project-card__visual {
    background:
        radial-gradient(circle at 25% 30%, rgba(138, 123, 255, .28), transparent 36%),
        linear-gradient(150deg, rgba(124, 92, 255, .12), rgba(61, 215, 224, .07));
}
.project-card--automation .project-card__visual {
    background:
        radial-gradient(circle at 25% 30%, rgba(37, 211, 102, .22), transparent 36%),
        linear-gradient(150deg, rgba(37, 211, 102, .09), rgba(61, 215, 224, .06));
}
.project-card--web .project-card__visual {
    background:
        radial-gradient(circle at 25% 30%, rgba(255, 121, 198, .18), transparent 36%),
        linear-gradient(150deg, rgba(255, 121, 198, .07), rgba(124, 92, 255, .08));
}
.project-card__icon {
    align-self: center;
    font-size: 3rem;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .25));
}
.project-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 23px 22px 21px;
}
.project-card__body h3 {
    font-size: 1.22rem;
    margin-bottom: 9px;
}
.project-card__body > p {
    color: var(--text-dim);
    font-size: .93rem;
    margin-bottom: 18px;
}
.project-card__body .tag-list {
    margin-bottom: 18px;
}
.project-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    margin-top: auto;
    padding-top: 4px;
}
.text-link {
    color: var(--cyan);
    font-weight: 600;
    font-size: .91rem;
    transition: color .2s ease, transform .2s ease;
}
.text-link:hover {
    color: var(--cyan-bright);
}
/* Los enlaces de acción («Ver más →») medían 18px de alto: por debajo del
   mínimo táctil. No van dentro de un párrafo, son llamadas sueltas, así que se
   les da altura propia sin alterar el ritmo del texto. */
.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
}
.private-label {
    color: var(--text-dim);
}

/* ===== Small refinements for the updated content ===== */
.hero__stats strong { white-space: nowrap; }
.benefits__content .eyebrow,
.cta__inner .eyebrow { margin-bottom: 12px; }

@media (max-width: 980px) {
    .experience-grid,
    .portfolio-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
    .experience-grid,
    .portfolio-grid { grid-template-columns: 1fr; }
    .experience-card__top { align-items: flex-start; }
    .project-card__visual { min-height: 125px; }
}

/* ===== Páginas de servicio ===== */
/* Componentes propios de las páginas por vertical (/sistemas-transporte/ y
   similares). Reutilizan los tokens y las clases de la portada; aquí solo va
   lo que no existía. */

.breadcrumb {
    padding-top: 22px;
    font-size: .88rem;
    color: var(--text-dim);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--line); }
.breadcrumb li:last-child::after { content: none; }
.breadcrumb a { color: var(--text-dim); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current] { color: var(--text); }

.page-hero { padding: 40px 0 56px; position: relative; }
.page-hero__inner { max-width: 760px; }
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.1;
    margin-bottom: 18px;
}
.page-hero__lead {
    color: var(--text-dim);
    font-size: 1.12rem;
    margin-bottom: 28px;
}
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Captura del sistema, presentada como una ventana */
.shot {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy-700);
    box-shadow: var(--shadow);
}
.shot__bar {
    display: flex; align-items: center; gap: 7px;
    padding: 11px 15px;
    border-bottom: 1px solid var(--line);
    background: var(--navy-600);
}
.shot__bar i {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--line);
    flex: none;
}
/* height:auto es imprescindible, no decorativo: las etiquetas <img> llevan los
   atributos width y height reales para que el navegador reserve el espacio y
   la página no salte al cargar. Sin height:auto, el CSS fija el ancho al 100%
   pero el alto se queda en el valor del atributo, y la captura sale estirada o
   aplastada. */
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
    padding: 13px 16px;
    font-size: .87rem;
    color: var(--text-dim);
    border-top: 1px solid var(--line);
}

/* Dos columnas: texto y apoyo visual */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px;
    align-items: center;
}
.split--wide { grid-template-columns: 1.15fr .85fr; }

/* Problema -> solución */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contrast__col {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    background: var(--navy-700);
}
.contrast__col h3 { font-size: 1.12rem; margin-bottom: 14px; }
.contrast__col--after { border-color: rgba(61, 215, 224, .3); }
.contrast__col--after h3 { color: var(--cyan); }
.contrast__col ul { display: flex; flex-direction: column; gap: 11px; }
.contrast__col li {
    color: var(--text-dim);
    font-size: .96rem;
    padding-left: 22px;
    position: relative;
}
.contrast__col--before li::before { content: "✕"; position: absolute; left: 0; color: #e0708a; }
.contrast__col--after  li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); }

/* Enlaces entre servicios, al pie de cada página */
.siblings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.siblings a {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: border-color .2s ease, transform .2s ease;
}
.siblings a:hover { border-color: var(--cyan); transform: translateY(-3px); }
.siblings strong { display: block; margin-bottom: 6px; }
.siblings span { color: var(--text-dim); font-size: .9rem; }

@media (max-width: 900px) {
    .split, .split--wide, .contrast { grid-template-columns: 1fr; gap: 28px; }
    .siblings { grid-template-columns: 1fr; }
}

/* Captura vertical de móvil: sin esto, una imagen 1080x2243 ocuparía toda la
   página. Se limita el ancho y se centra, como la pantalla de un teléfono. */
.shot--phone {
    max-width: 330px;
    margin-inline: auto;
    border-radius: 28px;
}
.shot--phone .shot__bar { display: none; }
.shot--phone img { border-radius: 27px 27px 0 0; }

/* Bloque de caso real: la lista de tecnologías y las métricas apiladas */
.case-tags { margin-top: 22px; }
.metric-row--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

/* ===== Preguntas frecuentes ===== */
/* Se usa <details> nativo en vez de JavaScript: funciona sin scripts, es
   accesible por teclado de serie y Google puede leer el contenido aunque esté
   plegado, que es lo que necesita el marcado FAQPage. */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--navy-700);
    overflow: hidden;
}
.faq summary {
    padding: 18px 22px;
    font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
    font-weight: 600;
    font-size: 1.02rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    color: var(--cyan);
    font-size: 1.5rem;
    line-height: 1;
    flex: none;
    transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--cyan); }
.faq summary:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: -2px;
}
.faq details p {
    padding: 0 22px 20px;
    color: var(--text-dim);
    max-width: 68ch;
}

/* ===== Sistema de iconos =====
   Sustituyen a los emojis, que cambiaban de aspecto según el sistema operativo
   y en Windows llegaban a no renderizar (la bandera 🇵🇪 salía como «PE»).
   El trazo se hereda del color del texto y el detalle en cian se aplica con la
   clase .ac dentro de cada símbolo, replicando la única parte rellena del logo:
   los ojos del robot. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
    width: 1.5em;
    height: 1.5em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -.3em;
}
.ico .ac { stroke: var(--cyan); }
.ico circle.ac { fill: var(--cyan); stroke: none; }

/* En las tarjetas el icono manda: tamaño grande y cian, como el .card__icon
   que reemplaza. */
.card__icon .ico,
.ico--card {
    width: 30px;
    height: 30px;
    stroke: var(--cyan);
    vertical-align: 0;
}
.card__icon .ico .ac,
.ico--card .ac { stroke: var(--cyan-bright); }
.card__icon .ico circle.ac,
.ico--card circle.ac { fill: var(--cyan-bright); }

/* En el eyebrow y en las etiquetas pequeñas acompaña al texto */
.eyebrow .ico,
.chip .ico,
.project-card__kind .ico { width: 1.15em; height: 1.15em; vertical-align: -.22em; }

/* Marca de verificación de las listas */
.checklist .ico { width: 1.05em; height: 1.05em; stroke: var(--cyan); vertical-align: -.15em; }

/* Icono grande de las tarjetas de proyecto.
   Va en blanco y no en cian: cada tarjeta tiene su propio degradado de fondo
   (violeta, verde, cian según el tipo de proyecto) y un icono cian se perdía
   contra varios de ellos. El blanco contrasta con todos, y el detalle .ac se
   mantiene en cian para no romper el sistema. */
.project-card__icon .ico {
    width: 40px;
    height: 40px;
    stroke: var(--text);
}
.project-card__icon .ico .ac { stroke: var(--cyan-bright); }
.project-card__icon .ico circle.ac { fill: var(--cyan-bright); stroke: none; }

/* Enlaces entre servicios: el icono va antes del nombre */
.siblings strong .ico { width: 1.1em; height: 1.1em; vertical-align: -.18em; margin-right: .35em; stroke: var(--cyan); }
