/* ==========================================================================
   Home reformulada — secciones nuevas (se carga después de styles-minimalista-sobrio.css)
   ========================================================================== */

/* Confianza bajo los botones del hero */
.hero-trust {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem;
    margin: 1.6rem auto 0; padding: 0; list-style: none;
    font-size: .9rem; color: var(--text-muted);
}
.hero-trust li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust i { color: var(--accent-orange); font-size: 1.1rem; }

/* Franja de clientes */
.clients-strip { padding: 2.5rem 0 1rem; }
.clients-strip-label {
    text-align: center; margin: 0 0 1.1rem;
    font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-muted);
}
.clients-strip-list {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
    margin: 0; padding: 0; list-style: none;
}
.clients-strip-list li {
    padding: .5rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    font-size: .88rem; font-weight: 600; color: var(--text-main);
}

/* Servicios en 3 grupos */
.svc-groups-section { padding: clamp(4rem, 7vw, 6rem) 0; }
.svc-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.svc-group {
    display: flex; flex-direction: column;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    overflow: hidden;
    transition: var(--transition-smooth);
}
.svc-group:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.svc-group--featured { border-color: #1d2126; box-shadow: 0 24px 50px -30px var(--accent-orange-glow); background: #1d2126; }
.svc-group--featured .svc-group-body h3 { color: #fff; }
.svc-group--featured .svc-group-body > p { color: rgba(255, 255, 255, .68); }
.svc-group--featured .card-minimal-icon { background: rgba(255, 94, 26, .14); border-color: rgba(255, 94, 26, .45); }
.svc-group--featured .card-minimal-icon i { color: var(--accent-orange); }
.svc-group--featured .svc-group-links, .svc-group--featured .svc-group-links li { border-color: rgba(255, 255, 255, .12); }
.svc-group--featured .svc-group-links a { color: #fff; }
.svc-group--featured .svc-group-links a:hover { color: var(--accent-orange); }
.svc-group-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-elevated); }
.svc-group-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-group--featured .svc-group-media img { object-position: center 30%; }
.svc-group-new {
    position: absolute; top: 14px; left: 14px;
    padding: .25rem .7rem; border-radius: var(--radius-pill);
    background: var(--accent-orange); color: #fff;
    box-shadow: 0 6px 18px -6px rgba(255, 94, 26, .6);
    font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.svc-group-body { display: flex; flex-direction: column; gap: .6rem; padding: 1.6rem 1.6rem 1.8rem; flex: 1; }
.svc-group-body .card-minimal-icon { margin-bottom: .2rem; }
.svc-group-body h3 { margin: 0; font-size: 1.35rem; color: var(--text-main); letter-spacing: -.01em; }
.svc-group-body > p { margin: 0 0 .4rem; color: var(--text-muted); line-height: 1.6; font-size: .95rem; }
.svc-group-links { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--border-subtle); }
.svc-group-links li { border-bottom: 1px solid var(--border-subtle); }
.svc-group-links a {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: .8rem 0;
    font-size: .95rem; font-weight: 600; color: var(--text-main); text-decoration: none;
    transition: color .25s;
}
.svc-group-links a i { color: var(--accent-orange); transition: transform .25s; }
.svc-group-links a:hover { color: var(--accent-orange); }
.svc-group-links a:hover i { transform: translateX(4px); }

/* Proceso en 4 pasos */
.process-section { padding: clamp(4rem, 7vw, 6rem) 0; }
.process-steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
    margin: 0; padding: 0; list-style: none;
    counter-reset: none;
}
.process-steps li {
    position: relative;
    padding: 1.8rem 1.5rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}
.process-num { font-size: 2.2rem; font-weight: 800; color: var(--accent-orange); letter-spacing: -.03em; }
.process-steps h3 { margin: .6rem 0 .4rem; font-size: 1.15rem; color: var(--text-main); }
.process-steps p { margin: 0; color: var(--text-muted); line-height: 1.55; font-size: .95rem; }

/* Nota bajo las preguntas frecuentes */
.faq-more { text-align: center; margin: 2rem auto 0; color: var(--text-muted); }
.faq-more a { color: var(--accent-orange); font-weight: 600; }

