/* ==========================================================
   components.css — botones, tarjetas, mockup, packs, FAQ, form
   ========================================================== */

/* Botones */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 0.95rem var(--f-text);
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.3s,
    background-color 0.25s,
    border-color 0.25s;
}
.btn:active {
  transform: scale(0.97);
}
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn--primary {
  background: var(--grad);
  color: #04101f;
  box-shadow: 0 8px 28px -8px rgba(76, 141, 255, 0.6);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px rgba(52, 211, 153, 0.55);
}
.btn--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
}
.btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 0.9rem;
}
.btn--block {
  width: 100%;
}

/* Tarjetas genéricas */
.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    transform 0.4s var(--ease),
    border-color 0.3s,
    box-shadow 0.4s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(76, 141, 255, 0.5);
  box-shadow: 0 24px 50px -26px rgba(76, 141, 255, 0.55);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 18px;
  background: rgba(76, 141, 255, 0.14);
  color: var(--blue);
}
.card__icon svg {
  width: 22px;
  height: 22px;
}
.card:nth-child(2) .card__icon {
  background: rgba(52, 211, 153, 0.14);
  color: var(--green);
}
.card:nth-child(3) .card__icon {
  background: rgba(251, 188, 4, 0.14);
  color: var(--yellow);
}
.card h3 {
  font: 600 1.15rem var(--f-display);
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 0.97rem;
}
.card .pain {
  display: block;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 0.9rem;
}

/* Mockup de tarjeta NFC (solo CSS) */
.mockup {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}
.nfc-card {
  position: relative;
  width: min(340px, 86%);
  aspect-ratio: 1.586;
  border-radius: 20px;
  padding: 22px;
  background: linear-gradient(145deg, #1b2745, #0d1426 70%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(76, 141, 255, 0.12);
  transform: rotate(-7deg);
  animation: flota 6s ease-in-out infinite;
}
.nfc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 60%
  );
}
.nfc-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nfc-card__g {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  font: 700 1.35rem var(--f-display);
  background-image: conic-gradient(
    from -45deg,
    var(--red) 0 25%,
    var(--yellow) 0 50%,
    var(--green) 0 75%,
    var(--blue) 0
  );
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.nfc-card__waves {
  width: 34px;
  height: 34px;
  color: var(--green);
}
.nfc-card__stars {
  position: absolute;
  left: 22px;
  bottom: 56px;
  color: var(--yellow);
  letter-spacing: 4px;
  font-size: 1.3rem;
}
.nfc-card__txt {
  position: absolute;
  left: 22px;
  bottom: 22px;
  font: 600 0.95rem var(--f-display);
}
.nfc-card__qr {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background:
    conic-gradient(#fff 25%, transparent 0 50%, #fff 0 75%, transparent 0) 0 0/11px 11px,
    #0d1426;
  border: 3px solid #fff;
}
.phone {
  position: absolute;
  right: 2%;
  bottom: 0;
  width: 150px;
  height: 270px;
  border-radius: 26px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, #10182c, #0a0f1e);
  padding: 14px;
  transform: rotate(6deg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  animation: toca 6s ease-in-out infinite;
}
.phone__bar {
  height: 6px;
  width: 40%;
  margin: 0 auto 18px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
}
.phone__row {
  height: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
}
.phone__row--s {
  width: 60%;
}
.phone__rate {
  margin-top: 18px;
  text-align: center;
  color: var(--yellow);
  font-size: 1.1rem;
  letter-spacing: 3px;
}
.pulse {
  position: absolute;
  right: 16%;
  top: 30%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0;
  animation: pulso 3s ease-out infinite;
}
.pulse:nth-of-type(2) {
  animation-delay: 1s;
}
@keyframes flota {
  0%,
  100% {
    transform: rotate(-7deg) translateY(0);
  }
  50% {
    transform: rotate(-7deg) translateY(-12px);
  }
}
@keyframes toca {
  0%,
  100% {
    transform: rotate(6deg) translate(0, 0);
  }
  50% {
    transform: rotate(6deg) translate(-26px, -12px);
  }
}
@keyframes pulso {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Packs */
.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    transform 0.4s var(--ease),
    border-color 0.3s,
    box-shadow 0.3s;
}
.pack:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 30px 60px -30px rgba(52, 211, 153, 0.5);
}
.pack--featured {
  border-color: rgba(76, 141, 255, 0.7);
  background: linear-gradient(180deg, rgba(76, 141, 255, 0.14), var(--surface) 55%);
  box-shadow: 0 30px 70px -30px rgba(76, 141, 255, 0.55);
}
.pack__badge {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--grad);
  color: #04101f;
  font: 700 0.78rem var(--f-text);
}
.pack h3 {
  font: 700 1.3rem var(--f-display);
}
.pack__units {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 2px;
}
.pack__price {
  margin-top: 22px;
  font: 800 3rem/1 var(--f-display);
  letter-spacing: -0.04em;
}
.pack__price small {
  font: 500 0.95rem var(--f-text);
  color: var(--muted);
  letter-spacing: 0;
}
.pack__margin {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 600;
  width: fit-content;
}
.pack__list {
  display: grid;
  gap: 11px;
  margin: 24px 0 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  flex: 1;
}
.pack__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pack__list svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--green);
}

