/* illa. — probador «Armá tu web» (/arma-tu-web/). Los contenedores siguen el diseño «Forma propia»
   (portada.css y proyectos.css); la web de muestra (.ab-pg) tiene su propio estilo: es la del cliente. */
.arma-probador { padding-bottom: 72px; }
.ab { display: grid; gap: 24px; }
@media (min-width: 1000px) { .ab { grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; } }

/* ---------- La ventana con la web de muestra ---------- */
.ab-vista { position: sticky; top: 72px; z-index: 5; min-width: 0; background: var(--bg); padding: 8px 0; }
@media (min-width: 1000px) { .ab-vista { top: 96px; padding: 0; background: none; } }
.ab-win { border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; background: #F7F4EE; }
.ab-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; height: 42px; padding: 0 12px 0 10px; border-bottom: 1.5px solid var(--line); background: var(--bg); }
.ab-top > .pf-mono { align-self: center; }
.ab-tab { height: 34px; display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 240px; margin-bottom: -1.5px; padding: 0 14px; border: 1.5px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: #F7F4EE; color: #2B2926; font-size: 1rem; white-space: nowrap; }
.ab-tab i { width: 12px; height: 12px; border-radius: 3px; background: var(--ac); flex: none; }
.ab-tab span { overflow: hidden; text-overflow: ellipsis; }
.ab-bar { height: 40px; padding: 0 12px; display: flex; align-items: center; background: #F7F4EE; }
.ab-url { flex: 1; height: 26px; border-radius: 999px; background: #E9E5DC; padding: 0 12px; display: flex; align-items: center; font-family: var(--mono); font-size: 1rem; color: #55534D; overflow: hidden; white-space: nowrap; }
.ab-escribiendo .ab-vista { position: static; }
.ab-pg { background: #F7F4EE; color: #1B1917; height: 150px; overflow: auto; padding: 14px 16px 20px; font-size: 1rem; line-height: 1.4; }
@media (min-width: 1000px) { .ab-pg { height: min(540px, calc(100vh - 200px)); min-height: 300px; padding: 22px 28px 30px; } }
.ab-pg * { box-sizing: border-box; }
.ab-nb { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.ab-nb b { font-family: var(--fd); font-weight: var(--fw); font-size: 1.25rem; }
.ab-nb span { display: flex; gap: 6px; }
.ab-nb span i { width: 18px; height: 5px; border-radius: 3px; background: #C9C4B8; }
.ab-hero .etiqueta { color: #5B5750; font-size: 1rem; }
.ab-hero h4 { font-family: var(--fd); font-weight: var(--fw); font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1; margin: 6px 0 8px; }
.ab-hero p { margin: 0 0 14px; color: #4A4742; }
.ab-b { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ac); color: var(--ac-t, #111); font-weight: 600; }
.ab-s { margin-top: 22px; padding-top: 16px; border-top: 1.5px solid #E1DCD0; border-radius: 2px; }
.ab-s h5 { font-family: var(--fd); font-weight: var(--fw); font-size: 1.3rem; margin: 0 0 10px; }
.ab-nuevo { animation: ab-flash 1s ease-out; }
@keyframes ab-flash { 0% { background: var(--ac); box-shadow: 0 0 0 8px var(--ac); } 100% { background: transparent; box-shadow: 0 0 0 0 transparent; } }
.ab-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ab-gal i { aspect-ratio: 1; border-radius: 8px; background: var(--ac); opacity: .55; }
.ab-gal i:nth-child(2) { opacity: .8; } .ab-gal i:nth-child(3) { opacity: .35; }
.ab-pre { display: grid; gap: 8px; }
.ab-pre div { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; background: #EFEBE1; }
.ab-pre i { width: 56px; height: 8px; border-radius: 4px; background: var(--ac); }
.ab-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 320px; }
.ab-cal i { aspect-ratio: 1; border-radius: 6px; background: #EFEBE1; }
.ab-cal i.o { background: #C9C4B8; } .ab-cal i.l { background: var(--ac); }
.ab-cat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ab-cat div { border-radius: 12px; background: #EFEBE1; padding: 8px; }
.ab-cat i { display: block; aspect-ratio: 4/3; border-radius: 8px; background: var(--ac); opacity: .5; margin-bottom: 8px; }
.ab-cat b { display: block; height: 8px; width: 70%; border-radius: 4px; background: #C9C4B8; margin-bottom: 6px; }
.ab-cat u { display: block; height: 8px; width: 35%; border-radius: 4px; background: #1B1917; opacity: .7; }
.ab-mapa { height: 110px; border-radius: 12px; background: #E9E5DC; position: relative; }
.ab-mapa i { position: absolute; left: 46%; top: 36%; width: 20px; height: 20px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ac); box-shadow: 0 0 0 3px #1B1917; }
.ab-op { display: grid; gap: 8px; }
.ab-op p { margin: 0; padding: 10px 14px; border-radius: 12px; background: #EFEBE1; font-style: italic; }
.ab-form { display: grid; gap: 8px; max-width: 380px; }
.ab-form i { height: 38px; border-radius: 10px; background: #EFEBE1; }
.ab-form i:nth-child(3) { height: 70px; }
.ab-tag { display: inline-block; font-family: var(--mono); font-size: 1rem; padding: 2px 10px; border-radius: 999px; background: #1B1917; color: #F7F4EE; margin-left: 8px; vertical-align: middle; }

/* ---------- Opciones ---------- */
.ab-ctrl { display: grid; gap: 20px; min-width: 0; }
.ab-opciones { padding: 0 20px; }
.ab-g { padding: 18px 0 20px; border-top: 1px dashed var(--line); }
.ab-g:first-child { border-top: 0; }
.ab-g > label.t, .ab-g > .t { display: block; font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; color: var(--ink); margin-bottom: 12px; }
.ab-g input[type=text] { width: 100%; min-height: 52px; border-radius: var(--r-tarjeta); border: 1.5px solid var(--line); background: transparent; color: var(--ink); padding: 0 18px; font: inherit; font-size: 1rem; outline: none; }
.ab-g input[type=text]::placeholder { color: var(--soft); opacity: 1; }
.ab-g input[type=text]:focus { box-shadow: 0 0 0 1.5px var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pildora); border: 1.5px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.2; transition: background-color .25s, color .25s; }
.chip span::before { content: "+"; font-family: var(--mono); }
.chip input:hover + span { background: var(--gl); }
.chip input:checked + span { background: var(--ink); color: var(--bg); }
.chip input:checked + span::before { content: "✓"; color: var(--lima); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.chip.radio span::before { display: none; }
.ab-sw { display: flex; flex-wrap: wrap; gap: 14px 12px; padding: 4px; }
.ab-otro #abColOtroSw { background: conic-gradient(#FF4D4D, #FFC53D, #D4F832, #3FCB82, #7CC4FF, #B9A2FF, #FF4D4D); }
.ab-otro #abColPick { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.ab-sw label { position: relative; width: 44px; height: 44px; }
.ab-sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ab-sw span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--line); }
.ab-sw input:checked + span { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--ink); }
.ab-sw input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 7px; }

/* ---------- Resumen de la propuesta ---------- */
.ab-res { padding: 18px 20px 20px; display: grid; gap: 12px; }
.ab-res h4 { font-weight: 500; font-size: 21px; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.ab-res ul { list-style: none; margin: 0; padding: 0; display: grid; }
.ab-res li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 0; border-top: 1px dashed var(--line); font-size: 15px; line-height: 1.4; }
.ab-res li em { min-width: 0; font-style: normal; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.ab-res small { color: var(--soft); font-size: 14px; line-height: 1.45; }
.ab-ir { justify-self: start; }

/* ---------- Envío de la propuesta ---------- */
.arma-envio .consulta { margin: 0; max-width: none; }
.arma-envio .pf-btn { align-self: flex-start; }
#abAviso { font-size: 15px; font-weight: 500; }
#abAviso:empty { display: none; }
.arma-claves { margin-top: 48px; }
.arma-claves > div { display: grid; align-items: start; }
.arma-claves details:first-child { border-top: 0; }
@media (min-width: 900px) { .arma-claves > div { grid-template-columns: 1fr 1fr; column-gap: 1px; } .arma-claves details:nth-child(2) { border-top: 0; } }
@media (prefers-reduced-motion: reduce) { .ab-nuevo { animation: none; } }
