/* ============================================================
   Inviewd · Capa de modernización (2026)
   Aditiva: mejora estética, animaciones y accesibilidad
   sin alterar el layout base de Webflow.
   Autor: mejora asistida — Claude
   ============================================================ */

:root {
  --iv-blue: #364a99;
  --iv-blue-deep: #0050bd;
  --iv-navy: #1f2c3d;
  --iv-ink: #11141a;
  --iv-green: #51b58d;
  --iv-accent: #6157f8;
  --iv-ease: cubic-bezier(.2, .7, .2, 1);
  --iv-shadow-lg: 0 20px 45px rgba(17, 20, 26, .28);
  --iv-shadow-btn: 0 12px 26px rgba(54, 74, 153, .38);
}

/* ---------- Base polish ---------- */
html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; }

/* Selección de texto con color de marca */
::selection { background: var(--iv-accent); color: #fff; }

/* Scrollbar sutil (WebKit) */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb {
  background: rgba(54, 74, 153, .55);
  border-radius: 20px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(54, 74, 153, .85); background-clip: content-box; }

/* Foco visible accesible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--iv-green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Navbar dinámica ---------- */
#navigation.navbar {
  transition: background-color .35s var(--iv-ease),
              box-shadow .35s var(--iv-ease),
              padding .35s var(--iv-ease),
              backdrop-filter .35s var(--iv-ease);
  will-change: background-color, box-shadow;
}

#navigation.iv-scrolled {
  background-color: rgba(17, 20, 26, .72) !important;
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .28);
  padding-top: 4px;
  padding-bottom: 4px;
}

#navigation.iv-scrolled .nav-link-2 {
  color: #fff;
  text-shadow: none;
}

/* Subrayado animado en los links del nav */
.nav-link-2 {
  position: relative;
  transition: color .25s var(--iv-ease);
}
.nav-link-2::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s var(--iv-ease);
}
.nav-link-2:hover::after,
.nav-link-2.w--current::after { transform: scaleX(1); }

/* ---------- Botones ---------- */
.boton,
.button-small,
.combine-button,
.combine-button-colored,
.combine-button-white,
.boton-what {
  transition: transform .28s var(--iv-ease),
              box-shadow .28s var(--iv-ease),
              background-color .28s var(--iv-ease),
              filter .28s var(--iv-ease);
  will-change: transform;
}

.boton:hover,
.button-small:hover,
.combine-button:hover,
.combine-button-colored:hover,
.combine-button-white:hover,
.boton-what:hover {
  transform: translateY(-3px);
  box-shadow: var(--iv-shadow-btn);
  filter: brightness(1.04);
}

.boton:active,
.button-small:active,
.combine-button:active,
.boton-what:active { transform: translateY(-1px); }

/* Botón verde de marca: brillo sutil */
.button-small.white-small,
.boton.white-small { box-shadow: 0 8px 20px rgba(81, 181, 141, .30); }
.button-small.white-small:hover,
.boton.white-small:hover { box-shadow: 0 14px 30px rgba(81, 181, 141, .45); }

/* ---------- Galería (home / about / proyectos) ---------- */
.imagaleria { overflow: hidden; border-radius: 18px; }
.imagaleria img,
.imagaleria video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  transition: transform .7s var(--iv-ease), box-shadow .4s var(--iv-ease);
  will-change: transform;
}
.imagaleria:hover img,
.imagaleria:hover video {
  transform: scale(1.05);
  box-shadow: var(--iv-shadow-lg);
}

/* Galería BRIX (prueba.html) */
.brix---image-wrapper-br-24px { overflow: hidden; }
.brix---image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .7s var(--iv-ease);
  will-change: transform;
}
video.brix---image { object-fit: cover; }
.brix---image-wrapper-br-24px:hover .brix---image { transform: scale(1.05); }

/* ---------- Logos de clientes (siempre a color) ---------- */
.clients-image-two {
  opacity: 1;
  transition: transform .4s var(--iv-ease), filter .4s var(--iv-ease);
}
.clients-image-two:hover {
  transform: translateY(-4px);
  filter: brightness(1.06);
}

