:root {
  --bg:             #f5f0ff;
  --bg-card:        #ffffff;
  --bg-input:       #f5f0ff;
  --bg-header:      rgba(255,255,255,0.88);
  --border:         rgba(0,0,0,0.09);
  --border-focus:   #6d28d9;
  --text-primary:   #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary:  #aeaeb2;
  --accent:         #6d28d9;
  --accent-dark:    #4c1d95;
  --accent-pale:    #ede9fe;
  --red:            #ff3b30;
  --green:          #34c759;
  --green-dark:     #248a3d;
  --radius:         20px;
  --radius-sm:      14px;
  --radius-xs:      10px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.09), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:      0 16px 48px rgba(0,0,0,0.14);
}

[data-theme="dark"] {
  --bg:             #000000;
  --bg-card:        #1c1c1e;
  --bg-input:       #2c2c2e;
  --bg-header:      rgba(28,28,30,0.9);
  --border:         rgba(255,255,255,0.1);
  --border-focus:   #a78bfa;
  --text-primary:   #f5f5f7;
  --text-secondary: #98989d;
  --text-tertiary:  #636366;
  --accent:         #a78bfa;
  --accent-dark:    #c4b5fd;
  --accent-pale:    rgba(167,139,250,0.14);
  --red:            #ff453a;
  --green:          #30d158;
  --green-dark:     #30d158;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.35);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.45);
  --shadow-lg:      0 16px 48px rgba(0,0,0,0.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  background: var(--bg); min-height: 100vh; color: var(--text-primary);
  line-height: 1.5; transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(160deg, #000000 0%, #0f0020 50%, #1a0035 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1s ease;
}
#splash.splash-out { opacity: 0; pointer-events: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 0; }
.splash-logo {
  height: 160px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0; transform: scale(0.85);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.splash-logo.visible {
  opacity: 1; transform: scale(1);
}
.splash-logo.pulsing {
  animation: logoPulse 2s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(167,139,250,0.1)); transform: scale(1); }
  50%      { filter: brightness(0) invert(1) drop-shadow(0 0 28px rgba(167,139,250,0.9)); transform: scale(1.04); }
}
.splash-tagline { color: rgba(255,255,255,0); font-size: 1rem; font-weight: 300; letter-spacing: 0.5px; margin-top: 24px; margin-bottom: 44px; transition: color 0.8s ease 0.6s; }
.splash-tagline.visible { color: rgba(255,255,255,0.55); }
.splash-bar { width: 180px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.splash-progress { height: 100%; width: 0; background: linear-gradient(90deg, #6d28d9, #a78bfa); border-radius: 3px; transition: width 0.25s ease; }

header { position: sticky; top: 0; z-index: 100; transition: background 0.3s; }

.header-hero { background: linear-gradient(135deg, #0f0020 0%, #1a0035 60%, #4c1d95 100%); }
.header-hero-inner {
  max-width: 900px; margin: 0 auto; padding: 20px 28px;
  display: flex; align-items: center; gap: 20px;
}
.hero-logo { height: 68px; width: auto; filter: brightness(0) invert(1); flex-shrink: 0; }
.header-hero-text { flex: 1; }
.header-hero-text h1 { font-size: 1.35rem; font-weight: 700; color: white; letter-spacing: -0.4px; line-height: 1.2; }
.header-hero-text p  { font-size: 0.76rem; color: rgba(255,255,255,0.55); margin-top: 5px; line-height: 1.5; }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; transition: all 0.2s; flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,0.22); transform: rotate(20deg); }

.header-main { display: none; }
.header-inner { display: none; }
.header-divider { display: none; }
.header-wave { display: none; }
.header-badge { display: none; }
.header-dir { display: none; }
.logo { display: none; }
.logo-wrap { display: none; }

.header-bar { background: linear-gradient(90deg, #4c1d95, #6d28d9); }
.header-bar-inner {
  max-width: 900px; margin: 0 auto; padding: 7px 28px;
  font-size: 0.74rem; color: rgba(255,255,255,0.9);
  display: flex; align-items: center; gap: 6px;
}

.stepper-wrap { background: var(--bg); border-bottom: 1px solid var(--border); transition: background 0.3s; }
.stepper { max-width: 900px; margin: 0 auto; padding: 16px 28px; display: flex; align-items: center; }
.step { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 80px; }
.step-circle {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-input); border: 1.5px solid var(--border);
  color: var(--text-tertiary); font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.35s cubic-bezier(0.34,1.4,0.64,1);
}
.step span { font-size: 0.7rem; color: var(--text-tertiary); font-weight: 500; transition: color 0.3s; }
.step.active .step-circle { background: var(--accent); border-color: transparent; color: white; box-shadow: 0 4px 14px rgba(109,40,217,0.4); transform: scale(1.12); }
.step.active span { color: var(--accent); font-weight: 600; }
.step.done .step-circle { background: var(--green); border-color: transparent; color: white; }
.step.done span { color: var(--green-dark); }
.step-line { flex: 1; height: 1.5px; background: var(--border); margin-bottom: 22px; border-radius: 2px; transition: background 0.5s; }
.step-line.done { background: var(--green); }

main { max-width: 900px; margin: 0 auto; padding: 24px 28px 80px; }

.trust-banner {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 20px;
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
  flex-wrap: wrap; gap: 0; transition: background 0.3s;
}
.trust-item { display: flex; align-items: center; gap: 7px; padding: 5px 14px; font-size: 0.75rem; font-weight: 500; color: var(--text-secondary); }
.trust-item i { color: var(--accent); font-size: 0.82rem; }
.trust-divider { width: 1px; height: 20px; background: var(--border); }

.step-panel { display: none; }
.step-panel.active { display: block; animation: panelIn 0.4s cubic-bezier(0.34,1.1,0.64,1); }
@keyframes panelIn { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

.data-reminder {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--accent-pale); border: 1px solid rgba(109,40,217,0.15);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px;
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; transition: background 0.3s;
}
.data-reminder i { color: var(--accent); font-size: 1rem; margin-top: 1px; flex-shrink: 0; }
.data-reminder strong { color: var(--text-primary); }

.card {
  position: relative; background: var(--bg-card); border-radius: var(--radius);
  padding: 28px 28px 24px; box-shadow: var(--shadow-md);
  border: 1px solid var(--border); transition: background 0.3s, border-color 0.3s; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #4c1d95, #8b5cf6);
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.card-icon-wrap {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, #4c1d95, #6d28d9);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(109,40,217,0.35);
}
.card-icon-wrap.green { background: linear-gradient(135deg, #248a3d, #34c759); box-shadow: 0 4px 14px rgba(52,199,89,0.35); }
.card-icon-wrap i { color: white; font-size: 1rem; }
.card-header h2 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; }
.card-header p  { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-row .form-group { margin-bottom: 0; }
label { font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.6px; }
.req { color: var(--red); }

input, select, textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-xs);
  font-size: 0.92rem; color: var(--text-primary); background: var(--bg-input);
  transition: all 0.2s; outline: none; font-family: inherit;
  -webkit-appearance: none; appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus); background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(109,40,217,0.12); transform: translateY(-1px);
}
input.error, select.error, textarea.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,59,48,0.12); }
textarea { resize: vertical; min-height: 90px; }
select { cursor: pointer; }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { color-scheme: dark; }

.label-opt { font-weight: 400; text-transform: none; color: var(--text-tertiary); font-size: 0.72rem; letter-spacing: 0; }
.char-counter { font-size: 0.7rem; color: var(--text-tertiary); text-align: right; margin-top: 4px; }
.phone-wrap { display: flex; gap: 8px; }
.phone-code { width: auto; flex-shrink: 0; padding: 12px 10px; }
.phone-wrap input { flex: 1; }

.tipo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tipo-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 22px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; background: var(--bg-input);
}
.tipo-card:hover { border-color: var(--accent); background: var(--accent-pale); }
.tipo-card input[type="radio"] { display: none; }
.tipo-card.selected { border-color: var(--accent); background: var(--accent-pale); box-shadow: 0 6px 20px rgba(109,40,217,0.15); transform: translateY(-2px); }
.tipo-icon { width: 48px; height: 48px; border-radius: 13px; background: var(--bg-card); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.tipo-icon i { font-size: 1.3rem; color: var(--text-tertiary); transition: all 0.2s; }
.tipo-card.selected .tipo-icon { background: linear-gradient(135deg, #4c1d95, #6d28d9); }
.tipo-card.selected .tipo-icon i { color: white; }
.tipo-card strong { font-size: 0.9rem; color: var(--text-primary); font-weight: 600; }
.tipo-card small  { font-size: 0.74rem; color: var(--text-secondary); line-height: 1.4; }

.pedido-opciones { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pedido-chip {
  background: var(--bg-input); border: 1.5px solid var(--border);
  color: var(--text-secondary); border-radius: 980px;
  padding: 6px 14px; font-size: 0.78rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.pedido-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-pale); }
.pedido-chip.selected { background: var(--accent); border-color: var(--accent); color: white; }

.resumen { background: var(--bg-input); border-radius: var(--radius-sm); border: 1px solid var(--border); padding: 18px; margin-bottom: 18px; transition: background 0.3s; }
.resumen-section { margin-bottom: 16px; }
.resumen-section:last-child { margin-bottom: 0; }
.resumen-title { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--accent); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; }
.resumen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.resumen-item { display: flex; flex-direction: column; gap: 2px; }
.resumen-item .rlabel { font-size: 0.68rem; color: var(--text-tertiary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.resumen-item .rvalue { font-size: 0.86rem; color: var(--text-primary); font-weight: 400; }
.resumen-item.full { grid-column: 1 / -1; }
.badge-tipo { display: inline-block; padding: 2px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-reclamo { background: rgba(255,149,0,0.12); color: #c45000; }
.badge-queja   { background: var(--accent-pale); color: var(--accent); }
[data-theme="dark"] .badge-reclamo { background: rgba(255,149,0,0.15); color: #ff9500; }

.obs-box { background: rgba(52,199,89,0.08); border: 1px solid rgba(52,199,89,0.2); border-left: 3px solid var(--green); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px; }
.obs-title { font-size: 0.82rem; font-weight: 600; color: var(--green-dark); margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
[data-theme="dark"] .obs-title { color: var(--green); }
.obs-box p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.7; }

.legal-full { display: flex; gap: 12px; background: rgba(255,149,0,0.06); border: 1px solid rgba(255,149,0,0.15); border-left: 3px solid #ff9500; border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px; }
.legal-full .legal-icon { color: #ff9500; font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.legal-title { font-size: 0.78rem; font-weight: 600; color: var(--text-primary); margin-bottom: 5px; }
.legal-full p { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.7; }

.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.84rem; font-weight: 400; color: var(--text-primary); }
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom { width: 22px; height: 22px; border: 1.5px solid var(--border); border-radius: 6px; flex-shrink: 0; transition: all 0.2s; position: relative; background: var(--bg-input); }
.checkbox-label input:checked ~ .checkbox-custom { background: var(--accent); border-color: var(--accent); box-shadow: 0 2px 8px rgba(109,40,217,0.3); }
.checkbox-label input:checked ~ .checkbox-custom::after { content:''; position:absolute; inset:0; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/13px no-repeat; }

.step-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); gap: 12px; }

.btn-primary {
  background: linear-gradient(135deg, #6d28d9, #4c1d95); color: white; border: none;
  padding: 12px 26px; border-radius: 980px; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; box-shadow: 0 2px 10px rgba(109,40,217,0.3);
}
.btn-primary:hover { background: linear-gradient(135deg, #4c1d95, #3b0764); transform: scale(1.02); box-shadow: 0 4px 16px rgba(109,40,217,0.4); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-send { padding: 13px 32px; font-size: 0.92rem; }

.btn-secondary {
  background: transparent; color: var(--text-primary); border: 1.5px solid var(--border);
  padding: 11px 20px; border-radius: 980px; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 7px; font-family: inherit;
}
.btn-secondary:hover { background: var(--bg-input); border-color: var(--text-tertiary); }

.loader { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; }
.hidden { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(12px); z-index: 200; }
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--bg-card); border-radius: 20px; padding: 40px 32px;
  text-align: center; z-index: 201; max-width: 380px; width: 90%;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  animation: modalIn 0.4s cubic-bezier(0.34,1.4,0.64,1);
}
@keyframes modalIn { from{opacity:0;transform:translate(-50%,-50%) scale(0.85)} to{opacity:1;transform:translate(-50%,-50%) scale(1)} }
.modal-icon-wrap { width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg, #248a3d, #34c759); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 0 8px 24px rgba(52,199,89,0.35); animation: pop 0.5s cubic-bezier(0.34,1.56,0.64,1); }
.modal-icon-wrap i { color: white; font-size: 2rem; }
@keyframes pop { from{transform:scale(0.3);opacity:0} to{transform:scale(1);opacity:1} }
.modal h2 { color: var(--text-primary); font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.modal p  { color: var(--text-secondary); font-size: 0.84rem; margin-bottom: 5px; }
.modal-hoja { font-weight: 700; color: var(--accent); font-size: 0.95rem; }
.modal-sub  { font-size: 0.78rem; }
.modal-redirect { font-size: 0.76rem; color: var(--text-tertiary); margin-top: 6px; }
.modal .btn-primary { margin: 20px auto 0; }

footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 24px; transition: background 0.3s; }
.footer-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-logo { height: 36px; width: auto; object-fit: contain; }
[data-theme="dark"] .footer-logo { filter: brightness(0) invert(1); }
.footer-text p { font-size: 0.72rem; color: var(--text-tertiary); line-height: 1.8; }

#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 11px 22px; border-radius: 980px; font-size: 0.84rem; font-weight: 500; z-index: 300; box-shadow: var(--shadow-lg); animation: toastIn 0.3s ease; white-space: nowrap; color: white; }
@keyframes toastIn { from{opacity:0;transform:translateX(-50%) translateY(10px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }

.menor-toggle { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.menor-panel { margin-top: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.menor-header { background: linear-gradient(90deg, #4c1d95, #6d28d9); color: white; padding: 10px 14px; font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.menor-panel .form-row, .menor-panel .form-group { padding: 0 14px; }
.menor-panel .form-row { padding-top: 14px; }
.menor-panel .form-row:last-child { padding-bottom: 14px; }

.upload-area { border: 1.5px dashed var(--border); border-radius: var(--radius-sm); padding: 28px 20px; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--bg-input); }
.upload-area:hover, .upload-area.dragover { border-color: var(--accent); background: var(--accent-pale); }
.upload-icon { font-size: 1.8rem; color: var(--accent); margin-bottom: 8px; }
.upload-text { font-size: 0.84rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 3px; }
.upload-hint { font-size: 0.72rem; color: var(--text-tertiary); }
.archivos-lista { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.archivo-item { display: flex; align-items: center; gap: 10px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 8px 12px; font-size: 0.8rem; color: var(--text-primary); }
.archivo-item i { color: var(--accent); }
.archivo-item .archivo-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archivo-remove { background: none; border: none; color: var(--text-tertiary); cursor: pointer; padding: 2px 4px; border-radius: 4px; transition: color 0.2s; }
.archivo-remove:hover { color: var(--red); }

.verify-wrap { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; }
.verify-header { background: linear-gradient(90deg, #4c1d95, #6d28d9); color: white; padding: 9px 14px; font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; gap: 7px; letter-spacing: 0.3px; text-transform: uppercase; }
.verify-body { background: var(--bg-input); padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: background 0.3s; }
.verify-body p { font-size: 0.88rem; color: var(--text-primary); font-weight: 400; }
.verify-input-row { display: flex; gap: 10px; align-items: center; }
.verify-input-row input { max-width: 150px; margin-bottom: 0; }
.verify-refresh { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xs); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--accent); transition: all 0.2s; flex-shrink: 0; }
.verify-refresh:hover { background: var(--accent-pale); }
.verify-error { font-size: 0.78rem; color: var(--red); font-weight: 500; }
.recaptcha-wrap { margin-top: 4px; display: flex; flex-direction: column; gap: 6px; }

.indecopi-notes { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 5px; transition: background 0.3s; }
.indecopi-notes p { font-size: 0.74rem; color: var(--text-tertiary); line-height: 1.6; display: flex; gap: 7px; }
.indecopi-notes i { color: var(--accent); font-size: 0.55rem; margin-top: 5px; flex-shrink: 0; }

@media (max-width: 600px) {
  .header-hero-inner { padding: 14px 16px; gap: 12px; }
  .hero-logo { height: 48px; }
  .header-hero-text h1 { font-size: 1rem; }
  .header-hero-text p { display: none; }
  .stepper { padding: 12px 16px; }
  .step { min-width: 60px; }
  .step span { font-size: 0.65rem; }
  main { padding: 16px 16px 80px; }
  .card { padding: 20px 16px; }
  .form-row, .tipo-grid, .resumen-grid { grid-template-columns: 1fr; }
  .step-actions { flex-direction: column-reverse; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .trust-divider { display: none; }
  .trust-item { font-size: 0.7rem; padding: 4px 8px; }
  .legal-full { flex-direction: column; gap: 8px; }
  .modal { padding: 28px 20px; }
}
@media (max-width: 380px) {
  .g-recaptcha { transform: scale(0.85); transform-origin: left top; }
}

.chat-btn {
  position: fixed; bottom: 24px; right: 24px;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, #6d28d9, #4c1d95);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; cursor: pointer;
  box-shadow: 0 4px 20px rgba(109,40,217,0.45); z-index: 150;
  transition: transform 0.2s, box-shadow 0.2s; border: none;
}
.chat-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(109,40,217,0.55); }
.chat-pulse { position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid rgba(109,40,217,0.35); animation: chatPulse 2.5s ease-in-out infinite; }
@keyframes chatPulse { 0%,100%{transform:scale(1);opacity:0.5} 50%{transform:scale(1.25);opacity:0} }
.chat-badge { position: absolute; top: -2px; right: -2px; width: 14px; height: 14px; background: var(--red); border-radius: 50%; border: 2px solid var(--bg); animation: badgePop 0.4s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes badgePop { from{transform:scale(0)} to{transform:scale(1)} }

.chat-box {
  position: fixed; bottom: 90px; right: 24px;
  width: 340px; max-height: 520px;
  background: var(--bg-card); border-radius: 20px;
  box-shadow: var(--shadow-lg); z-index: 150;
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border);
  animation: chatBoxIn 0.3s cubic-bezier(0.34,1.2,0.64,1);
  transition: background 0.3s;
}
@keyframes chatBoxIn { from{opacity:0;transform:translateY(16px) scale(0.96)} to{opacity:1;transform:translateY(0) scale(1)} }
.chat-header { background: linear-gradient(135deg, #4c1d95, #6d28d9); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; position: relative; }
.chat-online { position: absolute; bottom: 1px; right: 1px; width: 9px; height: 9px; background: var(--green); border-radius: 50%; border: 2px solid #4c1d95; }
.chat-header-info strong { color: white; font-size: 0.88rem; display: block; font-weight: 600; }
.chat-status { color: rgba(255,255,255,0.65); font-size: 0.68rem; }
.chat-close { background: rgba(255,255,255,0.15); border: none; color: white; cursor: pointer; font-size: 0.85rem; padding: 6px; border-radius: 8px; transition: background 0.2s; }
.chat-close:hover { background: rgba(255,255,255,0.25); }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; max-height: 260px; }
.chat-msg { display: flex; animation: msgIn 0.25s ease; }
@keyframes msgIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }
.chat-msg-bot  { justify-content: flex-start; }
.chat-msg-user { justify-content: flex-end; }
.chat-bubble { max-width: 84%; padding: 9px 13px; border-radius: 16px; font-size: 0.82rem; line-height: 1.55; }
.chat-msg-bot  .chat-bubble { background: var(--bg-input); color: var(--text-primary); border-bottom-left-radius: 4px; }
.chat-msg-user .chat-bubble { background: linear-gradient(135deg, #6d28d9, #4c1d95); color: white; border-bottom-right-radius: 4px; }
.chat-typing { display: flex; gap: 4px; padding: 10px 13px; }
.chat-typing span { width: 6px; height: 6px; background: var(--text-tertiary); border-radius: 50%; animation: typing 1.2s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-5px)} }
.chat-suggestions { padding: 6px 12px 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.chat-suggestion { background: var(--bg-input); border: 1px solid var(--border); color: var(--accent); border-radius: 980px; padding: 5px 12px; font-size: 0.73rem; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.chat-suggestion:hover { background: var(--accent); color: white; border-color: var(--accent); }
.chat-input-wrap { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--bg-input); transition: background 0.3s; }
.chat-input-wrap input { flex: 1; padding: 9px 14px; border: 1px solid var(--border); border-radius: 980px; font-size: 0.82rem; outline: none; background: var(--bg-card); color: var(--text-primary); transition: border-color 0.2s; font-family: inherit; }
.chat-input-wrap input:focus { border-color: var(--accent); }
.chat-input-wrap button { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #6d28d9, #4c1d95); border: none; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.2s; }
.chat-input-wrap button:hover { transform: scale(1.1); }

@media (max-width: 600px) {
  .chat-box { width: calc(100vw - 32px); right: 16px; bottom: 86px; }
  .chat-btn { bottom: 18px; right: 16px; width: 50px; height: 50px; }
}
