/* Calculadora de presupuesto web — UI oscura premium (dorado + carbón) */

:root {
  --bg: #161616;
  --bg-alt: #202120;
  --surface: #252524;
  --surface-elevated: #2c2c2b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(211, 183, 59, 0.35);
  --text: #ececf1;
  --text-muted: #a1a1aa;
  --text-on-gold: #1c1c2a;
  --primary: #d3b73b;
  --primary-hover: #ffc600;
  --primary-muted: rgba(211, 183, 59, 0.12);
  --primary-glow: rgba(211, 183, 59, 0.25);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --radius: 16px;
  --radius-sm: 12px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  /* Layout escritorio */
  --layout-max: 1680px;
  --layout-gap: 2.5rem;
  --layout-pad-x: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(
      ellipse 120% 80% at 50% -20%,
      rgba(211, 183, 59, 0.08),
      transparent 50%
    ),
    radial-gradient(
      ellipse 80% 50% at 100% 100%,
      rgba(32, 33, 32, 0.9),
      var(--bg) 60%
    );
  line-height: 1.55;
  transition: background-color 0.28s ease, color 0.28s ease;
}

.app {
  width: 100%;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
}

@media (min-width: 1025px) {
  .app {
    padding: 2.75rem var(--layout-pad-x) 3.5rem;
  }
}

.app__header {
  position: relative;
  text-align: center;
  margin-bottom: 2.75rem;
  max-width: 42rem;
  margin-inline: auto;
  padding-inline: 3.5rem;
  box-sizing: content-box;
}

@media (min-width: 900px) {
  .app__header {
    padding-inline: 2rem;
  }
}

@media (min-width: 1280px) {
  .app__header {
    max-width: 52rem;
  }
}

.app__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.app__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.app__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Layout: escritorio ~65% / ~35%; tablet/móvil: columna única */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: var(--layout-gap);
  align-items: start;
}

@media (min-width: 1280px) {
  .layout {
    gap: 2.75rem;
  }
}

@media (max-width: 1024px) {
  .layout {
    display: flex;
    flex-direction: column;
    gap: 1.65rem;
  }

  .panel--config {
    order: 1;
    width: 100%;
  }

  .panel--summary {
    order: 2;
    margin-top: 0.35rem;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    align-self: stretch;
  }

  .app {
    padding: 1.5rem 1rem 5rem;
  }
}

@media (max-width: 768px) {
  .panel--summary {
    margin-top: 0.75rem;
  }
}

.panel {
  background: var(--bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.panel--config {
  padding: 2rem 1.85rem 2.25rem;
}

@media (min-width: 1025px) {
  .panel--config {
    padding: 2.25rem 2.25rem 2.5rem;
  }
}

/* Marca: reemplazar logo.png en la raíz del proyecto cuando quieras cambiar la imagen */
.panel__brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0 0 1.35rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--border);
}

.panel__brand-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.panel__brand-top .logo {
  flex-shrink: 0;
}

.logo {
  max-height: 60px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  /* Refuerzo suave sobre fondo oscuro */
  filter: brightness(1.06) contrast(1.04);
}

