:root {
  --bg: #05070b;
  --line: rgba(255, 255, 255, .13);
  --line2: rgba(255, 255, 255, .24);
  --text: #f7f8fa;
  --muted: #a8b0bd;
  --muted2: #737b87;
  --gold: #d8b66a;
  --gold2: #f1d58c;
  --green: #8ce6ad;
  --red: #b04444;
  --shadow: 0 24px 80px rgba(0, 0, 0, .45);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 14% -4%, rgba(216, 182, 106, .18), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, .08), transparent 28%),
    linear-gradient(180deg, #05070b 0%, #090d14 44%, #05070b 100%);
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(5, 11, 18, .78);
  border-bottom: 1px solid var(--line)
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: .34em;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 15px
}

.brand img {
  width: 170px;
  height: auto;
  display: block
}

.brand-fallback {
  display: flex;
  align-items: center;
  gap: 14px
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .06);
  font-size: 11px;
  letter-spacing: .12em
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap
}

.nav-actions a,
.ghost-btn,
.solid-btn {
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(255, 255, 255, .82);
  transition: .22s ease;
}

.nav-actions a:hover,
.ghost-btn:hover {
  background: rgba(255, 255, 255, .08);
  transform: translateY(-1px)
}

.solid-btn {
  color: #05070b;
  background: #fff;
  border-color: #fff
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px 22px 26px
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-weight: 950;
  margin-bottom: 18px;
}

.kicker:before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent)
}

h1 {
  font-size: clamp(38px, 5vw, 66px);
  line-height: .98;
  letter-spacing: -.07em;
  margin: 0 0 20px;
  max-width: 900px
}

.hero p {
  margin: 0;
  max-width: 790px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
  font-weight: 650
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px
}

.trust-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px 4px;
}

.trust-box {
  border: 1px solid rgba(216, 182, 106, .22);
  border-radius: 18px;
  background: rgba(216, 182, 106, .07);
  padding: 14px 16px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
}

.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 22px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start
}

.section {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.section:after {
  content: "";
  position: absolute;
  inset: auto -15% -75% 20%;
  height: 190px;
  background: radial-gradient(circle, rgba(216, 182, 106, .10), transparent 64%);
  pointer-events: none;
}

.section-head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px
}

.section h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 32px);
  letter-spacing: -.045em
}

.section-desc {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 16px
}

.badge {
  display: inline-flex;
  align-items: center;
  color: #080b11;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.service-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px
}

.service-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(3, 5, 8, .42)
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px
}

.service-title h3 {
  margin: 0 0 6px;
  font-size: clamp(24px, 2.3vw, 32px);
  letter-spacing: -.05em
}

.service-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  font-size: 14px;
  font-weight: 700
}

.qty-compact {
  min-width: 118px
}

.qty-compact label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 7px;
  line-height: 1.2
}

.number-box {
  width: 100%;
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0, 0, 0, .22);
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  outline: none;
}

.duration-table {
  display: grid;
  gap: 8px
}

.duration-row {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(70px, 1fr) minmax(120px, 1.1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  cursor: pointer;
  transition: .22s ease;
}

.duration-row:hover {
  background: rgba(255, 255, 255, .075);
  transform: translateY(-1px)
}

.duration-row input {
  width: 18px;
  height: 18px;
  accent-color: #d8b66a
}

.duration-row input:checked+.duration-name {
  color: var(--gold2)
}

.duration-name {
  font-weight: 950;
  font-size: 15px;
  line-height: 1.1
}

.duration-price {
  text-align: right;
  font-weight: 950;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15
}

.duration-price small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px
}

.service-mini-total {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(216, 182, 106, .22);
  background: rgba(216, 182, 106, .075);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, .82);
  font-weight: 900;
}

.service-mini-total strong {
  color: var(--gold2);
  font-variant-numeric: tabular-nums
}

.info-strip {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(216, 182, 106, .25);
  border-radius: 16px;
  background: rgba(216, 182, 106, .08);
  color: rgba(255, 255, 255, .78);
  line-height: 1.5;
  font-weight: 650;
  font-size: 14px;
}

.item-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px
}

.item-card {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 15px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  cursor: pointer;
  transition: .22s ease;
  min-height: 112px;
}

.item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .27);
  background: rgba(255, 255, 255, .075)
}

