/* ── SCREEN 5: Contacto + Sidebar ── */

.sidebar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--blanco);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.sidebar-price-header {
  background: var(--lavanda);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-price-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.5px;
}

.sidebar-price-big {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  height: 40px;
}

.sidebar-price-int {
  font-size: 40px;
  font-weight: 800;
  color: white;
  line-height: 35px;
  display: flex;
  align-items: center;
}

.sidebar-price-decimalAndPeriod {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  color: white;
  height: 35px;
  align-items: center;
  margin-top: -3px;
}

.sidebar-price-cents {
  font-size: 22px;
  font-weight: 800;
  color: white;
  height: 24px;
}

.sidebar-price-unit {
  font-size: 15px;
  font-weight: 500;
  color: white;
  height: 12px;
  margin-top: -4px;
}

.sidebar-price-sub {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.sidebar-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gris-border);
}

.sidebar-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--negro);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sidebar-section-title .toggle-icon {
  cursor: pointer;
  color: var(--lavanda);
  transition: transform 0.2s;
}

.sidebar-item {
  margin-bottom: 8px;
}

.sidebar-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--negro);
}

.sidebar-item-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--negro-70);
}

.sidebar-coverage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sidebar-coverage-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--negro-70);
  flex: 1;
}

.sidebar-coverage-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--negro);
}

.sidebar-total-section {
  padding: 16px 20px;
}

.sidebar-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 0.5rem;
}

.sidebar-total-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--negro-70);
}

.sidebar-total-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--lavanda);
}

.promo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--negro-70);
  cursor: pointer;
  padding: 12px 20px;
  border-top: 1px solid var(--gris-border);
}

.save-proposal-btn {
  position: fixed;
  top: 70px;
  right: 24px;
  background: var(--lavanda);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(64, 64, 227, 0.3);
  z-index: 50;
}

.recaptcha-notice {
  font-size: 10px;
  color: var(--negro-40);
  text-align: center;
  line-height: 1.5;
  width: 100%;
}

.recaptcha-notice a {
  color: var(--negro-40);
  text-decoration: underline;
}

.resume-inner-wide {
  padding: 0 16px;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.resume-helper-note {
  font-size: 12px;
  color: var(--negro-70);
}

#row-acepto-legal {
  margin-bottom: 4px;
}

#acepto-legal-error {
  display: none;
}

.sidebar-price-label-tight {
  font-size: 10px;
  letter-spacing: 0.8px;
}

.sidebar-info-icon {
  vertical-align: middle;
  margin-right: 4px;
}

#sb-fecha-inicio {
  font-size: 12px;
  color: var(--lavanda);
  font-weight: 600;
}

#sb-plan-mensual {
  border: 1.5px solid var(--lavanda);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--negro);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#sb-plan-mensual img {
  flex-shrink: 0;
  filter: invert(27%) sepia(99%) saturate(1600%) hue-rotate(224deg)
    brightness(95%) contrast(97%);
}

#sb-plan-anual {
  border: 1.5px solid var(--gris-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--negro-70);
}

.sidebar-section-title .toggle-icon {
  margin-left: auto;
}

.sidebar-toggle-chevron {
  display: none;
}

@media (max-width: 889px) {
  #resume-page .resume-inner-wide {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  #resume-page .sidebar {
    width: 100%;
    max-width: 100%;
    position: static;
    flex-shrink: 1;
    align-self: stretch;
  }

  .sidebar-toggle-chevron {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
  }

  .sidebar-price-header {
    position: relative;
    cursor: pointer;
  }

  .sidebar-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .sidebar.expanded .sidebar-body {
    max-height: 1000px;
  }

  .sidebar.expanded .sidebar-toggle-chevron {
    transform: translateY(-50%) rotate(180deg);
  }
}