/* Rango (calculadora) */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  outline-offset: 6px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--blue);
  cursor: pointer;
  transition: transform 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--blue);
  cursor: pointer;
}

/* FAQ */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq__item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq__item.is-open {
  border-color: rgba(76, 141, 255, 0.5);
}
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: 600 1rem var(--f-display);
}
.faq__q svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.35s var(--ease);
}
.faq__item.is-open .faq__q svg {
  transform: rotate(45deg);
  color: var(--blue);
}
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}
.faq__a > div {
  overflow: hidden;
}
.faq__a p {
  padding: 0 22px 22px;
  color: var(--muted);
}

/* Formulario */
.form {
  display: grid;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-weight: 400;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field textarea {
  min-height: 100px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.25);
}
.field.is-invalid input,
.field.is-invalid select {
  border-color: var(--red);
}
.field__err {
  display: none;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 500;
}
.field.is-invalid .field__err {
  display: block;
}
.form__status {
  min-height: 22px;
  font-size: 0.92rem;
  color: var(--green);
}
.form__legal {
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .form__row {
    grid-template-columns: 1fr;
  }
  .mockup {
    min-height: 320px;
  }
  .phone {
    width: 120px;
    height: 220px;
  }
}

/* ==========================================================
   V2 — microinteracciones y componentes nuevos
   ========================================================== */

/* Botones: destello al pasar el ratón */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.btn--primary:hover::after {
  transform: translateX(120%);
}
.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
}
.btn--ghost:hover {
  transform: translateY(-2px);
}
.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}
.btn--danger {
  border-color: rgba(242, 96, 90, 0.4);
  color: var(--red);
  background: rgba(242, 96, 90, 0.06);
}
.btn--danger:hover {
  background: rgba(242, 96, 90, 0.14);
  border-color: var(--red);
}

/* Tarjetas: foco de luz que sigue al cursor (variables --mx/--my desde main.js) */
.card::before,
.step::before {
  pointer-events: none;
}
.card::after,
.pack::after,
.kpi::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(76, 141, 255, 0.14),
    transparent 60%
  );
}
.card:hover::after,
.pack:hover::after,
.kpi:hover::after {
  opacity: 1;
}
.step {
  transition:
    transform 0.4s var(--ease),
    border-color 0.3s,
    box-shadow 0.4s;
}
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(76, 141, 255, 0.4);
}
.material {
  transition:
    transform 0.35s var(--ease),
    border-color 0.3s;
}
.material:hover {
  transform: translateX(6px);
  border-color: rgba(76, 141, 255, 0.4);
}
.stat {
  transition: background-color 0.3s;
}
.stat:hover {
  background: rgba(76, 141, 255, 0.07);
}
.compare tbody tr {
  transition: background-color 0.25s;
}
.compare tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.card__icon {
  transition: transform 0.4s var(--ease);
}
.card:hover .card__icon {
  transform: scale(1.1) rotate(-4deg);
}

/* Precios: etiqueta de producto */
.pack__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 99px;
  font: 600 0.8rem var(--f-text);
  background: rgba(76, 141, 255, 0.14);
  color: var(--blue);
  width: fit-content;
}
.pack--acrylic .pack__tag {
  background: rgba(251, 188, 4, 0.14);
  color: var(--yellow);
}
.packs--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
  margin-inline: auto;
}
@media (max-width: 640px) {
  .packs--2 {
    grid-template-columns: 1fr;
  }
}

/* Acordeón: icono y respuesta ya animados; añade foco visible */
.faq__q:hover {
  color: var(--blue);
}
.faq__q {
  transition: color 0.2s;
}

/* Pestañas */
.tabs {
  position: relative;
}
.tab {
  transition:
    color 0.2s,
    background-color 0.25s,
    box-shadow 0.25s;
}
.tab:hover {
  color: var(--text);
}
.tabpanel:not([hidden]) {
  animation: entra 0.45s var(--ease) both;
}

