/* =========================================================
   FleTrack — componentes de páginas internas
   (se carga después de styles.css)
   ========================================================= */
.btn .ico { display: inline-flex; width: 16px; height: 16px; }
.btn .ico svg { width: 16px; height: 16px; fill: currentColor; }
.nav__link[aria-current="page"] { background: rgba(255, 255, 255, .45); }

.section--flush-bottom { padding-bottom: 0; }

/* ---------- Hero interno ---------- */
.phero { padding: 250px var(--gutter) 100px; }
.phero__inner { display: flex; flex-direction: column; gap: 20px; }
.phero__inner .pill { align-self: flex-start; }
.phero__title {
  max-width: var(--w-ptitle);
  font-size: 96px; font-weight: 500; line-height: 1; letter-spacing: -5.76px;
}
.banner { height: 500px; background: #f0f0f0; }

/* ---------- Encabezado de sección ---------- */
.shead { display: flex; flex-direction: column; gap: 10px; }
.shead--center { align-items: center; text-align: center; }
.shead--left { align-items: flex-start; }
.shead .pill { margin-bottom: 10px; }
.shead .split { margin-top: 10px; }

/* Cajita de ícono */
.ibox {
  display: grid; place-items: center; flex: none;
  width: 75px; height: 75px; border-radius: 30px; background: var(--accent);
}
.ibox svg, .bigprod svg, .checklist svg {
  width: 25px; height: 25px; fill: none; stroke: var(--ink);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ibox--sm { width: 56px; height: 56px; border-radius: 20px; }
.ibox--sm svg { width: 22px; height: 22px; }

/* ---------- Grilla de 4 (soluciones) ---------- */
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 25px; margin-top: 20px; }
.fbox { background: #fff; border-radius: 25px; padding: 30px clamp(28px, 3vw, 50px) 40px; display: flex; flex-direction: column; gap: 20px; }
.fbox h3 { font-size: 19.2px; font-weight: 700; line-height: 1.2; letter-spacing: -.6px; }
.fbox p { margin-top: -10px; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* ---------- Split oscuro ---------- */
.dsplit { background: var(--ink); color: #fff; padding: 100px 0 100px var(--gutter); overflow: hidden; }
.dsplit__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.dsplit__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-right: 40px; }
.dsplit__text > * { max-width: var(--w-text); }
.dsplit .lead { color: #fff; }
.dsplit__media { min-height: 420px; border-radius: 25px 0 0 25px; }

/* ---------- Tarjetas hardware / plataforma ---------- */
.hwlist { display: flex; flex-direction: column; gap: 20px; padding-top: 25px; margin-top: 20px; }
.hwrow { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hw { background: #fff; border-radius: 25px; display: flex; }
.hw--wide { display: grid; grid-template-columns: 502fr 449fr; }
.hw__text { padding: 50px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 10px; }
.hw__text .tag { margin-bottom: 10px; }
.hw h3 { font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -2.4px; }
.hw p { font-size: 16px; line-height: 1.3; letter-spacing: -.32px; color: var(--ink-2); }
.hw__media { border-radius: 25px; min-height: 280px; }

/* ---------- Tarjetas de blog (como el loop del original) ----------
   Imagen a tamaño natural anclada arriba a la izquierda, velo uniforme
   rgb(27,26,26) al 50% y contenido alineado abajo. */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 50px; }
.post-card {
  position: relative; min-height: 450px; border-radius: 35px; overflow: hidden; isolation: isolate;
  padding: 50px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 10px;
  background-color: #1b1a1a; background-repeat: no-repeat; background-position: 0 0; background-size: max(100%, 1000px) auto;
  color: #fff;
  animation: post-in .3s ease-out;
}
.post-card[hidden] { display: none; }
@keyframes post-in { from { opacity: 0; transform: translateY(8px); } }
.post-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(27, 26, 26); opacity: .5; transition: opacity .3s ease; }
.post-card:hover::before { opacity: .38; }
.post-card .tag { position: relative; z-index: 1; color: var(--ink); font-size: 14.4px; letter-spacing: -.864px; }
.post-card h3 { font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -.96px; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.posts__empty { grid-column: 1 / -1; color: var(--ink-2); }

/* ---------- Logos (confianza) ---------- */
.logos { width: 100%; display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid rgba(255, 255, 255, .35); border-radius: 25px; padding: 50px; margin-top: 10px; }
.logos__item { padding: 25px; border-right: 1px solid #333; display: grid; place-items: center; }
.logos__item:last-child { border-right: 0; }
.logos__ph { width: 100%; max-width: 91px; height: 24px; border-radius: 6px; background: rgba(255, 255, 255, .14); }

/* ---------- Mosaico de productos ---------- */
.eco-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 50px; }
.eco-tile { border-radius: 25px; padding: 50px; display: grid; place-items: center; min-height: 124px; transition: transform .25s ease; }
.eco-tile:hover { transform: translateY(-3px); }
.eco-tile img { width: 100%; max-width: 123px; height: auto; }
.eco-media { height: 600px; margin-top: 20px; }

/* ---------- Tarjetas de producto con imagen ---------- */
.prod-cards--img .prod-card::before {
  content: ""; display: block; height: 180px; border-radius: 25px 25px 0 0;
  background:
    radial-gradient(circle at 42% 44%, #f1f3f5 0 7%, transparent 7.3%),
    radial-gradient(circle at 78% 130%, #f1f3f5 0 50%, transparent 50.4%),
    #c2c9d1;
}
.prod-card__head--solo { grid-template-columns: 1fr; }
.prod-card__head--solo h3 { text-align: left; }
.prod-cards--img .prod-card__foot > span:first-child { font-size: 16px; letter-spacing: -.5px; }

/* ---------- Industrias ---------- */
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 25px; margin-top: 20px; }
.cbox { background: #fff; border-radius: 25px; padding: 50px; display: flex; flex-direction: column; gap: 25px; }
.cbox h3 { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.72px; margin-top: 20px; }
.cbox p { margin-top: -10px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.markets__title { margin: 40px 0 20px; font-size: 32px; font-weight: 500; letter-spacing: -1.6px; }
.markets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.market {
  position: relative; min-height: 250px; border-radius: 25px; overflow: hidden; isolation: isolate;
  padding: 25px 15px 15px; display: flex; align-items: flex-end;
  background: url("/assets/blog-2-fletrack.jpg") center / cover;
}
.market::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .25); }
.market .tag { white-space: normal; line-height: 1.15; }

.esplit { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 100px var(--gutter) 100px 0; }
.esplit__media { align-self: stretch; min-height: 600px; border-radius: 0 25px 25px 0; }
.esplit__text { padding-left: var(--gutter); display: flex; flex-direction: column; gap: 20px; }
.esplit__text > .eyebrow, .esplit__text > .h2 { max-width: var(--w-text); }
.egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 10px; }
.ebox { background: #fff; border-radius: 25px; padding: 25px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.ebox h3 { font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -.48px; }
.ebox p { margin-top: 4px; font-size: 12.8px; line-height: 1.5; color: var(--muted); }

/* ---------- Dos columnas (soluciones, nosotros) ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.two-col__text > * { max-width: var(--w-text); }
.two-col__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.two-col__media { align-self: stretch; min-height: 620px; border-radius: 25px; background: #f0f0f0; }
.hlist { display: flex; flex-direction: column; gap: 10px; }
.hbox { background: #fff; border-radius: 25px; padding: 20px 40px 20px 20px; display: flex; align-items: center; gap: 25px; min-height: 150px; }
.hbox h3 { font-size: 19.2px; font-weight: 700; line-height: 1.2; letter-spacing: -.6px; }
.hbox p { margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; font-size: 16px; line-height: 1.45; color: #333; }
.checklist svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }

/* ---------- Planes en fondo claro ---------- */
.plans--white .plan { background: #fff; }

/* ---------- Productos (tarjetas grandes de color) ---------- */
.bigprods { display: flex; flex-direction: column; gap: 20px; padding-top: 50px; }
.bigprod { display: grid; grid-template-columns: 54fr 46fr; border-radius: 25px; overflow: hidden; color: #fff; }
.bigprod--light { color: #333; }
.bigprod__text { padding: clamp(60px, 6vw, 100px); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.bigprod__text img { width: 100%; max-width: 300px; height: auto; margin-bottom: 10px; }
.bigprod h2 { font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -2.4px; }
.bigprod p { font-size: 19.2px; line-height: 1.3; letter-spacing: -.384px; }
.bigprod ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bigprod li { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.bigprod li svg { width: 20px; height: 20px; stroke: currentColor; }
.bigprod__media { min-height: 100%; }

/* ---------- Sección azul (nosotros) ---------- */
.blue { background: #005ed0; color: #fff; }
.eyebrow--white { color: #fff; margin-bottom: 10px; }
.blue__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.blue__head img { width: 100%; max-width: 360px; height: auto; }
.blue .prod-card { color: var(--ink); }

/* ---------- Contacto ---------- */
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 50px; background: #fff; border-radius: 25px; padding: 40px; }
.cform label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: -.3px; color: var(--ink-2); }
.cform input, .cform select, .cform textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  background: var(--page); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent); }
.cform [aria-invalid="true"] { border-color: var(--cross); }
.cform__full { grid-column: 1 / -1; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform label span[aria-hidden] { color: var(--cross); }
.cform__off { margin-top: 40px; color: var(--ink-2); }
.cform button:disabled { opacity: .6; cursor: progress; }
.cform__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cform__foot .btn { box-shadow: none; padding: 15px 28px; }
.cform__status { font-size: 15px; color: var(--ink-2); }
.section--channels { padding-block: 150px; }
.channels { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; align-items: start; }
.channels__list { display: grid; grid-template-columns: 1fr 1fr; }
.channel { display: flex; flex-direction: column; gap: 10px; padding-right: 20px; }
.channel h3 { font-size: 19.2px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.channel a { font-weight: 600; }
.channel a:hover { text-decoration: underline; }

/* ---------- Blog ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 20px; }
.chip { padding: 8px; font-size: 14.4px; color: #69727d; transition: color .2s ease; }
.chip:hover, .chip--active { color: #0c0d0e; }
.chip--active { font-weight: 600; }

.post { padding: 250px var(--gutter) 100px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.post__head { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.pill--gap { gap: 10px; }
.post__img { width: 100%; max-width: var(--max); height: 500px; object-fit: cover; border-radius: 50px; margin: 20px 0; }
.post__body { max-width: 760px; font-size: 19.2px; line-height: 1.5; letter-spacing: -.384px; color: var(--ink-2); }
.post__body p { margin-bottom: 1em; }
.post__body ul { margin: 0 0 1em; padding-left: 1.2em; }
.post__body li { margin-bottom: .3em; }
.post__body strong { color: var(--ink); }
.post__rule { width: 100%; max-width: 760px; border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.post__share-title { font-size: 32px; font-weight: 500; letter-spacing: -1.6px; text-align: center; }
.share { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.share a { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; transition: transform .2s ease; }
.share a:hover { transform: scale(1.08); }
.share svg { width: 18px; height: 18px; fill: #fff; }
.post-nav { width: 100%; max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-nav a { display: flex; flex-direction: column; gap: 6px; }
.post-nav small { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-2); }
.post-nav span { font-weight: 600; letter-spacing: -.3px; }
.post-nav a:hover span { text-decoration: underline; }
.post-nav__next { text-align: right; align-items: flex-end; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .markets { grid-template-columns: repeat(3, 1fr); }
  .hw h3 { font-size: 34px; letter-spacing: -1.9px; }
}

@media (max-width: 1024px) {
  .phero { padding-top: 180px; padding-bottom: 80px; }
  .phero__title { font-size: 72px; letter-spacing: -4.2px; }
  .banner { height: 360px; }
  .dsplit { padding-right: var(--gutter); }
  .dsplit__inner { grid-template-columns: 1fr; gap: 48px; }
  .dsplit__text { padding-right: 0; }
  .dsplit__media { border-radius: 25px; min-height: 320px; }
  .hw--wide { grid-template-columns: 1fr; }
  .hw__media { min-height: 260px; }
  .posts { grid-template-columns: 1fr 1fr; }
  .posts .post-card:last-child { grid-column: 1 / -1; min-height: 340px; }
  .logos { grid-template-columns: repeat(3, 1fr); padding: 25px; }
  .logos__item:nth-child(3) { border-right: 0; }
  .logos__item:nth-child(-n+3) { border-bottom: 1px solid #333; }
  .eco-tiles { grid-template-columns: 1fr 1fr; }
  .eco-media { height: 400px; }
  .esplit { grid-template-columns: 1fr; padding: var(--section-y) var(--gutter); gap: 48px; }
  .esplit__media { min-height: 360px; border-radius: 25px; }
  .esplit__text { padding-left: 0; }
  .egrid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .two-col__media { min-height: 380px; }
  .bigprod { grid-template-columns: 1fr; }
  .bigprod__media { min-height: 300px; order: -1; }
  .channels { grid-template-columns: 1fr; }
  .section--channels { padding-block: 96px; }
  .blue__head { flex-direction: column; align-items: flex-start; }
  .post { padding-top: 180px; }
}

@media (max-width: 767px) {
  .phero { padding-top: 136px; padding-bottom: 56px; }
  .phero__title { font-size: 46px; letter-spacing: -2.4px; line-height: 1.02; }
  .banner { height: 220px; }
  .fgrid, .cgrid, .hwrow, .posts, .channels__list, .cform, .egrid { grid-template-columns: 1fr; }
  .posts .post-card:last-child { grid-column: auto; }
  .fbox, .cbox { padding: 28px; }
  .cbox h3 { margin-top: 4px; }
  .hw__text { padding: 30px; }
  .hw h3, .bigprod h2 { font-size: 28px; letter-spacing: -1.3px; }
  .post-card { min-height: 340px; padding: 32px; }
  .post-card h3 { font-size: 26px; }
  .logos { grid-template-columns: repeat(2, 1fr); padding: 10px; }
  .logos__item { border-right: 0 !important; border-bottom: 0 !important; }
  .eco-tiles { gap: 12px; }
  .eco-tile { padding: 28px; min-height: 100px; }
  .eco-media { height: 240px; }
  .markets { grid-template-columns: 1fr 1fr; }
  .market { min-height: 180px; }
  .markets__title { font-size: 26px; }
  .hbox { padding: 20px; gap: 18px; }
  .ibox { width: 60px; height: 60px; border-radius: 22px; }
  .bigprod__text { padding: 32px; }
  .bigprod p { font-size: 17px; }
  .bigprod__media { min-height: 220px; }
  .cform { padding: 24px; margin-top: 32px; }
  .section--channels { padding-block: 72px; }
  .post { padding-top: 136px; }
  .post__img { height: 240px; border-radius: 28px; }
  .post__body { font-size: 17px; }
  .post__share-title { font-size: 26px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__next { text-align: left; align-items: flex-start; }
}

/* Imagen subida desde el panel en un espacio de imagen (.ph) */
.ph[style*="--slot-img"] { background: var(--slot-img) center / cover no-repeat !important; }
.prod-cards--img .prod-card::before { background-size: cover; }

/* Aviso de privacidad: lectura cómoda, títulos de sección y negritas legibles */
.legal .post__body { font-size: 17px; line-height: 1.65; letter-spacing: -.2px; }
.legal .post__body h2 { margin: 1.6em 0 .5em; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.legal .post__body b { color: var(--ink); font-weight: 600; }
.legal .post__body a { color: #4a5fcf; text-decoration: underline; text-underline-offset: 2px; }
