/* Webiting · secciones simplificadas de la home (wx-) */

.wx-section { padding: 96px 0; }
.wx-section.tight { padding: 64px 0; }
.wx-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.wx-head .wx-kicker { display: inline-block; font-weight: 600; font-size: 14px; color: var(--brand); background: #fff; border-radius: 99px; padding: 6px 14px; margin-bottom: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.wx-head h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 14px; color: var(--primary); }
.wx-head p { font-size: 18px; line-height: 1.55; color: var(--secondary); margin: 0; }

/* Botones */
.wx-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.wx-btn-wa { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 99px; font-weight: 600; font-size: 16px; line-height: 24px; color: #fff !important; background: #1faa53; box-shadow: 0 6px 18px rgba(31,170,83,.28); transition: transform .2s, box-shadow .2s; }
.wx-btn-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,170,83,.35); }
.wx-btn-wa svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.wx-link { font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.wx-link:hover { color: var(--brand); }

/* Hero */
.section-hero .wx-hero-title { font-size: clamp(40px, 6.6vw, 88px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 600; max-width: 1000px; margin: 0 auto 24px; }
.section-hero .wx-hero-text { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 640px; margin: 0 auto 32px; }
.wx-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.wx-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--primary); background: rgba(255,255,255,.7); border-radius: 99px; padding: 8px 14px; }

/* Tarjetas de servicios */
.wx-grid { display: grid; gap: 20px; }
.wx-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.wx-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.wx-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.wx-card { background: #fff; border-radius: 28px; padding: 32px 28px; box-shadow: 0 8px 24px rgba(0,0,0,.05), 0 -6px 0 rgba(0,0,0,.04) inset; display: flex; flex-direction: column; gap: 12px; transition: transform .25s, box-shadow .25s; color: inherit; }
a.wx-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.09), 0 -6px 0 rgba(0,0,0,.04) inset; }
.wx-card .wx-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 24px; box-shadow: 0 8px 18px rgba(253,58,37,.3); margin-bottom: 6px; }
.wx-card h3 { font-size: 22px; line-height: 1.25; font-weight: 600; margin: 0; color: var(--primary); }
.wx-card p { font-size: 16px; line-height: 1.5; color: var(--secondary); margin: 0; flex: 1; }
.wx-card .wx-link { margin-top: 6px; }