.item-card input[type=checkbox] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #d8b66a
}

.item-title {
  display: block;
  font-weight: 950;
  margin-bottom: 5px;
  line-height: 1.25
}

.item-text {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45
}

.item-price {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  font-weight: 950;
  color: var(--gold2)
}

.quantity-line {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 12px;
  align-items: center;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .08)
}

.quantity-line label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700
}

.number-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  border-radius: 18px
}

.number-row strong {
  display: block;
  margin-bottom: 4px
}

.number-row span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4
}

.summary {
  position: sticky;
  top: 94px;
  border: 1px solid rgba(216, 182, 106, .36);
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 0%, rgba(216, 182, 106, .16), transparent 38%), linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.summary-head {
  padding: 22px;
  border-bottom: 1px solid var(--line)
}

.summary-head small {
  display: block;
  color: var(--gold2);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 11px;
  font-weight: 950;
  margin-bottom: 10px
}

.summary-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.04em
}

.summary-body {
  padding: 18px 22px
}

.summary-list {
  display: grid;
  gap: 10px;
  min-height: 128px
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  animation: fadeIn .22s ease both
}

.summary-item span:first-child {
  color: var(--muted);
  line-height: 1.35;
  font-size: 14px
}

.summary-item span:last-child {
  font-weight: 950;
  white-space: nowrap;
  font-variant-numeric: tabular-nums
}

.discount-line span:last-child {
  color: var(--green)
}

.empty {
  color: var(--muted2);
  line-height: 1.5;
  padding: 8px 0 16px
}

.total-box {
  margin: 18px 0;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  color: #05070b
}

.total-mini {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  color: #555d68;
  font-weight: 800
}

.total-mini strong {
  color: #171a20;
  font-variant-numeric: tabular-nums
}

.irpf-row strong {
  color: #b04444
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, .12)
}

.total-row span {
  font-weight: 950;
  color: #3d424d;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px
}

.total {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 950;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums
}

.invoice-note {
  margin-top: 10px;
  color: #656d78;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 750
}

.summary-actions {
  display: grid;
  gap: 10px;
  padding: 0 22px 22px
}

.copy-btn,
.print-btn,
.reset-btn {
  width: 100%;
  border: 0;
  border-radius: 15px;
  padding: 14px 16px;
  font-weight: 950;
  cursor: pointer;
  transition: .22s ease
}

.copy-btn {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #080b11
}

.print-btn,
.reset-btn {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1px solid var(--line2)
}

.copy-btn:hover,
.print-btn:hover,
.reset-btn:hover {
  transform: translateY(-2px)
}

.legal {
  padding: 18px 22px 22px;
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.55;
  border-top: 1px solid var(--line)
}

.legal strong {
  color: rgba(255, 255, 255, .9)
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  padding: 14px 18px;
  border-radius: 999px;
  background: #fff;
  color: #05070b;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .38);
  font-weight: 900;
  transition: .25s ease
}

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

.internal-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 22px 80px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.internal-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, .055);
  transition: .25s ease
}

.internal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 182, 106, .5)
}

.internal-card h2 {
  margin: 0 0 10px
}

.internal-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.5
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@media(max-width:1100px) {
  .layout {
    grid-template-columns: 1fr
  }

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

@media(max-width:760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column
  }

  .nav-actions {
    width: 100%;
    overflow: auto
  }

  .hero {
    padding-top: 44px
  }

  .service-grid,
  .item-grid,
  .internal-grid {
    grid-template-columns: 1fr
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column
  }

  .service-top {
    flex-direction: column
  }

  .qty-compact {
    width: 100%
  }

  .duration-row {
    grid-template-columns: 24px 1fr 1fr
  }

  h1 {
    font-size: 40px
  }
}

@media(max-width:430px) {
  .duration-row {
    grid-template-columns: 24px 1fr;
    gap: 8px
  }

  .duration-price {
    grid-column: 2;
    text-align: left
  }
}

@media print {
  body {
    background: #fff;
    color: #000
  }

  body:before,
  .header,
  .hero-cta,
  .summary-actions,
  .toast {
    display: none !important
  }

  .layout {
    display: block;
    padding: 0
  }

  .section,
  .summary,
  .service-card,
  .item-card,
  .number-row,
  .info-strip,
  .service-mini-total,
  .trust-box {
    box-shadow: none;
    background: #fff;
    border-color: #ddd;
    color: #000
  }

  .summary {
    page-break-before: always
  }

  .total-box {
    border: 1px solid #ddd
  }
}