/* Badges de estado */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  font: 600 0.78rem var(--f-text);
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge--ok {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.3);
}
.badge--wait {
  background: rgba(251, 188, 4, 0.12);
  color: var(--yellow);
  border-color: rgba(251, 188, 4, 0.3);
}
.badge--ship {
  background: rgba(76, 141, 255, 0.14);
  color: var(--blue);
  border-color: rgba(76, 141, 255, 0.35);
}
.badge--live::before {
  animation: latido 1.8s ease-in-out infinite;
}
@keyframes latido {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.6);
  }
}

/* Tabla de datos */
.data-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 0.92rem;
}
.data th {
  padding: 14px 18px;
  text-align: left;
  font: 600 0.82rem var(--f-text);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data tbody tr {
  transition: background-color 0.2s;
}
.data tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}
.data tbody tr:last-child td {
  border-bottom: 0;
}
.data .biz {
  font-weight: 600;
}
.data .sub {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}
.data .lnk {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font:
    500 0.8rem ui-monospace,
    Consolas,
    monospace;
}
.data .acts {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.data .empty {
  padding: 44px 18px;
  text-align: center;
  color: var(--muted);
}
.data tr.is-new {
  animation: nueva 1.6s var(--ease);
}
@keyframes nueva {
  from {
    background: rgba(52, 211, 153, 0.25);
  }
  to {
    background: transparent;
  }
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  color: var(--muted);
  transition:
    color 0.2s,
    border-color 0.2s,
    background-color 0.2s,
    transform 0.25s var(--ease);
}
.icon-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.icon-btn svg {
  width: 16px;
  height: 16px;
}
.icon-btn[title] {
  position: relative;
}

/* Modal (<dialog>) con transición */
.modal {
  width: min(560px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--text);
  overflow: auto;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition:
    opacity 0.3s var(--ease),
    transform 0.35s var(--ease);
}
.modal.is-open {
  opacity: 1;
  transform: none;
}
.modal::backdrop {
  background: rgba(4, 7, 14, 0);
  backdrop-filter: blur(0);
  transition:
    background-color 0.3s,
    backdrop-filter 0.3s;
}
.modal.is-open::backdrop {
  background: rgba(4, 7, 14, 0.72);
  backdrop-filter: blur(6px);
}
.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px 26px 0;
}
.modal__head h2 {
  font: 700 1.3rem var(--f-display);
  letter-spacing: -0.02em;
}
.modal__body {
  padding: 20px 26px 26px;
  display: grid;
  gap: 16px;
}
.modal__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}
.modal .form {
  padding: 0;
  border: 0;
  background: none;
}
.modal--center .modal__body {
  justify-items: center;
  text-align: center;
}

/* Avisos (toast) */
.toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: grid;
  gap: 10px;
  justify-items: end;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(380px, calc(100vw - 36px));
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: var(--bg-2);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  font-size: 0.92rem;
  animation: toastIn 0.45s var(--ease) both;
}
.toast svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--green);
}
.toast--err {
  border-color: rgba(242, 96, 90, 0.5);
}
.toast--err svg {
  color: var(--red);
}
.toast.is-out {
  animation: toastOut 0.3s ease forwards;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

/* Menú desplegable (perfil) */
.dropdown {
  position: relative;
}
.dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition:
    opacity 0.25s var(--ease),
    transform 0.3s var(--ease),
    visibility 0s 0.3s;
}
.dropdown.is-open .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.dropdown__menu a,
.dropdown__menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.92rem;
  color: var(--muted);
  transition:
    background-color 0.2s,
    color 0.2s;
}
.dropdown__menu a:hover,
.dropdown__menu button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}
.dropdown__menu svg {
  width: 16px;
  height: 16px;
}
.dropdown__head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.dropdown__head b {
  display: block;
  font-size: 0.95rem;
}
.dropdown__head span {
  color: var(--muted);
  font-size: 0.82rem;
  word-break: break-all;
}

