/* Secciones con diseño estilo Apple compartidas por la portada, las páginas de país
   y las landings de servicio: testimonios (includes/testimonials_section.php) y
   preguntas frecuentes. Las reseñas de Google traen su CSS en includes/google_reviews.php. */

/* ---------- FAQ (estilo Apple: lista limpia con separadores, nov 2026) ---------- */
.faq-section {
    background: #fff;
    padding: 96px 0;
    position: relative;
}

.faq-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.faq-title {
    color: #1d1d1f;
    font-size: clamp(1.8rem, 3.4vw, 2.75rem);
    line-height: 1.1;
    margin-bottom: 14px;
}

.faq-subtitle {
    color: #6e6e73;
    font-size: 1.08rem;
    line-height: 1.6;
    font-weight: 400;
}

.faq-accordion-wrapper {
    max-width: 860px;
    margin: 0 auto;
    border-top: 1px solid #d2d2d7;
}

.faq-accordion-item {
    border-bottom: 1px solid #d2d2d7;
}

.faq-accordion-header {
    padding: 26px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    cursor: pointer;
    user-select: none;
}

.faq-accordion-question {
    color: #1d1d1f;
    font-weight: 600 !important;
    font-size: 1.22rem;
    line-height: 1.35;
    letter-spacing: -0.015em;
    margin: 0;
    transition: color .2s ease;
}
.faq-accordion-header:hover .faq-accordion-question { color: #6e6e73; }

.faq-question-icon { display: none; }

/* Ícono "+" que gira a "×" al abrir. */
.faq-accordion-icon {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform .3s ease;
}
.faq-accordion-icon i { display: none; }
.faq-accordion-icon::before,
.faq-accordion-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    margin: -1px 0 0 -8px;
    border-radius: 2px;
    background: #1d1d1f;
}
.faq-accordion-icon::after { transform: rotate(90deg); }
.faq-accordion-item.active .faq-accordion-icon { transform: rotate(45deg); }

.faq-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    padding: 0 48px 0 4px;
}

.faq-accordion-item.active .faq-accordion-body {
    max-height: 600px;
    transition: max-height 0.4s cubic-bezier(0.5, 0, 0.1, 1);
}

.faq-accordion-answer {
    color: #6e6e73;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    padding-bottom: 28px;
}