.discount-summary {
  min-height: 0;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(140, 230, 173, .25);
  border-radius: 16px;
  background: rgba(140, 230, 173, .06);
}

.discount-summary .summary-item:first-child {
  padding-top: 2px;
}

.discount-summary .summary-item:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.discount-total strong {
  color: #287846;
}

.total-mini.emphasized {
  margin-top: 7px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, .12);
  color: #343a43;
}

.total-mini.emphasized strong {
  font-size: 18px;
}

.tax-divider {
  height: 1px;
  margin: 9px 0 4px;
  background: rgba(0, 0, 0, .12);
}



/* Ajuste de los selectores de profesionales y jornadas */
.service-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}

.service-top .service-title {
  grid-column: 1 / -1;
}

.service-top .qty-compact {
  width: 100%;
  min-width: 0;
}

.service-top .number-box {
  min-width: 0;
}

@media(max-width:430px) {
  .service-top {
    grid-template-columns: 1fr;
  }

  .service-top .service-title {
    grid-column: 1;
  }
}


/* Código promocional y solicitud de presupuesto */
.coupon-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(216, 182, 106, .28);
  border-radius: 16px;
  background: rgba(216, 182, 106, .07);
}
.coupon-box > label { display:block; margin-bottom:9px; font-size:13px; font-weight:900; color:var(--gold2); }
.coupon-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.coupon-input, .contact-field input, .contact-field textarea {
  width:100%; border:1px solid var(--line2); border-radius:12px; padding:12px;
  background:rgba(0,0,0,.25); color:#fff; font:inherit; font-weight:750; outline:none;
}
.coupon-input { text-transform:uppercase; }
.coupon-input:focus, .contact-field input:focus, .contact-field textarea:focus { border-color:var(--gold); }
.coupon-btn { border:0; border-radius:12px; padding:0 15px; background:#fff; color:#080b11; font-weight:950; cursor:pointer; }
.coupon-message { min-height:18px; margin-top:8px; color:var(--muted); font-size:12px; font-weight:750; }
.coupon-message.success { color:var(--green); }
.coupon-message.error { color:#ff9c9c; }
.contact-btn { width:100%; border:0; border-radius:15px; padding:14px 16px; font-weight:950; cursor:pointer; transition:.22s ease; background:linear-gradient(135deg,var(--gold2),var(--gold)); color:#080b11; }
.contact-btn:hover { transform:translateY(-2px); }
.modal-backdrop { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:20px; background:rgba(0,0,0,.76); backdrop-filter:blur(10px); }
.modal-backdrop[hidden] { display:none; }
.contact-modal { width:min(580px,100%); max-height:90vh; overflow:auto; border:1px solid rgba(216,182,106,.38); border-radius:24px; padding:24px; background:#0b0f16; box-shadow:var(--shadow); }
.contact-modal-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:18px; }
.contact-modal h2 { margin:0 0 7px; font-size:28px; }
.contact-modal p { margin:0; color:var(--muted); line-height:1.5; }
.modal-close { border:1px solid var(--line2); border-radius:50%; width:38px; height:38px; background:rgba(255,255,255,.06); color:#fff; font-size:22px; cursor:pointer; }
.contact-form { display:grid; gap:14px; }
.contact-field label { display:block; margin-bottom:7px; font-size:13px; font-weight:900; }
.contact-field textarea { min-height:100px; resize:vertical; }
.contact-consent { display:flex; gap:10px; align-items:flex-start; color:var(--muted); font-size:12px; line-height:1.45; }
.contact-consent input { margin-top:2px; }
.send-email-btn { border:0; border-radius:14px; padding:14px 16px; background:linear-gradient(135deg,var(--gold2),var(--gold)); color:#080b11; font-weight:950; cursor:pointer; }
.modal-note { color:var(--muted2); font-size:11px; line-height:1.45; }
@media(max-width:430px){ .coupon-row{grid-template-columns:1fr}.coupon-btn{padding:12px}.contact-modal{padding:18px} }
@media print { .coupon-box, .contact-btn, .modal-backdrop { display:none !important; } }