@media (max-width: 1024px) {
    .svc-groups { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .process-steps { grid-template-columns: 1fr; }
    .hero-trust { flex-direction: column; align-items: center; gap: .5rem; }
}

/* Franja de clientes con logos (blancos sobre oscuro) */
.clients-strip.lp-logos { background: var(--bg-dark); padding: 2.6rem 0; margin-top: 1.5rem; }
.clients-strip.lp-logos .clients-strip-label { color: rgba(255, 255, 255, .55); margin-bottom: 1.6rem; }
.lp-logos ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.8rem clamp(1.8rem, 4.5vw, 3.6rem); max-width: 1080px; margin: 0 auto; padding: 0; list-style: none; }
.lp-logos img { display: block; height: 48px; width: auto; max-width: 150px; object-fit: contain; filter: brightness(0) invert(1); opacity: .82; transition: opacity .25s; }
.lp-logos img:hover { opacity: 1; }
.lp-logos .lp-logo-wide { height: 26px; max-width: 190px; }
.lp-logos img.lp-logo-gray { filter: grayscale(1) brightness(1.7); }
.lp-logos-more { text-align: center; margin: 1.4rem 0 0; font-size: .85rem; color: rgba(255, 255, 255, .6); }
@media (max-width: 640px) {
    .lp-logos img { height: 38px; max-width: 120px; }
    .lp-logos .lp-logo-wide { height: 20px; max-width: 150px; }
}
/* Los 9 logos en una sola fila en escritorio */
.lp-logos ul { gap: 1.6rem 2.1rem; max-width: none; }
.lp-logos img { height: 44px; max-width: 135px; }
.lp-logos .lp-logo-wide { height: 23px; max-width: 175px; }
.lp-logos img.lp-logo-gray { filter: grayscale(1) brightness(2.1) contrast(1.15); }
@media (max-width: 640px) {
    .lp-logos ul { gap: 1.3rem 1.6rem; }
    .lp-logos img { height: 34px; max-width: 105px; }
    .lp-logos .lp-logo-wide { height: 18px; max-width: 130px; }
}

/* Franja solo de logos, en grilla pareja (v-grid) */
.lp-logos { padding: 2.8rem 0; }
.lp-logos ul.lp-logos-grid {
    display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 2rem 1.75rem; align-items: center; justify-items: center;
    max-width: 1140px; margin: 0 auto; padding: 0; list-style: none;
}
.lp-logos-grid li { width: 100%; height: 64px; display: flex; align-items: center; justify-content: center; }
.lp-logos .lp-logos-grid img { width: auto; max-width: 100%; height: 46px; object-fit: contain; }
.lp-logos .lp-logos-grid img.lp-logo-wide { height: 24px; }
.lp-logos .lp-logos-grid img.lp-logo-mid { height: 36px; }
@media (max-width: 1024px) {
    .lp-logos ul.lp-logos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2rem 2rem; max-width: 720px; }
}
@media (max-width: 640px) {
    .lp-logos { padding: 2.2rem 0; }
    .lp-logos ul.lp-logos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1.5rem; max-width: 340px; }
    .lp-logos-grid li { height: 54px; }
    .lp-logos .lp-logos-grid img { height: 40px; }
    .lp-logos .lp-logos-grid img.lp-logo-wide { height: 20px; }
    .lp-logos .lp-logos-grid img.lp-logo-mid { height: 30px; }
}
.clients-strip.lp-logos { margin-top: 1.5rem; }
@media (max-width: 640px) { .lp-logos .lp-logos-grid img.lp-logo-wide { height: 16px; } }

/* Título y países sobre la grilla de logos */
.lp-logos .lp-logos-title {
    margin: 0 0 .9rem; text-align: center;
    font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}
.lp-logos ul.lp-logos-countries { display: flex; justify-content: center; gap: .6rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.lp-logos-countries li {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .38rem .85rem .38rem .55rem; border-radius: 9999px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
    font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .88);
}
.lp-logos .lp-logos-countries img {
    display: block; width: 20px; height: 14px; max-width: none; border-radius: 3px;
    object-fit: cover; filter: none; opacity: 1; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}

