/* ============================================================
   VILDEK — presupuesto.css
   Estilos específicos para la página de presupuesto
============================================================ */

/* ——— Hero: segundo CTA como outline blanco (igual que contacto) ——— */
.page-hero__actions .btn--outline {
  color: var(--white);
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.08);
}

.page-hero__actions .btn--outline:hover {
  border-color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.15);
}

/* ——— Trust strip — alineado con contact-trust-strip ——— */
.pres-trust {
  background: var(--accent);
  padding: 20px 0;
}

.pres-trust__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 48px;
}

.pres-trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
}

.pres-trust__item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(255,255,255,.65);
}

/* ——— Main body ——— */
.pres-body {
  padding: 72px 0 88px;
  background:
    linear-gradient(180deg, var(--bg) 0%, #f7f9f6 100%);
}

.pres-body__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ——— Form column ——— */
.pres-form-col__header {
  margin-bottom: 28px;
}

.pres-form-col__header h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 10px;
}

.pres-form-col__header p {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ——— Public quote form ——— */
.pres-quote-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 0;
  min-height: 0;
  overflow: hidden;
}

.pres-quote-card__intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}

.pres-quote-card__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: start;
  background: #fbfcf9;
  padding: 18px 20px;
}

.pres-quote-card__step span {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  font-size: .78rem;
  font-weight: 800;
}

.pres-quote-card__step strong {
  display: block;
  color: var(--text);
  font-size: .9rem;
  line-height: 1.25;
}

.pres-quote-card__step small {
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.45;
}

.pres-quote-form {
  gap: 30px;
  padding: 30px 32px 32px;
}

.pres-form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pres-form-section + .pres-form-section {
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.pres-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pres-section-heading--compact {
  align-items: center;
}

.pres-section-heading__num {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .74rem;
  font-weight: 800;
  line-height: 1;
}

.pres-section-heading .form-section-title {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 4px;
  letter-spacing: 0;
  font-size: 1rem;
}

.pres-section-heading .form-section-desc,
.pres-panel-heading .form-section-desc {
  margin-top: 0;
  max-width: 680px;
}

.pres-form-grid {
  display: grid;
  gap: 18px;
}

.pres-form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pres-install-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fbfcf9;
}

.pres-install-box__main .checkbox-label {
  color: var(--text);
}

.pres-install-box__main strong {
  display: block;
  font-size: .95rem;
  line-height: 1.3;
}

.pres-install-box__main small {
  display: block;
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.45;
  margin-top: 2px;
}

.pres-form-status {
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: .9375rem;
  line-height: 1.55;
  font-weight: 600;
}

.pres-form-status--success {
  background: #edfbf4;
  border: 1px solid #a3e6c4;
  color: #1d6b47;
}

.pres-form-status--error {
  background: #fff3f0;
  border: 1px solid #f0b8ab;
  color: #9d3324;
}

.pres-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.pres-panel-heading .form-section-title {
  margin-bottom: 10px;
}

.pres-add-btn {
  flex-shrink: 0;
  white-space: normal;
  text-align: center;
}

.pres-dynamic-hint {
  min-height: 18px;
}

.pres-work-intro {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #f6f9fb;
  border: 1px solid #dbe6ef;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.pres-work-intro[hidden] {
  display: none !important;
}

.pres-work-intro::before {
  content: '';
  width: 8px;
  min-width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f80a7;
  margin-top: .45em;
}

.pres-window-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pres-window-card {
  background: #fbfcf9;
  border: 1.5px solid #dce4d6;
  border-radius: var(--radius-md);
  padding: 22px;
}

.pres-window-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.pres-window-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.3;
}

.pres-window-card__number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  font-size: .78rem;
  font-weight: 800;
}

.pres-window-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.pres-window-remove[hidden] {
  display: none !important;
}

.pres-window-remove:hover {
  color: #c0392b;
  background: #fdf0ee;
}

.pres-window-remove svg {
  width: 17px;
  height: 17px;
}

.pres-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  padding: 18px;
  background: #fbfcf9;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.pres-checkbox-grid .checkbox-label,
.pres-legal .checkbox-label {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border);
}

.pres-checkbox-grid .checkbox-label {
  min-height: 46px;
  align-items: center;
}

.pres-legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pres-honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.pres-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.pres-submit-help {
  flex: 1;
  min-width: 220px;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pres-noscript {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #fff3f0;
  color: #9d3324;
  font-size: .9rem;
  line-height: 1.55;
}

.form-group[hidden],
.pres-conditional-panel[hidden] {
  display: none !important;
}

.pres-conditional-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fffdf8;
}

.pres-quote-form .invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

.pres-quote-form .checkbox-label.invalid .checkbox-custom {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

.pres-quote-form button[disabled] {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.pres-quote-form .form-hint {
  line-height: 1.45;
}

.pres-quote-form input::placeholder,
.pres-quote-form textarea::placeholder {
  color: rgba(69,75,84,.55);
}

/* ——— Sidebar ——— */
.pres-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

/* WhatsApp card */
.pres-sidebar-wa {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.pres-sidebar-wa__icon {
  width: 48px; height: 48px;
  background: #e9f7ee;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a7a3a;
  margin-bottom: 14px;
}

.pres-sidebar-wa h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 6px;
}

.pres-sidebar-wa p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.pres-sidebar-wa__btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Alternatives card */
.pres-sidebar-alts {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.pres-sidebar-alts h4 {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pres-alt-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
  text-decoration: none;
  color: var(--text);
}

.pres-alt-link:last-child { border-bottom: none; }

.pres-alt-link:hover { color: var(--accent); }

.pres-alt-link__icon {
  width: 34px; height: 34px;
  min-width: 34px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: background var(--transition);
}

.pres-alt-link:hover .pres-alt-link__icon {
  background: rgba(29,53,87,.12);
}

.pres-alt-link__icon svg { width: 15px; height: 15px; }

.pres-alt-link__body { display: flex; flex-direction: column; }

.pres-alt-link__label {
  font-size: .7rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pres-alt-link__value {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.pres-alt-link:hover .pres-alt-link__value {
  color: var(--accent);
}

/* Note card */
.pres-sidebar-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--accent-light);
  border: 1px solid rgba(29,53,87,.1);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.pres-sidebar-note svg {
  width: 16px; height: 16px;
  min-width: 16px;
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.pres-sidebar-note p {
  font-size: .8125rem;
  color: var(--accent);
  line-height: 1.55;
  font-weight: 500;
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .pres-body__inner {
    grid-template-columns: 1fr;
  }

  .pres-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .pres-sidebar-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .pres-body {
    padding: 48px 0 64px;
  }

  .pres-quote-card {
    border-radius: var(--radius-md);
  }

  .pres-quote-card__intro {
    grid-template-columns: 1fr;
  }

  .pres-quote-form {
    padding: 22px 16px 24px;
  }

  .pres-sidebar {
    grid-template-columns: 1fr;
  }

  .pres-trust__item {
    white-space: normal;
    font-size: .8125rem;
  }

  .pres-trust__grid {
    gap: 12px 24px;
  }
}


@media (max-width: 720px) {
  .pres-form-grid--2,
  .pres-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .pres-panel-heading {
    align-items: stretch;
  }

  .pres-add-btn,
  .pres-submit-row .btn {
    width: 100%;
    justify-content: center;
  }

  .pres-window-card {
    padding: 18px 16px;
  }

  .pres-conditional-panel {
    padding: 18px 14px;
  }

  .pres-section-heading {
    gap: 10px;
  }
}