.panel__brand-tagline {
  margin: 0;
  max-width: 22rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

@media (max-width: 960px) {
  .logo {
    max-height: 52px;
  }

  .panel__brand {
    margin-bottom: 1.15rem;
    padding-bottom: 1.15rem;
  }
}

/* Presupuesto orientativo (helper, no obligatorio) */
.budget-helper {
  margin-bottom: 1.1rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.budget-helper__question {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

.budget-helper__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.budget-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
  font: inherit;
}

.budget-chip__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.budget-chip__text {
  display: block;
  padding: 0.45rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.budget-chip:hover .budget-chip__text {
  border-color: rgba(211, 183, 59, 0.35);
  color: var(--text);
}

.budget-chip__input:focus-visible + .budget-chip__text {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.budget-chip__input:checked + .budget-chip__text {
  border-color: var(--primary);
  background: var(--primary-muted);
  color: var(--primary);
}

.budget-helper__hint {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.theme-light .budget-helper {
  background: rgba(255, 255, 255, 0.55);
}

/* Modo paquete / personalizado */
.mode-switch {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.mode-switch__btn {
  flex: 1;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.mode-switch__btn:hover {
  border-color: rgba(211, 183, 59, 0.35);
  color: var(--text);
}

.mode-switch__btn--active {
  border-color: var(--primary);
  background: var(--primary-muted);
  color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-glow);
}

.mode-switch__hint {
  margin: 0 0 1.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Acordeones configurador y resumen */
.form-accordion {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

#accordion-wrapper-project-type[hidden] {
  display: none !important;
}

.form-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  padding: 0.8rem 1rem;
  margin: 0;
  border: none;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.form-accordion__trigger:hover {
  background: rgba(211, 183, 59, 0.08);
}

.form-accordion__trigger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.form-accordion__trigger--tools {
  flex-wrap: wrap;
}

.form-accordion__trigger-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.form-accordion__trigger-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.form-accordion__icon {
  color: var(--primary);
  font-size: 1rem;
}

.form-accordion__chevron {
  color: var(--text-muted);
  font-size: 0.72rem;
  transition: transform 0.28s ease;
}

.form-accordion--open .form-accordion__chevron {
  transform: rotate(180deg);
}

.form-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.form-accordion--open .form-accordion__panel {
  grid-template-rows: 1fr;
}

.form-accordion__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.form-accordion__panel-inner .form__group {
  margin: 0;
  padding: 0.85rem 1rem 1.05rem;
  border: none;
}

.form-accordion--project-type .form-accordion__panel-inner .form__group {
  padding-bottom: 1.35rem;
}

.form-accordion--project-type .radio-list {
  margin-bottom: 0.2rem;
}

@media (prefers-reduced-motion: reduce) {
  .form-accordion__panel {
    transition: none;
  }

  .form-accordion__chevron {
    transition: none;
  }
}

.summary-accordion {
  margin-bottom: 1rem;
}

.summary-accordion .form-accordion__panel-inner {
  padding: 0.75rem 1.1rem 1.1rem;
}

.summary-accordion .summary__lines {
  padding: 0.45rem 0.9rem;
}

.summary-accordion .summary__subhead {
  padding-left: 0.15rem;
}

.summary-accordion__trigger {
  font-size: 0.82rem;
}

.summary-accordion__trigger-label {
  flex: 1;
  min-width: 0;
}

.option__desc {
  margin: 0.35rem 0 0;
  padding-left: 0.15rem;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.hosting-helper {
  text-align: center;
}

.summary__delivery {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.4;
}

.packages-panel {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.packages-panel__title {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 1025px) {
  .packages-grid {
    gap: 1.25rem;
  }
}

@media (max-width: 900px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.package-card:hover {
  border-color: rgba(211, 183, 59, 0.35);
}

.package-card--active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-glow);
  background: var(--primary-muted);
}

.package-card--popular {
  border-color: rgba(211, 183, 59, 0.45);
}

.package-card__badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--text-on-gold);
}

.package-card__icon {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.package-card__name {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.package-card__desc {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  flex: 1;
}

.package-card__price {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
}

.package-card__delivery {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.btn--package {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn--package:hover {
  background: var(--primary);
  color: var(--text-on-gold);
}

.package-card--active .btn--package {
  background: var(--primary);
  color: var(--text-on-gold);
}

@media (min-width: 1025px) {
  .package-card {
    padding: 1.25rem 1.2rem 1.35rem;
  }
}

.form__group--manual-only[hidden] {
  display: none !important;
}

.field--locked {
  opacity: 0.88;
}

.field--locked .field__hint {
  color: var(--primary) !important;
  font-size: 0.75rem;
}

.field--locked.option-row {
  opacity: 0.88;
}

.field--locked.option-row .field__hint {
  color: var(--primary) !important;
  font-size: 0.75rem;
}

.panel--summary {
  position: sticky;
  top: 1rem;
  padding: 1.75rem;
  background: linear-gradient(165deg, var(--surface) 0%, var(--bg-alt) 100%);
  border-color: var(--border-strong);
}

@media (min-width: 1025px) {
  .panel--summary {
    padding: 2rem 2rem 2.25rem;
  }
}

#summary-panel {
  scroll-margin-top: 1rem;
}

@media (max-width: 1024px) {
  #summary-panel {
    scroll-margin-top: 5rem;
  }

  .panel--summary {
    position: relative;
    top: auto;
  }
}

/* Form */
.form__group {
  margin: 0 0 2rem;
  padding: 0 0 2rem;
  border: none;
  border-bottom: 1px solid var(--border);
}

.form__group:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

@media (min-width: 1025px) {
  .form__group {
    margin-bottom: 2.35rem;
    padding-bottom: 2.35rem;
  }

  .form__group:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

.form__legend {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.5rem;
  padding: 0;
}

.form__helper {
  margin: 0 0 1.15rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.form__subgroup {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px dashed var(--border);
}

.form__subgroup:first-of-type {
  margin-top: 0.35rem;
  padding-top: 0;
  border-top: none;
}

.form__subgroup-label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.form__note {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form__note--included {
  padding: 0.6rem 0.85rem;
  background: var(--primary-muted);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 600;
}

/* Radios */
.radio-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.radio-row {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
}

.radio-row .radio {
  flex: 1;
  min-width: 0;
}

.field-help__btn--radio {
  flex-shrink: 0;
  align-self: center;
  margin-top: 0;
}

.radio {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  background: rgba(0, 0, 0, 0.2);
}

.radio__icon {
  color: var(--primary);
  font-size: 1.05rem;
  width: 1.35rem;
  text-align: center;
  flex-shrink: 0;
}

.radio:hover {
  border-color: rgba(211, 183, 59, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

.radio:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-muted);
  box-shadow: 0 0 0 1px var(--primary-glow);
}

.radio input {
  accent-color: var(--primary);
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
}

.radio__label {
  font-weight: 600;
  flex: 1;
  min-width: 0;
  color: var(--text);
}

.radio__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.radio__desc {
  flex-basis: 100%;
  width: 100%;
  margin: 0;
  padding-left: calc(1.05rem + 1.35rem + 0.75rem);
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.radio-list--compact {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radio--inline {
  flex: 1 1 auto;
  min-width: min(100%, 148px);
}

/* Campos */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.field__label--with-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.field__label-text {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.field__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.field__hint {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.input {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-width: 128px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Toggle */
.toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  margin-bottom: 0.7rem;
  padding: 0.4rem 0;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle__ui {
  width: 2.55rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #3f3f3e;
  flex-shrink: 0;
  position: relative;
  transition: background 0.25s;
}

.toggle__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(1.5rem - 6px);
  height: calc(1.5rem - 6px);
  border-radius: 50%;
  background: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s;
}

.toggle input:checked ~ .toggle__ui {
  background: var(--primary);
}

.toggle input:checked ~ .toggle__ui::after {
  background: var(--text-on-gold);
  transform: translateX(1.05rem);
}

.toggle input:focus-visible ~ .toggle__ui {
  outline: 2px solid var(--primary-hover);
  outline-offset: 3px;
}

.toggle__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.7rem;
  min-width: 0;
}

.option-row .toggle--leading {
  flex-shrink: 0;
  margin-bottom: 0;
  padding: 0.4rem 0;
  gap: 0.35rem;
}

.option-toggle {
  flex-shrink: 0;
}

.option-content {
  flex: 1;
  min-width: 0;
}

.option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
  width: 100%;
}

.option-header .field-help__btn {
  flex-shrink: 0;
}

.option-header__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.toggle-with-help .option-header {
  flex-wrap: nowrap;
  align-items: center;
}

.toggle-with-help .option-header__label {
  flex-wrap: nowrap;
  align-items: center;
}

.toggle-with-help .option-header__label .field__hint {
  white-space: nowrap;
}

.option-icon {
  color: var(--primary);
  font-size: 0.95rem;
  width: 1.15rem;
  text-align: center;
  flex-shrink: 0;
}

/* Hosting fijo (siempre facturado) */
.hosting-fixed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  background: rgba(211, 183, 59, 0.06);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.hosting-fixed__icon {
  color: var(--primary);
  font-size: 1.35rem;
}

.hosting-fixed__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.hosting-fixed__title {
  font-weight: 700;
  color: var(--text);
  font-size: 0.92rem;
}

.hosting-fixed__price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.hosting-fixed__badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  max-width: 11rem;
  line-height: 1.35;
}

/* Condicionales */
.conditional {
  margin-top: 0.35rem;
}

.conditional--hidden {
  display: none;
}

/* Resumen */
.summary__title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.summary__mode-badge {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.summary__subhead {
  margin: 0.85rem 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
}

.summary__included-wrap {
  margin-bottom: 0.75rem;
}

.summary__lines--base {
  margin-bottom: 0.5rem;
}

.summary__project {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.summary__block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--border);
}

.summary__block--monthly {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.25rem;
}

.summary__block-head {
  margin-bottom: 0.75rem;
}

.summary__block-title {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.summary__block-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.summary__lines {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0.35rem 1rem 0.35rem 0.35rem;
  max-height: min(32vh, 260px);
  overflow-y: auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  scrollbar-color: var(--primary) var(--surface);
  scrollbar-width: thin;
}

.summary__lines::-webkit-scrollbar {
  width: 8px;
}

.summary__lines::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 4px;
}

.summary__lines::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
  border: 2px solid var(--surface);
}

.summary__lines--compact {
  max-height: min(22vh, 180px);
}

.summary__lines li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.summary__lines li:last-child {
  border-bottom: none;
}

.summary__lines .name {
  color: var(--text);
}

.summary__lines .price {
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.summary__amount {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.summary__row--strong {
  padding-top: 0.35rem;
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--text);
}

.summary__row--strong .summary__amount {
  color: var(--primary);
  font-size: 1rem;
}

.summary__grand {
  background: linear-gradient(
    145deg,
    rgba(211, 183, 59, 0.18) 0%,
    rgba(37, 37, 36, 0.95) 100%
  );
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(211, 183, 59, 0.08);
}

.summary__grand-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.summary__grand-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary);
  text-shadow: 0 0 32px var(--primary-glow);
  font-variant-numeric: tabular-nums;
}

.summary__monthly-wrap {
  margin-top: 0.5rem;
}

.summary__lines--monthly {
  margin-bottom: 0.35rem;
}

.summary__split-totals {
  margin: 0.65rem 0 0.5rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(211, 183, 59, 0.06);
}

.summary__split-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.summary__split-line + .summary__split-line {
  margin-top: 0.35rem;
}

.summary__split-line--server .summary__split-label,
.summary__split-line--server .summary__split-value {
  color: var(--primary);
  font-weight: 600;
}

.summary__split-label {
  color: var(--text-muted);
}

.summary__split-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.summary__server-note {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
}

.summary__grand--final {
  margin-top: 0.25rem;
  margin-bottom: 0.85rem;
}

.summary__grand--monthly-highlight {
  background: linear-gradient(
    145deg,
    rgba(37, 37, 36, 0.98) 0%,
    rgba(211, 183, 59, 0.1) 100%
  );
  margin-bottom: 1.35rem;
}

.summary__grand-value--secondary {
  font-size: 1.45rem;
  text-shadow: none;
}

@keyframes summaryGrandFlash {
  0% {
    transform: scale(1);
    color: var(--primary);
    text-shadow: none;
  }
  45% {
    transform: scale(1.08);
    color: #d3b73b;
    text-shadow: 0 0 28px rgba(211, 183, 59, 0.55);
  }
  100% {
    transform: scale(1);
    color: var(--primary);
    text-shadow: none;
  }
}

.summary__grand-value--flash {
  animation: summaryGrandFlash 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  .summary__grand-value--flash {
    animation: summaryGrandFlashReduced 0.35s ease-out;
  }
}

@keyframes summaryGrandFlashReduced {
  0%,
  100% {
    color: var(--primary);
  }
  50% {
    color: #d3b73b;
  }
}

.conversion-hints {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background: var(--primary-muted);
}

.conversion-hints--modal {
  margin-top: 0.5rem;
}

.conversion-hints__line {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.conversion-hints__line:last-child {
  margin-bottom: 0;
}

.cta-preamble {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.cta-warning {
  text-align: center;
  font-size: 0.78rem;
  color: #e8a598;
  margin: 0 0 0.65rem;
  line-height: 1.4;
}

.theme-light .cta-warning {
  color: #b45309;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.share-row--tools {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: stretch;
  gap: 0.5rem;
}

.btn--share {
  flex: 1 1 min(100%, 7.5rem);
  width: auto;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
}

.btn--share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  min-width: 2.85rem;
  max-width: 2.85rem;
  padding: 0;
  flex: 0 0 auto;
  font-size: 1.05rem;
}

.btn--share-icon .fa-share-nodes,
.btn--share-icon .fa-link {
  font-size: 1.1rem;
}

.btn--share-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

.btn--share-pdf .fa-file-pdf {
  font-size: 1rem;
  flex-shrink: 0;
}

.guidance {
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.75rem;
  background: var(--primary-muted);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
}

.guidance__text {
  margin: 0;
  font-weight: 500;
}

.guidance__extra {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.guidance--modal {
  margin-bottom: 0.45rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1.4;
}

.theme-light .guidance {
  background: rgba(211, 183, 59, 0.08);
}

.btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn--primary:disabled:hover {
  background: var(--primary);
  color: var(--text-on-gold);
}

.toast {
  position: fixed;
  bottom: calc(5rem + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 200;
  max-width: min(90vw, 22rem);
  padding: 0.65rem 1.1rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.86rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 1025px) {
  .toast {
    bottom: 1.5rem;
  }
}

.recommendation {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.recommendation__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.recommendation__icon {
  color: var(--primary);
  font-size: 1rem;
  line-height: 1;
}

.recommendation__heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.recommendation__text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.recommendation__pitch {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.45;
}

.recommendation__apply {
  margin-top: 0.65rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
}

.summary__config-status {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.summary__config-status--ready {
  color: var(--primary);
}

.summary__value-line {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.summary__trust-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.summary__trust-list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.35rem;
}

.summary__trust-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.75rem;
}

.summary__package-savings {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
}

.form-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-container.lead-fields {
  margin-bottom: 0.85rem;
}

.form-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.form-row .lead-fields__field {
  flex: 1;
  min-width: 0;
}

.form-row .lead-fields__input {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.lead-fields__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.lead-fields__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.lead-fields__input {
  padding: 0.55rem 0.65rem;
  font-size: 0.88rem;
}

.lead-fields--modal {
  margin-bottom: 0.75rem;
}

.form-container.lead-fields--notes {
  margin-bottom: 0.75rem;
}

.lead-fields__field--full {
  width: 100%;
}

.summary__subhead--notes {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
}

.summary__subhead--notes[hidden] {
  display: none;
}

.input--textarea.lead-fields__textarea,
textarea.input--textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  line-height: 1.45;
  resize: vertical;
  font-family: inherit;
}

@supports (field-sizing: content) {
  textarea.input--textarea {
    field-sizing: content;
    min-height: 2.75rem;
  }
}

@media (max-width: 768px) {
  .form-container.lead-fields .form-row {
    gap: 6px;
  }

  .form-container.lead-fields .form-row .lead-fields__input {
    font-size: 13px;
    padding: 8px;
  }
}

@media (min-width: 769px) {
  .form-container.lead-fields .form-row {
    width: 100%;
    gap: 16px;
  }

  .form-container.lead-fields .form-row .lead-fields__field {
    flex: 1;
    width: 50%;
    max-width: none;
  }
}

.btn--reset-config {
  width: auto;
  flex-shrink: 0;
  font-weight: 600;
}

.reset-button {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.btn {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.35rem;
  font-weight: 700;
  width: 100%;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--primary);
  color: var(--text-on-gold);
  box-shadow: 0 6px 20px rgba(211, 183, 59, 0.35);
}

.btn--primary:hover {
  background: var(--primary-hover);
  color: var(--text-on-gold);
  box-shadow: 0 8px 28px rgba(255, 198, 0, 0.45);
}

.btn--primary:active {
  transform: translateY(1px);
}

.summary__fineprint {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
}

.app__footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.5;
}

.app__footer p {
  margin: 0;
}

/* Botón flotante: ver resumen (tablet / móvil) */
.mobile-summary-fab {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-summary-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: fixed;
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(211, 183, 59, 0.5);
    font: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    background: var(--primary);
    color: var(--text-on-gold);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
  }

  .mobile-summary-fab:hover {
    background: var(--primary-hover);
  }

  .mobile-summary-fab:active {
    transform: translateX(-50%) scale(0.98);
  }
}

/* Tema: fijo esquina superior derecha */
.theme-toggle-wrap {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 40;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
}

.theme-toggle__icon {
  font-size: 1.05rem;
  line-height: 1;
  transition: color 0.2s, opacity 0.2s;
}

.theme-toggle__icon--active {
  color: var(--primary);
  opacity: 1;
}

.theme-toggle__icon--inactive {
  color: var(--text-muted);
  opacity: 0.35;
}

/* Multi-idioma: helper + stepper */
.form__helper--tight {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.field--inline-stepper {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0;
}

.field--inline-stepper .field__label--with-help {
  flex: 1 1 auto;
  min-width: 0;
}

.stepper {
  --stepper-h: 2.5rem;
  --stepper-btn-w: 2.25rem;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  min-height: var(--stepper-h);
}

.stepper__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--stepper-btn-w);
  width: var(--stepper-btn-w);
  min-height: var(--stepper-h);
  padding: 0;
  border: none;
  border-radius: 0;
  background: var(--surface-elevated);
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

.stepper__btn:hover:not(:disabled) {
  background: var(--primary-muted);
}

.stepper__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.input--stepper {
  box-sizing: border-box;
  width: 3.25rem;
  min-width: 2.75rem;
  max-width: 3.75rem;
  height: var(--stepper-h);
  min-height: var(--stepper-h);
  margin: 0;
  padding: 0 0.35rem;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: var(--stepper-h);
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.input--stepper::-webkit-outer-spin-button,
.input--stepper::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Leyendas con enlaces a PDF */
.form__legend--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  width: 100%;
}

.section-info-links {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.section-info-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  opacity: 0.88;
  transition: color 0.15s, border-color 0.15s, background 0.15s, opacity 0.15s;
}

.section-info-link:hover {
  opacity: 1;
  color: var(--primary);
  border-color: var(--border-strong);
  background: var(--primary-muted);
}

/* Ayuda contextual (icono + tooltip) — fila con .option-row */
.toggle-with-help {
  position: relative;
}

.field-help__btn {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  margin-top: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, transform 0.12s;
}

.field-help__btn:hover {
  color: var(--primary);
  background: var(--primary-muted);
}

.field-help__btn:active {
  transform: scale(0.96);
}

.field-help__btn--inline {
  margin-top: 0;
  width: 1.45rem;
  height: 1.45rem;
  font-size: 0.88rem;
}

.hosting-fixed--with-help {
  flex-wrap: wrap;
  align-items: flex-start;
}

.hosting-fixed__title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.tooltip-floater {
  position: fixed;
  z-index: 280;
  max-width: min(22rem, calc(100vw - 20px));
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.tooltip-floater.tooltip-floater--visible {
  opacity: 1;
}

.tooltip-mobile {
  position: fixed;
  z-index: 280;
  padding: 0.75rem 2rem 0.75rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tooltip-mobile--visible {
  opacity: 1;
}

.tooltip-mobile__text {
  margin: 0;
}

.tooltip-mobile__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.tooltip-mobile__close:hover {
  color: var(--primary);
  background: var(--primary-muted);
}

/* Utilidades alineación precio / filas de opción (móvil y resumen) */
.price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.price-line > span,
.price-line .summary__amount {
  white-space: nowrap;
}

.option-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

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

.summary-total {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 700;
}

/* Tipografía y espaciado en móvil */
@media (max-width: 768px) {
  body {
    font-size: 0.875rem;
  }

  .app__title {
    font-size: clamp(1.55rem, 5vw, 1.95rem);
    margin-bottom: 0.65rem;
  }

  .app__eyebrow {
    display: none;
  }

  .app__subtitle {
    font-size: clamp(1.05rem, 4.5vw, 1.2rem);
    line-height: 1.55;
    max-width: 22rem;
    margin-inline: auto;
    color: var(--text);
    opacity: 0.92;
  }

  .form__legend {
    font-size: 0.74rem;
  }

  .form__helper {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .form__group {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }

  .form__group:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .panel--config {
    padding: 1.35rem 1rem 1.5rem;
  }

  .panel--summary {
    padding: 0;
  }

  .panel--summary > .summary {
    padding: 12px;
  }

  .summary__title {
    font-size: 0.76rem;
  }

  .summary__block {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }

  .summary__block--monthly {
    margin-bottom: 0.85rem;
  }

  .summary__lines li {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0;
  }

  .summary__lines .name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .summary__lines .price {
    flex-shrink: 0;
  }

  .summary__row {
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .summary__row > span:first-child {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .summary__row .summary__amount {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .summary__grand {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.85rem;
  }

  .summary__grand-label {
    display: block;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
  }

  .summary__grand-value {
    display: block;
    flex-shrink: 0;
    font-size: 1.45rem;
    white-space: nowrap;
  }

  .summary__grand-value--secondary {
    font-size: 1.2rem;
  }

  .summary__grand--final,
  .summary__grand--monthly-highlight {
    margin-top: 0.35rem;
  }

  .conversion-hints {
    margin-bottom: 0.65rem;
    padding: 0.65rem 0.75rem;
  }

  .recommendation {
    margin-bottom: 0.85rem;
    padding: 0.75rem 0.85rem;
  }

  .cta-preamble {
    margin-bottom: 0.5rem;
  }

  .share-row {
    margin-bottom: 0.5rem;
    gap: 0.35rem;
  }

  .share-row--tools {
    grid-template-columns: 3rem 3rem 1fr;
    gap: 0.4rem;
  }

  .share-row--tools .btn--share-icon {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    max-width: 3rem;
    font-size: 1.15rem;
  }

  .share-row--tools .btn--share-pdf .btn__label {
    display: none;
  }

  .share-row--tools .btn--share-pdf {
    padding: 0;
    min-height: 3rem;
  }

  .share-row--tools .btn--share-pdf .fa-file-pdf {
    font-size: 1.2rem;
  }

  .panel--summary .btn,
  .panel--summary .btn--secondary,
  #summary-panel .btn--share {
    padding: 0.45rem 0.55rem;
    font-size: 0.75rem;
    border-radius: 8px;
    min-height: 2.35rem;
  }

  .summary-modal__footer .btn,
  .summary-modal__footer .btn--secondary {
    padding: 0.45rem 0.55rem;
    font-size: 0.75rem;
    border-radius: 8px;
    min-height: 2.35rem;
  }

  .summary-modal__footer .btn--primary {
    min-height: 2.5rem;
    font-size: 0.82rem;
    padding: 0.5rem 0.65rem;
  }

  .summary-modal__body {
    flex: 1 1 auto;
    min-height: 12rem;
    padding: 0.9rem 1rem 1rem;
  }

  .summary-modal__panel {
    max-height: 96dvh;
    min-height: 92dvh;
  }

  .summary--modal .summary__config-status,
  .summary--modal .summary__mode-badge,
  .summary--modal .summary__project {
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
    line-height: 1.4;
  }

  .summary--modal .summary__delivery {
    font-size: 0.82rem;
  }

  .summary--modal .summary__grand.summary__grand--final {
    margin-top: 0.5rem;
    padding: 0.65rem 0.85rem;
  }

  .summary--modal .summary__grand-value {
    font-size: 1.35rem;
  }

  .summary--modal .summary__grand-label {
    font-size: 0.8rem;
  }

  .summary--modal .summary-accordion {
    min-height: 8rem;
    flex: 1 1 auto;
  }

  .summary--modal .summary-accordion .form-accordion__panel-inner {
    max-height: none;
    padding: 0.55rem 0.7rem 0.65rem;
  }

  .summary--modal .summary__lines li {
    padding: 0.42rem 0;
    font-size: 0.84rem;
  }

  .summary--modal .summary__lines .price {
    font-size: 0.8rem;
  }

  .summary--modal .summary__subhead {
    font-size: 0.72rem;
    margin: 0.5rem 0 0.2rem;
  }

  .summary--modal .summary-accordion__trigger {
    padding: 0.7rem 0.85rem;
    font-size: 0.86rem;
  }

  .summary-modal__head {
    padding: 0.85rem 1rem 0.75rem;
    flex-shrink: 0;
  }

  .summary-modal__title {
    font-size: 1.05rem;
  }

  .summary-modal__footer {
    padding: 0.65rem 0.85rem max(0.85rem, env(safe-area-inset-bottom));
    flex-shrink: 0;
  }

  .guidance,
  .guidance--modal,
  [data-guidance-block] {
    display: none !important;
  }

  .lead-fields--modal {
    margin-bottom: 0.45rem;
  }

  .lead-fields--modal .lead-fields__label {
    font-size: 0.65rem;
  }

  .lead-fields--modal .lead-fields__input {
    padding: 0.45rem 0.55rem;
    font-size: 0.8125rem;
  }

  .option-row {
    gap: 0.65rem;
    margin-bottom: 0.8rem;
    padding-block: 0.15rem;
    align-items: center;
  }

  .option-content {
    min-width: 0;
  }

  .option-header {
    gap: 0.45rem;
    flex-wrap: nowrap;
    align-items: center;
  }

  .option-header__label {
    font-size: 0.8rem;
    line-height: 1.25;
    flex-wrap: nowrap;
    gap: 0.3rem;
    min-width: 0;
  }

  .option-header__label > span:not(.field__hint) {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .option-header__label .field__hint {
    font-size: 0.72rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .option-icon {
    font-size: 0.82rem;
    width: 1rem;
  }

  .option-header .field-help__btn {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .package-card__price {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .hosting-fixed.hosting-fixed--with-help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.65rem;
  }

  .hosting-fixed.hosting-fixed--with-help .hosting-fixed__icon {
    flex-shrink: 0;
  }

  .hosting-fixed.hosting-fixed--with-help .hosting-fixed__text {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
  }

  .hosting-fixed.hosting-fixed--with-help .hosting-fixed__title-row {
    flex: 1;
    min-width: 0;
  }

  .hosting-fixed.hosting-fixed--with-help .hosting-fixed__title {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hosting-fixed.hosting-fixed--with-help .hosting-fixed__price {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .hosting-fixed.hosting-fixed--with-help .hosting-fixed__badge {
    flex-basis: 100%;
    max-width: 100%;
  }

  .radio__label {
    font-size: 0.88rem;
  }

  .layout {
    gap: 1rem;
  }

  .section {
    margin-bottom: 16px;
  }

  .option-container {
    margin-bottom: 8px;
  }

  .app {
    overflow-x: clip;
  }
}

/* Botón secundario + footer PDF */
.btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

.btn--secondary:hover {
  background: var(--primary-muted);
  border-color: var(--primary);
  color: var(--primary);
}

.footer-docs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.btn--footer-doc {
  margin-top: 0;
  width: auto;
  min-width: min(100%, 14rem);
  font-size: 0.82rem;
  padding: 0.6rem 1rem;
}

/* Modal resumen: overlay fade + panel slide */
body.modal-open {
  overflow: hidden;
}

.summary-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.summary-modal[hidden] {
  display: none !important;
}

.summary-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.summary-modal--visible .summary-modal__backdrop {
  opacity: 1;
}

.summary-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  max-height: min(94dvh, 94vh, 820px);
  min-height: min(82dvh, 82vh);
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.summary-modal--visible .summary-modal__panel {
  transform: translateY(0);
}

@media (min-width: 480px) {
  .summary-modal {
    align-items: center;
    padding: 1rem;
  }

  .summary-modal__panel {
    border-radius: var(--radius);
    max-width: calc(100vw - 2rem);
    min-height: 0;
    max-height: min(90vh, 760px);
    transform: translateY(1rem);
    opacity: 0;
  }

  .summary-modal--visible .summary-modal__panel {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 1024px) {
  .summary-modal__panel {
    max-width: min(560px, calc(100vw - 2rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .summary-modal__backdrop,
  .summary-modal__panel {
    transition: opacity 0.2s ease;
  }

  .summary-modal__panel {
    transform: none !important;
    opacity: 0;
  }

  .summary-modal--visible .summary-modal__panel {
    opacity: 1;
  }
}

.summary-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.summary-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.summary-modal__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.summary-modal__close:hover {
  background: var(--primary-muted);
  color: var(--primary);
}

.summary-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.15rem 1.15rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.summary--modal {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.summary--modal .summary-accordion {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.65rem;
}

.summary--modal .summary-accordion .form-accordion__panel {
  min-height: 0;
  flex: 1 1 auto;
}

.summary--modal .summary-accordion.form-accordion--open .form-accordion__panel {
  display: block;
  grid-template-rows: none;
}

.summary--modal .summary-accordion .form-accordion__panel-inner {
  max-height: none;
  overflow: visible;
  padding: 0.5rem 0.75rem 0.65rem;
}

.summary--modal .summary__lines {
  max-height: none;
  overflow: visible;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0;
  border-top: none;
  border-bottom: none;
}

.summary--modal .summary__lines li {
  padding: 0.35rem 0;
  font-size: 0.78rem;
  gap: 0.5rem;
  align-items: flex-start;
}

.summary--modal .summary__lines .name {
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.35;
  word-break: break-word;
}

.summary--modal .summary__lines .price {
  font-size: 0.72rem;
  padding-top: 0.05rem;
}

.summary--modal .summary__subhead {
  font-size: 0.68rem;
  margin: 0.4rem 0 0.15rem;
  padding-left: 0;
}

.summary--modal .summary-accordion__trigger {
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
}

.summary--modal .summary__config-status {
  margin-bottom: 0.35rem;
}

.summary--modal .summary__grand.summary__grand--final {
  margin-top: 0.5rem;
}

.summary--modal .summary__mode-badge {
  margin-top: 0;
}

.summary-modal__footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--bg-alt) 20%
  );
}

.summary-modal__footer .btn--primary {
  margin: 0;
}

.summary-modal__footer .share-row {
  margin-bottom: 0.5rem;
}

.summary-modal__footer .share-row--tools {
  gap: 0.4rem;
}

@media (max-width: 479px) {
  .summary-modal__panel {
    min-height: 94dvh;
    max-height: 98dvh;
  }

  .summary--modal .summary__lines li {
    font-size: 0.86rem;
  }
}

/* Tema claro */
.theme-light {
  --bg: #eceae5;
  --bg-alt: #f7f6f2;
  --surface: #ffffff;
  --surface-elevated: #f0eeea;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(200, 150, 0, 0.5);
  --text: #1c1c1a;
  --text-muted: #5a5a54;
  --text-on-gold: #1a1814;
  --primary: #ddb82a;
  --primary-hover: #f5c518;
  --primary-muted: rgba(221, 184, 42, 0.2);
  --primary-glow: rgba(245, 197, 24, 0.38);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.theme-light body {
  background-image: radial-gradient(
      ellipse 120% 80% at 50% -20%,
      rgba(221, 184, 42, 0.14),
      transparent 50%
    ),
    radial-gradient(
      ellipse 80% 50% at 100% 100%,
      rgba(236, 234, 229, 0.95),
      var(--bg) 60%
    );
}

.theme-light .logo {
  filter: none;
}

.theme-light .package-card {
  background: var(--surface);
}

.theme-light .radio {
  background: var(--surface);
}

.theme-light .radio:hover {
  background: var(--surface-elevated);
}

.theme-light .mode-switch__btn:not(.mode-switch__btn--active) {
  background: rgba(0, 0, 0, 0.04);
}

.theme-light .toggle__ui {
  background: #c4c4c0;
}

.theme-light .summary__split-totals {
  background: rgba(221, 184, 42, 0.12);
}

.theme-light .summary__grand--final {
  background: linear-gradient(
    145deg,
    rgba(221, 184, 42, 0.2) 0%,
    var(--surface) 100%
  );
}

.theme-light .summary__grand--monthly-highlight {
  background: linear-gradient(
    145deg,
    var(--surface) 0%,
    rgba(221, 184, 42, 0.14) 100%
  );
}

.theme-light .panel--summary {
  background: linear-gradient(165deg, var(--surface) 0%, var(--bg-alt) 100%);
}

.theme-light .panel {
  transition: background 0.28s ease, border-color 0.28s ease;
}

.theme-light .btn--primary {
  background: linear-gradient(180deg, #f0cc3a 0%, #ddb82a 55%, #d4ad22 100%);
  color: var(--text-on-gold);
  border: 1px solid rgba(180, 130, 0, 0.4);
  box-shadow:
    0 4px 16px rgba(200, 155, 0, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.theme-light .btn--primary:hover {
  background: linear-gradient(180deg, #ffe04a 0%, #f5c518 55%, #e8b80f 100%);
  box-shadow:
    0 6px 22px rgba(240, 190, 0, 0.52),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.theme-light .btn--primary:active {
  box-shadow: 0 2px 10px rgba(200, 155, 0, 0.35);
}

.theme-light .btn--package:hover,
.theme-light .package-card--active .btn--package {
  background: linear-gradient(180deg, #f0cc3a 0%, #ddb82a 100%);
  border-color: #c9a01e;
  color: var(--text-on-gold);
  box-shadow: 0 3px 12px rgba(200, 155, 0, 0.3);
}

.theme-light .mode-switch__btn--active {
  background: rgba(221, 184, 42, 0.22);
  border-color: var(--primary);
  color: #8a6500;
  box-shadow: 0 0 0 1px var(--primary-glow);
}

.theme-light .budget-chip__input:checked + .budget-chip__text {
  background: rgba(221, 184, 42, 0.18);
  border-color: var(--primary);
  color: #8a6500;
}

.theme-light .mobile-summary-fab {
  background: linear-gradient(180deg, #f0cc3a 0%, #ddb82a 100%);
  border-color: rgba(180, 130, 0, 0.45);
  box-shadow: 0 6px 22px rgba(200, 155, 0, 0.38);
}

.theme-light .mobile-summary-fab:hover {
  background: linear-gradient(180deg, #ffe04a 0%, #f5c518 100%);
}

@media (max-width: 375px) {
  html,
  body {
    overflow-x: hidden;
  }

  .app {
    padding: 1.35rem 0.85rem 5rem;
  }

  .panel--config {
    padding: 1.2rem 0.85rem 1.35rem;
  }

  .form-accordion__panel-inner .form__group {
    padding: 0.7rem 0.8rem 0.9rem;
  }

  .radio-row {
    gap: 0.3rem;
  }

  .radio {
    padding: 0.65rem 0.75rem;
    gap: 0.4rem 0.55rem;
    max-width: 100%;
  }

  .radio__label {
    font-size: 0.82rem;
    line-height: 1.32;
  }

  .radio__meta {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .form__helper,
  .form__helper--tight,
  .form__note,
  .form__note--included {
    font-size: 0.74rem;
    line-height: 1.52;
    overflow-wrap: anywhere;
    word-break: normal;
    max-width: 100%;
  }

  .form__note--included {
    padding: 0.52rem 0.7rem;
  }

  .option-row,
  .option-content,
  .option-header,
  .option-header__label {
    max-width: 100%;
    min-width: 0;
  }

  .option-header {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 0.25rem;
  }

  .option-header__label {
    flex-wrap: wrap;
    row-gap: 0.12rem;
  }

  .option-header__label > span:not(.field__hint) {
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
  }

  .option-header__label .field__hint {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .hosting-fixed.hosting-fixed--with-help {
    padding: 0.65rem 0.7rem;
    gap: 0.45rem 0.55rem;
    max-width: 100%;
    min-width: 0;
  }

  .hosting-fixed.hosting-fixed--with-help .hosting-fixed__text {
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    row-gap: 0.22rem;
    min-width: 0;
    width: 100%;
  }

  .hosting-fixed.hosting-fixed--with-help .hosting-fixed__title-row {
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    width: 100%;
    min-width: 0;
  }

  .hosting-fixed.hosting-fixed--with-help .hosting-fixed__title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    min-width: 0;
    line-height: 1.3;
  }

  .hosting-fixed.hosting-fixed--with-help .hosting-fixed__price {
    flex-basis: 100%;
    white-space: normal;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .hosting-fixed.hosting-fixed--with-help .hosting-fixed__badge {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.68rem;
    line-height: 1.35;
  }
}