/* Título y países FUERA de la franja oscura, sobre el fondo claro */
.lp-trust-head { text-align: center; padding: 2.6rem 1rem 1.3rem; }
.lp-trust-title {
    margin: 0 0 .9rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--text-muted);
}
.lp-trust-countries { display: flex; justify-content: center; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.lp-trust-countries li {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem .9rem .4rem .6rem; border-radius: 9999px;
    background: var(--bg-surface); border: 1px solid var(--border-subtle);
    box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .25);
    font-size: .88rem; font-weight: 700; color: var(--text-main);
}
.lp-trust-countries img { display: block; width: 20px; height: 14px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.clients-strip.lp-logos { margin-top: 0; }

/* Logos en movimiento: cinta continua (la activa logos-marquee.js) */
.lp-logos.is-marquee > .container {
    max-width: none; width: 100%; padding: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.lp-logos.is-marquee ul.lp-logos-grid {
    display: flex; flex-wrap: nowrap; gap: 0;
    width: max-content; max-width: none; margin: 0;
    animation: lpLogosMarquee 32s linear infinite;
}
.lp-logos.is-marquee .lp-logos-grid li { flex: none; width: 190px; height: 64px; padding: 0 1.6rem; }
.lp-logos.is-marquee:hover ul.lp-logos-grid { animation-play-state: paused; }
@keyframes lpLogosMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) {
    .lp-logos.is-marquee ul.lp-logos-grid { animation-duration: 24s; }
    .lp-logos.is-marquee .lp-logos-grid li { width: 150px; height: 54px; padding: 0 1.1rem; }
}

/* Reseñas de Google en Testimonios */
.testimonials-section .g-badge { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--border-subtle); background: var(--bg-surface); color: var(--text-main); font-size: .92rem; text-decoration: none; transition: border-color .2s; }
.testimonials-section .g-badge:hover { border-color: #ff5e1a; }
.testimonials-section .g-badge-stars { color: #f5b301; letter-spacing: 1px; }
.testimonials-section .g-badge-count { color: var(--text-muted); }
.g-review-src { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
@media (max-width: 480px) { .testimonials-section .g-badge { flex-wrap: wrap; justify-content: center; } }

/* ===== Sistema de gestión (demo en vivo) ===== */
.sys-section .sys-lead { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; margin: .5rem auto 0; line-height: 1.6; }
.sys-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: 2.5rem; }
.sys-showcase { position: relative; padding-bottom: 2.5rem; }
.sys-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.sys-tabs button { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--border-subtle); background: var(--bg-surface); color: var(--text-muted); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.sys-tabs button:hover { color: var(--text-main); }
.sys-tabs button[aria-selected="true"] { background: var(--accent-orange); border-color: var(--accent-orange); color: #fff; }
.sys-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--border-subtle); background: var(--bg-surface); box-shadow: 0 30px 60px -30px rgba(16, 27, 36, .35); }
.sys-frame-bar { display: flex; align-items: center; gap: 6px; padding: .55rem .8rem; background: var(--bg-canvas); border-bottom: 1px solid var(--border-subtle); }
.sys-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e4e4e7; }
.sys-frame-bar i:nth-child(1) { background: #ff5f57; } .sys-frame-bar i:nth-child(2) { background: #febc2e; } .sys-frame-bar i:nth-child(3) { background: #28c840; }
.sys-frame-bar span { margin-left: .6rem; font-size: .75rem; color: var(--text-muted); }
.sys-screens { position: relative; aspect-ratio: 16 / 10; }
.sys-screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .35s ease; }
.sys-screens img.is-on { opacity: 1; }
.sys-phone { position: absolute; right: -14px; bottom: 0; width: 26%; max-width: 170px; height: auto; border-radius: 22px; border: 6px solid #101b24; box-shadow: 0 24px 48px -18px rgba(16, 27, 36, .5); background: #101b24; }
.sys-features { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 1rem; }
.sys-features li { display: flex; gap: .85rem; align-items: flex-start; }
.sys-features li > i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-orange-light); color: var(--accent-orange); font-size: 1.3rem; }
.sys-features strong { display: block; color: var(--text-main); font-size: .98rem; }
.sys-features span { display: block; color: var(--text-muted); font-size: .9rem; line-height: 1.5; margin-top: .1rem; }
.sys-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.sys-note { margin: 1rem 0 0; font-size: .82rem; color: var(--text-muted); line-height: 1.5; }
.sys-note i { color: var(--accent-orange); }
@media (max-width: 960px) {
    .sys-grid { grid-template-columns: minmax(0, 1fr); }
    .sys-phone { right: 6px; width: 24%; }
}
@media (max-width: 560px) {
    .sys-tabs button { padding: .45rem .7rem; font-size: .8rem; }
    .sys-phone { display: none; }
    .sys-showcase { padding-bottom: 0; }
    .sys-actions a { width: 100%; justify-content: center; }
}
.sys-cta-top { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.4rem; }
.sys-cta-hint { margin: .7rem 0 0; font-size: .82rem; color: var(--text-muted); }
.sys-cta-hint i { color: var(--accent-orange); }
@media (max-width: 560px) { .sys-cta-top a { width: 100%; justify-content: center; } }

/* Sin línea divisoria entre Proyectos y el Sistema de gestión */
.works-section { border-bottom: 0; }
.svc-group--featured .svc-group-media img { object-position: center; }

/* Espacio arriba para que el menú fijo no tape el título al saltar desde "Apps a medida" */
.sys-section { padding: 6rem 0 5rem; scroll-margin-top: 10px; }
@media (max-width: 640px) { .sys-section { padding: 5.5rem 0 3.5rem; } }

/* Confianza del hero: chips con ícono (rediseño) */
.hero-trust { gap: .6rem; margin-top: 1.8rem; }
.hero-trust li {
    gap: .55rem; padding: .4rem .95rem .4rem .45rem; border-radius: 999px;
    background: var(--bg-surface); border: 1px solid var(--border-subtle);
    color: var(--text-main); font-weight: 600; font-size: .86rem;
    box-shadow: 0 6px 18px -12px rgba(16, 27, 36, .25);
}
.hero-trust li i {
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent-orange-light); color: var(--accent-orange); font-size: .95rem;
}
@media (max-width: 640px) {
    .hero-trust { flex-direction: row; justify-content: center; gap: .45rem; }
    .hero-trust li { font-size: .8rem; padding: .35rem .8rem .35rem .38rem; }
    .hero-trust li i { width: 24px; height: 24px; font-size: .85rem; }
}

/* Más aire entre los chips del hero y la imagen principal */
.hero-trust { margin-bottom: 3rem; }
@media (max-width: 640px) { .hero-trust { margin-bottom: 2rem; } }

/* Anclas del menú: todas frenan igual, justo debajo de la barra flotante */
#servicios, #proyectos, #sistema, #audiovisual, #diseno, #faq { scroll-margin-top: 16px; }