@media (max-width: 767px) {
    .faq-section { padding: 64px 0; }
    .faq-header { padding-bottom: 28px; }
    .faq-accordion-header { padding: 22px 0; gap: 16px; }
    .faq-accordion-question { font-size: 1.06rem; }
    .faq-accordion-body { padding: 0 32px 0 0; }
    .faq-accordion-answer { font-size: 1rem; padding-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .faq-accordion-icon, .faq-accordion-body { transition: none; }
}

/* ===== Casos de éxito (rediseño estilo Apple, nov 2026) ===== */
.tst-area { padding: 96px 0 !important; }
.tst-head { margin-bottom: 48px; }
.tst-eyebrow { display: inline-block; color: #b45cff; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.tst-area .tst-heading { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.75rem); line-height: 1.1; margin: 0; }
.tst-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1080px; margin: 0 auto; }
.tst-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
  margin: 0; padding: 44px 40px 36px;
  background: #121126; border: 1px solid rgba(255,255,255,.06); border-radius: 28px;
}
.tst-quote {
  margin: 0; padding: 0; border: 0;
  color: #f2f2f7; font-size: 1.22rem; font-weight: 500; line-height: 1.6; letter-spacing: -0.012em;
  font-style: normal;
}
.tst-author { display: flex; align-items: center; gap: 14px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.tst-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.tst-avatar--logo { background: #fff; object-fit: contain; }
.tst-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.tst-who strong { color: #fff; font-size: .98rem; font-weight: 600; }
.tst-who > span { color: rgba(255,255,255,.55); font-size: .88rem; }
.tst-who a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.2); }
.tst-who a:hover { color: #fff; }
.tst-country { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.6); font-size: .82rem; white-space: nowrap; }
.tst-country img { border-radius: 2px; }
@media (max-width: 991px) {
  .tst-grid { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 575px) {
  .tst-area { padding: 64px 0 !important; }
  .tst-head { margin-bottom: 32px; }
  .tst-card { padding: 30px 24px 26px; border-radius: 22px; gap: 28px; }
  .tst-quote { font-size: 1.08rem; }
}
.tst-head { margin-bottom: 0; padding-bottom: 52px; }
@media (max-width: 575px) { .tst-head { padding-bottom: 32px; } }
.tst-card { border: 1px solid rgba(255,255,255,.16); background: #131229; }
.tst-author { border-top-color: rgba(255,255,255,.12); }
/* Paleta neutra estilo Apple (modo oscuro). */
.testimonials-section.tst-area { background: #0e0d21 !important; } /* mismo azul noche del resto de la landing */
.tst-area .tst-heading { color: #f5f5f7; }
.tst-card { background: #18172e; border: 1px solid rgba(255,255,255,.14); }
.tst-quote { color: #f5f5f7; }
.tst-author { border-top-color: rgba(255,255,255,.12); }
.tst-who strong { color: #f5f5f7; }
.tst-who > span, .tst-country { color: #a1a1a6; }
.tst-who a { border-bottom-color: rgba(161,161,166,.4); }

/* Franja "Nuestros Servicios / Nuestra Cobertura": mismo azul noche, píldoras de vidrio. */
html body .pseo-cluster-section { background: #0e0d21 !important; background-image: none !important; border-top: 1px solid rgba(255,255,255,.06); }
html body .cluster-card { background: transparent !important; border: 0 !important; box-shadow: none !important; }
html body .cluster-card h3 { color: #f5f5f7 !important; font-size: 1.05rem !important; font-weight: 600 !important; letter-spacing: -0.01em; }
html body .cluster-card h3 i { display: none; }
html body .cluster-pill {
  background: rgba(255,255,255,.06) !important; background-image: none !important;
  border: 1px solid rgba(255,255,255,.12) !important; border-radius: 980px !important;
  color: rgba(255,255,255,.78) !important; font-weight: 500 !important; box-shadow: none !important;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease !important;
}
html body .cluster-pill:hover { background: rgba(255,255,255,.14) !important; color: #fff !important; border-color: rgba(255,255,255,.22) !important; transform: none !important; }

/* Flujo de trabajo: colores de marca, línea fina, botón en cápsula; en celular sin foto de fondo. */
html body #workflow .step-icon-circle { background: #a500ff; width: 48px; height: 48px; font-size: 22px; box-shadow: 0 0 0 6px #fff; }
html body #workflow .step-number { color: #a500ff; font-size: .8rem; font-weight: 700; letter-spacing: .12em; }
html body #workflow .step-content p { color: #6e6e73; }
html body #workflow .step h2 { color: #1d1d1f; }
html body #workflow .steps-container::before { border-left: 2px solid #e5e5ea; }
html body #workflow .flow-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border-radius: 980px; background: #a500ff !important; background-image: none !important; color: #fff !important;
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; box-shadow: none !important; border: 0 !important;
  transition: background-color .2s ease, transform .15s ease;
}
html body #workflow .flow-btn:hover { background: #9100e0 !important; }
html body #workflow .flow-btn:active { transform: scale(.98); }
@media (max-width: 991px) {
  html body #workflow .about-background { background-image: none !important; background-color: #fff; }
  html body #workflow .about-image { display: none; }
}

/* ===== Flujo de trabajo: ilustración SVG + pasos (includes/workflow_section.php) ===== */
.wf-area { background: #fff; padding: 96px 0; }
.wf-head { max-width: 680px; margin: 0 auto; padding-bottom: 48px; }
.wf-area .wf-heading { color: #1d1d1f; font-size: var(--fs-h2, 2.75rem); line-height: 1.1; margin: 0 0 14px; }
.wf-lead { color: #6e6e73; font-size: var(--fs-lead, 1.125rem); line-height: 1.6; margin: 0; }
.wf-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; max-width: 1140px; margin: 0 auto; }
.wf-art { margin: 0; }
.wf-art svg { display: block; width: 100%; height: auto; }
.wf-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.wf-steps::before { content: ""; position: absolute; left: 25px; top: 30px; bottom: 96px; width: 2px; background: #e5e5ea; }
.wf-step { position: relative; display: flex; gap: 20px; align-items: flex-start; padding-bottom: 30px; }
.wf-icon { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; color: #fff; box-shadow: 0 0 0 6px #fff; }
.wf-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wf-icon--0, .wf-icon--1, .wf-icon--2 { background: #a500ff; } /* un solo color de marca para los 3 pasos */
.wf-num { display: block; color: #a500ff; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 2px 0 4px; }
.wf-area .wf-title { color: #1d1d1f; font-size: var(--fs-h3, 1.25rem) !important; font-weight: 700 !important; line-height: 1.3; letter-spacing: -0.015em; margin: 0 0 8px; }
.wf-text { color: #6e6e73; font-size: var(--fs-body, 1.0625rem); line-height: 1.65; margin: 0; }
.wf-step--cta { padding: 6px 0 0 72px; }
.wf-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px;
  border-radius: 980px; background: #a500ff; color: #fff !important; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none !important; transition: background-color .2s ease, transform .15s ease;
}
.wf-cta:hover { background: #9100e0; }
.wf-cta:active { transform: scale(.98); }

/* Entrada (solo con JS): la ventana aparece, las tarjetas flotantes llegan en cascada,
   las barras crecen, la barra de progreso se llena y los íconos de los pasos se dibujan. */
.wf-layout.js-reveal .wf-a { opacity: 0; transform: translateY(18px); transform-box: fill-box; transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.wf-layout.js-reveal .wf-a--1 { transition-delay: .25s; }
.wf-layout.js-reveal .wf-a--2 { transition-delay: .45s; }
.wf-layout.js-reveal .wf-a--3 { transition-delay: .65s; }
.wf-layout.js-reveal .wf-bars rect { transform: scaleY(0); transform-origin: bottom; transform-box: fill-box; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.wf-layout.js-reveal .wf-bars rect:nth-child(2) { transition-delay: .06s; } .wf-layout.js-reveal .wf-bars rect:nth-child(3) { transition-delay: .12s; }
.wf-layout.js-reveal .wf-bars rect:nth-child(4) { transition-delay: .18s; } .wf-layout.js-reveal .wf-bars rect:nth-child(5) { transition-delay: .24s; }
.wf-layout.js-reveal .wf-bars rect:nth-child(6) { transition-delay: .3s; }
.wf-layout.js-reveal .wf-progress { transform: scaleX(0); transform-origin: left; transform-box: fill-box; transition: transform 1.2s cubic-bezier(.2,.8,.2,1) .4s; }
.wf-layout.js-reveal .wf-step { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 3) * 120ms + 150ms); }
.wf-layout.js-reveal .wf-icon svg * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s cubic-bezier(.4,0,.2,1); transition-delay: calc(var(--i) * 120ms + 400ms); }
.wf-layout.js-reveal.is-in .wf-a, .wf-layout.js-reveal.is-in .wf-step { opacity: 1; transform: none; }
.wf-layout.js-reveal.is-in .wf-bars rect, .wf-layout.js-reveal.is-in .wf-progress { transform: none; }
.wf-layout.js-reveal.is-in .wf-icon svg * { stroke-dashoffset: 0; }

@media (max-width: 991px) {
  .wf-layout { grid-template-columns: 1fr; gap: 40px; max-width: 600px; }
}
@media (max-width: 575px) {
  .wf-area { padding: 64px 0; }
  .wf-head { padding-bottom: 28px; }
  .wf-step { gap: 16px; }
  .wf-icon { width: 46px; height: 46px; border-radius: 12px; }
  .wf-steps::before { left: 22px; }
  .wf-step--cta { padding-left: 0; }
  .wf-step--cta .wf-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .wf-layout.js-reveal .wf-a, .wf-layout.js-reveal .wf-step, .wf-layout.js-reveal .wf-bars rect,
  .wf-layout.js-reveal .wf-progress, .wf-layout.js-reveal .wf-icon svg * { opacity: 1; transform: none; stroke-dashoffset: 0; transition: none; }
}

/* Marco de laptop para la captura real del proyecto (Flujo de trabajo) */
.wf-device { margin: 0; }
.wf-screen { background: #1d1d1f; border-radius: 18px 18px 6px 6px; padding: 12px 12px 14px; box-shadow: 0 30px 60px rgba(0,0,0,.14); }
.wf-screen img { display: block; width: 100%; height: auto; border-radius: 8px; background: #f5f5f7; }
.wf-base { height: 14px; margin: 0 -5%; background: linear-gradient(#d2d2d7, #b9b9be); border-radius: 0 0 14px 14px; position: relative; }
.wf-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; transform: translateX(-50%); background: #a1a1a6; border-radius: 0 0 8px 8px; }
.wf-device figcaption { text-align: center; color: #86868b; font-size: .88rem; margin-top: 16px; }
.wf-layout.js-reveal .wf-device { opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.wf-layout.js-reveal.is-in .wf-device { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .wf-layout.js-reveal .wf-device { opacity: 1; transform: none; transition: none; } }
.wf-device--shot img { display: block; width: 100%; height: auto; }
.wf-step .wf-title { padding-top: 12px; } /* alinea el título con el ícono ahora que no hay "Paso N" */

/* ===== Clientes (includes/clients_grid.php) =====
   Tarjeta blanca con una placa azul noche arriba donde va el logo original de
   cada cliente (varios son blancos, pensados para fondos oscuros). */
.cl-area { background: #f5f5f7; padding: 88px 0 96px; }
.cl-head { max-width: 680px; margin: 0 auto; padding-bottom: 44px; }
.cl-area .cl-heading { color: #1d1d1f !important; font-size: var(--fs-h2, 2.75rem); line-height: 1.1; margin: 0 0 14px; }
.cl-lead { color: #6e6e73 !important; font-size: var(--fs-lead, 1.125rem); line-height: 1.6; margin: 0; }
.cl-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1140px; }
.cl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e5ea; border-radius: 28px; padding: 12px 12px 30px; text-align: left; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.cl-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.cl-logo { height: 112px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; background: #2e2a5c; border-radius: 20px; padding: 0 28px; } /* índigo de marca, más claro que el azul noche */
.cl-logo img { max-height: 46px; max-width: 78%; width: auto; height: auto; object-fit: contain; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.cl-card:hover .cl-logo img { transform: scale(1.04); }
.cl-logo--tall img { max-height: 78px; }
.cl-logo--invert img { filter: brightness(0) invert(1); max-height: 26px; }
.cl-logo--badge img { width: 84px; height: 84px; max-height: none; max-width: none; border-radius: 50%; object-fit: cover; }
.cl-tag, .cl-area .cl-name, .cl-text { padding: 0 18px; }
.cl-tag { color: #86868b; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.cl-area .cl-name { color: #1d1d1f; font-size: var(--fs-h3, 1.25rem) !important; font-weight: 700 !important; line-height: 1.3; letter-spacing: -0.015em; margin: 0 0 10px; }
.cl-text { color: #6e6e73 !important; font-size: var(--fs-small, .9375rem) !important; line-height: 1.6 !important; margin: 0; }
@media (max-width: 991px) { .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* En celular: carrusel deslizable nativo (asoma la siguiente tarjeta). */
@media (max-width: 767px) {
  .cl-area { padding: 64px 0 72px; }
  .cl-head { padding-bottom: 28px; }
  .cl-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -15px; padding: 4px 15px 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .cl-grid::-webkit-scrollbar { display: none; }
  .cl-card { flex: 0 0 82%; scroll-snap-align: start; border-radius: 22px; padding: 10px 10px 24px; }
  .cl-logo { height: 112px; border-radius: 16px; }
  .cl-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .cl-card, .cl-logo img { transition: none; } }
.cl-logo--tall img[src*="cimbra"] { max-height: 92px; }
.cl-logo--ink img { filter: brightness(0); max-height: 26px; } /* logo en negro sobre su amarillo de marca */

/* Clientes: logos a color sobre blanco, separados del texto por una línea fina. */
html body .cl-card { padding: 0 0 30px; overflow: hidden; }
html body .cl-logo { background: #fff; height: 120px; margin: 0 0 24px; border-radius: 0; border-bottom: 1px solid #f0f0f3; padding: 0 32px; }
html body .cl-logo img { filter: none; opacity: 1; max-height: 52px; max-width: 72%; mix-blend-mode: multiply; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
html body .cl-card:hover .cl-logo img { transform: scale(1.05); }
html body .cl-logo--tall img { max-height: 76px; }
html body .cl-logo--wide img { max-height: 26px; }
html body .cl-logo--badge img { width: 92px; height: 92px; max-height: none; object-fit: cover; transform: scale(1.2); }
html body .cl-card:hover .cl-logo--badge img { transform: scale(1.26); }
html body .cl-tag, html body .cl-area .cl-name, html body .cl-text { padding: 0 30px; }
@media (max-width: 767px) { html body .cl-logo { height: 104px; } html body .cl-tag, html body .cl-area .cl-name, html body .cl-text { padding: 0 22px; } }
html body .cl-logo--box img { max-height: 46px; mix-blend-mode: normal; border-radius: 6px; }
html body .cl-text { font-size: var(--fs-body, 1.0625rem) !important; line-height: 1.65 !important; } /* mismo tamaño que el texto de Servicios */

/* ===== Stack tecnológico (includes/techs_section.php) ===== */
.tk-area { background: #fff; padding: 88px 0 96px; }
.tk-head { max-width: 680px; margin: 0 auto; padding-bottom: 44px; }
.tk-area .tk-heading { color: #1d1d1f !important; font-size: var(--fs-h2, 2.75rem); line-height: 1.1; margin: 0 0 14px; }
.tk-lead { color: #6e6e73 !important; font-size: var(--fs-lead, 1.125rem); line-height: 1.6; margin: 0; }
.tk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 1140px; margin: 0 auto; }
.tk-group { background: #f5f5f7; border-radius: 24px; padding: 26px 22px 24px; }
.tk-area .tk-group-title { color: #1d1d1f; font-size: .8rem !important; font-weight: 600 !important; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; line-height: 1.4 !important; }
.tk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tk-pill { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e5e5ea; border-radius: 14px; padding: 11px 14px; color: #1d1d1f; font-size: 1rem; font-weight: 500; transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.tk-pill svg { width: 22px; height: 22px; flex: none; fill: #86868b; transition: fill .25s ease; }
.tk-pill:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.tk-pill:hover svg { fill: var(--brand); }
@media (max-width: 991px) { .tk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) {
  .tk-area { padding: 64px 0 72px; }
  .tk-head { padding-bottom: 28px; }
  .tk-grid { grid-template-columns: 1fr; gap: 16px; }
  .tk-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .tk-pill { padding: 9px 12px; font-size: .95rem; }
  .tk-pill svg { fill: var(--brand); } /* en celular no hay hover: logos a color */
}
@media (prefers-reduced-motion: reduce) { .tk-pill { transition: none; } }

/* ===== Testimonios v2: comilla de marca, frase destacada, tarjetas translúcidas ===== */
html body .tst-head { padding-bottom: 48px; }
html body .tst-head .tst-heading { margin-bottom: 14px; }
.tst-lead { color: #a1a1a6; font-size: var(--fs-lead, 1.125rem); line-height: 1.6; margin: 0; }
html body .tst-card {
  position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px; padding: 64px 44px 36px; gap: 32px;
  transition: border-color .3s ease, background-color .3s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
html body .tst-card:hover { background: rgba(255,255,255,.06); border-color: rgba(197,139,255,.35); transform: translateY(-4px); }
.tst-mark { position: absolute; top: 22px; left: 40px; font-size: 5rem; line-height: 1; font-weight: 800; color: #a500ff; font-family: Georgia, "Times New Roman", serif; }
html body .tst-quote { color: rgba(245,245,247,.86); font-weight: 400; font-size: var(--fs-quote, 1.15rem) !important; line-height: 1.65 !important; }
html body .tst-quote mark { background: none; color: #fff; font-weight: 600; padding: 0; box-shadow: inset 0 -0.45em 0 rgba(165,0,255,.35); }
html body .tst-author { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; }
html body .tst-avatar { width: 56px; height: 56px; box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
html body .tst-who strong { font-size: 1rem; }
html body .tst-who > span { color: #a1a1a6; font-size: .92rem; }
html body .tst-who a { color: #c58bff; border-bottom: 0; }
html body .tst-who a:hover { color: #dcb8ff; }
@media (max-width: 575px) {
  html body .tst-card { padding: 56px 24px 26px; border-radius: 22px; }
  .tst-mark { left: 22px; top: 16px; font-size: 4.2rem; }
}
@media (prefers-reduced-motion: reduce) { html body .tst-card { transition: none; } }

/* ===== Portada v2: fondo claro limpio + producto real a la derecha (sin video) ===== */
html body .hero-v2 {
  height: auto !important; min-height: 100vh; overflow: visible;
  background: #fbfbfd; background-image: radial-gradient(ellipse 70% 60% at 85% 40%, rgba(165,0,255,.07), transparent 65%);
  padding-top: 150px !important; padding-bottom: 90px; align-items: center;
}
html body .hero-v2 .video-background::before { display: none; }
html body .hero-v2 .hero-content { padding-left: 15px !important; max-width: 1240px; }
html body .hero-v2 .row { align-items: center; }
html body .hero-v2 .header-hero-content .hero-title { margin-bottom: 22px; }
html body .hero-v2 .header-hero-content .text { color: #3a3a3c !important; max-width: 540px; margin-bottom: 22px; }
html body .hero-v2 .hero-check { color: #1d1d1f; font-size: 1.05rem !important; margin-bottom: 6px; }
html body .hero-v2 .header-play { margin-top: 26px; }
.hero-shot { margin: 0; position: relative; }
.hero-shot img { display: block; width: 116%; max-width: none; height: auto; margin-left: -4%; filter: drop-shadow(0 30px 40px rgba(14,13,33,.12)); }
.hero-shot figcaption { text-align: center; color: #86868b; font-size: .85rem; margin-top: 8px; }
@media (max-width: 1199px) { .hero-shot img { width: 108%; margin-left: 0; } }
@media (max-width: 991px) {
  html body .hero-v2 { min-height: 0; padding-top: 110px !important; padding-bottom: 56px; }
  .hero-shot { margin-top: 40px; }
  .hero-shot img { width: 100%; }
}
@media (max-width: 767px) {
  html body .hero-v2 { padding-top: 96px !important; padding-bottom: 40px; }
  html body .hero-v2 .hero-content { padding-left: 20px !important; padding-right: 20px !important; }
  html body .hero-v2 .header-hero-content .hero-title { margin-bottom: 16px; }
  html body .hero-v2 .header-hero-content .text { max-width: none; font-size: 1.05rem !important; }
  html body .hero-v2 .hero-check { font-size: .98rem !important; }
  /* el fondo animado queda detrás, más suave, sin competir con el texto */
  html body .hero-v2 .hero-mobile-bg { opacity: .55; }
}
html body .hero-v2 { background-color: #fbfbfd !important; background-image: radial-gradient(ellipse 70% 60% at 85% 40%, rgba(165,0,255,.07), transparent 65%) !important; }
html body .hero-v2 .header-hero-content .hero-title { font-size: clamp(2.4rem, 3.6vw, 3.9rem) !important; line-height: 1.06 !important; letter-spacing: -0.035em; }
@media (max-width: 767px) { html body .hero-v2 .header-hero-content .hero-title { font-size: 2.35rem !important; } }
html body .hero-v2 .hero-check { padding-top: 0 !important; margin: 0 0 8px !important; line-height: 1.5 !important; }
html body .hero-v2 .header-hero-content .text { margin-bottom: 18px !important; }
html body .hero-v2 .header-play { margin-top: 22px !important; }
html body .hero-v2 { padding-top: 130px !important; padding-bottom: 70px; }
html body .hero-v2 .header-hero-content .hero-title { font-size: clamp(2.4rem, 3.3vw, 3.6rem) !important; }
@media (max-width: 767px) { html body .hero-v2 { padding-top: 96px !important; } }

/* ===== Portada animada (solo transform/opacity: corre en la GPU, sin video) ===== */
.hero-anim { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.ha-blob { position: absolute; border-radius: 50%; will-change: transform; }
.ha-blob--1 { width: 720px; height: 720px; right: -120px; top: -60px; background: radial-gradient(circle, rgba(165,0,255,.16) 0%, rgba(165,0,255,0) 65%); animation: haDrift1 18s ease-in-out infinite alternate; }
.ha-blob--2 { width: 560px; height: 560px; right: 22%; bottom: -200px; background: radial-gradient(circle, rgba(197,139,255,.20) 0%, rgba(197,139,255,0) 65%); animation: haDrift2 22s ease-in-out infinite alternate; }
.ha-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(29,29,31,.10) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 75% 45%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 55% 60% at 75% 45%, #000 0%, transparent 75%);
  animation: haGrid 30s linear infinite; }
@keyframes haDrift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-90px, 70px) scale(1.12); } }
@keyframes haDrift2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(110px, -60px) scale(.92); } }
@keyframes haGrid { from { background-position: 0 0; } to { background-position: 26px 26px; } }
html body .hero-v2 .hero-content { z-index: 2; }

.hs-float { animation: hsFloat 7s ease-in-out infinite; will-change: transform; }
@keyframes hsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hs-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid #e5e5ea; border-radius: 16px; box-shadow: 0 14px 34px rgba(14,13,33,.12);
  opacity: 0; transform: translateY(16px) scale(.96); animation: hsIn .7s cubic-bezier(.2,.8,.2,1) forwards, hsBob 6s ease-in-out infinite; }
.hs-chip b { display: block; color: #1d1d1f; font-size: .86rem; font-weight: 600; line-height: 1.25; }
.hs-chip small { display: block; color: #86868b; font-size: .75rem; line-height: 1.3; }
.hs-dot { width: 32px; height: 32px; flex: none; border-radius: 10px; background: #a500ff; display: inline-flex; align-items: center; justify-content: center; }
.hs-dot--ok { background: #34c759; }
.hs-dot svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hs-chip--1 { left: -4%; top: 2%; animation-delay: .5s, 1.2s; }
.hs-chip--2 { right: -6%; top: 40%; animation-delay: 1.3s, 2s; }
.hs-chip--3 { left: 6%; bottom: 10%; animation-delay: 2.1s, 2.8s; }
@keyframes hsIn { to { opacity: 1; transform: none; } }
@keyframes hsBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

@media (max-width: 991px) {
  .hero-anim { display: none; }        /* en celular ya está el fondo animado propio */
  .hs-chip { padding: 8px 12px 8px 8px; border-radius: 14px; }
  .hs-chip b { font-size: .78rem; } .hs-chip small { display: none; }
  .hs-dot { width: 26px; height: 26px; border-radius: 8px; } .hs-dot svg { width: 15px; height: 15px; }
  .hs-chip--1 { left: 0; top: -6%; } .hs-chip--2 { right: 0; top: 34%; } .hs-chip--3 { left: 4%; bottom: 14%; }
}
@media (prefers-reduced-motion: reduce) {
  .ha-blob, .ha-grid, .hs-float, .hs-chip { animation: none !important; }
  .hs-chip { opacity: 1; transform: none; }
}
/* Notificaciones fuera de los paneles que trae la imagen */
@media (min-width: 992px) {
  .hs-chip--1 { left: 30%; top: -13%; }
  .hs-chip--2 { right: -7%; top: auto; bottom: 6%; }
  .hs-chip--3 { left: -9%; top: auto; bottom: 18%; }
  .hero-shot figcaption { margin-top: 26px; }
}
@media (max-width: 991px) {
  .hs-chip--3 { display: none; }
  .hs-chip--1 { left: -2%; top: -14%; }
  .hs-chip--2 { right: -2%; top: auto; bottom: 8%; }
  .hero-shot { margin-top: 56px; }
}

/* ===== Portada oscura cinematográfica (estilo páginas de producto de Apple) ===== */
html body .hero-dark {
  position: relative; display: block; height: auto !important; min-height: 0; overflow: hidden;
  background: #0e0d21 !important; background-image: none !important; color: #f5f5f7;
  padding: 150px 0 0 !important; --hd-p: 0;
}
.hd-glow { position: absolute; left: 50%; top: 58%; width: 1100px; height: 700px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(165,0,255,.45) 0%, rgba(165,0,255,.12) 40%, rgba(165,0,255,0) 70%);
  pointer-events: none; animation: hdPulse 7s ease-in-out infinite alternate; }
@keyframes hdPulse { from { opacity: .75; transform: translateX(-50%) scale(.96); } to { opacity: 1; transform: translateX(-50%) scale(1.04); } }
.hd-inner { position: relative; z-index: 2; text-align: center; }
.hd-copy { max-width: 900px; margin: 0 auto; padding: 0 !important; }
html body .hero-dark .hero-title { color: #f5f5f7 !important; font-size: clamp(2.5rem, 5.2vw, 4.8rem) !important; line-height: 1.04 !important; letter-spacing: -0.04em; margin-bottom: 24px; }
.hd-rot { display: inline-block; color: #c58bff !important; transition: opacity .38s ease, transform .38s cubic-bezier(.2,.8,.2,1), filter .38s ease; }
.hd-rot.is-out { opacity: 0; transform: translateY(14px); filter: blur(4px); }
html body .hero-dark .header-hero-content .text { color: #a1a1a6 !important; font-size: clamp(1.05rem, 1.4vw, 1.3rem) !important; max-width: 680px; margin: 0 auto 22px !important; }
.hd-checks { list-style: none; margin: 0 0 30px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; }
.hd-checks li { color: #e5e5ea; font-size: 1rem; display: inline-flex; align-items: center; gap: 8px; }
.hd-checks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #a500ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/12px no-repeat; flex: none; }
html body .hero-dark .header-play { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 !important; }
html body .hero-dark .default-btn { background: transparent !important; border: 1px solid rgba(255,255,255,.35) !important; color: #fff !important; }
html body .hero-dark .default-btn:hover { background: #fff !important; border-color: #fff !important; color: #0e0d21 !important; }
.hd-device { margin: 64px auto 0; max-width: 1060px; perspective: 1400px; }
.hd-tilt { transform-origin: 50% 0%; will-change: transform;
  transform: rotateX(calc(22deg - 22deg * var(--hd-p))) scale(calc(.9 + .1 * var(--hd-p)));
  animation: hdRise 1.2s cubic-bezier(.2,.8,.2,1) .2s both; }
@keyframes hdRise { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
.hd-tilt img { display: block; width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,.45)); }
.hd-device figcaption { color: #86868b; font-size: .85rem; margin: 6px 0 0; padding-bottom: 36px; }
@media (max-width: 991px) {
  html body .hero-dark { padding-top: 112px !important; }
  .hd-glow { width: 700px; height: 500px; top: 62%; }
  .hd-device { margin-top: 44px; }
}
@media (max-width: 575px) {
  html body .hero-dark { padding-top: 100px !important; }
  html body .hero-dark .hero-title { font-size: 2.3rem !important; }
  html body .hero-dark .hero-title br { display: none; }
  .hd-checks { flex-direction: column; align-items: center; gap: 8px; }
  html body .hero-dark .header-play { flex-direction: column; align-items: stretch; }
  html body .hero-dark .header-play a { margin: 0 !important; }
  .hd-tilt { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hd-glow, .hd-tilt { animation: none !important; } .hd-tilt { transform: none; } .hd-rot { transition: none; } }

/* Portada con video de fondo a pantalla completa y velo azul noche */
html body .hero-dark { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 90px !important; }
.hd-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hd-video video { width: 100%; height: 100%; object-fit: cover; }
.hd-video::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,13,33,.78) 0%, rgba(14,13,33,.62) 45%, rgba(14,13,33,.92) 100%); }
.hd-glow { z-index: 1; top: 70%; opacity: .55; }
.hd-inner { width: 100%; }
html body .hero-dark .hero-title { text-shadow: 0 2px 30px rgba(0,0,0,.35); }
@media (max-width: 767px) {
  html body .hero-dark { min-height: 0; padding: 104px 0 64px !important; }
  .hd-video { display: none; } /* en celular no se descarga el video */
  .hd-glow { top: 55%; opacity: .8; }
}
.hd-video::after { background: linear-gradient(180deg, rgba(14,13,33,.62) 0%, rgba(14,13,33,.38) 45%, rgba(14,13,33,.85) 100%) !important; }

/* Portada en celular: fotograma real del video con acercamiento lento (Ken Burns), 75 KB en vez de 2 MB */
@media (max-width: 767px) {
  .hd-video { display: block !important; }
  .hd-video video { display: none; }
  .hd-video::before { content: ""; position: absolute; inset: -6%; background: url("../images/hero/hero-movil.jpg") center 30% / cover no-repeat;
    animation: hdKen 18s ease-in-out infinite alternate; will-change: transform; }
  .hd-video::after { background: linear-gradient(180deg, rgba(14,13,33,.55) 0%, rgba(14,13,33,.45) 40%, rgba(14,13,33,.88) 100%) !important; }
  .hd-glow { display: none; }
}
@keyframes hdKen { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -3%); } }
@media (prefers-reduced-motion: reduce) { .hd-video::before { animation: none; } }

/* Portadas de país y landings: el destacado del título y la ciudad en lila sobre el video */
html body .hero-dark .hero-title span, html body .hero-dark .hero-title .p-seo-variable { color: #c58bff !important; }
html body .hero-dark .text .p-seo-variable, html body .hero-dark .hd-checks .p-seo-variable { color: #dcb8ff !important; font-weight: 600; }

/* Landings: la introducción bajo la portada (oscura con video) pasa a fondo claro */
html body .seo-intro-section { background: #fff !important; background-image: none !important; padding: 72px 0 56px; }
html body .seo-intro-section h2, html body .seo-intro-section h1 { color: #1d1d1f !important; }
html body .seo-intro-section p, html body .seo-intro-section div { color: #6e6e73 !important; }
html body .seo-intro-section .p-seo-variable, html body .seo-intro-section span[style*="color"] { color: #a500ff !important; }
html body .seo-intro-section::before, html body .seo-intro-section::after, html body .seo-intro-section *::before { background: none !important; box-shadow: none !important; }
html body .hero-dark { overflow: hidden !important; } /* el resplandor no debe salir de la portada */

/* Portada en celular: los ✓ como lista alineada a la izquierda (no centrados línea a línea) */
@media (max-width: 575px) {
  html body .hero-dark .hd-checks { display: grid; justify-content: center; justify-items: start; gap: 10px; text-align: left; margin-bottom: 28px; }
  html body .hero-dark .hd-checks li { align-items: flex-start; max-width: 320px; line-height: 1.45; }
  html body .hero-dark .hd-checks li::before { margin-top: 2px; }
}

/* ✓ de la portada como texto corrido con el ícono al costado (la ciudad no se separa de la frase) */
html body .hero-dark .hd-checks li { display: inline-block; position: relative; padding-left: 26px; text-align: left; }
html body .hero-dark .hd-checks li::before { position: absolute; left: 0; top: 3px; margin: 0; }
@media (max-width: 575px) { html body .hero-dark .hd-checks li { display: block; } }

/* ===== Equipo (includes/team_section.php) ===== */
.tm-area { background: #0e0d21; padding: 96px 0; }
.tm-head { max-width: 680px; margin: 0 auto; padding-bottom: 48px; }
.tm-area .tm-heading { color: #f5f5f7 !important; font-size: var(--fs-h2, 2.75rem) !important; line-height: 1.1; margin: 0 0 14px; }
.tm-lead { color: #a1a1a6; font-size: var(--fs-lead, 1.125rem); line-height: 1.6; margin: 0; }
.tm-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1080px; }
.tm-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 28px; padding: 12px; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s ease, background-color .3s ease; }
.tm-card:hover { transform: translateY(-4px); border-color: rgba(197,139,255,.35); background: rgba(255,255,255,.06); }
.tm-photo { aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: #1a1838; }
.tm-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: grayscale(.25); transition: filter .4s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.tm-card:hover .tm-photo img { filter: none; transform: scale(1.04); }
.tm-info { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 10px 8px; }
.tm-area .tm-name { color: #f5f5f7; font-size: var(--fs-h3, 1.25rem) !important; font-weight: 700 !important; line-height: 1.25 !important; letter-spacing: -0.015em; margin: 0 0 4px; }
.tm-role { color: #a1a1a6 !important; font-size: .92rem !important; line-height: 1.4 !important; margin: 0; }
.tm-meta { display: flex; align-items: center; gap: 8px; flex: none; }
.tm-flag { border-radius: 2px; }
.tm-in { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #f5f5f7 !important; transition: background-color .2s ease, color .2s ease; }
.tm-in svg { width: 15px; height: 15px; fill: currentColor; }
.tm-in:hover { background: #a500ff; border-color: #a500ff; }
@media (max-width: 991px) { .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .tm-area { padding: 64px 0 72px; }
  .tm-head { padding-bottom: 28px; }
  .tm-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -15px; padding: 4px 15px 12px; scrollbar-width: none; }
  .tm-grid::-webkit-scrollbar { display: none; }
  .tm-card { flex: 0 0 74%; scroll-snap-align: start; border-radius: 22px; }
  .tm-card:hover { transform: none; }
  .tm-photo img { filter: none; }
}
@media (prefers-reduced-motion: reduce) { .tm-card, .tm-photo img { transition: none; } }
