/* ============================================================
   GESTIÓN DE INFRACCIONES - PÁGINA DE ACCESOS / CONTACTO
   Reutiliza la paleta y variables del style.css principal.
   ============================================================ */

.contacto-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at -4% -2%, rgba(156, 144, 133, 0.16) 0 130px, transparent 131px),
    radial-gradient(circle at 104% 103%, rgba(156, 144, 133, 0.13) 0 180px, transparent 181px),
    linear-gradient(180deg, #fff 0%, #fff 72%, #faf8f5 100%);
}

.contacto-shell {
  width: min(100% - 28px, 760px);
  margin-inline: auto;
  padding: 34px 0 42px;
}

.contacto-card {
  width: 100%;
}

.contacto-brand {
  text-align: center;
}

.contacto-brand a {
  display: inline-flex;
  justify-content: center;
}

.contacto-brand img {
  width: min(76vw, 350px);
  height: auto;
}

.contacto-eyebrow {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contacto-heading {
  margin: 28px 0 22px;
  text-align: center;
}

.contacto-heading h1 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: clamp(33px, 7vw, 50px);
  font-weight: 830;
  letter-spacing: -0.045em;
}

.contacto-heading p {
  margin: 0;
  color: #4f4b47;
  font-size: clamp(15px, 3.8vw, 20px);
}

.contacto-hero {
  height: clamp(210px, 42vw, 330px);
  margin: 0 0 18px;
  overflow: hidden;
  background: var(--sand-2);
  border: 1px solid #ded7cf;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.contacto-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.contacto-links {
  display: grid;
  gap: 10px;
}

.contacto-link {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  padding: 12px 17px 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #ded8d2;
  border-radius: 17px;
  box-shadow: 0 8px 24px rgba(35, 28, 22, 0.055);
  cursor: pointer;
  text-align: left;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.contacto-link:hover {
  transform: translateY(-2px);
  border-color: #c8beb5;
  box-shadow: 0 12px 28px rgba(35, 28, 22, 0.09);
}

.contacto-link:focus-visible {
  outline: 3px solid rgba(32, 185, 87, 0.24);
  outline-offset: 3px;
}

.contacto-link--button {
  appearance: none;
  font: inherit;
}

.contacto-link__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-right: 1px solid #d8d1ca;
}

.contacto-link__icon svg {
  width: 31px;
  height: 31px;
  fill: #141414;
}

.contacto-link__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacto-link__copy strong {
  color: inherit;
  font-size: clamp(17px, 4.1vw, 22px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.contacto-link__copy small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #716a64;
  font-size: clamp(12px, 3.2vw, 15px);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contacto-link__arrow {
  justify-self: end;
  color: #111;
  font-size: 40px;
  font-weight: 350;
  line-height: 1;
  transform: translateY(-1px);
}

.contacto-link--whatsapp {
  color: #fff;
  background: linear-gradient(135deg, #20b957, #18a74c);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 11px 25px rgba(32, 185, 87, 0.2);
}

.contacto-link--whatsapp:hover {
  background: linear-gradient(135deg, #22c15c, #179c47);
  border-color: rgba(255, 255, 255, 0.4);
}

.contacto-link--whatsapp .contacto-link__icon {
  border-color: rgba(255, 255, 255, 0.35);
}

.contacto-link--whatsapp .contacto-link__icon svg {
  fill: currentColor;
}

.contacto-link--whatsapp .contacto-link__copy small,
.contacto-link--whatsapp .contacto-link__arrow {
  color: rgba(255, 255, 255, 0.92);
}

.contacto-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 27px;
  padding: 24px 3px;
  border-top: 1px solid #ddd6cf;
  border-bottom: 1px solid #ddd6cf;
}

.contacto-meta__item {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  border-right: 1px solid #ddd6cf;
}

.contacto-meta__item:first-child {
  padding-left: 7px;
}

.contacto-meta__item:last-child {
  padding-right: 7px;
  border-right: 0;
}

.contacto-meta__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.contacto-meta__icon svg {
  width: 31px;
  height: 31px;
  fill: var(--ink);
}

.contacto-meta__item strong,
.contacto-meta__item small {
  display: block;
}

.contacto-meta__item strong {
  color: #24211f;
  font-size: 13px;
  line-height: 1.15;
}

.contacto-meta__item small {
  margin-top: 3px;
  color: #746d67;
  font-size: 11px;
  line-height: 1.18;
}

.contacto-footer {
  padding: 25px 10px 0;
  text-align: center;
}

.contacto-footer p,
.contacto-footer a,
.contacto-footer small {
  display: block;
}

.contacto-footer__brand {
  margin-bottom: 5px;
  color: #5d5650;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.26em;
}

.contacto-footer a {
  color: #8a8179;
  font-size: 14px;
}

.contacto-footer > p:not(.contacto-footer__brand) {
  margin: 2px 0 9px;
  color: #8a8179;
  font-size: 13px;
}

.contacto-footer small {
  max-width: 530px;
  margin-inline: auto;
  color: #948b83;
  font-size: 10px;
  line-height: 1.35;
}

/* El acceso principal de esta página abre el mismo chatbot del proyecto.
   Ocultamos el botón flotante para no duplicar CTAs en pantalla. */
.contacto-page .contacto-hidden-chat-toggle {
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.contacto-page .chatbot-panel {
  z-index: 3000;
}

@media (max-width: 620px) {
  .contacto-shell {
    width: min(100% - 22px, 520px);
    padding-top: 25px;
  }

  .contacto-brand img {
    width: min(78vw, 310px);
  }

  .contacto-eyebrow {
    font-size: 9px;
    letter-spacing: 0.17em;
  }

  .contacto-heading {
    margin: 22px 0 18px;
  }

  .contacto-heading h1 {
    font-size: clamp(30px, 10vw, 39px);
  }

  .contacto-hero {
    height: 225px;
    border-radius: 15px;
  }

  .contacto-link {
    min-height: 76px;
    grid-template-columns: 58px minmax(0, 1fr) 24px;
    gap: 10px;
    padding: 10px 13px 10px 11px;
    border-radius: 15px;
  }

  .contacto-link__icon {
    width: 50px;
    height: 48px;
  }

  .contacto-link__icon svg {
    width: 27px;
    height: 27px;
  }

  .contacto-link__copy strong {
    font-size: 17px;
  }

  .contacto-link__copy small {
    font-size: 12px;
  }

  .contacto-link__arrow {
    font-size: 32px;
  }

  .contacto-meta {
    gap: 0;
    padding: 20px 0;
  }

  .contacto-meta__item {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 7px;
    padding: 0 10px;
    text-align: center;
  }

  .contacto-meta__item:first-child,
  .contacto-meta__item:last-child {
    padding-inline: 10px;
  }

  .contacto-meta__item strong {
    font-size: 11px;
  }

  .contacto-meta__item small {
    display: none;
  }
}

@media (max-width: 390px) {
  .contacto-link__copy small {
    max-width: 220px;
  }

  .contacto-meta__item {
    padding-inline: 6px;
  }

  .contacto-meta__item strong {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contacto-link {
    transition: none;
  }
}
