.ir-form-shell{
  --ir-green:#74a822;
  --ir-green-dark:#4f7e16;
  --ir-pink:#b51253;
  --ir-gold:#b88b42;
  --ir-text:#2e2e2e;
  --ir-muted:#6e6e6e;
  --ir-border:#e7e8e2;
  --ir-bg:#fbfbf8;
  width:100%;
  max-width:1480px;
  margin:0 auto;
  font-family:inherit;
  color:var(--ir-text);
}
.ir-form-shell *, .ir-form-shell *::before, .ir-form-shell *::after{box-sizing:border-box}
.ir-progress{display:flex;align-items:center;justify-content:center;gap:18px;margin:0 0 24px}
.ir-progress__item{display:flex;align-items:center;gap:9px;color:#999}
.ir-progress__item span{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid #ccc;background:#fff;font-weight:800}
.ir-progress__item strong{font-size:14px}
.ir-progress__item.is-active{color:var(--ir-green-dark)}
.ir-progress__item.is-active span{color:#fff;border-color:var(--ir-green);background:var(--ir-green)}
.ir-progress__line{width:120px;height:2px;background:#d9ddcf}
.ir-form{background:#fff;border:1px solid var(--ir-border);border-radius:24px;box-shadow:0 16px 50px rgba(0,0,0,.07);overflow:hidden}
.ir-step{padding:34px}
.ir-section{padding:28px 0;border-bottom:1px solid var(--ir-border)}
.ir-section:first-child{padding-top:0}
.ir-section:last-of-type{border-bottom:0}
.ir-section__heading{display:flex;gap:14px;align-items:flex-start;margin-bottom:22px}
.ir-section__heading>span{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;color:#fff;background:linear-gradient(135deg,var(--ir-pink),#da4d82);font-weight:800}
.ir-section__heading h2{margin:0 0 4px;font-size:24px;line-height:1.15;color:var(--ir-text)}
.ir-section__heading p{margin:0;color:var(--ir-muted);font-size:14px}
.ir-grid{display:grid;gap:18px}
.ir-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ir-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ir-field{min-width:0}
.ir-field--full{grid-column:1/-1;margin-top:18px}
.ir-field label,.ir-field legend{display:block;margin-bottom:8px;font-size:13px;font-weight:800;color:var(--ir-text)}
.ir-field em,.ir-section legend em{color:var(--ir-pink);font-style:normal}
.ir-field input[type=text],.ir-field input[type=email],.ir-field input[type=tel],.ir-field input[type=url],.ir-field input[type=number],.ir-field select,.ir-field textarea{
  width:100%;padding:13px 14px;border:1px solid #dcded6;border-radius:10px;background:#fff;color:var(--ir-text);font:inherit;font-size:14px;outline:none;transition:.2s
}
.ir-field textarea{resize:vertical;min-height:105px}
.ir-field input:focus,.ir-field select:focus,.ir-field textarea:focus{border-color:var(--ir-green);box-shadow:0 0 0 3px rgba(116,168,34,.14)}
.ir-field small{display:block;margin-top:6px;color:#8b8b8b;text-align:right;font-size:11px}
.ir-upload-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ir-upload{position:relative;display:block;min-height:210px;border:1.5px dashed #cad4b7;border-radius:16px;background:#fcfdf9;overflow:hidden;cursor:pointer}
.ir-upload input{position:absolute;inset:0;opacity:0;cursor:pointer}
.ir-upload__preview{display:flex;min-height:210px;padding:18px;align-items:center;justify-content:center;flex-direction:column;gap:8px;text-align:center;background-size:cover;background-position:center}
.ir-upload__preview.has-image::before{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,.05))}
.ir-upload__preview.has-image strong,.ir-upload__preview.has-image small,.ir-upload__preview.has-image .ir-upload__icon{position:relative;z-index:1;color:#fff}
.ir-upload__icon{font-size:28px;color:var(--ir-green)}
.ir-upload__preview strong{font-size:13px}
.ir-upload__preview small{font-size:11px;color:#7b7b7b}
.ir-check-grid,.ir-products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.ir-check-grid--compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.ir-choice,.ir-product-choice{position:relative;display:flex;align-items:center;gap:9px;padding:11px 12px;border:1px solid #e0e2db;border-radius:10px;background:#fff;cursor:pointer;transition:.2s}
.ir-choice:hover,.ir-product-choice:hover{border-color:#b8cf8a;background:#fbfdf7}
.ir-choice input,.ir-product-choice input{width:17px;height:17px;accent-color:var(--ir-green);flex:0 0 17px}
.ir-choice span,.ir-product-choice span{font-size:13px;line-height:1.25}
.ir-inline-options{display:flex;flex-wrap:wrap;gap:12px}
.ir-inline-options .ir-choice{min-width:110px}
.ir-section fieldset{border:0;padding:0;margin:0}
.ir-section--privacy{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:18px;align-items:center;margin-top:28px;padding:22px;border:1px solid #cfdcb8;border-radius:16px;background:linear-gradient(90deg,#f7faef,#fff)}
.ir-privacy-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;color:#fff;background:var(--ir-green);font-size:25px;font-weight:800}
.ir-privacy-copy h2{margin:0 0 6px;color:var(--ir-green-dark);font-size:20px}
.ir-privacy-copy p{margin:0 0 8px;color:var(--ir-muted);font-size:13px;line-height:1.5}
.ir-privacy-copy a{color:var(--ir-pink);font-size:13px;font-weight:800;text-decoration:underline}
.ir-privacy-check{display:flex;align-items:center;gap:9px;max-width:260px;font-size:13px;font-weight:700}
.ir-privacy-check input{width:18px;height:18px;accent-color:var(--ir-green)}
.ir-actions{text-align:center;padding-top:28px}
.ir-submit{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-width:330px;padding:16px 30px;border:0;border-radius:10px;color:#fff;background:linear-gradient(90deg,var(--ir-green),#8fbd22);font:inherit;font-size:16px;font-weight:800;cursor:pointer;box-shadow:0 8px 20px rgba(116,168,34,.22);transition:.2s}
.ir-submit:hover{transform:translateY(-2px);background:linear-gradient(90deg,var(--ir-green-dark),var(--ir-green))}
.ir-submit:disabled{opacity:.6;cursor:wait;transform:none}
.ir-actions small{display:block;margin-top:10px;color:#8c8c8c;font-size:11px}
.ir-form-status{display:none;margin-top:18px;padding:13px 15px;border-radius:10px;font-size:13px;font-weight:700}
.ir-form-status.is-error{display:block;color:#9b1c1c;background:#fff0f0;border:1px solid #f2bcbc}
.ir-form-status.is-success{display:block;color:#22543d;background:#edfdf3;border:1px solid #b7e4c7}
.ir-field.has-error input,.ir-field.has-error select,.ir-field.has-error textarea{border-color:#d33}
.ir-notice{padding:16px;border-radius:10px;background:#fff8df;color:#6d5500}
.ir-honeypot{position:absolute!important;left:-9999px!important;opacity:0!important;pointer-events:none!important}
.ir-success{padding:70px 28px;text-align:center;background:#fff;border:1px solid var(--ir-border);border-radius:24px;box-shadow:0 16px 50px rgba(0,0,0,.07)}
.ir-success__icon{display:grid;place-items:center;width:78px;height:78px;margin:0 auto 18px;border-radius:50%;color:#fff;background:var(--ir-green);font-size:38px;font-weight:800}
.ir-success h2{margin:0 0 14px;font-size:34px;color:var(--ir-text)}
.ir-success p{max-width:760px;margin:0 auto 10px;color:var(--ir-muted);font-size:16px;line-height:1.6}
.ir-success__button{display:inline-flex;margin-top:18px;padding:12px 22px;border-radius:999px;color:#fff;background:var(--ir-green);text-decoration:none;font-weight:800}
.ir-conditional[hidden]{display:none!important}
@media(max-width:1100px){
  .ir-upload-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ir-check-grid,.ir-products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ir-section--privacy{grid-template-columns:52px minmax(0,1fr)}
  .ir-privacy-check{grid-column:1/-1;max-width:none}
}
@media(max-width:767px){
  .ir-progress{gap:8px}.ir-progress__line{width:52px}.ir-progress__item strong{display:none}
  .ir-step{padding:20px 14px}.ir-section{padding:24px 0}
  .ir-section__heading>span{width:36px;height:36px;flex-basis:36px;border-radius:10px;font-size:13px}
  .ir-section__heading h2{font-size:20px}.ir-section__heading p{font-size:12px}
  .ir-grid--2,.ir-grid--3,.ir-upload-grid{grid-template-columns:1fr}
  .ir-check-grid,.ir-products-grid,.ir-check-grid--compact{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ir-upload,.ir-upload__preview{min-height:180px}
  .ir-section--privacy{grid-template-columns:44px minmax(0,1fr);padding:16px;gap:12px}
  .ir-privacy-icon{width:42px;height:42px;border-radius:12px;font-size:20px}
  .ir-privacy-copy h2{font-size:18px}.ir-privacy-copy p{font-size:12px}
  .ir-submit{min-width:0;width:100%;font-size:14px}
  .ir-success{padding:50px 18px}.ir-success h2{font-size:28px}.ir-success p{font-size:14px}
}
@media(max-width:480px){.ir-check-grid,.ir-products-grid,.ir-check-grid--compact{grid-template-columns:1fr}}

/* ===== REDISEÑO INSTITUCIONAL 1.1 ===== */
.ir-form-shell{
  --ir-green:#78a91f;
  --ir-green-dark:#5f8f16;
  --ir-pink:#b70f50;
  --ir-pink-soft:#fff5f8;
  --ir-gold:#b89048;
  --ir-text:#272727;
  --ir-muted:#666;
  --ir-border:#eee8df;
  --ir-bg:#fbfaf7;
}

.ir-progress{
  position:relative;
  max-width:980px;
  margin:0 auto 18px;
  padding:18px 24px;
  justify-content:space-between;
  gap:0;
  background:#fff;
  border:1px solid var(--ir-border);
  border-radius:18px;
  box-shadow:0 8px 28px rgba(56,42,24,.05);
}
.ir-progress::before{
  content:"";
  position:absolute;
  left:88px;
  right:88px;
  top:35px;
  height:2px;
  background:#dcded7;
  z-index:0;
}
.ir-progress__line{display:none}
.ir-progress__item{position:relative;z-index:1;flex-direction:column;gap:8px;min-width:120px;text-align:center}
.ir-progress__item span{width:34px;height:34px;border:1px solid #d2d2d2;background:#fff;font-size:13px}
.ir-progress__item strong{font-size:12px;font-weight:700}
.ir-progress__item.is-active span{box-shadow:0 0 0 6px rgba(120,169,31,.10)}

.ir-form{
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:visible;
  background:transparent;
}
.ir-step[data-step="1"]{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  padding:0;
}
.ir-section{
  margin:0;
  padding:24px;
  border:1px solid var(--ir-border);
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 28px rgba(56,42,24,.05);
}
.ir-section:first-child{padding-top:24px}
.ir-section:last-of-type{border-bottom:1px solid var(--ir-border)}

/* Secciones anchas */
.ir-step[data-step="1"] > .ir-section:nth-of-type(1),
.ir-step[data-step="1"] > .ir-section:nth-of-type(2),
.ir-step[data-step="1"] > .ir-section:nth-of-type(4),
.ir-step[data-step="1"] > .ir-section:nth-of-type(5),
.ir-step[data-step="1"] > .ir-section:nth-of-type(7),
.ir-step[data-step="1"] > .ir-section--privacy,
.ir-step[data-step="1"] > .ir-form-status,
.ir-step[data-step="1"] > .ir-actions{
  grid-column:1/-1;
}

.ir-section__heading{margin-bottom:20px;align-items:center}
.ir-section__heading>span{
  width:38px;
  height:38px;
  flex-basis:38px;
  border-radius:50%;
  color:var(--ir-pink);
  background:var(--ir-pink-soft);
  border:1px solid #f0d5df;
  font-size:12px;
}
.ir-section__heading h2{font-size:19px}
.ir-section__heading p{font-size:12px;line-height:1.45}

.ir-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ir-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ir-field label,.ir-field legend{font-size:12px;margin-bottom:7px}
.ir-field input[type=text],.ir-field input[type=email],.ir-field input[type=tel],.ir-field input[type=url],.ir-field input[type=number],.ir-field select,.ir-field textarea{
  min-height:46px;
  padding:12px 13px;
  border-color:#dfdfda;
  border-radius:8px;
  background:#fff;
  font-size:13px;
}
.ir-field textarea{min-height:110px}

.ir-upload-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ir-upload{min-height:180px;border-color:#d7dccd;border-radius:14px;background:#fff}
.ir-upload__preview{min-height:180px;background:#fcfcfa}

.ir-check-grid,.ir-products-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px}
.ir-check-grid--compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.ir-choice,.ir-product-choice{
  min-height:38px;
  padding:8px 10px;
  border-radius:8px;
  border-color:#e4e4de;
  background:#fff;
}
.ir-choice span,.ir-product-choice span{font-size:12px}
.ir-choice:has(input:checked),.ir-product-choice:has(input:checked){
  border-color:#a9c873;
  background:#f7fbeF;
}

.ir-section--privacy{
  display:grid;
  grid-template-columns:58px minmax(0,1fr) 270px;
  align-items:center;
  gap:18px;
  margin-top:0;
  padding:20px 24px;
  border-color:#cbd8af;
  background:linear-gradient(90deg,#f8fbf0,#fff);
}
.ir-privacy-icon{
  width:50px;height:50px;border-radius:14px;
  color:var(--ir-green);background:#fff;border:1px solid #b9cf8d;
}
.ir-privacy-copy h2{font-size:18px}
.ir-privacy-copy p{font-size:12px}
.ir-privacy-check{max-width:none;justify-self:end;font-size:12px}

.ir-actions{padding:2px 0 8px}
.ir-submit{
  min-width:360px;
  border-radius:8px;
  background:linear-gradient(90deg,#8abf18,#679c18);
  box-shadow:0 8px 20px rgba(104,153,25,.20);
}
.ir-submit:hover{background:linear-gradient(90deg,#6e9f18,#517f13)}

.ir-success{border-radius:18px;border-color:var(--ir-border)}

@media(max-width:1100px){
  .ir-step[data-step="1"]{grid-template-columns:1fr}
  .ir-step[data-step="1"] > *{grid-column:1!important}
  .ir-check-grid,.ir-products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ir-section--privacy{grid-template-columns:52px minmax(0,1fr)}
  .ir-privacy-check{grid-column:1/-1;justify-self:start}
}

@media(max-width:767px){
  .ir-progress{padding:14px 16px;border-radius:14px}
  .ir-progress::before{left:64px;right:64px;top:31px}
  .ir-progress__item{min-width:75px}
  .ir-progress__item strong{display:block;font-size:10px}
  .ir-step[data-step="1"]{gap:14px}
  .ir-section{padding:18px 15px;border-radius:14px}
  .ir-section:first-child{padding-top:18px}
  .ir-section__heading{gap:10px}
  .ir-section__heading>span{width:34px;height:34px;flex-basis:34px}
  .ir-section__heading h2{font-size:17px}
  .ir-grid--2,.ir-grid--3,.ir-upload-grid{grid-template-columns:1fr}
  .ir-check-grid,.ir-products-grid,.ir-check-grid--compact{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ir-upload,.ir-upload__preview{min-height:155px}
  .ir-section--privacy{grid-template-columns:42px minmax(0,1fr);padding:16px}
  .ir-privacy-icon{width:40px;height:40px}
  .ir-submit{min-width:0;width:100%}
}

@media(max-width:480px){
  .ir-check-grid,.ir-products-grid,.ir-check-grid--compact{grid-template-columns:1fr}
}

/* ===== FORMULARIOS COMPRADORES Y VISITANTES ===== */
.ir-form-shell--buyer .ir-step[data-step="1"],
.ir-form-shell--visitor .ir-step[data-step="1"]{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  padding:0;
}
.ir-form-shell--buyer .ir-section,
.ir-form-shell--visitor .ir-section{
  margin:0;
  padding:24px;
  background:#fff;
  border:1px solid var(--ir-border);
  border-radius:16px;
  box-shadow:0 8px 28px rgba(56,42,24,.05);
}
.ir-form-shell--buyer .ir-step[data-step="1"] > .ir-section:nth-of-type(3),
.ir-form-shell--buyer .ir-step[data-step="1"] > .ir-section:nth-of-type(4),
.ir-form-shell--buyer .ir-step[data-step="1"] > .ir-section:nth-of-type(6),
.ir-form-shell--buyer .ir-section--privacy,
.ir-form-shell--buyer .ir-form-status,
.ir-form-shell--buyer .ir-actions,
.ir-form-shell--visitor .ir-section,
.ir-form-shell--visitor .ir-section--privacy,
.ir-form-shell--visitor .ir-form-status,
.ir-form-shell--visitor .ir-actions{
  grid-column:1/-1;
}
.ir-form-shell--buyer fieldset.ir-field{border:0;margin:0;padding:0}
.ir-form-shell--buyer .ir-field .ir-check-grid{grid-template-columns:1fr}
.ir-form-shell--visitor .ir-check-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1100px){
  .ir-form-shell--buyer .ir-step[data-step="1"],.ir-form-shell--visitor .ir-step[data-step="1"]{grid-template-columns:1fr}
  .ir-form-shell--buyer .ir-step[data-step="1"]>*{grid-column:1!important}
}
@media(max-width:767px){
  .ir-form-shell--buyer .ir-section,.ir-form-shell--visitor .ir-section{padding:18px 15px}
  .ir-form-shell--visitor .ir-check-grid{grid-template-columns:1fr}
}