/* ---------- Tarjetas de contacto ---------- */
.combine-contact2_feature {
  transition: transform .3s var(--iv-ease);
}
.combine-contact2_feature:hover { transform: translateX(4px); }

.combine-form_input,
.combine-form_input-grey,
.combine-form_text-area-grey {
  transition: border-color .25s var(--iv-ease), box-shadow .25s var(--iv-ease);
}
.combine-form_input:focus,
.combine-form_input-grey:focus,
.combine-form_text-area-grey:focus {
  border-color: var(--iv-accent) !important;
  box-shadow: 0 0 0 3px rgba(97, 87, 248, .18);
}

/* ---------- Animaciones de aparición (scroll reveal) ---------- */
.iv-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--iv-ease), transform .8s var(--iv-ease);
  will-change: opacity, transform;
}
.iv-reveal.iv-in {
  opacity: 1;
  transform: none;
}

/* Entrada del héroe al cargar */
.iv-hero-item {
  opacity: 0;
  transform: translateY(18px);
  animation: ivHeroIn .9s var(--iv-ease) forwards;
}
@keyframes ivHeroIn {
  to { opacity: 1; transform: none; }
}

/* ---------- Botón "volver arriba" ---------- */
.iv-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--iv-blue), var(--iv-accent));
  box-shadow: 0 12px 28px rgba(54, 74, 153, .45);
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .35s var(--iv-ease), transform .35s var(--iv-ease), box-shadow .25s var(--iv-ease);
  z-index: 900;
}
.iv-top.iv-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.iv-top:hover { box-shadow: 0 16px 34px rgba(54, 74, 153, .6); transform: translateY(-2px); }
.iv-top svg { width: 22px; height: 22px; }

/* ---------- Respeto por reduce-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .iv-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .iv-hero-item { opacity: 1 !important; transform: none !important; animation: none !important; }
  .imagaleria img,
  .brix---image,
  .clients-image-two,
  .boton,
  .button-small,
  .combine-button { transition: none !important; }
}


/* ============================================================
   Novedades / Blog  (seccion anadida 2026)
   ============================================================ */
