/* Portada de creapp.la — se carga después de styles.css y solo en la portada.
   Colores y tipografía: los de la marca (variables de styles.css). El lima nunca es color de texto sobre claro. */

.home { background: #fff; --head-h: 72px; --soft: #F3FAE9; }
.home section { padding: 96px 0; scroll-margin-top: var(--head-h); }
.home [id] { scroll-margin-top: calc(var(--head-h) + 8px); }
.home .section-head.center { max-width: 760px; }
.home .hx-white { background: #fff; }
.home .hx-tint { background: var(--soft); }
.home .hx-narrow { max-width: 860px; }

.hx-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--petrol); color: #fff; padding: 10px 16px; border-radius: 10px; }
.hx-skip:focus { left: 8px; color: #fff; }
/* El foco lima no se ve sobre blanco: en claro se usa petróleo */
.home :focus-visible { outline: 3px solid var(--petrol-3); outline-offset: 2px; }
.home .hx-dark :focus-visible, .home .hx-cta :focus-visible, .home .hx-footer :focus-visible, .home .hx-metrics :focus-visible { outline-color: var(--lime); }

/* ---------- Botones ---------- */
.hx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
  padding: 12px 26px; border-radius: 12px; border: 2px solid transparent;
  font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.hx-btn-sm { min-height: 42px; padding: 8px 18px; font-size: .93rem; border-radius: 10px; }
.hx-btn-solid, .hx-nav a.hx-btn-solid { background: var(--petrol); color: #fff; }
.hx-btn-solid:hover, .hx-nav a.hx-btn-solid:hover { background: var(--petrol-3); color: #fff; }
.hx-btn-line { border-color: var(--petrol); color: var(--petrol); }
.hx-btn-line:hover { background: var(--lime); border-color: var(--lime); color: var(--petrol); }
.hx-btn-lime { background: var(--lime); color: var(--petrol); }
.hx-btn-lime:hover { background: var(--lime-hover); color: var(--petrol); }
.hx-btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.hx-btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- Encabezado y mega-menú ---------- */
.hx-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.hx-header > .wrap { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); position: relative; }
.hx-header .logo img { height: 28px; }
.hx-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.hx-spacer { flex: 1; }
.hx-menu summary, .hx-nav .hx-link {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--petrol); font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; list-style: none; white-space: nowrap;
}
.hx-menu summary::-webkit-details-marker { display: none; }
.hx-menu summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.hx-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.hx-menu summary:hover, .hx-menu[open] summary, .hx-nav .hx-link:hover { background: var(--soft); color: var(--petrol); }
.hx-nav .hx-lang { border: 1px solid var(--line); margin-right: 8px; font-size: .85rem; }
.hx-panel {
  position: absolute; left: 24px; right: 24px; top: calc(100% + 1px); background: #fff;
  border: 1px solid var(--line); border-top: 3px solid var(--lime); border-radius: 0 0 18px 18px;
  box-shadow: 0 24px 48px rgba(8,34,48,.14); padding: 20px;
}
.hx-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.hx-panel a { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; text-decoration: none; color: var(--petrol); }
.hx-panel a:hover { background: var(--soft); }
.hx-panel b { display: block; font-size: .96rem; }
.hx-panel small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.hx-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--lime); color: var(--petrol); }
.hx-ico svg { width: 23px; height: 23px; }
.hx-burger { display: none; }