/* Banda CTA */
.wx-cta { border-radius: 32px; padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--neutral-950); color: #fff; }
.wx-cta h3 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; font-weight: 600; margin: 0 0 6px; }
.wx-cta p { color: var(--neutral-400); margin: 0; font-size: 17px; }
.wx-cta.light { background: #fff; color: var(--primary); box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.wx-cta.light h3 { color: var(--primary); }
.wx-cta.light p { color: var(--secondary); }
.wx-cta .tf-btn-2 { background: #fff; }

/* Pasos */
.wx-step { position: relative; }
.wx-step .wx-num { font-size: 15px; font-weight: 700; color: var(--brand); letter-spacing: .04em; }

/* Por qué */
.wx-why { display: flex; gap: 14px; align-items: flex-start; }
.wx-check { flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(253,58,37,.1); color: var(--brand); display: grid; place-items: center; font-weight: 700; }

/* Casos de uso */
.wx-case { padding: 0; overflow: hidden; }
.wx-case .wx-case-top { height: 120px; display: flex; align-items: flex-end; padding: 20px 24px; color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .03em; }
.wx-case .wx-case-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.wx-case.c1 .wx-case-top { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.wx-case.c2 .wx-case-top { background: linear-gradient(135deg, #065f46, #10b981); }
.wx-case.c3 .wx-case-top { background: linear-gradient(135deg, #3b0764, #7c3aed); }
.wx-case.c4 .wx-case-top { background: linear-gradient(135deg, #7f1d1d, #FD3A25); }

/* Botón flotante de WhatsApp */
.wx-wa-float { position: fixed; left: 20px; bottom: 20px; z-index: 9990; width: 56px; height: 56px; border-radius: 50%; background: #1faa53; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.25); transition: transform .2s; }
.wx-wa-float:hover { transform: scale(1.07); }
.wx-wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Arreglos de la plantilla */
.box-black .light-top, .box-black .light-bot { display: none; }

@media (max-width: 1199px) {
  .wx-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .wx-section { padding: 64px 0; }
  .wx-section.tight { padding: 44px 0; }
  .wx-head { margin-bottom: 32px; }
  .wx-head p { font-size: 16px; }
  .wx-grid.cols-4, .wx-grid.cols-3, .wx-grid.cols-2 { grid-template-columns: 1fr; }
  .wx-card { padding: 26px 22px; border-radius: 24px; }
  .wx-cta { padding: 32px 24px; border-radius: 24px; text-align: center; justify-content: center; }
  .wx-cta .wx-btns { width: 100%; }
  .wx-cta .wx-btns > * { flex: 1 1 100%; justify-content: center; }
  .wx-btns > * { justify-content: center; }
  .section-hero .wx-btns > * { flex: 1 1 100%; }
  .wx-wa-float { width: 52px; height: 52px; left: 14px; bottom: 14px; }
}

/* Microcopy bajo los botones del hero */
.section-hero .wx-micro { font-size: 14px; color: var(--neutral-600); margin: 14px auto 0; }
.wx-chip-face::before { display: none; }
.wx-chip-face img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* Tarjeta CTA dentro de la rejilla de servicios */
.wx-card-cta { background: var(--neutral-950); }
.wx-card-cta h3 { color: #fff; }
.wx-card-cta p { color: var(--neutral-400); }

/* Formación */
.wx-formacion { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; background: #fff; border-radius: 32px; padding: 56px; box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.wx-formacion h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 14px; color: var(--primary); }
.wx-formacion-text > p { font-size: 18px; line-height: 1.55; color: var(--secondary); margin: 0 0 28px; }
.wx-formacion .wx-kicker { display: inline-block; font-weight: 600; font-size: 14px; color: var(--brand); background: var(--neutral-100); border-radius: 99px; padding: 6px 14px; margin-bottom: 16px; }
.wx-formacion-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.wx-formacion-list li { display: flex; gap: 14px; align-items: flex-start; }
.wx-formacion-list h3 { font-size: 19px; font-weight: 600; margin: 0 0 4px; color: var(--primary); }
.wx-formacion-list p { font-size: 15px; line-height: 1.5; color: var(--secondary); margin: 0; }
@media (max-width: 991px) {
  .wx-formacion { grid-template-columns: 1fr; padding: 36px 26px; gap: 32px; }
}
@media (max-width: 767px) {
  .wx-formacion .wx-btns > * { flex: 1 1 100%; }
}

/* Cabecera: el botón no se parte en dos líneas */
.tf-header .header-inner > .tf-btn { white-space: nowrap; }
.tf-header .logo-site { margin-right: 12px; }

/* Formación: temas y caso real */
.wx-temas { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 28px; }
.wx-temas span { font-size: 14px; font-weight: 600; color: var(--primary); background: var(--neutral-100); border-radius: 99px; padding: 7px 13px; }
.wx-formacion-side { display: flex; flex-direction: column; gap: 24px; }
.wx-proof { background: var(--neutral-950); color: var(--neutral-300); border-radius: 20px; padding: 20px 22px; font-size: 15px; line-height: 1.5; }
.wx-proof strong { color: #fff; }

/* ============ Ilustraciones y animaciones ============ */
.wx-illus { height: 150px; border-radius: 20px; margin: -6px -4px 10px; display: grid; place-items: center; overflow: hidden; background: var(--wx-tint, var(--neutral-100)); }
.wx-svg { width: 100%; height: 100%; display: block; }
.wx-t-web { --wx-tint: #eef4ff; }
.wx-t-chat { --wx-tint: #eafaf3; }
.wx-t-auto { --wx-tint: #fff3ea; }
.wx-t-mkt { --wx-tint: #f3edff; }
.wx-t-form { --wx-tint: #fff7e6; }
.wx-t-cta { --wx-tint: rgba(255,255,255,.06); }
.wx-card { position: relative; }
.wx-card:hover .wx-illus { filter: saturate(1.15); }

.wx-step-svg { width: 64px; height: 64px; margin-bottom: 4px; }
.wx-case .wx-case-top { position: relative; height: 140px; }
.wx-case-svg { position: absolute; right: 14px; top: 14px; width: 120px; height: 70px; opacity: .95; }
.wx-why .wx-check i { font-size: 16px; }

/* Piezas que se animan al aparecer (estado final por defecto: si no hay JS, todo se ve) */
[class*="wx-a-"] { transform-box: fill-box; }
.wx-play .wx-a-grow { animation: wxGrow .7s cubic-bezier(.2,.7,.2,1) var(--d,0s) both; transform-origin: left center; }
.wx-play .wx-a-pop { animation: wxPop .55s cubic-bezier(.3,1.4,.5,1) var(--d,0s) both; transform-origin: center; }
.wx-play .wx-a-bar { animation: wxBar .8s cubic-bezier(.2,.7,.2,1) var(--d,0s) both; transform-origin: center bottom; }
.wx-play .wx-a-draw { stroke-dasharray: 1; animation: wxDraw 1s ease var(--d,.4s) both; }
.wx-play .wx-a-click { animation: wxClick 2.8s ease var(--d,1s) infinite; transform-origin: center; }
/* Bucles suaves */
.wx-a-dot { animation: wxDot 1.2s ease-in-out var(--d,0s) infinite; }
.wx-a-flow { animation: wxFlow 1.1s linear infinite; }
.wx-a-spin { animation: wxSpin 4s linear infinite; transform-origin: 0 100%; }
.wx-a-pulse { animation: wxPulse 2.2s ease-out infinite; transform-origin: center; }
.wx-a-float { animation: wxFloat 2.6s ease-in-out infinite alternate; }
.wx-a-flame { animation: wxFlame .5s ease-in-out infinite alternate; transform-origin: center top; }

@keyframes wxGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wxPop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
@keyframes wxBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wxDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes wxClick { 0%,70%,100% { transform: translate(0,0) scale(1); } 80% { transform: translate(-2px,-2px) scale(.85); } 90% { transform: translate(0,0) scale(1); } }
@keyframes wxDot { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
@keyframes wxFlow { to { stroke-dashoffset: -40; } }
@keyframes wxSpin { to { transform: rotate(360deg); } }
@keyframes wxPulse { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes wxFloat { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes wxFlame { from { transform: scaleY(.7); } to { transform: scaleY(1.15); } }

/* Aparición al hacer scroll (solo si hay JS) */
.wx-js .wx-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0s); }
.wx-js .wx-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .wx-js .wx-reveal { opacity: 1; transform: none; transition: none; }
  [class*="wx-a-"], .wx-play [class*="wx-a-"] { animation: none !important; }
}
@media (max-width: 767px) {
  .wx-illus { height: 130px; }
}

/* Iconos de "Por qué Webiting" más visibles */
.wx-why .wx-check { width: 52px; height: 52px; border-radius: 16px; background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(253,58,37,.28); }
.wx-why .wx-check i { font-size: 22px; }
.wx-why { gap: 18px; align-items: center; }
.wx-card.wx-why { flex-direction: row; align-items: flex-start; }

/* ============ Páginas interiores (generadas con webiting-builder) ============ */
.wx-phero { padding: 150px 0 72px; background: radial-gradient(1200px 500px at 85% 0%, rgba(253,58,37,.08), transparent 60%), linear-gradient(180deg, #e9edf3 0%, var(--body) 100%); }
.wx-crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--neutral-500); margin-bottom: 28px; }
.wx-crumbs a { color: var(--neutral-600); font-weight: 600; }
.wx-crumbs a:hover { color: var(--brand); }
.wx-phero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.wx-phero-grid.no-art { grid-template-columns: 1fr; max-width: 820px; }
.wx-phero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; color: var(--primary); margin: 0 0 18px; }
.wx-phero-sub { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--neutral-600); margin: 0 0 30px; max-width: 620px; }
.wx-phero .wx-kicker { display: inline-block; font-weight: 600; font-size: 14px; color: var(--brand); background: #fff; border-radius: 99px; padding: 6px 14px; margin-bottom: 18px; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.wx-phero .wx-micro { font-size: 14px; color: var(--neutral-600); margin: 14px 0 0; }
.wx-phero-art.wx-illus { height: auto; aspect-ratio: 2 / 1; margin: 0; border-radius: 32px; box-shadow: 0 20px 50px rgba(0,0,0,.08); background: #fff; padding: 18px; }
.wx-phero-art .wx-svg { background: var(--wx-tint); border-radius: 22px; }
.wx-page { padding-top: 8px; }

.wx-pain .wx-pain-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--neutral-100); color: var(--neutral-700); font-size: 20px; margin-bottom: 4px; }
.wx-benefit .wx-icon { margin-bottom: 4px; }
.wx-type .wx-type-num { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; color: var(--brand); line-height: 1; }

.wx-include { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; background: #fff; border-radius: 32px; padding: 52px; box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.wx-include .wx-kicker, .wx-founder .wx-kicker { display: inline-block; font-weight: 600; font-size: 14px; color: var(--brand); background: var(--neutral-100); border-radius: 99px; padding: 6px 14px; margin-bottom: 14px; }
.wx-include h2, .wx-founder h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 22px; color: var(--primary); }
.wx-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.wx-checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: var(--primary); }
.wx-checklist .wx-check { width: 26px; height: 26px; font-size: 13px; margin-top: -1px; }
.wx-include-side { display: flex; flex-direction: column; gap: 14px; background: var(--neutral-50); border-radius: 24px; padding: 28px; }
.wx-include-side h3 { font-size: 17px; font-weight: 600; margin: 4px 0 0; color: var(--primary); }
.wx-include-side .wx-temas { margin: 0; }
.wx-include-side .wx-temas span { background: #fff; }

.wx-founder { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; background: #fff; border-radius: 32px; padding: 40px; box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.wx-founder img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; }
.wx-founder p { font-size: 17px; line-height: 1.6; color: var(--secondary); margin: 0 0 14px; }
.wx-founder .wx-btns { margin-top: 18px; }

.wx-contact-opt .wx-icon svg { width: 26px; height: 26px; fill: #fff; }
.wx-contact-opt .wx-link { color: var(--primary); }

@media (max-width: 991px) {
  .wx-phero { padding: 130px 0 48px; }
  .wx-phero-grid { grid-template-columns: 1fr; gap: 32px; }
  .wx-include { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .wx-founder { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .wx-founder img { max-width: 280px; }
}
@media (max-width: 767px) {
  .wx-phero .wx-btns > * { flex: 1 1 100%; }
  .wx-include-side { padding: 22px; }
}

/* Cabecera: al hacer scroll, la barra es casi opaca para que nada se vea a través */
.tf-header .header-inner { transition: background .3s ease, box-shadow .3s ease; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.tf-header.header-sticky .header-inner { background: rgba(255,255,255,.94); box-shadow: 0 8px 28px rgba(0,0,0,.10), 0 1px 0 rgba(0,0,0,.04); }
.tf-header.header-sticky .header-inner .item-link:not(.active) { color: var(--primary); }

/* ============ Fondo decorativo en los títulos de sección ============ */
.wx-section { --hc: 253, 58, 37; }
.wx-page > .wx-section:nth-of-type(4n+2), .box-white > .wx-section:nth-of-type(4n+2) { --hc: 37, 99, 235; }
.wx-page > .wx-section:nth-of-type(4n+3), .box-white > .wx-section:nth-of-type(4n+3) { --hc: 124, 58, 237; }
.wx-page > .wx-section:nth-of-type(4n+4), .box-white > .wx-section:nth-of-type(4n+4) { --hc: 16, 163, 110; }

.wx-head { position: relative; isolation: isolate; padding: 34px 24px 6px; }
.wx-head::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: min(820px, 120%); height: 260px; transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(var(--hc), .24), rgba(var(--hc), .08) 55%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 35%, transparent 75%);
          mask-image: radial-gradient(ellipse 50% 50% at center, #000 35%, transparent 75%);
  pointer-events: none;
}
.wx-head::after {
  content: ""; position: absolute; z-index: -1; width: 90px; height: 90px; border-radius: 28px;
  right: 8%; top: 4px; transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(var(--hc), .30), rgba(var(--hc), .02));
  pointer-events: none;
}
.wx-head h2::after {
  content: ""; display: block; width: 64px; height: 5px; border-radius: 99px; margin: 16px auto 0;
  background: linear-gradient(90deg, rgb(var(--hc)), rgba(var(--hc), .35));
}
.wx-head .wx-kicker {
  color: rgb(var(--hc)); border: 1px solid rgba(var(--hc), .22);
  display: inline-flex; align-items: center; gap: 8px;
}

/* Títulos de la plantilla (packs y preguntas frecuentes de la home) */
.section-pricing .heading-section, .section-faqs .heading-section { position: relative; isolation: isolate; }
.section-pricing .heading-section::before, .section-faqs .heading-section::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(820px, 120%); height: 260px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(253,58,37,.13), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 35%, transparent 75%); mask-image: radial-gradient(ellipse 50% 50% at center, #000 35%, transparent 75%);
  pointer-events: none;
}
.section-pricing .heading-section::before { left: 25%; }

@media (max-width: 767px) {
  .wx-head { padding: 26px 8px 4px; }
  .wx-head::before { height: 200px; }
  .wx-head::after { width: 60px; height: 60px; right: 2%; }
}

/* ============ Fondo decorativo en el resto de títulos ============ */
/* 1. Títulos dentro de tarjetas (alineados a la izquierda) */
.wx-include, .wx-formacion, .wx-founder { position: relative; isolation: isolate; overflow: hidden; }
.wx-include::before, .wx-formacion::before, .wx-founder::before {
  content: ""; position: absolute; z-index: -1; left: -60px; top: -60px; width: 420px; height: 300px;
  background:
    radial-gradient(closest-side, rgba(253,58,37,.16), rgba(253,58,37,.05) 55%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 50% 50% at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.wx-formacion::before { background: radial-gradient(closest-side, rgba(217,119,6,.18), rgba(217,119,6,.05) 55%, transparent 75%); }
.wx-founder::before { left: auto; right: -60px; }
.wx-include::after, .wx-formacion::after, .wx-founder::after {
  content: ""; position: absolute; z-index: -1; width: 120px; height: 120px; border-radius: 34px; right: -30px; bottom: -40px; transform: rotate(22deg);
  background: linear-gradient(135deg, rgba(253,58,37,.18), rgba(253,58,37,0)); pointer-events: none;
}
.wx-include h2::after, .wx-formacion h2::after, .wx-founder h2::after {
  content: ""; display: block; width: 64px; height: 5px; border-radius: 99px; margin-top: 14px;
  background: linear-gradient(90deg, var(--brand), rgba(253,58,37,.3));
}
.wx-formacion h2::after { background: linear-gradient(90deg, #d97706, rgba(217,119,6,.3)); }

/* 2. Títulos sobre fondo oscuro (formulario de contacto y equipo) */
.section-contact .heading-section, .section-team .heading-section { position: relative; isolation: isolate; }
.section-contact .heading-section::before, .section-team .heading-section::before {
  content: ""; position: absolute; z-index: -1; left: -40px; top: 50%; width: 520px; height: 260px; transform: translateY(-50%);
  background:
    radial-gradient(closest-side, rgba(96,165,250,.22), rgba(96,165,250,.06) 55%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 50% 50% at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.section-team .heading-section::before { left: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(253,58,37,.24), rgba(253,58,37,.06) 55%, transparent 75%); }
.section-contact .heading-section .heading-title::after, .section-team .heading-section .heading-title::after {
  content: ""; display: block; width: 64px; height: 5px; border-radius: 99px; margin-top: 16px; background: linear-gradient(90deg, #60a5fa, rgba(96,165,250,.3));
}
.section-team .heading-section .heading-title::after { margin-left: auto; margin-right: auto; background: linear-gradient(90deg, var(--brand), rgba(253,58,37,.3)); }

/* 3. Cabeceras de la plantilla antigua (blog, legales, 404) */
.section-page-title, .section-404 { position: relative; isolation: isolate; }
.section-page-title .page-title, .section-404 h1 { position: relative; }
.section-page-title .page-title::before, .section-404 h1::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 760px; height: 280px; transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(253,58,37,.18), rgba(253,58,37,.05) 55%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 50% 50% at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.section-404 h1::before { background: radial-gradient(closest-side, rgba(253,58,37,.18), transparent 75%); }
.section-page-title .page-title::after, .section-404 h1::after {
  content: ""; display: block; width: 64px; height: 5px; border-radius: 99px; margin: 18px auto 0; background: linear-gradient(90deg, var(--brand), rgba(253,58,37,.3));
}

/* 4. Apartados de las páginas legales y títulos de los casos de proyecto */
.legal-wrap h2 {
  position: relative; padding: 12px 16px 12px 18px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(253,58,37,.09), rgba(253,58,37,0) 75%);
}
h2.heading { position: relative; display: inline-block; isolation: isolate; }
h2.heading::before {
  content: ""; position: absolute; z-index: -1; left: -14px; right: -14px; bottom: 2px; height: 42%; border-radius: 8px;
  background: linear-gradient(90deg, rgba(253,58,37,.16), rgba(253,58,37,.04));
}

@media (max-width: 767px) {
  .wx-include::before, .wx-formacion::before, .wx-founder::before { width: 300px; height: 220px; }
  .section-page-title .page-title::before, .section-404 h1::before { width: 360px; height: 220px; }
  .section-contact .heading-section::before { width: 320px; left: -20px; }
}

/* Sin punto delante de las etiquetas (también en las de la plantilla) */
.heading-section .heading-sub::before { display: none; }
.heading-section .heading-sub { padding-left: 16px; }
.wx-kicker::before, .wx-chip::before { content: none !important; }

/* Cabecera de los casos de uso */
.wx-case-hero { position: relative; aspect-ratio: 2 / 1; border-radius: 32px; padding: 28px 32px; overflow: hidden; color: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.12); display: flex; align-items: flex-end; }
.wx-case-hero.c1 { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.wx-case-hero.c2 { background: linear-gradient(135deg, #065f46, #10b981); }
.wx-case-hero.c3 { background: linear-gradient(135deg, #3b0764, #7c3aed); }
.wx-case-hero.c4 { background: linear-gradient(135deg, #7f1d1d, #FD3A25); }
.wx-case-hero .wx-case-svg { position: absolute; right: 8%; top: 14%; width: 52%; height: auto; }
.wx-case-hero-tag { font-weight: 700; font-size: 15px; letter-spacing: .06em; }
@media (max-width: 767px) { .wx-case-hero { border-radius: 24px; padding: 20px 22px; } }

/* ============ Pie de página ============ */
footer.wx-footer { position: relative; padding: 0 0 28px; margin-top: 24px; background: #0b0f1a; color: #c7cbd6; border-radius: 40px 40px 0 0; overflow: hidden; }
footer.wx-footer::before { content: ""; position: absolute; left: 50%; top: -220px; width: 900px; height: 440px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(253,58,37,.18), transparent 70%); pointer-events: none; }
.wx-footer .container { position: relative; }
.wx-footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 64px 0 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.wx-footer-cta h2 { color: #fff; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 8px; }
.wx-footer-cta p { margin: 0; font-size: 17px; color: #9aa1b2; }
.wx-footer-cta .tf-btn-2 { background: #fff; }
.wx-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 52px 0 44px; }
.wx-footer-logo img { width: 170px; height: auto; display: block; margin-bottom: 18px; }
.wx-footer-brand p { font-size: 15px; line-height: 1.6; color: #9aa1b2; max-width: 340px; margin: 0 0 18px; }
.wx-footer h3 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 4px 0 18px; }
.wx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.wx-footer ul a, .wx-footer-contact li { font-size: 15px; color: #c7cbd6; transition: color .2s; }
.wx-footer ul a:hover { color: #fff; }
.wx-footer-contact { margin-bottom: 20px !important; }
.wx-footer-social { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .2s; }
.wx-footer-social:hover { background: var(--brand); }
.wx-footer-social svg { width: 20px; height: 20px; fill: #fff; }
.wx-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; color: #7d8496; }
.wx-totop { color: #c7cbd6; font-weight: 600; }
.wx-totop:hover { color: #fff; }
@media (max-width: 991px) {
  .wx-footer-grid { grid-template-columns: 1fr 1fr; }
  .wx-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  footer.wx-footer { border-radius: 28px 28px 0 0; }
  .wx-footer-cta { padding: 48px 0 36px; }
  .wx-footer-cta .wx-btns, .wx-footer-cta .wx-btns > * { width: 100%; justify-content: center; }
  .wx-footer-grid { gap: 32px; padding: 40px 0 32px; }
}
/* Espacio para que los botones flotantes no tapen la barra inferior del pie */
footer.wx-footer { padding-bottom: 96px; }
.wx-footer-bottom { padding-left: 64px; padding-right: 64px; }
@media (max-width: 767px) { footer.wx-footer { padding-bottom: 92px; } .wx-footer-bottom { padding-left: 0; padding-right: 0; justify-content: center; text-align: center; } }
.wx-grid-center { grid-template-columns: minmax(0, 420px) !important; justify-content: center; }
.wx-footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 0.8fr; }
@media (max-width: 1199px) { .wx-footer-grid { grid-template-columns: 1fr 1fr 1fr; } .wx-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 767px) { .wx-footer-grid { grid-template-columns: 1fr 1fr; } }
.awards-item .title a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 4px; }
.awards-item .title a:hover { text-decoration-color: #fff; }

/* Menú con "IA para empresas": los enlaces no se parten y la barra es algo más ancha */
.tf-header .nav-menu-main .item-link { white-space: nowrap; }
.tf-header.header2 .header-inner { max-width: 880px; }
.tf-header .nav-menu-main { gap: 22px; }
@media (max-width: 1199px) { .tf-header .nav-menu-main { gap: 16px; } .tf-header .nav-menu-main .item-link { font-size: 15px; } }

/* Nada puede ensanchar la página en horizontal (la franja de logos sobresalía en móvil) */
html, body { max-width: 100%; overflow-x: clip; }
.section-partner, .infiniteSlide_tech_main { overflow: hidden; }

/* Selector de idioma */
.wx-lang { position: relative; margin: 0 10px 0 14px; z-index: 50; }
.wx-lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 99px; cursor: pointer; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: #1d1d1f; background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.08); transition: background .2s; user-select: none; }
.wx-lang summary::-webkit-details-marker { display: none; }
.wx-lang summary:hover, .wx-lang[open] summary { background: #fff; }
.wx-lang summary svg { width: 17px; height: 17px; }
.wx-lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; padding: 6px; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.05); display: flex; flex-direction: column; animation: wxLangIn .2s ease both; }
.wx-lang-menu a { padding: 10px 12px; border-radius: 10px; font-size: 15px; color: #1d1d1f; text-decoration: none; }
.wx-lang-menu a:hover { background: #f2f2f7; }
.wx-lang-menu a[aria-current] { font-weight: 700; color: #0071e3; }
@keyframes wxLangIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 991px) { .wx-lang { margin-right: 8px; } .wx-lang summary { height: 38px; padding: 0 11px; font-size: 13px; } }
@media (max-width: 991px) { .tf-header .wx-lang { display: none; } }
.wx-lang-mb { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.wx-lang-mb a { padding: 9px 16px; border-radius: 99px; border: 1px solid rgba(0,0,0,.12); font-size: 15px; font-weight: 600; color: inherit; text-decoration: none; }
.wx-lang-mb a[aria-current] { background: #1d1d1f; border-color: #1d1d1f; color: #fff; }
@media (min-width: 992px) { .wx-lang-mb { display: none; } }
/* El logo nunca se comprime (se deformaba al faltar espacio en la barra) */
.tf-header .logo-site { flex-shrink: 0; }
.tf-header .logo-site img { width: auto !important; max-width: none; flex-shrink: 0; }
@media (min-width: 992px) { .tf-header .header-inner { max-width: 960px !important; } }
