/* IDEALAB Home: Inicio con una historia simple. Espacios cortos, foto real y verde solo como acento. */
.ih { --ih-gut: clamp(18px, 5vw, 40px); background: #0a0a0a; }
.ih-wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--ih-gut); }
.ih-s { padding-block: 30px; }
.ih-s--last { padding-bottom: 40px; }
html body .ih h1, html body .ih h2, html body .ih h3 { margin: 0; color: #fff; -webkit-text-fill-color: #fff; text-transform: none !important; background: none !important; letter-spacing: -.02em; }
html body .ih h2 { font: 700 clamp(1.45rem, 1.2rem + 1.1vw, 2.1rem)/1.15 var(--ix-font-display) !important; }
html body :where(.ih) p { margin: 0; }

.ih-h { margin-bottom: 16px; }
html body .ih-h p { margin-top: 5px; color: #c9cdc9; font: 400 15px/1.45 var(--ix-font-body); }
.ih-h--row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ih-h--row a { color: #fff; font: 600 14px/1 var(--ix-font-display); text-decoration: underline; text-underline-offset: 4px; padding: 10px 0; }

/* Hero */
.ih-hero { padding-block: 14px 22px; }
.ih-hero__grid { display: grid; gap: 16px; }
html body .ih-hero h1 { font: 800 clamp(1.8rem, 7.4vw, 3.5rem)/1.08 var(--ix-font-display) !important; letter-spacing: -.03em; }
.ih-hero h1 em { font-style: normal; color: var(--ix-green); -webkit-text-fill-color: var(--ix-green); }
html body .ih-lead { margin-top: 12px; color: #c9cdc9; font: 400 clamp(1rem, .96rem + .2vw, 1.12rem)/1.5 var(--ix-font-body); max-width: 56ch; }
.ih-cta { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; margin-top: 16px; }
.ih-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; padding-inline: 8px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .24); color: #fff; font: 600 14px/1.1 var(--ix-font-display); text-decoration: none; white-space: nowrap; transition: transform .12s; }
.ih-btn:active { transform: scale(.97); }
.ih-btn--main { background: var(--ix-green); border-color: var(--ix-green); color: #061003; }
html body .ih-note { margin-top: 10px; color: #979c97; font: 400 13px/1.3 var(--ix-font-body); }

/* Telefono con la conversacion */
.ih-phone { position: relative; order: -1; justify-self: center; width: 248px; padding: 6px; border-radius: 38px; background: linear-gradient(160deg, #3a3d3a, #151715 45%, #262826); }
html body .ih-phone { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 22px 50px -24px rgba(44, 255, 5, .28) !important; }
.ih-phone::before, .ih-phone::after { content: ""; position: absolute; right: -2px; width: 3px; border-radius: 0 2px 2px 0; background: #2d302d; }
.ih-phone::before { top: 74px; height: 42px; }
.ih-phone::after { top: 126px; height: 26px; }
.ih-phone__screen { position: relative; display: flex; flex-direction: column; height: 322px; overflow: hidden; border-radius: 32px; background: #0b0d0b; }
.ih-phone__island { position: absolute; z-index: 3; top: 7px; left: 50%; width: 62px; height: 17px; transform: translateX(-50%); border-radius: 12px; background: #000; }
.ih-phone__bar { flex: none; display: flex; align-items: center; gap: 7px; padding: 30px 10px 8px 7px; background: #141614; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ih-phone__back { flex: none; width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ih-phone__bar img { flex: none; width: 28px; height: 28px; padding: 2px; border-radius: 50%; object-fit: contain; background: #000; border: 1px solid rgba(255, 255, 255, .16); }
.ih-phone__who { min-width: 0; line-height: 1.2; }
.ih-phone__who b { display: block; color: #fff; font: 600 12px/1.2 var(--ix-font-display); }
.ih-phone__who span { display: block; color: #a8ada8; font: 400 10.5px/1.25 var(--ix-font-body); }
.ih-phone__who span.is-typing { color: var(--ix-green); }
.ih-phone__bar small { margin-left: auto; flex: none; padding: 3px 6px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 99px; color: #a8ada8; font: 500 9.5px/1 var(--ix-font-mono); }
.ih-phone__chat { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 8px; overflow: hidden; }
html body .ih-b { flex: none; max-width: 84%; margin: 0; padding: 6px 9px; border-radius: 11px; color: #fff; font: 400 11.5px/1.32 var(--ix-font-body); }
.ih-b--them { align-self: flex-end; background: #14401a; border-bottom-right-radius: 3px; }
.ih-b--me { align-self: flex-start; background: #1f221f; border-bottom-left-radius: 3px; }
html body .ih-b--sys { align-self: center; max-width: none; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; background: rgba(44, 255, 5, .1); color: #d9f7d3; font-size: 10.5px; }
.ih-b--sys i { width: 6px; height: 6px; border-radius: 50%; background: var(--ix-green); }
.ih-typing { flex: none; align-self: flex-start; display: inline-flex; gap: 3px; padding: 8px 10px; border-radius: 11px; border-bottom-left-radius: 3px; background: #1f221f; }
.ih-typing i { width: 5px; height: 5px; border-radius: 50%; background: #a8ada8; animation: ih-dot 1s ease-in-out infinite; }
.ih-typing i:nth-child(2) { animation-delay: .15s; }
.ih-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ih-dot { 0%, 60%, 100% { translate: 0 0; opacity: .5; } 30% { translate: 0 -3px; opacity: 1; } }
html body .ih-phone.is-live .ih-b { display: none; }
html body .ih-phone.is-live .ih-b.is-in { display: block; animation: ih-pop .26s cubic-bezier(.2, .9, .3, 1.1) both; }
html body .ih-phone.is-live .ih-b--sys.is-in { display: inline-flex; }
@keyframes ih-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.ih-phone__input { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 8px 10px; background: #141614; }
.ih-phone__input span { flex: 1; min-width: 0; padding: 6px 10px; border-radius: 99px; background: #1f221f; color: #8d928d; font: 400 10.5px/1.2 var(--ix-font-body); white-space: nowrap; }
.ih-phone__input i { flex: none; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--ix-green); }
.ih-phone__input svg { width: 12px; height: 12px; fill: none; stroke: #061003; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Telefono 3D: reemplaza al HTML cuando WebGL esta listo */
html body .ih-phone.has-3d { width: 100%; max-width: 480px; height: 372px; padding: 0; border-radius: 0; background: none; box-shadow: none !important; overflow: visible; -webkit-mask-image: linear-gradient(#000 90%, transparent 100%); mask-image: linear-gradient(#000 90%, transparent 100%); }
.ih-phone.has-3d::before, .ih-phone.has-3d::after { display: none; }
.ih-phone.has-3d .ih-phone__screen { display: none; }
.ih-phone canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; animation: ih-fade3d .5s ease both; }
@keyframes ih-fade3d { from { opacity: 0; } }
/* Sin salto: mientras carga el 3D, el telefono plano no se muestra y su espacio ya mide lo mismo que el 3D.
   Si el 3D no llega (equipos lentos o ahorro de datos), el plano aparece a los 2,5 s. */
html body .ih-phone:not(.has-3d) { opacity: 0; margin-bottom: 38px; animation: ih-flat-in .45s ease 2.5s forwards; }
@keyframes ih-flat-in { to { opacity: 1; } }

/* Logos: cinta limpia, sin cajas y en un solo tono */
.ih-logos { padding-block: 14px 18px; overflow: hidden; }
html body .ih-logos > p { margin: 0 0 12px; padding-inline: var(--ih-gut); text-align: center; color: #979c97; font: 400 13px/1.3 var(--ix-font-body); }
html body .ih-logos .ix-partners { padding: 0 !important; border: 0 !important; background: none !important; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
html body .ih-logos .ix-partners__track { gap: 0 !important; align-items: center; }
html body .ih-logos .ix-partners__logo { flex: 0 0 auto !important; width: 148px !important; height: 56px !important; padding: 0 20px !important; display: grid !important; place-items: center; background: none !important; border: 0 !important; border-radius: 0 !important; opacity: 1 !important; }
html body .ih-logos .ix-partners__logo img { width: 100% !important; height: 100% !important; max-height: 52px !important; object-fit: contain; filter: grayscale(1) brightness(1.55) !important; opacity: .86 !important; transition: filter .2s, opacity .2s; }
@media (hover: hover) {
  html body .ih-logos .ix-partners__logo:hover img { filter: none !important; opacity: 1 !important; }
}

/* Que hacemos */
.ih-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
.ih-tile { display: block; color: inherit; text-decoration: none; min-width: 0; }
.ih-tile img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
html body .ih-tile h3 { margin-top: 8px; font: 600 14.5px/1.22 var(--ix-font-display) !important; }
html body .ih-tile p { margin-top: 3px; color: #b5b9b5; font: 400 13px/1.35 var(--ix-font-body); }
.ih-more { display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; color: #fff; font: 600 14.5px/1 var(--ix-font-display); text-decoration: none; }

/* Como trabajamos */
.ih-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.ih-steps li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 11px; }
.ih-steps li::before { content: counter(s); grid-row: 1 / span 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); color: #fff; font: 600 13.5px/1 var(--ix-font-display); }
.ih-steps b { color: #fff; font: 600 15.5px/1.25 var(--ix-font-display); padding-top: 4px; }
.ih-steps span { margin-top: 2px; color: #c9cdc9; font: 400 14px/1.4 var(--ix-font-body); }

/* Productos */
.ih-prods { display: grid; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; overflow: hidden; background: #121412; }
.ih-prod { display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px; align-items: center; gap: 11px; padding: 11px 12px; color: inherit; text-decoration: none; border-top: 1px solid rgba(255, 255, 255, .08); }
.ih-prod:first-child { border-top: 0; }
.ih-prod__ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #1b1d1b; }
.ih-prod svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ih-prod__tx b { display: block; color: #fff; font: 600 14.5px/1.25 var(--ix-font-display); }
.ih-prod__tx span { display: block; margin-top: 1px; color: #b5b9b5; font: 400 13px/1.35 var(--ix-font-body); }
.ih-prod__go { opacity: .55; }


/* Blog: lista compacta con foto real */
.ih-posts { display: grid; gap: 10px; }
.ih-post { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.ih-post img { width: 104px; height: 78px; object-fit: cover; border-radius: 10px; display: block; }
.ih-post b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #fff; font: 600 14.5px/1.28 var(--ix-font-display); }

/* Preguntas */
html body .ih-faq details { border-bottom: 1px solid rgba(255, 255, 255, .1); }
html body .ih-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 11px 0; list-style: none; cursor: pointer; color: #fff; font: 600 14.5px/1.3 var(--ix-font-display); }
.ih-faq summary::-webkit-details-marker { display: none; }
.ih-faq summary::after { content: "+"; flex: none; color: #c9cdc9; font: 400 20px/1 var(--ix-font-display); }
.ih-faq details[open] summary::after { content: "−"; }
html body .ih-faq p { padding-bottom: 13px; color: #c9cdc9; font: 400 14px/1.45 var(--ix-font-body); }

/* Tablet y escritorio */
@media (min-width: 700px) {
  .ih-s { padding-block: 40px; }
  .ih-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; }
  .ih-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .ih-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ih-prod:nth-child(2) { border-top: 0; }
  .ih-prod:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .08); }
  .ih-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .ih-post { grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: start; }
  .ih-post img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .ih-cta { display: inline-flex; gap: 10px; }
  .ih-btn { padding-inline: 22px; font-size: 15px; }
}
@media (min-width: 921px) {
  .ih-s { padding-block: 48px; }
  .ih-hero { padding-block: 32px 28px; }
  .ih-hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: 56px; align-items: center; }
  .ih-phone { order: 0; justify-self: center; width: 286px; padding: 7px; border-radius: 44px; }
  html body .ih-phone.has-3d { height: 620px; max-width: 520px; -webkit-mask-image: none; mask-image: none; }
  html body .ih-phone:not(.has-3d) { margin-bottom: 46px; }
  .ih-phone__screen { height: 560px; border-radius: 37px; }
  .ih-phone__island { top: 9px; width: 78px; height: 21px; }
  .ih-phone__bar { padding: 38px 12px 10px 9px; gap: 8px; }
  .ih-phone__bar img { width: 32px; height: 32px; }
  .ih-phone__who b { font-size: 13.5px; }
  .ih-phone__who span { font-size: 11.5px; }
  .ih-phone__chat { gap: 6px; padding: 10px; }
  html body .ih-b { font-size: 13px; padding: 7px 10px; }
  html body .ih-b--sys { font-size: 11.5px; }
  .ih-phone__input span { font-size: 12px; padding: 8px 12px; }
  .ih-phone__input i { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .ih-typing i { animation: none; }
  /* Sin 3D: el telefono plano se ve desde el inicio con su altura propia */
  html body .ih-phone:not(.has-3d) { opacity: 1; animation: none; margin-bottom: 0; }
}