@media (max-width: 1020px) {
  .home { --head-h: 64px; }
  .hx-header > .wrap { justify-content: space-between; }
  .js .hx-burger {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--petrol); font: inherit; font-weight: 700; cursor: pointer;
  }
  .hx-bars, .hx-bars::before, .hx-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
  .hx-bars { position: relative; }
  .hx-bars::before, .hx-bars::after { content: ""; position: absolute; left: 0; top: -6px; }
  .hx-bars::after { top: 6px; }
  /* Sin JavaScript, el menú queda visible bajo el logo */
  .home:not(.js) .hx-header { position: static; }
  .home:not(.js) .hx-header > .wrap { flex-wrap: wrap; }
  .hx-nav { flex-direction: column; align-items: stretch; width: 100%; padding: 8px 0 16px; }
  .js .hx-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: 8px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(8,34,48,.14); max-height: calc(100dvh - var(--head-h)); overflow-y: auto; }
  .js .hx-nav.open { display: flex; }
  .hx-menu summary { justify-content: space-between; }
  .hx-panel { position: static; border: 0; box-shadow: none; padding: 0 0 8px; }
  .hx-panel ul { grid-template-columns: 1fr; }
  .hx-panel a { padding: 8px 12px; }
  .hx-spacer { display: none; }
  .hx-nav .hx-lang { margin: 8px 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.home .hx-hero {
  position: relative; overflow: hidden; padding: 72px 0 80px;
  background:
    radial-gradient(700px 480px at 85% 20%, rgba(191,243,118,.38), transparent 65%),
    linear-gradient(180deg, var(--soft), #fff);
}
.hx-hero > .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hx-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); line-height: 1.04; letter-spacing: -.035em; margin: 16px 0 20px; }
.hx-hero h1 mark { color: inherit; background: linear-gradient(transparent 66%, var(--lime) 66%, var(--lime) 94%, transparent 94%); }
.hx-lead { font-size: 1.18rem; color: #3E4B50; max-width: 540px; margin: 0 0 30px; }
.hx-assure { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; font-weight: 700; color: var(--petrol); }
.hx-assure li, .hx-check li { position: relative; padding-left: 24px; }
.hx-assure li::before, .hx-check li::before { content: "✓"; position: absolute; left: 0; top: .18em; width: 17px; height: 17px; border-radius: 50%; background: var(--lime); color: var(--petrol); font-size: .68rem; font-weight: 800; display: grid; place-items: center; }

.hx-stage { position: relative; height: 560px; isolation: isolate; }
.hx-stage-bg { position: absolute; z-index: -1; inset: 54px 12px 30px; border-radius: 44px; overflow: hidden; background: linear-gradient(150deg, var(--petrol-3), var(--petrol) 60%); transform: rotate(-3deg); }
.hx-stage-bg .hx-art { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto !important; }
.hx-stage-bg .hx-art img { height: 100%; object-fit: cover; }
.hx-stage-bg .hx-art-ph { background: none; color: var(--lime); }
/* En escritorio el panel sobresale más para que se vea la ilustración tras los teléfonos */
@media (min-width: 941px) { .hx-stage-bg { inset: 0 -30px 0; } }
.hx-phone { position: absolute; border-radius: 34px; padding: 7px; background: #0B1418; box-shadow: 0 30px 60px rgba(8,34,48,.35); }
.hx-phone img { width: 100%; height: auto; border-radius: 28px; }
.hx-phone-c { width: 250px; left: calc(50% - 125px); top: 0; z-index: 2; }
.hx-phone-l { width: 205px; left: 0; top: 88px; transform: rotate(-6deg); }
.hx-phone-r { width: 205px; right: 0; top: 88px; transform: rotate(6deg); }
.hx-toast { position: absolute; z-index: 3; left: 2%; bottom: 20px; display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px 12px 12px; box-shadow: 0 18px 40px rgba(8,34,48,.24); color: var(--petrol); line-height: 1.35; }
.hx-toast b, .hx-toast small { display: block; }
.hx-toast small { color: var(--muted); }
.hx-onair { position: absolute; z-index: 3; right: 3%; top: 38px; display: flex; align-items: center; gap: 8px; background: var(--lime); color: var(--petrol); font-weight: 800; font-size: .78rem; letter-spacing: .08em; border-radius: 999px; padding: 9px 15px; box-shadow: 0 10px 24px rgba(8,34,48,.2); }
.hx-onair i { width: 9px; height: 9px; border-radius: 50%; background: #C62828; }

@media (max-width: 940px) {
  .home .hx-hero { padding: 44px 0 56px; }
  .hx-hero > .wrap { grid-template-columns: minmax(0, 1fr); }
  .hx-stage { width: 100%; max-width: 560px; margin: 8px auto 0; }
}
@media (max-width: 560px) {
  .hx-stage { height: 430px; }
  .hx-stage-bg { inset: 44px 4px 20px; border-radius: 30px; }
  .hx-phone { border-radius: 26px; padding: 5px; }
  .hx-phone img { border-radius: 21px; }
  .hx-phone-c { width: 184px; left: calc(50% - 92px); }
  .hx-phone-l, .hx-phone-r { width: 140px; top: 70px; }
  .hx-phone-l { left: 2px; }
  .hx-phone-r { right: 2px; }
  .hx-toast { left: 0; bottom: 4px; font-size: .86rem; }
  .hx-onair { right: 0; top: 24px; }
  .hx-hero .btns .hx-btn { flex: 1 1 100%; }
}

/* ---------- Franja de clientes ---------- */
.hx-trust { background: #fff; border-block: 1px solid var(--line); padding: 28px 0; }
.hx-trust p { margin: 0 0 16px; text-align: center; font-weight: 700; color: var(--muted); font-size: .95rem; }
.hx-trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.hx-trust a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--petrol); line-height: 1.35; padding: 6px 8px; border-radius: 14px; }
.hx-trust a:hover { background: var(--soft); }
.hx-trust .app-icon { width: 48px; height: 48px; border-radius: 13px; }
.hx-trust b, .hx-trust small { display: block; }
.hx-trust small { color: var(--muted); }

/* ---------- Ilustraciones ---------- */
.hx-art { display: block; width: 100%; }
.hx-art img { width: 100%; height: auto; display: block; }
.hx-wide { border-radius: 22px; overflow: hidden; margin: 0 0 44px; }
/* Ilustraciones sueltas: borde difuminado para que no se vea el recuadro */
picture.hx-wide img, .hx-split-head picture.hx-art img[src*="funciones"], .hx-cta picture.hx-art img {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 9%, #000 91%, transparent);
  mask-composite: intersect;
}
.hx-steps { clear: both; }
.hx-art-ph { position: relative; overflow: hidden; display: grid; place-items: center; width: 100%; background: radial-gradient(circle at 78% 18%, rgba(191,243,118,.9), transparent 42%), radial-gradient(circle at 12% 92%, rgba(22,64,90,.18), transparent 55%), #E7F5D6; color: var(--petrol); }
.hx-art-ph .hx-art-tri { position: absolute; right: -6%; bottom: -14%; width: 52%; opacity: .12; }
.hx-art-ph span { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; background: var(--petrol); color: var(--lime); box-shadow: 0 16px 30px rgba(8,34,48,.2); }
.hx-art-ph span svg { width: 42px; height: 42px; }

/* ---------- Soluciones ---------- */
.hx-solutions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.hx-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.hx-card-body { padding: 22px; }
.hx-card h3 { margin: 0 0 8px; font-size: 1.2rem; letter-spacing: -.01em; }
.hx-card p { margin: 0 0 16px; color: var(--muted); font-size: .96rem; }
.hx-check { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.hx-check li { margin: 9px 0; }
.hx-webnote { margin: 34px 0 0; text-align: center; color: var(--muted); }
.hx-webnote a { font-weight: 700; }
@media (max-width: 1020px) { .hx-solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .hx-solutions { grid-template-columns: minmax(0, 1fr); }
  }

/* ---------- Plataformas ---------- */
.home .hx-dark { background: radial-gradient(800px 460px at 90% 0%, rgba(191,243,118,.14), transparent 60%), var(--petrol); color: rgba(255,255,255,.76); }
.hx-dark h2 { color: #fff; }
.hx-dark .kicker { color: var(--lime); }
.hx-dark .kicker::before { border-bottom-color: var(--lime); }
.hx-dark .section-head p { color: rgba(255,255,255,.72); }
.hx-platforms { list-style: none; margin: 0 0 48px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hx-platforms li { flex: 1 1 132px; max-width: 160px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 20px 10px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); line-height: 1.3; }
.hx-platforms b { color: #fff; font-size: .94rem; }
.hx-platforms small { color: rgba(255,255,255,.66); font-size: .8rem; }
.hx-platforms { position: relative; }
.hx-dark .hx-art-ph { background: radial-gradient(circle at 78% 18%, rgba(191,243,118,.28), transparent 45%), var(--petrol-2); color: var(--lime); }
.hx-auto { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; margin-bottom: 36px; }
.hx-auto > *, .hx-shots > * { min-width: 0; }
.hx-auto > .hx-art { border-radius: 22px; overflow: hidden; }
.hx-auto-screens { display: grid; gap: 20px; }
.hx-dark figure { margin: 0; }
.hx-dark figcaption { margin-top: 12px; text-align: center; font-size: .86rem; font-weight: 700; color: rgba(255,255,255,.72); }
.hx-shots { display: grid; grid-template-columns: 1.45fr 1fr; gap: 36px; align-items: end; }

/* Marcos de dispositivo (CSS) */
.hx-dev { position: relative; background: #05090B; box-shadow: 0 24px 48px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.14); }
.hx-dev img { display: block; width: 100%; height: auto; }
.hx-dev-car { max-width: 380px; margin: 0 auto; padding: 9px 9px 18px; border-radius: 20px; }
.hx-dev-car img { border-radius: 11px; }
.hx-dev-car::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 46px; height: 4px; margin-left: -23px; border-radius: 4px; background: rgba(255,255,255,.22); }
.hx-dev-tv { padding: 8px; border-radius: 10px; margin-bottom: 26px; }
.hx-dev-tv img { border-radius: 3px; }
.hx-dev-tv::before { content: ""; position: absolute; top: 100%; left: 50%; width: 40px; height: 18px; margin-left: -20px; background: #1B2A31; }
.hx-dev-tv::after { content: ""; position: absolute; top: calc(100% + 18px); left: 50%; width: 180px; height: 8px; margin-left: -90px; border-radius: 8px 8px 2px 2px; background: #2A3C45; }
.hx-dev-tablet { padding: 12px; border-radius: 28px; }
.hx-dev-tablet img { border-radius: 16px; }
.hx-dev-tablet::after { content: ""; position: absolute; top: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; background: #33444C; }
@media (max-width: 860px) {
  .hx-auto, .hx-shots { grid-template-columns: minmax(0, 1fr); }
  .hx-shots { max-width: 520px; margin: 0 auto; }
  .hx-platforms li { flex-basis: calc(50% - 7px); max-width: calc(50% - 7px); }
}

/* ---------- Funciones ---------- */
.hx-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hx-features li { background: #fff; border: 1px solid #E0EBD2; border-radius: 18px; padding: 24px; }
.hx-features h3 { margin: 16px 0 6px; font-size: 1.07rem; }
.hx-features p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 980px) { .hx-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .hx-features { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hx-features li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 18px; }
  .hx-features .hx-ico { grid-row: span 2; }
  .hx-features h3 { margin: 0 0 4px; }
}

/* ---------- Panel ---------- */
.hx-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.hx-split > * { min-width: 0; }
.hx-split .section-head { margin-bottom: 22px; }
.hx-split .btns { margin-top: 28px; }
.hx-window { margin: 0; border: 1px solid var(--line); border-radius: 18px; background: #ECEFF8; overflow: hidden; box-shadow: 0 34px 70px rgba(8,34,48,.16); }
.hx-window-bar { display: flex; gap: 7px; padding: 12px 16px; background: var(--petrol); }
.hx-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); opacity: .55; }
.hx-window img { width: 100%; height: auto; }
.hx-window figcaption { padding: 9px 16px; background: #fff; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.hx-split-head { grid-template-columns: 1.2fr .8fr; margin-bottom: 40px; }
.hx-split-head .hx-art { max-width: 420px; width: 100%; justify-self: end; border-radius: 22px; overflow: hidden; }
.hx-faq { display: grid; grid-template-columns: .55fr 1fr; gap: 40px; align-items: start; }
.hx-faq > * { min-width: 0; }
.hx-faq > .hx-art { border-radius: 22px; overflow: hidden; }
@media (max-width: 900px) { .hx-faq { grid-template-columns: minmax(0, 1fr); } .hx-faq > .hx-art { max-width: 420px; margin: 0 auto; } }
@media (max-width: 900px) {
  .hx-split, .hx-split-head { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hx-split-head .hx-art { justify-self: start; }
}

/* ---------- Métricas ---------- */
.home .hx-metrics { padding: 56px 0; background: var(--lime); color: var(--petrol); }
.hx-metrics ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; text-align: center; }
.hx-metrics strong { display: block; font-size: clamp(2.6rem, 5.4vw, 4rem); line-height: 1; letter-spacing: -.04em; font-weight: 800; margin-bottom: 10px; }
.hx-metrics span { font-weight: 700; display: block; max-width: 220px; margin: 0 auto; line-height: 1.4; }
@media (max-width: 760px) { .hx-metrics ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Pasos ---------- */
.hx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.hx-steps li { position: relative; border-top: 3px solid var(--line); padding-top: 22px; }
.hx-num { position: absolute; top: -23px; left: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--petrol); color: var(--lime); font-weight: 800; }
.hx-steps h3 { margin: 18px 0 6px; font-size: 1.12rem; }
.hx-steps p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) { .hx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; } }
@media (max-width: 560px) { .hx-steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Comparación ---------- */
.hx-compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-align: left; font-size: .96rem; }
.hx-compare caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hx-compare th, .hx-compare td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.hx-compare tbody tr:last-child > * { border-bottom: 0; }
.hx-compare thead th { background: var(--petrol); color: #fff; }
.hx-compare thead th:nth-child(2) { background: var(--lime); color: var(--petrol); }
.hx-compare tbody th { width: 22%; color: var(--ink); }
.hx-compare td:nth-child(2) { width: 42%; background: #F7FDEE; color: var(--petrol); font-weight: 700; }
.hx-compare td:nth-child(3) { color: var(--muted); }
.hx-fine { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }
@media (max-width: 700px) {
  .hx-compare, .hx-compare tbody, .hx-compare tr, .hx-compare th, .hx-compare td { display: block; width: auto; }
  .hx-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hx-compare tbody th, .hx-compare td:nth-child(2) { width: auto; }
  .hx-compare tr { border-bottom: 1px solid var(--line); }
  .hx-compare tr:last-child { border-bottom: 0; }
  .hx-compare th, .hx-compare td { border: 0; padding: 8px 16px; }
  .hx-compare tbody th { padding-top: 18px; font-size: 1.05rem; }
  .hx-compare td { padding-bottom: 14px; }
  .hx-compare td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
}

/* ---------- Clientes ---------- */
.hx-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.hx-apps .app-card { flex: 1 1 300px; max-width: 357px; }

/* ---------- CTA final ---------- */
.home .hx-cta { padding: 80px 0; background: radial-gradient(600px 380px at 8% 110%, rgba(191,243,118,.2), transparent 65%), var(--petrol); color: rgba(255,255,255,.78); }
.hx-cta > .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hx-cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; }
.hx-cta p { font-size: 1.12rem; margin: 0 0 28px; }
.hx-cta .hx-art { border-radius: 24px; overflow: hidden; }
@media (max-width: 800px) { .hx-cta > .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .hx-cta .btns .hx-btn { flex: 1 1 100%; } }

/* ---------- Contacto ---------- */
.home .contact-grid > * { min-width: 0; }
.home .contact-info span { overflow-wrap: anywhere; }

/* ---------- Pie ---------- */
.hx-footer { background: #061A25; color: rgba(255,255,255,.68); padding: 68px 0 32px; font-size: .93rem; }
.hx-foot-top { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; }
.hx-foot-brand p { margin: 18px 0 0; }
.hx-foot-contact a { display: block; width: fit-content; margin: 6px 0; }
.hx-foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hx-footer h2 { margin: 0 0 14px; color: var(--lime); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.hx-footer ul { list-style: none; margin: 0; padding: 0; }
.hx-footer li { margin: 9px 0; line-height: 1.4; }
.hx-footer a { color: rgba(255,255,255,.76); text-decoration: none; }
.hx-footer a:hover { color: var(--lime); }
.hx-marks { margin: 48px 0 0; font-size: .76rem; color: rgba(255,255,255,.55); }
.hx-footer .footer-bottom { margin-top: 20px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; }
@media (max-width: 900px) { .hx-foot-top { grid-template-columns: minmax(0, 1fr); } .hx-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 600px) { .home section { padding: 64px 0; } .home .hx-metrics { padding: 44px 0; } }
@media (max-width: 420px) { .home .wrap { padding-left: 18px; padding-right: 18px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hx-btn { transition: none; } }

/* ---------- Barra de anuncio y accesos ---------- */
.hx-announce { margin: 0; background: var(--petrol); color: #fff; text-align: center; font-size: .87rem; font-weight: 600; padding: 9px 18px; }
.hx-announce a { color: var(--lime); font-weight: 800; margin-left: 8px; white-space: nowrap; }
.hx-announce a::after { content: " →"; }
.hx-goals { padding: 40px 0 0; background: #fff; }
.hx-goals p { margin: 0 0 16px; text-align: center; font-weight: 800; color: var(--petrol); font-size: 1.15rem; }
.hx-goals ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hx-goals a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--petrol); box-shadow: var(--shadow); line-height: 1.35; }
.hx-goals a:hover { border-color: var(--petrol); background: var(--soft); color: var(--petrol); }
.hx-goals i { margin-left: auto; font-style: normal; font-weight: 800; }
@media (max-width: 900px) { .hx-goals ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hx-goals ul { grid-template-columns: minmax(0, 1fr); gap: 10px; } .hx-goals a { padding: 12px 14px; } }

/* ---------- Pestañas de servicios ---------- */
.hx-tablist { display: none; }
.hx-tabs.ready .hx-tablist { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.hx-tablist button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--petrol); font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; }
.hx-tablist button svg { width: 20px; height: 20px; }
.hx-tablist button:hover { border-color: var(--petrol); }
.hx-tablist button[aria-selected="true"] { background: var(--petrol); border-color: var(--petrol); color: var(--lime); }
.hx-tabpanel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; background: var(--soft); border-radius: 28px; padding: 48px; margin-bottom: 16px; }
.hx-tabpanel[hidden] { display: none; }
.hx-tabpanel > * { min-width: 0; }
.hx-tabpanel figure { margin: 0; }
.hx-tabpanel figcaption { margin-top: 12px; text-align: center; font-size: .84rem; font-weight: 700; color: var(--muted); }
.hx-tabpanel .hx-window figcaption { margin: 0; text-align: left; font-weight: 500; }
.hx-tabpanel .hx-dev-tv { margin-bottom: 26px; }
.hx-tabcopy h3 { margin: 0 0 12px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -.025em; }
.hx-tabcopy > p { margin: 0 0 18px; color: var(--muted); }
.hx-tabcopy .hx-btn { margin-top: 20px; }
.hx-autoset { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: center; }
.hx-autoset > * { min-width: 0; }
.hx-autoset > .hx-art { border-radius: 20px; overflow: hidden; }
.hx-autoset figure + figure { margin-top: 16px; }
@media (max-width: 900px) { .hx-tabpanel { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 24px 18px; } }
@media (max-width: 640px) { .hx-autoset { grid-template-columns: minmax(0, 1fr); } .hx-tabs.ready .hx-tablist { display: grid; grid-template-columns: 1fr 1fr; } .hx-tablist button { justify-content: center; padding: 8px 10px; font-size: .86rem; line-height: 1.2; } }

/* ---------- Diferencias ---------- */
.hx-difs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hx-difs li { padding: 24px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.hx-difs li:first-child { background: var(--lime); border-color: var(--lime); color: var(--petrol); }
.hx-difs li:first-child h3, .hx-difs li:first-child p { color: var(--petrol); }
.hx-difs li:first-child .hx-ico { background: var(--petrol); color: var(--lime); }
.hx-difs h3 { margin: 16px 0 6px; font-size: 1.08rem; color: #fff; }
.hx-difs p { margin: 0; font-size: .94rem; color: rgba(255,255,255,.72); }
@media (max-width: 900px) { .hx-difs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hx-difs { grid-template-columns: minmax(0, 1fr); gap: 12px; } .hx-difs li { padding: 20px; } }

/* ---------- Filas alternadas ---------- */
.hx-rows { display: grid; gap: 96px; }
.hx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hx-row > * { min-width: 0; }
.hx-row:nth-child(even) .hx-rowvisual { order: -1; }
.hx-row h2 { margin: 12px 0 14px; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -.025em; }
.hx-row p { margin: 0 0 18px; color: var(--muted); font-size: 1.06rem; }
.hx-rowvisual > .hx-art { border-radius: 24px; overflow: hidden; }
.hx-duo { display: flex; justify-content: center; align-items: flex-start; gap: 20px; padding: 32px 20px; border-radius: 24px; background: linear-gradient(150deg, var(--petrol-3), var(--petrol) 60%); }
.hx-duo .hx-phone { position: static; width: min(210px, 46%); }
.hx-duo .hx-phone + .hx-phone { margin-top: 36px; }
@media (max-width: 860px) { .hx-rows { gap: 64px; } .hx-row { grid-template-columns: minmax(0, 1fr); gap: 28px; } .hx-row:nth-child(even) .hx-rowvisual { order: 0; } }

/* ---------- Historias ---------- */
.hx-stories { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 40px; }
.hx-story { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: center; padding: 0 28px 0 0; border-radius: 22px; background: var(--soft); overflow: hidden; }
.hx-story-img { align-self: stretch; height: 290px; overflow: hidden; padding: 26px 0 0 22px; background: var(--petrol); }
.hx-story-img img { width: 100%; height: auto; border-radius: 18px 18px 0 0; }
.hx-label { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--lime); color: var(--petrol); font-size: .76rem; font-weight: 800; }
.hx-story h3 { margin: 12px 0 8px; font-size: 1.25rem; line-height: 1.2; }
.hx-story p { margin: 0 0 14px; color: var(--muted); font-size: .94rem; }
.hx-story a { font-weight: 800; font-size: .92rem; }
@media (max-width: 900px) { .hx-stories { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .hx-story { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; } .hx-story-img { height: 220px; padding: 22px 22% 0; } .hx-story > div:last-child { padding: 20px; } }
.hx-tabs { scroll-margin-top: calc(var(--head-h) + 12px); }