.iv-blog-main { background: #fff; color: var(--iv-ink); }
.iv-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.iv-container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Hero del listado */
.iv-blog-hero {
  padding: 150px 24px 30px;
  text-align: center;
  background: radial-gradient(1100px 420px at 50% -140px, rgba(97, 87, 248, .13), transparent 62%);
}
.iv-kicker {
  display: inline-block;
  font: 600 .78rem/1 "Open Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--iv-accent);
  margin-bottom: 14px;
}
.iv-blog-title {
  font-family: "Tw Cen Mt Condensed Font", sans-serif;
  font-size: clamp(42px, 6vw, 74px);
  text-transform: uppercase;
  color: var(--iv-navy);
  line-height: 1.02;
  margin: 0 0 14px;
}
.iv-blog-sub {
  color: #5f6570;
  font: 400 1.05rem/1.6 "Open Sans", sans-serif;
  max-width: 620px;
  margin: 0 auto;
}

/* Rejilla de tarjetas */
.iv-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 40px 0 96px;
}
.iv-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8ebf1;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .3s var(--iv-ease), box-shadow .3s var(--iv-ease), border-color .3s var(--iv-ease);
}
.iv-card:hover { transform: translateY(-6px); box-shadow: var(--iv-shadow-lg); border-color: transparent; }
.iv-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: #eef0f5; }
.iv-card-media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s var(--iv-ease);
}
.iv-card:hover .iv-card-media img { transform: scale(1.06); }
.iv-card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.iv-tag {
  align-self: flex-start;
  font: 600 .72rem/1 "Open Sans", sans-serif;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--iv-accent);
  background: rgba(97, 87, 248, .10);
  padding: 6px 11px; border-radius: 999px;
}
.iv-card-title { font: 700 1.32rem/1.25 "Open Sans", sans-serif; color: var(--iv-navy); margin: 2px 0 0; }
.iv-card-excerpt { color: #5f6570; font: 400 .96rem/1.55 "Open Sans", sans-serif; margin: 0; }
.iv-card-meta { margin-top: auto; padding-top: 10px; color: #8a8f9a; font: 400 .82rem/1 "Open Sans", sans-serif; }
.iv-card-more { color: var(--iv-blue); font-weight: 600; }

/* Articulo */
.iv-article { padding: 140px 0 80px; background: #fff; color: var(--iv-ink); }
.iv-breadcrumb { font: 400 .85rem/1 "Open Sans", sans-serif; color: #8a8f9a; margin-bottom: 20px; }
.iv-breadcrumb a { color: var(--iv-blue); text-decoration: none; }
.iv-breadcrumb a:hover { text-decoration: underline; }
.iv-article-h1 {
  font-family: "Tw Cen Mt Condensed Font", sans-serif;
  font-size: clamp(36px, 5.4vw, 60px);
  text-transform: uppercase; color: var(--iv-navy);
  line-height: 1.03; margin: 6px 0 14px;
}
.iv-article-meta { color: #8a8f9a; font: 400 .9rem/1 "Open Sans", sans-serif; margin-bottom: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.iv-article-cover { width: 100%; border-radius: 20px; margin: 6px 0 34px; display: block; }
.iv-prose { color: #33373f; font: 400 1.075rem/1.75 "Open Sans", sans-serif; }
.iv-prose h2 { font: 700 1.7rem/1.25 "Open Sans", sans-serif; color: var(--iv-navy); margin: 40px 0 12px; }
.iv-prose h3 { font: 700 1.24rem/1.3 "Open Sans", sans-serif; color: var(--iv-navy); margin: 28px 0 8px; }
.iv-prose p { margin: 0 0 18px; }
.iv-prose ul { margin: 0 0 18px; padding-left: 1.2em; }
.iv-prose li { margin: 6px 0; }
.iv-prose a { color: var(--iv-blue); }
.iv-prose strong { color: var(--iv-navy); }
.iv-prose blockquote {
  margin: 24px 0; padding: 14px 20px;
  border-left: 4px solid var(--iv-accent);
  background: #f6f5ff; border-radius: 8px; color: #3a3f49;
}
.iv-cta { margin: 46px 0 0; padding: 30px 28px; border-radius: 20px; background: linear-gradient(135deg, var(--iv-blue), var(--iv-accent)); color: #fff; text-align: center; }
.iv-cta h3 { color: #fff; margin: 0 0 8px; font: 700 1.45rem/1.2 "Open Sans", sans-serif; }
.iv-cta p { margin: 0 0 6px; opacity: .92; }
.iv-cta a { display: inline-block; margin-top: 12px; background: #fff; color: var(--iv-blue); font: 700 .95rem/1 "Open Sans", sans-serif; padding: 13px 28px; border-radius: 999px; text-decoration: none; transition: transform .25s var(--iv-ease); }
.iv-cta a:hover { transform: translateY(-2px); }

.iv-backlink { display: inline-block; margin-top: 40px; color: var(--iv-blue); font: 600 .95rem/1 "Open Sans", sans-serif; text-decoration: none; }
.iv-backlink:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .iv-blog-hero { padding-top: 120px; }
  .iv-article { padding-top: 110px; }
}

/* ---------- Boton flotante de WhatsApp ---------- */
.iv-wa {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  z-index: 900;
  transition: transform .25s var(--iv-ease), box-shadow .25s var(--iv-ease);
  animation: ivWaIn .5s var(--iv-ease) both;
}
.iv-wa:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 32px rgba(37, 211, 102, .6); }
.iv-wa svg { width: 30px; height: 30px; }
@keyframes ivWaIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .iv-wa { width: 52px; height: 52px; left: 16px; bottom: 16px; }
  .iv-top { right: 16px; bottom: 16px; }
}

/* Titulo accesible solo para SEO/lectores de pantalla */
.iv-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   Alianzas / Programa de aliados
   ============================================================ */
.iv-section { padding: 66px 0; }
.iv-section-alt { background: #f6f7fb; }
.iv-h2 {
  font-family: "Tw Cen Mt Condensed Font", sans-serif;
  text-transform: uppercase; color: var(--iv-navy);
  font-size: clamp(30px, 4.5vw, 48px); text-align: center; line-height: 1.05; margin: 0 0 10px;
}
.iv-section-sub { text-align: center; color: #5f6570; max-width: 660px; margin: 0 auto 42px; font: 400 1.05rem/1.6 "Open Sans", sans-serif; }
.iv-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.iv-feature { background: #fff; border: 1px solid #e8ebf1; border-radius: 18px; padding: 28px; transition: transform .3s var(--iv-ease), box-shadow .3s var(--iv-ease); }
.iv-feature:hover { transform: translateY(-5px); box-shadow: var(--iv-shadow-lg); }
.iv-feature-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(97, 87, 248, .10); color: var(--iv-accent); margin-bottom: 14px; }
.iv-feature-ic svg { width: 26px; height: 26px; }
.iv-feature h3 { font: 700 1.2rem/1.3 "Open Sans", sans-serif; color: var(--iv-navy); margin: 0 0 8px; }
.iv-feature p { color: #5f6570; font: 400 .96rem/1.6 "Open Sans", sans-serif; margin: 0; }
.iv-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.iv-step { padding: 24px; background: #fff; border-radius: 16px; border: 1px solid #e8ebf1; }
.iv-step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--iv-blue); color: #fff; display: grid; place-items: center; font: 700 1rem/1 "Open Sans", sans-serif; margin-bottom: 12px; }
.iv-step h3 { font: 700 1.05rem/1.3 "Open Sans", sans-serif; color: var(--iv-navy); margin: 0 0 6px; }
.iv-step p { color: #5f6570; font: 400 .92rem/1.55 "Open Sans", sans-serif; margin: 0; }

/* ---------- FAQ (Alianzas) ---------- */
.iv-faq { display: grid; gap: 12px; }
.iv-faq-item { background: #fff; border: 1px solid #e8ebf1; border-radius: 14px; padding: 4px 20px; transition: box-shadow .3s var(--iv-ease); }
.iv-faq-item[open] { box-shadow: 0 10px 26px rgba(17, 20, 26, .08); }
.iv-faq-item summary { cursor: pointer; font: 600 1.02rem/1.45 "Open Sans", sans-serif; color: var(--iv-navy); padding: 14px 30px 14px 0; list-style: none; position: relative; }
.iv-faq-item summary::-webkit-details-marker { display: none; }
.iv-faq-item summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--iv-accent); transition: transform .25s var(--iv-ease); }
.iv-faq-item[open] summary::after { content: "-"; }
.iv-faq-item p { color: #5f6570; margin: 0 0 16px; font: 400 .96rem/1.6 "Open Sans", sans-serif; }

/* ---------- Testimonio destacado ---------- */
.iv-testimonial {
  background: linear-gradient(135deg, var(--iv-navy), #2a3d63);
  padding: 76px 24px;
  text-align: center;
  color: #fff;
}
.iv-quote-mark {
  font: 700 90px/0.6 Georgia, serif;
  color: var(--iv-green);
  height: 40px;
}
.iv-quote-text {
  max-width: 780px;
  margin: 0 auto 26px;
  border: none;
  padding: 0;
  font: 400 clamp(1.15rem, 2.4vw, 1.55rem)/1.55 "Open Sans", sans-serif;
  color: #fff;
}
.iv-quote-author { font: 700 1.05rem/1.3 "Open Sans", sans-serif; }
.iv-quote-role { font: 400 .92rem/1.4 "Open Sans", sans-serif; opacity: .75; margin-top: 2px; }
.iv-quote-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--iv-green);
  font: 600 .95rem/1 "Open Sans", sans-serif;
  text-decoration: none;
  border-bottom: 1px solid rgba(81, 181, 141, .5);
  padding-bottom: 3px;
  transition: border-color .25s var(--iv-ease);
}
.iv-quote-link:hover { border-color: var(--iv-green); }