/* Herramienta Place ID */
.finder {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: start;
}
.finder__panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.finder__panel h2 {
  font: 700 1.2rem var(--f-display);
  margin-bottom: 6px;
}
.finder__lead {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 18px;
}
.place-slot {
  min-height: 52px;
}
.place-slot gmp-place-autocomplete {
  width: 100%;
  color-scheme: dark;
  --gmp-mat-color-surface: #0e1322;
  --gmp-mat-color-on-surface: #eef1f8;
  --gmp-mat-color-outline: rgba(255, 255, 255, 0.18);
}
.result {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: var(--radius);
  background: rgba(52, 211, 153, 0.07);
  animation: entra 0.5s var(--ease) both;
}
.result[hidden] {
  display: none;
}
.result__biz {
  font: 700 1.15rem var(--f-display);
}
.result__addr {
  color: var(--muted);
  font-size: 0.9rem;
}
.kv {
  display: grid;
  gap: 6px;
}
.kv span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.kv code {
  display: block;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  word-break: break-all;
  font:
    500 0.82rem/1.5 ui-monospace,
    Consolas,
    monospace;
}
.result .qr {
  justify-self: start;
  margin-top: 0;
}
.qr img,
.qr canvas {
  display: block;
}
.empty-state {
  display: grid;
  gap: 10px;
  place-items: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-state svg {
  width: 30px;
  height: 30px;
  color: var(--blue);
}
.lock {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.lock .card__icon {
  margin-inline: auto;
}
@media (max-width: 860px) {
  .finder {
    grid-template-columns: 1fr;
  }
}

/* Login / registro */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.seg button {
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font: 600 0.92rem var(--f-text);
  cursor: pointer;
  transition:
    background-color 0.25s,
    color 0.25s;
}
.seg button.is-active {
  background: var(--bg);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.authpane[hidden] {
  display: none;
}
.authpane:not([hidden]) {
  animation: entra 0.45s var(--ease) both;
}

/* Buscar sin API key: mapa embebido */
.mapsearch {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.mapsearch .btn {
  height: 46px;
}
.mapframe {
  margin: 16px 0;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
}
.mapframe iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  animation: entra 0.5s var(--ease) both;
}
.mapframe__empty {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.mapframe__empty svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
}
.kl-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}
.kl-step p {
  flex: 1 1 260px;
}
.kl-step strong {
  color: var(--text);
}
@media (max-width: 520px) {
  .mapsearch {
    grid-template-columns: 1fr;
  }
}

/* ===== Producción: protección, cookies, legal, formularios ===== */
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input,
textarea,
select,
[contenteditable],
.allow-select,
code {
  -webkit-user-select: text;
  user-select: text;
}
img,
svg {
  -webkit-user-drag: none;
}
.cc {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}
.cc__card {
  pointer-events: auto;
  width: min(560px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: 0 24px 60px -20px #000;
}
.cc h2 {
  font: 700 1.1rem var(--f-display);
  margin-bottom: 8px;
}
.cc p {
  color: var(--muted);
  font-size: 0.92rem;
}
.cc a {
  color: var(--blue);
  text-decoration: underline;
}
.cc__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.cc__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.cc__row small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}
.cc [hidden] {
  display: none;
}
.legal {
  max-width: 780px;
}
.legal h2 {
  font: 700 1.25rem var(--f-display);
  margin: 28px 0 8px;
}
.legal p,
.legal li {
  color: var(--muted);
  margin-bottom: 10px;
}
.legal ul {
  list-style: disc;
  padding-left: 22px;
}
.legal a {
  color: var(--blue);
  text-decoration: underline;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.legal th,
.legal td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--muted);
}
.footer__bottom .legal-links a {
  display: inline;
  margin-left: 14px;
}
.field--check {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--muted);
}
.field--check input {
  margin-top: 4px;
  flex: none;
}
.field--check a {
  color: var(--blue);
  text-decoration: underline;
}
.field--check .field__err {
  display: none;
  flex: 1 1 100%;
}
.field--check.is-invalid .field__err {
  display: block;
  color: var(--red);
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.form__status.is-ok {
  color: var(--green);
}
.form__status.is-err {
  color: var(--red);
}
button[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}

/* Cookies v2: animación y toggles */
.cc {
  justify-content: flex-start;
  padding: 20px;
}
.cc__card {
  box-shadow:
    0 30px 80px -20px #000,
    0 0 0 1px rgba(76, 141, 255, 0.15);
  animation: ccIn 0.6s var(--ease) both;
  transform-origin: bottom left;
  background: linear-gradient(160deg, var(--bg-2), var(--surface));
}
.cc.is-out .cc__card {
  animation: ccOut 0.3s ease-in both;
}
.cc [data-v]:not([hidden]) {
  animation: ccFade 0.35s var(--ease) both;
}
.cc__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cc__head h2 {
  margin: 0;
}
.cc__ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(251, 188, 4, 0.14);
  font-size: 1.3rem;
  animation: ccWob 2.4s ease-in-out 0.8s 2;
}
.cc__row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 44px;
  height: 24px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
  cursor: pointer;
  transition: background 0.25s;
}
.cc__row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s var(--ease);
}
.cc__row input[type="checkbox"]:checked {
  background: var(--green);
}
.cc__row input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}
.cc__row input[type="checkbox"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
@keyframes ccIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ccOut {
  to {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
}
@keyframes ccFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ccWob {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-12deg);
  }
  75% {
    transform: rotate(12deg);
  }
}
@media (max-width: 640px) {
  .cc {
    padding: 10px;
  }
}
