/* ===================== Inicio: portada viva, historia y compartir (solo la presentación) ===================== */
.ig-hero-vivo { padding-block: 64px 76px; }
.ig-hero-vivo h1 { font-size: clamp(2.1rem, 4.4vw, 3.15rem); }
.ig-demo-form { margin: 26px 0 14px; display: grid; gap: 8px; max-width: 34em; }
.ig-demo-form label { color: #C9D5E4; font-size: .95rem; }
.ig-demo-fila { display: flex; gap: 10px; flex-wrap: wrap; }
.ig-demo-fila input { flex: 1 1 220px; min-height: 52px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .07); color: #fff; font-size: 1.05rem; padding: 0 16px; }
.ig-demo-fila input::placeholder { color: rgba(255, 255, 255, .45); }
.ig-demo-fila input:focus { border-color: #E2C98F; box-shadow: 0 0 0 3px rgba(226, 201, 143, .25); background: rgba(255, 255, 255, .1); }
.ig-demo-fila .ig-boton { min-height: 52px; border-radius: 12px; }

/* la web de muestra: se arma sola y cambia de diseño */
.ig-demo { --d-fondo: #FFFFFF; --d-texto: #1F2A37; --d-suave: #5B6675; --d-acento: #1F72D0; --d-titulo: "Nunito", system-ui, sans-serif; --d-cab: #FFFFFF; --d-radio: 14px;
  position: relative; padding-bottom: 54px; }
.ig-demo[data-diseno="artesanal"] { --d-fondo: #FBF3E7; --d-texto: #4A2C1A; --d-suave: #7A5A44; --d-acento: #C4485B; --d-titulo: Georgia, "Times New Roman", serif; --d-cab: #FBF3E7; --d-radio: 22px; }
.ig-demo[data-diseno="oscuro"] { --d-fondo: #15120E; --d-texto: #F2EBDD; --d-suave: #BFB4A0; --d-acento: #C9A86A; --d-titulo: Georgia, "Times New Roman", serif; --d-cab: #15120E; --d-radio: 2px; }
.ig-demo[data-diseno="vibrante"] { --d-fondo: #C2185B; --d-texto: #FFFFFF; --d-suave: #FFE3EE; --d-acento: #FFD23F; --d-titulo: Impact, "Arial Narrow", system-ui, sans-serif; --d-cab: #2A0E5C; --d-radio: 8px; }
.ig-demo-navegador { border-radius: 12px; overflow: hidden; background: var(--d-fondo); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .14); transition: background .6s; }
.ig-demo-barra { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #E9EDF2; }
.ig-demo-barra > i { width: 9px; height: 9px; border-radius: 50%; background: #C5CCD6; }
.ig-demo-url { margin-left: 8px; flex: 1; min-width: 0; padding: 4px 10px; border-radius: 99px; background: #fff; color: #5B6675; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-demo-url b { color: #1F2A37; font-weight: 600; }
.ig-demo-web { color: var(--d-texto); transition: color .6s; }
.dw-cab { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--d-cab); border-bottom: 1px solid color-mix(in srgb, var(--d-texto) 12%, transparent); transition: background .6s; }
.dw-cab b { font-family: var(--d-titulo); font-size: .9rem; font-weight: 700; color: var(--d-texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.ig-demo[data-diseno="vibrante"] .dw-cab b, .ig-demo[data-diseno="vibrante"] .dw-menu { color: #fff; }
.dw-logo { width: 26px; height: 26px; flex: none; border-radius: 7px; display: grid; place-items: center; background: #2B4A80; color: #fff; }
.dw-logo svg { width: 15px; height: 15px; fill: currentColor; }
.dw-menu { margin-left: auto; display: flex; gap: 12px; font-size: .68rem; color: var(--d-suave); }
.dw-menu i { font-style: normal; }
.dw-portada { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; align-items: center; padding: 22px 18px 24px; }
.dw-texto small { display: block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--d-acento); font-weight: 700; margin-bottom: 6px; }
.dw-texto .dw-h { font-family: var(--d-titulo); font-size: clamp(1.3rem, 2.3vw, 1.8rem); line-height: 1.05; margin: 0 0 8px; color: var(--d-texto); font-weight: 700; }
.dw-texto .dw-h em { color: var(--d-acento); }
.ig-demo[data-diseno="vibrante"] .dw-texto .dw-h { text-transform: uppercase; letter-spacing: .01em; }
.dw-texto p { font-size: .76rem; color: var(--d-suave); margin: 0 0 10px; }
.dw-boton { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--d-acento); color: #fff; font-size: .72rem; font-weight: 700; }
.ig-demo[data-diseno="oscuro"] .dw-boton, .ig-demo[data-diseno="vibrante"] .dw-boton { color: #15120E; }
.dw-boton .ig-ico { width: 14px; height: 14px; }
.dw-horas { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 3px; font-size: .68rem; color: var(--d-texto); }
.dw-horas li::before { content: "✓ "; color: var(--d-acento); font-weight: 700; }
.dw-foto { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--d-radio); transition: border-radius .6s; }
.ig-demo-tel { position: absolute; right: -14px; bottom: 30px; width: 34%; max-width: 170px; border-radius: 22px; padding: 10px 8px 14px; background: var(--d-fondo); color: var(--d-texto);
  border: 6px solid #0B0F18; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); display: grid; gap: 8px; text-align: center; transition: background .6s; }
.ig-demo-tel .dw-cab { padding: 2px 4px 8px; border: 0; background: transparent; }
.ig-demo-tel .dw-cab b { max-width: 100%; font-size: .7rem; }
.ig-demo-tel .dw-logo { width: 20px; height: 20px; }
.ig-demo-tel .dw-h { font-family: var(--d-titulo); font-size: .95rem; margin: 0; color: var(--d-texto); }
.ig-demo-tel .dw-h em { color: var(--d-acento); }
.ig-demo-tel .dw-boton { justify-self: center; font-size: .64rem; }
.ig-demo-disenos { position: absolute; left: 0; bottom: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.ig-demo-disenos button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06);
  color: #D8E1EC; font: 500 .8rem "Nunito", system-ui, sans-serif; cursor: pointer; min-height: 32px; }
.ig-demo-disenos button[aria-pressed="true"] { background: #F3E9D8; border-color: #F3E9D8; color: #0E1A2E; }
.dw-muestra { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dw-m-fresco { background: linear-gradient(135deg, #fff 50%, #1F72D0 50%); }
.dw-m-artesanal { background: linear-gradient(135deg, #FBF3E7 50%, #C4485B 50%); }
.dw-m-oscuro { background: linear-gradient(135deg, #15120E 50%, #C9A86A 50%); }
.dw-m-vibrante { background: linear-gradient(135deg, #C2185B 50%, #FFD23F 50%); }

/* la historia: un celular que cuenta cómo llega una familia nueva */
.ig-historia { background: #0E1A2E; color: #fff; padding-block: 90px; }
.ig-historia h2 { color: #fff; font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 2.5rem); max-width: 18em; margin-inline: auto; }
.ig-ceja-clara { text-align: center; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #E2C98F; font-weight: 600; margin-bottom: 12px; }
.ig-historia-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 64px; margin-top: 56px; align-items: start; }
.ig-tel { position: sticky; top: 90px; }
.ig-tel-marco { width: 100%; max-width: 300px; margin-inline: auto; aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 12px; background: #05080F; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 2px #1E2638; }
.ig-tel-pantalla { position: relative; height: 100%; border-radius: 30px; overflow: hidden; background: #F4F6FA; color: #1F2A37; }
.tel-p { position: absolute; inset: 0; padding: 18px 14px; display: grid; align-content: start; gap: 12px; opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; font-size: .82rem; }
.ig-historia-grid[data-activo="1"] .tel-p[data-p="1"], .ig-historia-grid[data-activo="2"] .tel-p[data-p="2"],
.ig-historia-grid[data-activo="3"] .tel-p[data-p="3"], .ig-historia-grid[data-activo="4"] .tel-p[data-p="4"] { opacity: 1; transform: none; }
.tel-busca { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 99px; background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .1); margin-top: 18px; }
.tel-busca .ig-ico { width: 16px; height: 16px; color: #5B6675; }
.tel-escribe { white-space: nowrap; overflow: hidden; }
.tel-resultado { background: #fff; border-radius: 12px; padding: 12px; display: grid; gap: 3px; box-shadow: 0 1px 4px rgba(15, 23, 42, .08); }
.tel-resultado small { color: #1E7A4A; font-size: .66rem; }
.tel-resultado b { color: #1A4FB8; font-size: .9rem; }
.tel-resultado span { color: #5B6675; font-size: .72rem; }
.tel-gris i { display: block; height: 8px; border-radius: 4px; background: #E3E7EE; }
.tel-gris i:nth-child(2) { width: 80%; }
.tel-gris i:nth-child(3) { width: 55%; }
.tel-web { background: #FBF3E7; color: #4A2C1A; padding: 0 0 14px; gap: 10px; }
.tel-web .dw-cab { background: #FBF3E7; }
.tel-web .dw-cab b { color: #4A2C1A; font-size: .8rem; max-width: 80%; }
.tel-web img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tel-web .dw-h { margin: 0 14px; font: 700 1.2rem/1.1 Georgia, serif; }
.tel-web .dw-h em { color: #C4485B; }
.tel-web ul { list-style: none; margin: 0 14px; padding: 0; display: grid; gap: 4px; font-size: .74rem; }
.tel-web li { display: flex; align-items: center; gap: 6px; }
.tel-web li .ig-ico { width: 14px; height: 14px; color: #C4485B; }
.tel-web .dw-boton { margin: 0 14px; justify-self: start; background: #C4485B; }
.tel-chat { background: #ECE5DD; padding: 0 12px 14px; gap: 10px; }
.tel-chat-cab { display: flex; align-items: center; gap: 8px; margin: 0 -12px; padding: 14px 12px 10px; background: #075E54; color: #fff; }
.tel-chat-cab b { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.burbuja { margin: 0; max-width: 85%; padding: 8px 10px; border-radius: 10px; font-size: .78rem; line-height: 1.35; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); color: #1F2A37; }
.burbuja.sale { justify-self: end; background: #DCF8C6; border-top-right-radius: 2px; }
.burbuja.entra { justify-self: start; background: #fff; border-top-left-radius: 2px; }
.tel-domingo { padding: 0; align-content: stretch; }
.tel-domingo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tel-domingo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 12, 22, .85), rgba(8, 12, 22, .1) 60%); }
.tel-domingo-hora, .tel-domingo-txt { position: absolute; left: 16px; right: 16px; z-index: 1; margin: 0; color: #fff; }
.tel-domingo-hora { bottom: 64px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #E2C98F; }
.tel-domingo-txt { bottom: 26px; font: 600 1.35rem/1.1 Georgia, serif; display: flex; align-items: center; gap: 8px; }
.tel-domingo-txt .ig-ico { width: 22px; height: 22px; color: #F28B82; }
.ig-historia-pasos { list-style: none; margin: 0; padding: 0; }
.ig-historia-pasos li { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-left: 26px; border-left: 2px solid rgba(255, 255, 255, .12); opacity: .35; transition: opacity .5s, border-color .5s; }
.ig-historia-pasos li.activo { opacity: 1; border-left-color: #E2C98F; }
.ig-historia-pasos .hora { color: #E2C98F; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.ig-historia-pasos h3 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 500; line-height: 1.25; color: #fff; margin: 0 0 8px; max-width: 22em; }
.ig-historia-pasos p { color: #B9C6D8; font-size: 1.05rem; margin: 0 0 10px; }
.ig-historia-pasos .ig-historia-final { font-size: 1.2rem; color: #F3E9D8; font-style: italic; margin: 6px 0 22px; }
.ig-historia .ig-boton { align-self: flex-start; background: #F3E9D8; border-color: #F3E9D8; color: #0E1A2E; }

/* banda del precio de lanzamiento */
.ig-banda-promo { background: #FBF4E2; border-block: 1px solid #E6D3A3; color: #4A3B12; }
.ig-banda-promo .ig-ancho { display: flex; align-items: center; justify-content: center; gap: 12px 18px; flex-wrap: wrap; padding-block: 14px; text-align: center; }
.ig-banda-promo p { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ig-banda-promo .ig-promo-etiqueta { margin: 0; }
.ig-banda-promo s { color: #7A6A45; }
.ig-banda-promo strong { font-size: 1.15rem; }
@media (prefers-color-scheme: dark) { :root:not(.claro) .ig-banda-promo { background: #2A2210; border-color: #5C4A1E; color: #F3E3B5; }:root:not(.claro) .ig-banda-promo s { color: #CDBB88; } }
html.dark .ig-banda-promo { background: #2A2210; border-color: #5C4A1E; color: #F3E3B5; }html.dark .ig-banda-promo s { color: #CDBB88; }

/* compartir */
.ig-compartir { padding-block: 84px; text-align: center; background: linear-gradient(180deg, var(--fondo), color-mix(in srgb, #E2C98F 14%, var(--fondo))); background-color: var(--fondo); }
.ig-compartir-ico { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: color-mix(in srgb, #F28B82 18%, var(--papel)); color: #B3261E; margin-bottom: 14px; }
.ig-compartir-ico .ig-ico { width: 28px; height: 28px; }
.ig-compartir h2 { font-weight: 500; }
.ig-compartir p { color: var(--suave); font-size: 1.1rem; max-width: 34em; margin-inline: auto; }
.ig-compartir .ig-compartir-acc { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.ig-versiculo-cierre { margin: 0 auto 28px; text-align: left; }

@media (max-width: 960px) {
  .ig-historia-grid { grid-template-columns: 1fr; gap: 24px; }
  .ig-tel { position: sticky; top: 64px; z-index: 2; }
  .ig-tel-marco { max-width: 190px; border-radius: 28px; padding: 8px; }
  .ig-tel-pantalla { border-radius: 22px; }
  .tel-p { font-size: .7rem; padding: 12px 10px; }
  .ig-historia-pasos li { min-height: 55vh; padding-top: 20px; }
  .ig-demo-tel { right: 0; }
}
@media (max-width: 560px) {
  .dw-portada { grid-template-columns: 1fr; }
  .dw-menu { display: none; }
  .ig-demo-tel { display: none; }
  .ig-historia { padding-block: 64px; }
}

/* movimiento de la portada y la historia (nada para quien pidió menos) */
@media (prefers-reduced-motion: no-preference) {
  .ig-demo.armando .dw-cab { animation: dw-baja .6s ease both; }
  .ig-demo.armando .dw-texto small { animation: dw-aparece .5s ease .45s both; }
  .ig-demo.armando .dw-texto .dw-h { animation: dw-sube .7s cubic-bezier(.2, .7, .2, 1) .6s both; }
  .ig-demo.armando .dw-texto p { animation: dw-aparece .6s ease .95s both; }
  .ig-demo.armando .dw-boton { animation: dw-pop .5s cubic-bezier(.2, 1.4, .4, 1) 1.2s both; }
  .ig-demo.armando .dw-horas li:nth-child(1) { animation: dw-aparece .5s ease 1.45s both; }
  .ig-demo.armando .dw-horas li:nth-child(2) { animation: dw-aparece .5s ease 1.65s both; }
  .ig-demo.armando .dw-foto { animation: dw-foto .9s ease .3s both; }
  .ig-demo.armando .ig-demo-tel { animation: dw-tel .9s cubic-bezier(.2, .7, .2, 1) 1.9s both; }
  .ig-demo-navegador { animation: ig-flota-suave 9s ease-in-out 3s infinite; }
  .ig-historia-grid[data-activo="1"] .tel-escribe { animation: tel-escribe 1.6s steps(19) .3s both; }
  .ig-historia-grid[data-activo="1"] .tel-resultado:not(.tel-gris) { animation: dw-aparece .6s ease 1.9s both; }
  .ig-historia-grid[data-activo="3"] .burbuja:nth-of-type(1) { animation: dw-sube .5s ease .2s both; }
  .ig-historia-grid[data-activo="3"] .burbuja:nth-of-type(2) { animation: dw-sube .5s ease 1.3s both; }
  .ig-historia-grid[data-activo="3"] .burbuja:nth-of-type(3) { animation: dw-sube .5s ease 2.4s both; }
  .ig-historia-grid[data-activo="4"] .tel-domingo img { animation: tel-zoom 6s ease-out both; }
  .ig-historia-grid[data-activo="4"] .tel-domingo-txt { animation: dw-sube .8s ease .6s both; }
}
@keyframes dw-baja { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes dw-aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes dw-sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dw-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes dw-foto { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes dw-tel { from { opacity: 0; transform: translate(20px, 30px) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes ig-flota-suave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes tel-escribe { from { max-width: 0; } to { max-width: 100%; } }
@keyframes tel-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.ig-demo-tel .dw-cab, .ig-demo-tel .dw-cab b, .tel-p .dw-cab b, .tel-chat-cab b { min-width: 0; }
.ig-demo-tel .dw-cab { overflow: hidden; }

/* los momentos de la historia que no están activos siguen siendo legibles (contraste 4.5:1 como mínimo) */
.ig-historia-pasos li { opacity: .6; }
.ig-historia-pasos li.activo { opacity: 1; }

/* celular: el texto de cada momento va debajo del teléfono (que queda fijo arriba) y la cabecera en una sola línea */
.ig-cab .ig-boton, .ig-nav-entrar { white-space: nowrap; }
@media (max-width: 960px) {
  .ig-historia-pasos li { min-height: 88vh; justify-content: flex-end; padding-bottom: 8vh; }
}
@media (max-width: 560px) {
  .ig-tel-marco { max-width: 160px; }
  .ig-historia-pasos li { padding-left: 16px; }
  .ig-historia-pasos h3 { font-size: 1.2rem; }
  .ig-nav { gap: 4px; }
  .ig-nav-entrar { padding-inline: .5em; }
}

/* títulos de la web de muestra: son parte de un dibujo, no encabezados de esta página */
.dw-h { margin: 0; }
/* el texto del domingo va sobre una franja oscura sólida (se lee aunque la foto sea clara) */
.tel-domingo-pie { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 14px 16px 22px; background-color: #0B1120; display: grid; gap: 4px; }
.tel-domingo-pie .tel-domingo-hora, .tel-domingo-pie .tel-domingo-txt { position: static; }
.tel-domingo::after { display: none; }
/* la portada nunca más ancha que la pantalla (también con la letra al 200 %) */
.ig-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
@media (max-width: 960px) { .ig-hero-grid { grid-template-columns: minmax(0, 1fr); } }
.ig-demo-fila input { min-width: 0; }

/* la animación de entrada del celular no debe salirse del borde (scroll de lado en tablet) */
.ig-hero-vivo { overflow-x: hidden; overflow-x: clip; }

/* precios en soles (Perú) o dólares (otros países): la página trae los dos y se ve uno */
[data-moneda-ver="PEN"] [data-moneda="USD"], [data-moneda-ver="USD"] [data-moneda="PEN"] { display: none; }
.ig-moneda { display: flex; align-items: center; justify-content: center; gap: 6px 8px; flex-wrap: wrap; margin: -6px 0 6px; color: var(--suave); font-size: .92rem; }
.ig-moneda button { border: 1px solid var(--linea); background: var(--papel); color: var(--texto); border-radius: 99px; padding: 6px 14px; min-height: 36px; font: inherit; cursor: pointer; }
.ig-moneda button[aria-pressed="true"] { background: var(--acento); border-color: var(--acento); color: var(--sobre-acento); }
