/* ============================================================
   Contacto Activo · las 100 plantillas del corredor externo
   Los colores de cada diseño llegan como variables (--t-…) desde
   plantillas.js; aquí van las formas. Ver ese archivo.
   ============================================================ */

/* overflow: clip (no hidden) recorta los adornos igual, pero no se vuelve el contenedor de
   desplazamiento: así la barra de WhatsApp de abajo (.ti-fija, sticky) se pega a la pantalla. */
.ti {
  display: flow-root;   /* clip no frena el margen de la tarjeta de D (flow-root sí): sin esto la portada quedaba sin tarjeta encima */
  position: relative; isolation: isolate; overflow: clip; min-height: 100%;
  background: var(--t-fo); background-color: var(--t-p); color: var(--t-t);
  font-family: var(--t-cu); font-size: 14px; line-height: 1.35;
}
.ti *, .ti *::before, .ti *::after { box-sizing: border-box; }
/* :where() no suma peso: el margen de .ti-cargo o el fondo de .ti-b mandan sobre esto. */
:where(.ti) :where(p) { margin: 0; }
:where(.ti) :where(ul) { list-style: none; margin: 0; padding: 0; }
:where(.ti) :where(button, a) { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; text-align: inherit; -webkit-tap-highlight-color: transparent; }
:where(.ti) :where(a) { display: inline-block; text-decoration: none; }   /* la página final: enlaces con forma de botón */
.ti svg { display: block; }
.ti .vp-f { opacity: .55; }
/* La vista previa (vista.css) ilumina lo que se está llenando con estos dos. */
.ti { --vp-acento: var(--t-ac); --vp-papel: var(--t-p); --vp-sobre: #FFFFFF; }
.ti .ti-avz.vp-foco { border-radius: 50%; }
.ti.tv--cuadro .ti-avz.vp-foco, .ti.tv--cuadroB .ti-avz.vp-foco, .ti.tv--cuadro-degradado .ti-avz.vp-foco { border-radius: 6px; }

/* ---------- adornos ---------- */
.ti-capa { position: absolute; z-index: 0; pointer-events: none; }
.ti-capa svg { width: 100%; height: 100%; }
.ti-capa--fondo { inset: 0; }
.ti-capa--arriba { top: 0; left: 0; right: 0; height: 230px; }
.ti-capa--abajo { bottom: 0; left: 0; right: 0; height: 230px; }
.ti-capa--abajo-ola { bottom: 0; left: 0; right: 0; height: 90px; transform: scaleY(-1); }
.ti-capa--sd { top: 0; right: 0; width: 60%; height: 240px; }
.ti-capa--si { top: 0; left: 0; width: 46%; height: 150px; }
.ti-capa--id { bottom: 0; right: 0; width: 70%; height: 300px; }
.ti-capa--ii { bottom: 0; left: 0; width: 60%; height: 300px; }
.ti-capa--izq { top: 30%; left: 0; width: 34%; height: 44%; }
.ti-capa--der { top: 22%; right: 0; width: 40%; height: 46%; }
.ti-capa--izq-alto { top: 0; bottom: 0; left: 0; width: 64px; }
.ti-capa--der-alto { top: 0; bottom: 0; right: 0; width: 64px; }
.ti-capa--borde-der { top: 0; bottom: 0; right: 0; width: 20px; }
.ti-capa--borde-izq { top: 0; bottom: 0; left: 0; width: 20px; }
.ti-capa--linea-izq { top: 0; bottom: 0; left: 6px; width: 30px; z-index: 3; }
.ti-capa--difsd { -webkit-mask-image: linear-gradient(225deg, #000 30%, transparent 75%); mask-image: linear-gradient(225deg, #000 30%, transparent 75%); }
.ti-capa--difsi { -webkit-mask-image: linear-gradient(135deg, #000 35%, transparent 80%); mask-image: linear-gradient(135deg, #000 35%, transparent 80%); }
.ti-capa--difab { -webkit-mask-image: linear-gradient(0deg, #000 25%, transparent 90%); mask-image: linear-gradient(0deg, #000 25%, transparent 90%); }

.ti-cuerpo { position: relative; z-index: 2; padding-bottom: 2px; }

/* ---------- identidad ---------- */
.ti-id { position: relative; }
/* 23-nov-2026 (tarde): la columna del nombre es el contenedor (cqi) y el nombre se achica lo justo para
   caber en sus renglones: --tn es su tamaño en la composición y --tn-l, el renglón más largo en em
   (lo calcula plantillas.js, medidaNombre). Un navegador sin cqi usa --tn, como antes. */
.ti-txt { min-width: 0; width: 100%; container-type: inline-size; }
.ti-nombre { --tn: 30px; font-family: var(--t-disp); font-weight: var(--t-pn); color: var(--t-ti); font-size: var(--tn); font-size: max(min(var(--tn), calc(100cqi / var(--tn-l, 1))), min(22px, calc(100cqi / var(--tn-l3, var(--tn-l, 1))))); line-height: 1.04; letter-spacing: -.012em; overflow-wrap: break-word; text-wrap: balance; }
.ti-cargo { margin-top: 6px; color: var(--t-ca); font-size: 15px; line-height: 1.3; text-wrap: balance; }
/* Su frase (campo «presentacion»): es su voz, se lee entera y no en gris. */
.ti-frase { max-width: 34ch; margin-top: 12px; color: color-mix(in srgb, var(--t-t) 88%, var(--t-p)); font-size: 15px; line-height: 1.42; text-wrap: pretty; overflow-wrap: break-word; }
.ti-meta { margin-top: 10px; color: var(--t-mu); font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.tcg--esp .ti-cargo { font-size: 11.5px; letter-spacing: .24em; }
.tcg--it .ti-cargo { font-family: var(--t-disp); font-style: italic; font-size: 16px; }
.tcg--negrita .ti-cargo { color: var(--t-t); font-weight: 700; font-size: 14px; }
.tcg--chip .ti-cargo span { display: inline-block; padding: 3px 9px; background: var(--t-av); color: #FFFFFF; font-size: 12.5px; font-weight: 600; }
.tcg--chip-suave .ti-cargo span { display: inline-block; padding: 3px 11px; border-radius: 999px; background: color-mix(in srgb, var(--t-ca) 16%, transparent); font-size: 12px; font-weight: 600; }
.tfr--it .ti-frase { font-family: var(--t-disp); font-style: italic; font-size: 16px; }
.tfr--it-grande .ti-frase { font-family: var(--t-disp); font-style: italic; font-size: 18px; line-height: 1.3; color: var(--t-t); }
.tfr--grande .ti-frase { font-size: 17px; line-height: 1.3; color: var(--t-ca); }
.tfr--serif .ti-frase { font-family: "Lora", Georgia, serif; font-size: 15px; }
.tx-nit .ti-nombre { font-style: italic; }
.tx-idl .ti-id::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 1px; background: var(--t-li); }
.ti-orn { display: none; }
.tx-orn .ti-orn { display: block; width: 120px; height: 10px; margin: 14px auto 0;
  background: radial-gradient(circle, var(--t-ac) 2.5px, transparent 3px) center / 12px 10px no-repeat, linear-gradient(var(--t-li), var(--t-li)) center / 100% 1px no-repeat; }

/* ---------- el monograma ----------
   23-nov-2026: la foto es la protagonista y cada composición fija su tamaño (--s, en .ti-avz).
   Los filetes y anillos crecen con ella: a 168 px un borde de 2 px se perdía. */
.ti-avz { --s: 74px; display: block; flex: 0 0 auto; position: relative; z-index: 2; }
.ti-av {
  width: var(--s); height: var(--s); display: grid; place-items: center; border-radius: 50%; overflow: hidden; position: relative;
  font-family: var(--t-disp); font-weight: 600; font-size: calc(var(--s) * .4); letter-spacing: -.02em; line-height: 1;
  color: var(--t-avt); background: var(--t-avb);
  filter: drop-shadow(0 calc(var(--s) * .08) calc(var(--s) * .1) rgba(20, 16, 12, .2));
}
.ti-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.tv--anillo .ti-av, .tv--anillo-gris .ti-av { border: max(2px, calc(var(--s) * .02)) solid var(--t-av); }
.tv--anillo-grueso .ti-av, .tv--grueso .ti-av { border: max(4px, calc(var(--s) * .04)) solid var(--t-av); }
.tv--doble .ti-av { border: max(2px, calc(var(--s) * .018)) solid var(--t-av); box-shadow: 0 0 0 calc(var(--s) * .04) var(--t-p), 0 0 0 calc(var(--s) * .04 + 1.5px) var(--t-av); }
.tv--solido .ti-av, .tv--degradado .ti-av, .tv--arco .ti-av, .tv--cuadro .ti-av, .tv--cuadro-it .ti-av { background: var(--t-av); color: var(--t-avt); }
.tv--solido-anillo .ti-av, .tv--solido-orn .ti-av { background: var(--t-av); color: var(--t-avt); box-shadow: 0 0 0 calc(var(--s) * .04) var(--t-p), 0 0 0 calc(var(--s) * .04 + 1.5px) var(--t-av); }
.tv--degradado .ti-av { background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--t-av) 55%, #FFFFFF), var(--t-av) 65%); }
.tv--cuadro .ti-av, .tv--cuadro-it .ti-av, .tv--cuadro-degradado .ti-av, .tv--prisma .ti-av, .tv--mosaico .ti-av { border-radius: max(6px, calc(var(--s) * .07)); }
.tv--cuadro-degradado .ti-av { background: linear-gradient(135deg, var(--t-av), color-mix(in srgb, var(--t-av) 50%, #0F2A4F)); color: #FFFFFF; }
.tv--cuadro-it .ti-av, .tv--cristal-it .ti-av { font-style: italic; }
.tv--cuadroB .ti-av { border-radius: 3px; border: max(2px, calc(var(--s) * .018)) solid var(--t-av); box-shadow: inset 0 0 0 calc(var(--s) * .04) var(--t-avb), inset 0 0 0 calc(var(--s) * .04 + 1px) var(--t-av); }
.tv--arco .ti-av { height: calc(var(--s) * 1.15); border-radius: 999px 999px 8px 8px; }
.tv--sol .ti-avz::before { content: ""; position: absolute; inset: calc(var(--s) * -.1); border-radius: 50%; border: 1px dashed var(--t-av); opacity: .8; }
.tv--sol .ti-av { border: max(2px, calc(var(--s) * .018)) solid var(--t-av); }
.tv--orn .ti-avz::before, .tv--solido-orn .ti-avz::before { content: ""; position: absolute; inset: calc(var(--s) * -.07); border-radius: 50%; border: 1px dotted var(--t-av); }
.tv--cristal .ti-av, .tv--cristal-it .ti-av, .tv--cristal-facetas .ti-av {
  background: radial-gradient(circle at 32% 28%, #FFFFFF, var(--t-avb) 72%); color: var(--t-avt);
  box-shadow: 0 8px 20px -10px var(--t-av), inset 0 0 0 1.5px rgba(255,255,255,.85);
}
.tv--cristal-facetas .ti-av { background: conic-gradient(from 20deg, #E8F6FD, #9CCBE8, #DDF0FA, #7FB0D5, #F2FAFE, #B6DCF0, #E8F6FD); color: #1F3446; }
.tv--brillo .ti-av, .tv--brillo-grande .ti-av { border: 2px solid var(--t-av); box-shadow: 0 0 16px var(--t-av), inset 0 0 14px color-mix(in srgb, var(--t-av) 55%, transparent); }
.tv--sello .ti-av { border: 2px dashed var(--t-av); }
.tv--prisma .ti-av { background: conic-gradient(#E2553F 0 25%, #7A5CC4 0 50%, #E8B33A 0 75%, #3E9C9C 0); color: #FFFFFF; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.tv--mosaico .ti-av { background: linear-gradient(90deg, #26282E 50%, #E2553F 0) top / 100% 50% no-repeat, linear-gradient(90deg, #E8B33A 50%, #7A8EC4 0) bottom / 100% 50% no-repeat; color: #FFFFFF; }
.ti-av--vacio {
  align-content: center; gap: 2px; padding: 0;
  font-family: var(--t-cu) !important; font-style: normal !important; font-size: max(8.5px, calc(var(--s) * .072)) !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1; text-align: center;
  color: var(--t-mu) !important; text-shadow: none !important;
  background: color-mix(in srgb, var(--t-p) 85%, var(--t-mu)) !important;
}
.ti-av--vacio .vp-silueta { width: 46%; height: 46%; opacity: .5; justify-self: center; }
.ti-av--vacio::after { content: ""; position: absolute; inset: calc(var(--s) * .06); border-radius: inherit; border: 1.5px dashed color-mix(in srgb, var(--t-mu) 60%, transparent); }

/* ---------- la barra de arriba: su marca y «Compartir» (23-nov-2026) ----------
   Va sobre la página, en una franja de 64 px que cada composición deja libre. Su tinta
   (--t-arr) y su fondo (--t-arrb) los calcula plantillas.js según lo que hay debajo. */
.ti-barra {
  position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px 0 18px; color: var(--t-arr);
}
.ti-marca {
  min-width: 0; font-family: var(--t-disp); font-weight: 600; font-size: 12.5px; line-height: 1.25;
  letter-spacing: .16em; text-transform: uppercase; overflow-wrap: anywhere; text-wrap: balance;
  text-shadow: 0 0 10px var(--t-arrh), 0 0 4px var(--t-arrh), 0 0 1.5px var(--t-arrh);   /* se lee sobre los adornos */
}
.ti-marca--ini {
  display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--t-arr) 45%, transparent); font-style: italic; font-size: 15px; letter-spacing: 0; text-transform: none;
}
.ti-comp {
  flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--t-arr); background: var(--t-arrb); border: 1px solid color-mix(in srgb, var(--t-arr) 30%, transparent);
}
.ti-comp svg { width: 20px; height: 20px; }
.tx-banda .ti-barra { left: var(--t-bwv, 0px); }
.tm--marco .ti-barra, .tm--adorno .ti-barra, .tm--doble .ti-barra { top: 10px; left: 10px; right: 10px; }
.tm--tarjeta .ti-barra { top: 16px; left: 14px; right: 14px; }
.tm--columna .ti-barra { left: 22px; right: 18px; }

/* el lugar, con su alfiler (como «Desde Penco para todo Chile» en la página de Jaime) */
.ti-meta { display: inline-flex; align-items: center; gap: 5px; vertical-align: top; }
.ti-meta svg { width: 15px; height: 15px; flex: 0 0 auto; }
.ti-meta span { min-width: 0; }

/* ---------- A · identidad centrada ---------- */
.ti--A .ti-id { display: grid; justify-items: center; text-align: center; padding: 70px 22px 4px; }
.ti--A .ti-avz { --s: 168px; }
.ti--A .ti-nombre { margin-top: 20px; --tn: 35px; }
.ti--A .ti-frase { margin-left: auto; margin-right: auto; }

/* ---------- B · perfil horizontal ---------- */
.ti--B .ti-id { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 72px 18px 22px; }
.ti--B .ti-avz { grid-row: 1; grid-column: 1; }
.ti--B .ti-txt { grid-row: 1; grid-column: 2; }
.ti--B .ti-nombre { --tn: 28px; }
.ti--B .ti-cargo { margin-top: 4px; font-size: 14px; }
.ti--B .ti-meta { margin-top: 8px; }
.ti--B .ti-frase { grid-column: 1 / -1; margin-top: 16px; }
.ti--B .ti-avz { --s: 116px; }
.ti-cab { position: absolute; inset: 0; z-index: -1; background: var(--bhc); overflow: hidden; }
.ti-cab svg { width: 100%; height: 100%; }
.ti--bh .ti-id { padding-bottom: 22px; margin-bottom: 4px; }
.ti--bh .ti-nombre { color: var(--t-bhn); }
.ti--bh .ti-cargo { color: var(--t-bhca); }
.ti--bh .ti-frase, .ti--bh .ti-meta { color: var(--t-bhf); }
.tx-idCard .ti-id { margin: 14px 14px 4px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.62); box-shadow: 0 10px 26px -16px rgba(60,40,120,.45), inset 0 0 0 1px rgba(255,255,255,.9); }
.tx-idCaja .ti-id { margin: 20px 18px 6px; padding: 14px; border: 1px solid var(--t-sb); box-shadow: inset 0 0 0 3px var(--t-p), inset 0 0 0 4px var(--t-sb); }

/* ---------- C · editorial asimétrico ---------- */
.ti-banda { position: absolute; z-index: 1; top: 0; left: 0; width: var(--bw); height: var(--balto, 100%); background: var(--banda); overflow: hidden; }
.ti-banda svg { width: 100%; height: 100%; }
.tx-banda .ti-cuerpo { margin-left: var(--bwc, 0); }
.ti--C .ti-id { display: grid; justify-items: start; text-align: left; padding: 70px 18px 16px; }
.ti--C .ti-nombre { --tn: 44px; line-height: .98; margin-top: 18px; }
.ti--C .ti-avz { --s: 132px; }
.ti--C.tx-banda .ti-id, .ti--C.tx-banda .ti-sec, .ti--C.tx-banda .ti-acc, .ti--C.tx-banda .ti-mas, .ti--C.tx-banda .ti-pie, .ti--C.tx-banda .ti-fija { margin-left: calc(var(--t-bwv, 0px)); }
.tca--der .ti-id { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: start; }
.tca--der .ti-avz { grid-column: 2; grid-row: 1; --s: 120px; }
.tca--der .ti-txt { grid-column: 1; grid-row: 1; }
.tca--der .ti-nombre { margin-top: 6px; --tn: 38px; }
.tca--der .ti-frase { grid-column: 1 / -1; }
.tca--centro .ti-id { justify-items: center; text-align: center; }
.tca--centro .ti-avz { --s: 156px; }
.tca--centro .ti-frase { margin-left: auto; margin-right: auto; }
.tca--linea .ti-id { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
.tca--linea .ti-avz { grid-row: 1; grid-column: 1; --s: 104px; }
.tca--linea .ti-txt { grid-row: 1; grid-column: 2; }
.tca--linea .ti-nombre { margin-top: 0; --tn: 36px; }
.tca--linea .ti-meta { margin-top: 8px; }
.tca--linea .ti-frase { grid-column: 1 / -1; }
/* «banda»: la foto iba chica, montada en la franja. Grande ya no cabe ahí: va arriba, junto a la franja. */
.tca--banda .ti-nombre { margin-top: 18px; }

/* ---------- D · portada con tarjeta ---------- */
.ti-portada { position: absolute; z-index: 1; top: 0; left: var(--pm, 0); right: var(--pm, 0); height: var(--ph); background: var(--port); border-radius: var(--prad, 0); margin-top: var(--pm, 0); overflow: hidden; }
.ti-portada svg { width: 100%; height: 100%; }
.ti--D .ti-cuerpo { padding-top: 76px; }
.ti--D .ti-id { margin: 0 16px; padding: 24px 18px 22px; display: grid; justify-items: center; text-align: center; background: var(--t-card); border: 1px solid var(--t-cardb); border-radius: 14px; box-shadow: 0 18px 36px -20px rgba(0,0,0,.45); }
.ti--D .ti-avz { --s: 124px; }
.ti--D .ti-av { border-radius: max(8px, calc(var(--s) * .08)); }
.ti--D .ti-nombre { margin-top: 16px; --tn: 30px; }
.ti--D .ti-frase { margin-left: auto; margin-right: auto; }
.tdl--fila .ti-id { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; justify-items: start; text-align: left; }
.tdl--fila .ti-avz { grid-row: 1; grid-column: 1; --s: 100px; }
.tdl--fila .ti-txt { grid-row: 1; grid-column: 2; }
.tdl--fila .ti-nombre { margin-top: 0; --tn: 27px; }
.tdl--fila .ti-meta { margin-top: 8px; }
.tdl--fila .ti-frase { grid-column: 1 / -1; margin-left: 0; margin-top: 16px; }
.tda--sobre .ti-cuerpo { padding-top: 142px; }
.tda--sobre .ti-avz { margin-top: -94px; --s: 136px; }
.tdt--todo .ti-cuerpo { margin: 0 14px 14px; background: var(--t-card); border: 1px solid var(--t-cardb); border-radius: 6px; box-shadow: 0 14px 30px -18px rgba(0,0,0,.5); padding-top: 0; }
.tdt--todo.tda--sobre .ti-cuerpo { margin-top: 142px; }
.tdt--todo .ti-cuerpo { margin-top: 76px; }
.tdt--todo .ti-id { margin: 0; border: 0; box-shadow: none; background: none; }
.tx-idDark .ti-id { --t-ti: #1A1450; --t-ca: #3A2BA0; --t-mu: #4A4A6A; --t-t: #1A1450; }
.tx-secCard .ti-sec, .tx-secCard .ti-acc { margin-left: 16px; margin-right: 16px; padding: 12px; background: var(--t-card); border-radius: 10px; }

/* ---------- E · tipografía protagonista ---------- */
.ti--E .ti-id { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; padding: 72px 18px 16px; }
.ti--E .ti-avz { grid-column: 2; grid-row: 1; align-self: start; --s: 108px; }
.ti--E .ti-txt { grid-column: 1; grid-row: 1; }
.ti--E .ti-nombre { --tn: 46px; line-height: .96; }
.ti--E .ti-frase, .ti--E .ti-orn { grid-column: 1 / -1; }

/* ---------- marcos de página ---------- */
.tm--doble::after { content: ""; position: absolute; z-index: 3; inset: 8px; border: 1px solid var(--t-li); border-radius: 14px; box-shadow: inset 0 0 0 3px var(--t-p), inset 0 0 0 4px var(--t-li); pointer-events: none; }
.tm--marco::after { content: ""; position: absolute; z-index: 3; inset: 10px; border: 1px solid var(--t-sb); pointer-events: none; }
.tm--adorno::after { content: ""; position: absolute; z-index: 3; inset: 8px; border: 1px solid var(--t-sb); box-shadow: inset 0 0 0 4px var(--t-p), inset 0 0 0 5px var(--t-sb); pointer-events: none; }
.tm--marco .ti-cuerpo, .tm--adorno .ti-cuerpo, .tm--doble .ti-cuerpo { padding: 6px 6px 8px; }
.tm--tarjeta .ti-cuerpo { margin: 16px 14px; background: var(--t-card); border: 1px solid var(--t-cardb); border-radius: 14px; box-shadow: 0 16px 34px -22px rgba(0,0,0,.45); padding-bottom: 6px; }
.tm--columna .ti-cuerpo { margin: 0 18px 0 22px; background: var(--t-card); min-height: 100%; padding-bottom: 8px; }
.tm--cajas .ti-sec { margin: 34px 14px 0; padding: 14px 12px 12px; border: 1px solid var(--t-li); border-radius: 12px; }
.tm--cajas .ti-h { margin-top: -26px; justify-content: center; }
.tm--cajas .ti-h span { padding: 0 10px; background: var(--t-p); }
.tf--arena.tm--cajas .ti-sec { border-radius: 2px; }
.tx-accCaja .ti-acc { margin: 18px 14px 0; padding: 12px; border: 1px solid var(--t-sb); box-shadow: inset 0 0 0 3px var(--t-p), inset 0 0 0 4px var(--t-sb); }

/* ---------- secciones y títulos ---------- */
.ti-sec, .ti-acc, .ti-mas { padding: 0 18px; }
.ti-acc { margin-top: 22px; }
.ti-sec { margin-top: 30px; background: var(--t-secf); }
.ti-sec + .ti-sec { margin-top: 26px; }
.ti-mas { margin-top: 28px; }
/* «con mi código», bajo «Cotiza en línea»: el visitante sabe que el enlace es de su asesor. */
.ti-nota { margin: -4px 0 10px; font-size: 12.5px; line-height: 1.3; color: var(--t-mu); }
.th--centro .ti-nota, .th--orn .ti-nota, .th--mayus-orn .ti-nota, .th--orn-centro .ti-nota, .th--centro-orn .ti-nota { text-align: center; }
.ti-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--t-hf); font-weight: var(--t-hp); font-size: 18px; line-height: 1.2; color: var(--t-h); }
.th--centro .ti-h, .th--orn .ti-h, .th--mayus-orn .ti-h, .th--orn-centro .ti-h, .th--centro-orn .ti-h { justify-content: center; text-align: center; }
.th--orn .ti-h::before, .th--orn .ti-h::after, .th--mayus-orn .ti-h::before, .th--mayus-orn .ti-h::after, .th--centro-orn .ti-h::before, .th--centro-orn .ti-h::after {
  content: ""; flex: 0 1 54px; height: 1px; background: var(--t-li);
}
.th--orn-centro .ti-h span::after { content: ""; display: block; width: 90px; height: 8px; margin: 4px auto 0; background: radial-gradient(circle, var(--t-ac) 2px, transparent 2.5px) center / 10px 8px no-repeat, linear-gradient(var(--t-li), var(--t-li)) center / 100% 1px no-repeat; }
.th--mayus .ti-h, .th--mayus-orn .ti-h { text-transform: uppercase; letter-spacing: .2em; font-size: 11.5px; font-weight: 500; }
.th--esp .ti-h { letter-spacing: .16em; font-size: 16px; }
.tx-thl .ti-h span { padding-bottom: 3px; border-bottom: 2px solid var(--t-h); }
.tx-thSol .ti-sec .ti-h::after { content: "✺"; margin-left: auto; color: var(--t-ac); font-size: 18px; }
.tx-thRaya .ti-h::after { content: ""; width: 18px; height: 2px; background: var(--t-ac); }
.tx-thPunto .ti-h::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--t-ac); box-shadow: 0 0 6px var(--t-ac); }
.tx-thPuntos .ti-h::after { content: ""; width: 26px; height: 10px; background: radial-gradient(circle, #E2553F 3px, transparent 3.5px) 0 50% / 9px 9px no-repeat, radial-gradient(circle, #7A5CC4 3px, transparent 3.5px) 9px 50% / 9px 9px no-repeat, radial-gradient(circle, #E8B33A 3px, transparent 3.5px) 18px 50% / 9px 9px no-repeat; }
.tx-thOla .ti-h::after { content: "≈"; color: var(--t-ac); font-size: 20px; line-height: 1; }
.tx-thIco .ti-sec .ti-h::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(#E8F6FD, #9CCBE8, #DDF0FA, #7FB0D5, #E8F6FD); }

/* ---------- servicios ---------- */
.ti-lista { display: grid; gap: 6px; }
.ti-fila {
  width: 100%; height: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; min-height: 44px;
  background: var(--t-su); border: 1px solid var(--t-sb); border-radius: var(--t-rr); box-shadow: var(--t-sh); color: var(--t-t); text-align: left;
}
.ti-num { display: none; }
.ti-ico { flex: 0 0 auto; width: 21px; height: 21px; color: var(--t-ic); }
.ti-ico svg { width: 100%; height: 100%; }
/* Sin guiones: «Seguro com-plementario» se lee mal; se corta entre palabras. */
.ti-pn { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 500; line-height: 1.2; overflow-wrap: break-word; hyphens: manual; }
.ti-cot { flex: 0 0 auto; padding: 5px 12px; font-family: var(--t-cu); font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; border-radius: var(--t-rc); background: var(--t-cb); color: var(--t-ct); border: 1px solid var(--t-cbo); }
.ti-cot--alt { background: var(--t-cb2); color: var(--t-ct2); border-color: var(--t-cbo2); }
.ti-item--f .ti-pn, .ti-item--f .ti-ico { opacity: .5; }
.tx-icc .ti-ico, .tx-icb .ti-ico { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: color-mix(in srgb, var(--t-ac) 12%, #FFFFFF); }
.tx-icb .ti-ico { border-radius: 6px; border: 1px solid var(--t-sb); background: #FFFFFF; }
.tx-sinico .ti-sec .ti-ico { display: none; }
.tr--lin .ti-lista { gap: 0; }
.tr--lin .ti-fila { background: none; border: 0; border-bottom: 1px solid var(--t-li); border-radius: 0; box-shadow: none; padding: 8px 2px; }
.tr--doble .ti-fila { box-shadow: inset 0 0 0 3px var(--t-su), inset 0 0 0 4px var(--t-sb), var(--t-sh); }
.tr--izq .ti-fila { border-left: 5px solid var(--ci, var(--t-ac)); }
.tr--grupo .ti-lista { gap: 0; background: var(--t-su); border: 1px solid var(--t-sb); border-radius: 12px; overflow: hidden; box-shadow: var(--t-sh); }
.tr--grupo .ti-fila { background: none; border: 0; border-bottom: 1px solid var(--t-li); border-radius: 0; box-shadow: none; }
.tr--grupo .ti-item:last-child .ti-fila { border-bottom: 0; }
.tr--raya .ti-pn { flex: 0 1 auto; }
.tr--raya .ti-fila::after { content: ""; order: 3; flex: 1; height: 1px; background: var(--t-sb); opacity: .6; }
.tr--raya .ti-cot { order: 4; }

/* numerada */
.ts--N .ti-num { display: block; flex: 0 0 auto; min-width: 22px; font-family: var(--t-nf); font-size: var(--t-ns); font-weight: 600; color: var(--t-nc); line-height: 1; }
.ts--N .ti-ico { display: none; }
.tx-ni.ts--N .ti-ico, .tx-ni-der.ts--N .ti-ico { display: block; }
.tx-ni-der .ti-ico { order: 3; }
.tx-ni-der .ti-cot { order: 4; }
.tx-nb .ti-num { padding: 4px 5px; border-radius: 3px; background: var(--t-nc); color: #FFFFFF; font-size: 11px; text-align: center; }

/* tarjetas: dos columnas */
.ts--T .ti-lista { grid-template-columns: 1fr 1fr; gap: 8px; }
.ts--T .ti-item { display: flex; min-width: 0; }
.ts--T .ti-fila { display: grid; align-content: space-between; gap: 6px; padding: 9px; min-height: 70px; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "pn pn" "ico cot"; }
.ts--T .ti-pn { grid-area: pn; font-size: 13.5px; }
/* 23-nov-2026: con la franja de C (Petróleo: 52 px) las celdas quedan tan angostas que
   «complementario» no cabe entero y se partía donde fuera («complementari / o»). Ahí se parte por
   sílaba y con guion (la página va en lang="es-CL"). En las demás grillas la palabra cabe entera en
   el renglón de abajo y el guion automático la partía sin necesidad («comple- / mentario»): no va. */
.tx-bandaAncha.ts--T .ti-pn { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
.ts--T .ti-ico { grid-area: ico; align-self: end; width: 24px; height: 24px; }
.ts--T .ti-cot { grid-area: cot; justify-self: end; align-self: end; }
.ta--b .ti-fila { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ico pn" "cot cot"; align-content: start; }
.ta--b .ti-ico { align-self: center; }
.ta--b .ti-cot { justify-self: stretch; text-align: center; padding: 6px; font-size: 12px; }
.ta--c .ti-fila { grid-template-columns: 1fr; grid-template-areas: "ico" "pn" "cot"; justify-items: center; text-align: center; align-content: center; }
.ta--c .ti-ico { align-self: center; }
.ta--c .ti-cot { justify-self: center; }
.ta--d .ti-fila { grid-template-areas: "pn ico" "cot ."; }
.ta--d .ti-ico { align-self: start; }
.ta--d .ti-cot { justify-self: start; }
.ta--e .ti-fila { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ico pn" "ico cot"; align-content: center; }
.ta--e .ti-ico { align-self: start; }
.ta--e .ti-cot { justify-self: start; }
.ta--f .ti-fila { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ico pn" ". cot"; }
.ta--f .ti-ico { align-self: start; }
.ta--g .ti-fila { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ico pn" "cot cot"; align-content: start; }
.ta--g .ti-ico { width: 34px; height: 34px; padding: 5px; border: 1px solid var(--t-sb); border-radius: 4px; }
.ta--g .ti-cot { justify-self: end; }
.ta--h .ti-fila { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ico pn" "cot cot"; align-content: start; }
.ta--h .ti-cot { justify-self: end; }
.tx-icp .ti-fila { grid-template-columns: 1fr; grid-template-areas: "ico" "pn" "cot"; }
.tx-icp .ti-ico { align-self: start; width: 18px; height: 18px; }
.tx-icp .ti-cot { justify-self: stretch; text-align: center; }
.tx-pnB .ti-pn { font-weight: 700; font-size: 14.5px; }
.tx-esq .ti-fila { position: relative; }
.tx-esq .ti-fila::before { content: ""; position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; border-top: 3px solid var(--t-ac); border-right: 3px solid var(--t-ac); }
.tap--ancho .ti-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tap--ancho .ti-item:last-child:nth-child(odd) .ti-fila { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico pn cot"; min-height: 54px; align-items: center; }
.tap--ancho .ti-item:last-child:nth-child(odd) .ti-ico, .tap--ancho .ti-item:last-child:nth-child(odd) .ti-cot { align-self: center; }
.tap--centro .ti-item:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 4px); }

/* tarjetas: tres columnas */
.ts--T3 .ti-lista { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ts--T3 .ti-item { display: flex; min-width: 0; }
.ts--T3 .ti-fila { display: grid; grid-template-columns: 1fr; grid-template-areas: "pn" "ico" "cot"; justify-items: center; text-align: center; gap: 6px; padding: 9px 5px; min-height: 96px; }
.ts--T3 .ti-pn { grid-area: pn; font-size: 12px; }
.ts--T3 .ti-ico { grid-area: ico; }
.ts--T3 .ti-cot { grid-area: cot; padding: 3px 10px; }

/* ---------- el contacto: WhatsApp, y «Guardar contacto» y «Llamar» ---------- */
.ti-bf { display: flex; gap: 8px; }
.ti-bf + .ti-bf { margin-top: 8px; }
.ti-acc > .ti-bf { margin-top: 8px; }
.ti-wsp, .ti-b, .ti-hueco { flex: 1 1 0; min-width: 0; }
.ti-wsp, .ti-b {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 8px;
  border-radius: var(--t-rb); font-family: var(--t-cu); font-size: 13px; font-weight: 600; line-height: 1.1; text-align: center; border: var(--t-bw) solid transparent;
  white-space: nowrap;
}
/* «Guardar contacto» va en una línea, como en el PDF: el botón mide su ancho y achica
   la letra cuando es angosto (la tarjeta de D, una fila de tres); si ni así cabe, parte la línea. */
.ti-b:not(.ti-b--ic) { container-type: inline-size; }
.ti-wsp span, .ti-b span { min-width: 0; }
@container (max-width: 136px) { .ti-b > span { font-size: 11px; letter-spacing: -.01em; } .ti-b > svg { width: 14px; height: 14px; } }
@container (max-width: 104px) { .ti-b > span { white-space: normal; font-size: 10.5px; } }
.ti-wsp { background: var(--t-w); color: var(--t-wt); border-color: var(--t-wbo); box-shadow: var(--t-wsh); min-height: 46px; font-size: 14.5px; }
.ti-b { background: var(--t-b); color: var(--t-bt); border-color: var(--t-bbo); box-shadow: var(--t-bsh); }
.ti-b--s { background: var(--t-bs); color: var(--t-bst); border-color: var(--t-bsbo); }
.ti-b--r { background: var(--t-br); color: var(--t-brt); border-color: var(--t-brbo); }
.ti-b--m { background: var(--t-bm); color: var(--t-bmt); border-color: var(--t-bmbo); }
.ti-b--o { background: var(--t-bo); color: var(--t-bot); border-color: var(--t-bobo); }
.ti-b--n { background: none; border-color: transparent; box-shadow: none; }
.ti-wsp svg, .ti-b svg { flex: 0 0 auto; width: 16px; height: 16px; }
.ti-wsp svg { width: 19px; height: 19px; }
.ti-b--ic { flex-direction: column; gap: 4px; min-height: 56px; font-size: 11.5px; font-weight: 500; }
.tx-icd .ti-b { flex-direction: row-reverse; }
.tx-sinicob .ti-b svg { display: none; }
.tx-bdoble .ti-b, .tx-bdoble .ti-wsp { box-shadow: inset 0 0 0 3px var(--t-p), inset 0 0 0 4px var(--t-bbo); }

/* ---------- pie ---------- */
.ti-pie { margin-top: 18px; padding: 0 18px 18px; text-align: center; font-size: 11px; color: var(--t-mu); }
/* Su dirección: la que va dentro del QR (17-nov-2026). */
.ti-url { display: block; margin-bottom: 3px; font-size: 12.5px; letter-spacing: .01em; color: var(--t-t); opacity: .82; overflow-wrap: anywhere; }
.ti-url b { font-weight: 700; }
.ti-pie b { font-weight: 600; }

/* ---------- detalles propios de algunos diseños ---------- */
.tx-ola .ti-id::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -2px; height: 8px; background: none;
  border-top: 0; -webkit-mask: none; background-image: radial-gradient(circle at 6px -2px, transparent 5px, var(--t-ac) 5.5px, var(--t-ac) 6.5px, transparent 7px); background-size: 12px 8px; opacity: .6; }
.tf--atlantico.ti--A .ti-frase { font-style: italic; }
.tf--terracota.ti--B .ti-sec { padding-top: 14px; padding-bottom: 16px; margin-top: 10px; }
.tf--grafito.ti--D .ti-cuerpo { border-bottom: 3px solid #C9A96E; }
.tf--glaciar.ti--B .ti-fila { border-top: 3px solid #8FB3D6; }
.tf--prisma.ti--B .ti-cot--alt { border-color: #E8B33A; }
.ti--osc .ti-av--vacio { background: color-mix(in srgb, var(--t-p) 80%, #FFFFFF) !important; }
.tf--atlantico.ti--E .ti-txt { padding-top: 40px; }
.tf--ambar.ti--A .ti-id { padding-left: 46px; padding-right: 46px; }
.tf--ambar.ti--A .ti-sec, .tf--ambar.ti--A .ti-acc { padding-left: 34px; padding-right: 34px; }
.tf--turquesa.ti--B .ti-cargo span { background: #14505E; color: #FFFFFF; }
.tf--atlantico.ti--E .ti-capa--si { width: 34%; height: 90px; }
.tf--atlantico.ti--C .ti-capa--sd { width: 46%; height: 190px; }

/* ---------- 17-nov-2026: que los adornos no tapen el nombre ----------
   Un halo del color del papel detrás de las letras de la identidad: el adorno
   sigue ahí, pero el nombre se lee entero (en Bosque A las hojas cruzaban el
   apellido; en Prisma A, el triángulo negro). No va en B con cabecera de color
   ni en D, donde el texto está sobre otra superficie. */
.ti--A .ti-id :is(.ti-nombre, .ti-cargo, .ti-frase, .ti-meta),
.ti--C .ti-id :is(.ti-nombre, .ti-cargo, .ti-frase, .ti-meta),
.ti--E .ti-id :is(.ti-nombre, .ti-cargo, .ti-frase, .ti-meta) {
  text-shadow: 0 0 14px var(--t-p), 0 0 6px var(--t-p), 0 0 2px var(--t-p);
}
.tcg--chip .ti-cargo, .tcg--chip-suave .ti-cargo { text-shadow: none !important; }
/* 23-nov-2026: dentro de una tarjeta (Turquesa A) el halo del color del papel quedaba como un brillo turquesa. */
.tm--tarjeta .ti-id :is(.ti-nombre, .ti-cargo, .ti-frase, .ti-meta), .tm--columna .ti-id :is(.ti-nombre, .ti-cargo, .ti-frase, .ti-meta) { text-shadow: none; }
/* 23-nov-2026: B sin cabecera de color también lleva el halo (Bosque B: «Fuentes» se metía en las hojas). */
.ti--B:not(.ti--bh) .ti-id :is(.ti-nombre, .ti-cargo, .ti-frase, .ti-meta) { text-shadow: 0 0 14px var(--t-p), 0 0 6px var(--t-p), 0 0 2px var(--t-p); }
.tx-idCard .ti-id :is(.ti-nombre, .ti-cargo, .ti-frase, .ti-meta), .tx-idCaja .ti-id :is(.ti-nombre, .ti-cargo, .ti-frase, .ti-meta) { text-shadow: none; }
/* Bosque B: la rama de arriba, en la esquina y más chica, fuera del nombre. */
.tf--bosque.ti--B .ti-capa--sd { width: 30%; height: 150px; }
/* Bosque A: las ramas de arriba, más chicas y fuera del nombre. */
.tf--bosque.ti--A .ti-capa--sd { width: 44%; height: 150px; }
.tf--bosque.ti--A .ti-capa--izq { opacity: .75; }
/* Prisma A: las figuras de arriba se juntan en las esquinas. */
.tf--prisma.ti--A .ti-capa--arriba { height: 120px; }
/* Ámbar A: el texto no entra a las columnas de figuras de los costados. */
.tf--ambar.ti--A .ti-id { padding-left: 56px; padding-right: 56px; }
.tf--ambar.ti--A .ti-sec, .tf--ambar.ti--A .ti-acc { padding-left: 50px; padding-right: 50px; }
.tf--ambar.ti--A .ti-capa--izq-alto, .tf--ambar.ti--A .ti-capa--der-alto { width: 42px; }
/* Atlántico E: las facetas de abajo no se meten bajo los botones. */
.tf--atlantico.ti--E .ti-capa--abajo { height: 130px; }
.tf--atlantico.ti--E .ti-cuerpo { padding-bottom: 96px; }
/* Con marco de página o tarjeta entera, el pie no toca el borde de abajo. */
.tm--marco .ti-pie, .tm--adorno .ti-pie, .tm--doble .ti-pie, .tm--tarjeta .ti-pie, .tdt--todo .ti-pie { padding-bottom: 26px; }

/* 18-nov-2026: el pie de las plantillas lleva el aviso y el enlace para
   reportar, como la página de empresa (vista.js, pieLegal). */
.ti-legal p { margin: 0; text-wrap: balance; }
.ti-reportar {
  margin-top: 3px; padding: 3px 6px; background: none; border: 0;
  font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}

/* ---------- redes (20-nov-2026) ----------
   Bajo «Conversemos», con los colores de botón de cada diseño: así cada una de las 100
   las viste a su manera. En la composición A (identidad centrada) van al centro. */
.ti-redes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.ti--A .ti-redes { justify-content: center; }
.ti-redes__rotulo { font-family: var(--t-cu); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t-mu); }
.ti-redes__lista { display: flex; flex-wrap: wrap; gap: 7px; }
.ti-redes__red {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 38px; height: 38px; padding: 0; border-radius: 999px;
  background: var(--t-b); color: var(--t-bt); border: var(--t-bw) solid var(--t-bbo); box-shadow: var(--t-bsh);
  font-family: var(--t-cu); font-size: 12.5px; font-weight: 600;
}
.ti-redes__red svg { width: 17px; height: 17px; flex: 0 0 auto; }
.ti-redes__red--usuario { width: auto; padding: 0 13px 0 10px; }

/* ---------- 21-nov-2026: mejoras para las 100 (Felipe: «mejóralos todos») ----------
   1. Con tres servicios en dos columnas, el tercero quedaba como media tarjeta
      con un hueco al lado. Ahora ocupa el ancho entero, en una fila (como ya
      hacían los diseños con «tap--ancho»). Los que lo centran a propósito
      («tap--centro») siguen igual. */
.ts--T:not(.tap--centro) .ti-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ts--T:not(.tap--centro) .ti-item:last-child:nth-child(odd) .ti-fila {
  grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico pn cot"; min-height: 54px; align-items: center; text-align: left; justify-items: stretch;
}
.ts--T:not(.tap--centro) .ti-item:last-child:nth-child(odd) .ti-ico,
.ts--T:not(.tap--centro) .ti-item:last-child:nth-child(odd) .ti-cot { align-self: center; justify-self: end; }
.ts--T:not(.tap--centro) .ti-item:last-child:nth-child(odd) .ti-ico { justify-self: start; }
/* 2. Los botones de «Conversemos» llegan a 44 px de alto (lo que pide un dedo)
      y su letra no baja de 12 px. Ahora van de a dos por fila (plantillas.js). */
.ti-b { min-height: 44px; }
.ti-wsp { min-height: 48px; }
.ti-b--ic { min-height: 58px; font-size: 12.5px; }
@container (max-width: 136px) { .ti-b > span { font-size: 12px; } }

/* ---------- 23-nov-2026: el glow up (Felipe eligió el orden de Jaime y la Nacha) ----------
   1. WhatsApp manda: el botón más grande de la página, justo bajo su nombre, con
      «Guardar contacto» y «Llamar» al lado. Cada uno con los colores de su receta. */
.ti-wsp { min-height: 56px; gap: 10px; padding: 8px 14px; font-size: 16px; }
.ti-acc > .ti-wsp, .ti-fija .ti-wsp { width: 100%; }   /* un botón no se estira solo: va de lado a lado */
.ti-wsp svg { width: 22px; height: 22px; }
.ti-acc .ti-b { min-height: 48px; font-size: 14px; gap: 7px; }
.ti-acc .ti-b svg { width: 17px; height: 17px; }
.ti-acc .ti-b--ic { min-height: 62px; font-size: 13px; }

/* 2. Abajo, sus datos tal cual (el correo escrito, el dominio de su sitio) y sus redes:
      se pueden leer y copiar, no solo tocar. */
.ti-datos { border-top: 1px solid var(--t-li); }
.ti-dato {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 10px 2px;
  border-bottom: 1px solid var(--t-li); color: var(--t-t); font-size: 14.5px; line-height: 1.3; text-align: left;
}
.ti-dato svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--t-ic); }
.ti-dato span { min-width: 0; overflow-wrap: anywhere; }
.ti-mas .ti-redes { margin-top: 16px; }
.ti--A .ti-mas .ti-redes, .tca--centro .ti-mas .ti-redes { justify-content: center; }

/* 3. Los diseños con la identidad en una caja: la caja baja bajo la barra de arriba. */
.tx-idCard .ti-id { margin-top: 70px; }
.tx-idCaja .ti-id { margin-top: 72px; }
.tx-secCard .ti-mas { margin-left: 16px; margin-right: 16px; padding: 4px 12px 12px; background: var(--t-card); border-radius: 10px; }

/* 4. Tres columnas (Medianoche E…): ahora los servicios van en dos grupos y una fila podía
      quedar con un hueco. Una grilla de 6: la última fila con uno solo va a lo ancho (y en
      fila, como «ancho» en las tarjetas de dos); con dos, cada uno a la mitad. */
.ts--T3 .ti-lista { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ts--T3 .ti-item { grid-column: span 2; }
.ts--T3 .ti-item:nth-last-child(2):nth-child(3n+1), .ts--T3 .ti-item:last-child:nth-child(3n+2) { grid-column: span 3; }
.ts--T3 .ti-item:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.ts--T3 .ti-item:last-child:nth-child(3n+1) .ti-fila {
  grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico pn cot"; justify-items: start; text-align: left; min-height: 54px; padding: 9px 12px;
}
.ts--T3 .ti-item:last-child:nth-child(3n+1) .ti-cot { justify-self: end; }

/* 5. La barra de WhatsApp que queda abajo al bajar (vista.css explica cómo aparece). */
@supports (animation-timeline: view()) and (timeline-scope: --a) {
  .ti { timeline-scope: --ti-wsp; }
  .ti-acc > .ti-wsp { view-timeline: --ti-wsp block; view-timeline-inset: 0px; }
  .ti-fija {
    display: block; position: sticky; z-index: 6; bottom: 0; margin-top: 4px;
    padding: 16px 18px max(14px, env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, var(--t-p) 56%, color-mix(in srgb, var(--t-p) 0%, transparent));
    animation: vp-fija linear both; animation-timeline: --ti-wsp; animation-range: exit 55% exit 100%;
  }
  .ti-fija .ti-wsp { width: 100%; box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .5); }
}

/* ---------- 23-nov-2026 (tarde): segunda vuelta («procura tener cuidado con todos esos detalles») ----------
   1. La marca de arriba, sobre un adorno, va en una pastilla translúcida del color de lo que hay
      debajo (plantillas.js, barraSobreAdorno). La pastilla se corre hacia afuera: las letras quedan
      alineadas con el resto de la página. «Compartir» lleva el mismo vidrio. */
.tx-vidrio .ti-marca:not(.ti-marca--ini):not(:empty) {
  padding: 7px 12px 6px; margin-left: -12px; border-radius: 16px;
  background: color-mix(in srgb, var(--t-arrh) 86%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  text-shadow: none;
}
.tx-vidrio .ti-marca--ini { background: color-mix(in srgb, var(--t-arrh) 86%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-shadow: none; }
.tx-vidrio .ti-comp { background: color-mix(in srgb, var(--t-arrb) 86%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* 2. Un solo producto en una grilla de tarjetas: va a lo ancho, en una fila (antes quedaba
      una tarjeta chica al centro, con aire a los dos lados, en Atlántico B y Petróleo B). */
.ts--T .ti-lista > .ti-item:only-child:nth-child(1) { grid-column: 1 / -1; justify-self: stretch; width: auto; }
.ts--T .ti-lista > .ti-item:only-child:nth-child(1) .ti-fila {
  grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico pn cot"; min-height: 54px;
  align-items: center; justify-items: stretch; text-align: left;
}
.ts--T .ti-lista > .ti-item:only-child:nth-child(1) .ti-ico { align-self: center; justify-self: start; }
.ts--T .ti-lista > .ti-item:only-child:nth-child(1) .ti-cot { align-self: center; justify-self: end; }

/* 3. Tarjetas de producto angostas (dos columnas en un teléfono): el ícono al lado le quitaba 30 px al
      nombre y «complementario» o «responsabilidad» se partían sin guion. Si la tarjeta mide menos de
      172 px, el ícono sube y el nombre ocupa todo el ancho; el botón queda abajo, como en cada diseño. */
.ts--T .ti-lista > .ti-item { container-type: inline-size; }
@container (max-width: 172px) {
  :is(.ta--b, .ta--d, .ta--e, .ta--f, .ta--g, .ta--h) .ti-lista .ti-fila {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "ico" "pn" "cot"; align-content: start; justify-items: start;
  }
  :is(.ta--b, .ta--d, .ta--e, .ta--f, .ta--g, .ta--h) .ti-lista .ti-ico { align-self: start; }
  :is(.ta--d, .ta--e, .ta--f) .ti-lista .ti-cot { justify-self: start; align-self: end; }
  :is(.ta--g, .ta--h) .ti-lista .ti-cot { justify-self: end; align-self: end; }
  .ta--b .ti-lista .ti-cot { justify-self: stretch; align-self: end; }
}

/* 4. Títulos de sección con adornos a los lados («— También te asesoro en —»): los adornos se
      achican antes que el texto, y si igual no cabe, los dos renglones quedan parejos (sin «en» solo). */
.th--orn .ti-h::before, .th--orn .ti-h::after, .th--mayus-orn .ti-h::before, .th--mayus-orn .ti-h::after,
.th--centro-orn .ti-h::before, .th--centro-orn .ti-h::after { flex: 0 100 54px; min-width: 12px; }
.ti-h span { text-wrap: balance; }

/* 5. Pantallas angostas (320 px, o una franja ancha de C): nada se sale de su caja.
      - El botón de WhatsApp achica su letra y, si igual no cabe, parte en dos renglones parejos.
      - En las listas, «Cotizar»/«Consultar» baja al renglón de abajo antes de apretar el nombre.
      - Tres columnas de tarjetas pasan a dos.
      - En los diseños con la foto al lado, la foto se achica un poco para dejarle aire al nombre. */
.ti-acc, .ti-sec, .ti-id { container-type: inline-size; }
@container (max-width: 250px) {
  .ti-acc > .ti-wsp { font-size: 14.5px; gap: 8px; padding-inline: 10px; }
  .ti-acc > .ti-wsp svg { width: 20px; height: 20px; }
}
@container (max-width: 226px) { .ti-acc > .ti-wsp > span { white-space: normal; text-wrap: balance; } }
@container (max-width: 260px) {
  :is(.ts--L, .ts--N) .ti-sec .ti-fila { flex-wrap: wrap; row-gap: 6px; }
  :is(.ts--L, .ts--N) .ti-sec .ti-pn { flex: 1 1 calc(100% - 44px); }
  :is(.ts--L, .ts--N) .ti-sec .ti-cot { margin-left: auto; }
}
@container (max-width: 300px) {
  .ts--T3 .ti-sec .ti-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts--T3 .ti-sec .ti-lista > .ti-item { grid-column: auto; }
  .ts--T3 .ti-sec .ti-lista > .ti-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  :is(.ti--B, .tca--linea, .tdl--fila) .ti-id .ti-avz { --s: 88px; }
}

/* 6. La línea punteada de Medianoche C y Lavanda C pasaba por el borde del texto y de los botones:
      va más afuera (en Lavanda, entre su franja y el texto). */
.ti-capa--linea-izq { left: -6px; }
.tf--lavanda .ti-capa--linea-izq { left: 0; }

/* 7. «Guardar contacto» y «Llamar» nunca tocan el borde de su botón: un paso de 13 px entre los
      14 de siempre y los 12 de los botones angostos (11,5 con el ícono más chico en el teléfono del
      formulario, que dibuja la página a 327 px); solo bajo 117 px de contenido va sin ícono. */
@container (max-width: 150px) { .ti-acc .ti-b > span { font-size: 13px; letter-spacing: -.005em; } }
@container (max-width: 136px) { .ti-acc .ti-b > span { font-size: 12px; } }
@container (max-width: 126px) { .ti-acc .ti-b > span { font-size: 11.5px; letter-spacing: -.01em; } .ti-acc .ti-b:not(.ti-b--ic) > svg { width: 13px; height: 13px; margin-right: -2px; } }
@container (max-width: 117px) { .ti-acc .ti-b:not(.ti-b--ic) > svg { display: none; } }

/* ---------- «¿En qué te puedo ayudar?» (24-nov-2026) ----------
   La misma sección de la página de empresa (vista.css, .pf), vestida con lo de cada diseño:
   su título (.ti-h), sus filas (.ti-fila) y su botón de WhatsApp (.ti-wsp). Lo marcado va
   del color del botón de WhatsApp del diseño, que siempre se lee con su letra encima. */
.ti .pf { --pf-texto: var(--t-t); --pf-mudo: var(--t-mu); --pf-sup: var(--t-su); --pf-sel: var(--t-w); --pf-sobre-sel: var(--t-wt); --pf-radio: var(--t-rr); }
/* una frase del cliente no cabe en media fila: aquí van siempre una debajo de otra */
.ti-perfil .ti-lista { grid-template-columns: 1fr; }
.ti-perfil .ti-item { display: block; }
.ti-perfil .ti-fila { display: flex; align-items: center; gap: 11px; min-height: 48px; grid-template-areas: none; }
.ti-perfil .ti-fila::after { content: none; }
.ti-perfil .ti-pn { flex: 1; font-size: 14px; line-height: 1.3; }
.ti-perfil .pf-forma { margin-top: 2px; }
.ti-perfil .ti-wsp { flex: none; width: 100%; min-height: 48px; }
