/* Button layout must not override the native hidden state of form actions. */
#la-lead-form [hidden] { display: none !important; }

.floating-contact {
  position: fixed;
  z-index: 85;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: min(calc(100% - 32px), 460px);
  padding: 8px;
  border: 1px solid rgba(7, 31, 51, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 52px rgba(2, 25, 42, .24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 40px));
  transition: opacity .22s ease, transform .28s ease;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.floating-contact.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.floating-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  transition: transform .18s ease, filter .18s ease;
}

.floating-contact-button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.floating-contact-button:focus-visible { outline: 3px solid rgba(36, 185, 231, .5); outline-offset: 3px; }
.floating-contact-button svg { width: 24px; height: 24px; fill: currentColor; flex: 0 0 auto; }
.floating-contact-call { background: #0c3552; }
.floating-contact-whatsapp { background: #18a957; }
.floating-contact-whatsapp svg path:first-child {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Keep the modal eyebrow clear of the close control on narrow screens. */
.lead-modal > .eyebrow {
  display: block;
  max-width: calc(100% - 58px);
  padding-right: 0;
  line-height: 1.55;
  white-space: normal;
}
.lead-modal > .eyebrow::before {
  display: inline-block;
  margin: 0 10px 3px 0;
  vertical-align: middle;
}

@media (max-width: 580px) {
  .floating-contact {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    padding: 7px;
  }
  .floating-contact-button { min-height: 54px; padding-inline: 12px; font-size: .95rem; }
  .lead-modal > .eyebrow { max-width: calc(100% - 50px); }
  .lead-modal > .modal-close { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-contact { transition: none; }
}
.privacy-summary{font-size:.9rem;line-height:1.6;color:#526b79;overflow-wrap:anywhere;margin:1rem 0;}
/* Tarifas de transporte por zona */
.transport-section{background:#f2f8fb;}
.transport-heading{display:flex;justify-content:space-between;align-items:end;gap:2rem;margin-bottom:2rem;}
.transport-heading>div{max-width:46rem;}
.transport-heading h2{margin:.35rem 0 0;}
.transport-heading>p{max-width:28rem;margin:0;color:#60798b;font-size:1.08rem;}
.transport-layout{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.28fr);gap:1.5rem;align-items:stretch;}
.transport-map-card,.transport-table-card{overflow:hidden;margin:0;border:1px solid #d8e7ee;border-radius:1.75rem;background:#fff;box-shadow:0 1rem 2.5rem rgba(4,37,57,.08);}
.transport-map-card{display:flex;flex-direction:column;justify-content:flex-start;padding:1.5rem;}
.transport-geographic-map{display:block;width:100%;height:auto;max-width:42rem;margin:0 auto;overflow:visible;font-family:inherit;}
.transport-map-bg{fill:#f7fbfd;}
.transport-zone-shape{stroke:rgba(255,255,255,.88);stroke-width:4;stroke-linejoin:round;}
.transport-zone-shape.zone-four{fill:#9bdcf7;}.transport-zone-shape.zone-three{fill:#f58b87;}.transport-zone-shape.zone-two{fill:#ff9d45;}.transport-zone-shape.zone-one{fill:#ffe052;}.transport-zone-shape.zone-local{fill:#86db52;}
.transport-map-roads path{fill:none;stroke:rgba(255,255,255,.82);stroke-width:5;stroke-linecap:round;stroke-dasharray:12 8;}
.transport-map-route-labels text{fill:#07529b;font-size:12px;font-weight:900;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round;}
.map-town circle{fill:#08283d;stroke:#fff;stroke-width:2;}.map-town text{fill:#08283d;font-size:14px;font-weight:850;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round;}.map-town--minor text{font-size:12px;font-weight:760;}.map-town--capital text{font-size:18px;font-weight:900;}
.transport-map-pin path{fill:#e52236;stroke:#fff;stroke-width:4;}.transport-map-pin circle{fill:#fff;}
.transport-map-home-label rect{fill:#0a762e;stroke:#fff;stroke-width:3;}.transport-map-home-label text{fill:#fff;font-size:18px;font-weight:900;letter-spacing:.01em;}.transport-map-home-label .transport-map-home-sub{font-size:11px;letter-spacing:.09em;}
.transport-map-badges rect{stroke:#fff;stroke-width:3;}.transport-map-badges>g:nth-child(1) rect{fill:#168dcc;}.transport-map-badges>g:nth-child(2) rect{fill:#e62f3a;}.transport-map-badges>g:nth-child(3) rect{fill:#f27b11;}.transport-map-badges>g:nth-child(4) rect{fill:#f2c900;}.transport-map-badges text{fill:#fff;font-size:15px;font-weight:900;letter-spacing:.03em;}.transport-map-badges>g:nth-child(4) text{fill:#09263a;}
@media(max-width:620px){.transport-map-card{padding:.8rem;}.transport-geographic-map{max-width:none;}.map-town--minor{display:none;}.map-town text{font-size:16px;stroke-width:5px;}.map-town--capital text{font-size:19px;}.transport-map-badges text{font-size:16px;}.transport-map-route-labels{display:none;}.transport-map-home-label text{font-size:20px;}.transport-map-home-label .transport-map-home-sub{font-size:12px;}}
.transport-map-card figcaption{margin:1rem 0 0;color:#526b79;font-size:.82rem;line-height:1.5;text-align:center;}
.transport-table-card{padding:1.6rem;}
.transport-table-card h3{margin:0 0 .25rem;font-size:1.55rem;}
.transport-table-card>p{margin:0 0 1.1rem;color:#60798b;}
.transport-table{width:100%;border-collapse:separate;border-spacing:0 .5rem;}
.transport-table thead th{text-align:left;padding:0 .7rem .45rem;color:#456171;font-size:.78rem;line-height:1.2;}
.transport-table thead th:not(:first-child),.transport-table td{text-align:right;}
.transport-table tbody th,.transport-table td{padding:.82rem .7rem;background:#f6fafc;border-top:1px solid #e1ebf0;border-bottom:1px solid #e1ebf0;font-weight:750;}
.transport-table tbody th{border-left:.38rem solid var(--transport-zone);border-radius:.85rem 0 0 .85rem;text-align:left;}
.transport-table td:last-child{border-right:1px solid #e1ebf0;border-radius:0 .85rem .85rem 0;}
.transport-table tbody th strong,.transport-table tbody th small{display:block;}
.transport-table tbody th small{margin-top:.05rem;color:#60798b;font-size:.78rem;font-weight:600;}
.transport-table .zone-local{--transport-zone:#63d227;}.transport-table .zone-one{--transport-zone:#ffd400;}.transport-table .zone-two{--transport-zone:#ff7900;}.transport-table .zone-three{--transport-zone:#ff303b;}.transport-table .zone-four,.transport-table .zone-madrid{--transport-zone:#28aee9;}.transport-table .zone-outside{--transport-zone:#9ca4aa;}
.transport-notes{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;margin-top:1.1rem;}
.transport-notes>div{padding:.8rem .9rem;border-radius:.85rem;background:#eaf6fb;color:#405e6f;font-size:.8rem;line-height:1.4;}
.transport-notes strong,.transport-notes span{display:block;}.transport-notes strong{margin-bottom:.12rem;color:#09263a;}
.transport-cta{margin-top:1.1rem;}
@media(max-width:900px){
.transport-heading{display:block;}.transport-heading>p{margin-top:1rem;}.transport-layout{grid-template-columns:1fr;}.transport-geographic-map{max-width:40rem;}.transport-table-card{padding:1.35rem;}
}
@media(max-width:620px){
.transport-heading h2{font-size:2.45rem;}.transport-map-card,.transport-table-card{border-radius:1.35rem;}.transport-table-card{padding:1.15rem .9rem;}.transport-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}.transport-table,.transport-table tbody,.transport-table tr,.transport-table tbody th,.transport-table td{display:block;width:100%;}.transport-table{border-spacing:0;}.transport-table tr{margin:0 0 .75rem;border:1px solid #d8e7ee;border-left:.38rem solid var(--transport-zone);border-radius:1rem;overflow:hidden;background:#fff;}.transport-table tbody th,.transport-table td,.transport-table td:last-child{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.85rem;align-items:center;padding:.64rem .75rem;border:0;border-bottom:1px solid #e7eff3;border-radius:0;background:#fff;text-align:right;}.transport-table tbody th{padding-top:.85rem;padding-bottom:.85rem;background:#f4f9fb;text-align:left;}.transport-table td:last-child{border-bottom:0;}.transport-table td::before{content:attr(data-label);color:#60798b;font-size:.78rem;font-weight:650;text-align:left;}.transport-notes{grid-template-columns:1fr;}.transport-cta{display:flex;width:100%;justify-content:center;}
}
/* Button layout must not override the native hidden state of form actions. */
#la-lead-form [hidden] { display: none !important; }

.floating-contact {
  position: fixed;
  z-index: 85;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: min(calc(100% - 32px), 460px);
  padding: 8px;
  border: 1px solid rgba(7, 31, 51, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 52px rgba(2, 25, 42, .24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 40px));
  transition: opacity .22s ease, transform .28s ease;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.floating-contact.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.floating-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  transition: transform .18s ease, filter .18s ease;
}

.floating-contact-button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.floating-contact-button:focus-visible { outline: 3px solid rgba(36, 185, 231, .5); outline-offset: 3px; }
.floating-contact-button svg { width: 24px; height: 24px; fill: currentColor; flex: 0 0 auto; }
.floating-contact-call { background: #0c3552; }
.floating-contact-whatsapp { background: #18a957; }
.floating-contact-whatsapp svg path:first-child {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Keep the modal eyebrow clear of the close control on narrow screens. */
.lead-modal > .eyebrow {
  display: block;
  max-width: calc(100% - 58px);
  padding-right: 0;
  line-height: 1.55;
  white-space: normal;
}
.lead-modal > .eyebrow::before {
  display: inline-block;
  margin: 0 10px 3px 0;
  vertical-align: middle;
}

@media (max-width: 580px) {
  .floating-contact {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    padding: 7px;
  }
  .floating-contact-button { min-height: 54px; padding-inline: 12px; font-size: .95rem; }
  .lead-modal > .eyebrow { max-width: calc(100% - 50px); }
  .lead-modal > .modal-close { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-contact { transition: none; }
}
.privacy-summary{font-size:.9rem;line-height:1.6;color:#526b79;overflow-wrap:anywhere;margin:1rem 0;}
