/* Contacto · Pulido premium local sin tocar global.css */
.page-hero .narrow {
  width: min(1180px, var(--container));
}

.page-hero h1 {
  max-width: 1120px;
  font-size: clamp(34px, 3.55vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.024em;
  margin-left: auto;
  margin-right: auto;
}

.page-hero p {
  max-width: 780px;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.78;
  text-align: justify;
  text-align-last: center;
  text-justify: inter-word;
  hyphens: none;
  overflow-wrap: break-word;
  margin-left: auto;
  margin-right: auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(22px, 3vw, 34px);
  align-items: stretch;
  max-width: 1120px;
}

.contact-main,
.contact-sidebar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 253, 251, .98), rgba(255, 248, 241, .94));
  border: 1px solid rgba(184, 115, 51, .22);
  box-shadow: 0 20px 54px rgba(74, 52, 40, .08);
  padding: clamp(24px, 2.7vw, 34px);
}

.contact-main::before,
.contact-sidebar::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(184, 115, 51, .14);
  pointer-events: none;
}

.contact-main::after,
.contact-sidebar::after,
.contact-method::after,
.contact-info-card::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: clamp(44px, 5vw, 70px);
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 115, 51, .04), rgba(184, 115, 51, .34));
  pointer-events: none;
}

.contact-panel-head {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(18px, 2vw, 24px);
}

.contact-panel-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--color-copper);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-panel-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(184, 115, 51, .45);
}

.contact-panel-head h2 {
  margin: 0;
  color: var(--color-brown);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(23px, 2.1vw, 31px);
  line-height: 1.16;
  letter-spacing: -0.018em;
}

.contact-panel-head p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--color-text);
  font-size: 14.5px;
  line-height: 1.72;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
}

.contact-panel-head-compact {
  margin-bottom: 16px;
}

.contact-panel-head-compact h2 {
  max-width: none;
}

@media (min-width: 921px) {
  .contact-panel-head-compact h2 {
    white-space: nowrap;
  }
}

.contact-methods,
.contact-sidebar {
  display: grid;
  gap: 14px;
}

.contact-method,
.contact-info-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(74, 52, 40, .12);
  background: linear-gradient(180deg, #fffdfb, #fff9f4);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background-color .24s ease;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 17px 20px;
  color: var(--color-text);
}

.contact-method:hover,
.contact-info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 115, 51, .34);
  box-shadow: 0 22px 48px rgba(74, 52, 40, .13);
  background: linear-gradient(180deg, #fffdfb, #fff6ee);
}

.contact-method-whatsapp[href="agenda.html"]:hover,
.contact-method-whatsapp[href="agenda.html"]:focus-visible {
  border-color: rgba(37, 211, 102, .55);
  background: linear-gradient(180deg, rgba(37, 211, 102, .12), rgba(37, 211, 102, .06));
  box-shadow: 0 22px 48px rgba(37, 211, 102, .16);
  color: #168f49;
}

.contact-method-whatsapp[href="agenda.html"]:hover svg,
.contact-method-whatsapp[href="agenda.html"]:focus-visible svg {
  color: #168f49;
  background: rgba(37, 211, 102, .16);
  border-color: rgba(37, 211, 102, .40);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42);
}

.contact-method-whatsapp[href="agenda.html"]:hover strong,
.contact-method-whatsapp[href="agenda.html"]:focus-visible strong,
.contact-method-whatsapp[href="agenda.html"]:hover span,
.contact-method-whatsapp[href="agenda.html"]:focus-visible span {
  color: #168f49;
}

.contact-method svg {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: block;
  padding: 10px;
  margin: 0;
  color: var(--color-copper);
  background: rgba(184, 115, 51, .10);
  border: 1px solid rgba(184, 115, 51, .18);
}

.contact-method>div,
.contact-info-card>div:last-child {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.contact-method div strong,
.contact-info-card h3 {
  display: block;
  color: var(--color-brown);
  margin: 0 0 4px;
  font-weight: 800;
}

.contact-method div strong {
  font-size: 14px;
  line-height: 1.25;
}

.contact-method span,
.contact-info-card p {
  color: var(--color-text);
  line-height: 1.62;
}

.contact-method span {
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.contact-method-whatsapp svg,
.contact-method-whatsapp span {
  color: #168f49;
}

.contact-method-whatsapp svg {
  background: rgba(37, 211, 102, .11);
  border-color: rgba(37, 211, 102, .24);
}

.contact-method-instagram svg,
.contact-method-instagram span {
  color: #bd3c72;
}

.contact-method-instagram svg {
  background: rgba(189, 60, 114, .09);
  border-color: rgba(189, 60, 114, .18);
}

.contact-method-location svg {
  color: var(--color-copper);
}

.contact-method-feature>div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-sidebar {
  align-content: start;
  align-self: stretch;
}

.contact-info-card {
  display: block;
  padding: clamp(24px, 2.35vw, 30px);
}

.contact-info-card h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.contact-info-card p {
  margin: 0 0 9px;
  line-height: 1.62;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: none;
  overflow-wrap: break-word;
}

.contact-info-card p:last-child {
  margin-bottom: 0;
}

/* Compatibilidad con estructuras anteriores si reaparecen */
.icon-wrap {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(184, 115, 51, .11);
  color: var(--color-copper);
  flex: 0 0 42px;
  border: 1px solid rgba(184, 115, 51, .20);
}

.agenda-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 2.5vw, 30px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
  gap: 24px;
  align-items: center;
}

.agenda-copy h2 {
  margin-top: 0;
}

.agenda-points {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.agenda-points li::before {
  content: "•";
  color: var(--color-copper);
  margin-right: 10px;
}

@media (max-width: 920px) {
  .contact-layout,
  .agenda-panel {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .contact-sidebar {
    align-self: auto;
  }
}

@media (max-width: 680px) {
  .page-hero h1 {
    font-size: clamp(32px, 9.5vw, 44px);
  }

  .page-hero p {
    text-align: center;
    text-align-last: center;
  }

  .contact-panel-head p,
  .contact-info-card p {
    text-align: left;
    text-align-last: left;
  }

  .contact-main,
  .contact-sidebar,
  .agenda-panel {
    padding: 22px;
  }

  .contact-main::before,
  .contact-sidebar::before {
    inset: 7px;
  }

  .contact-method,
  .contact-info-card {
    padding: 18px;
  }

  .contact-method {
    gap: 12px;
  }

  .contact-method svg {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    padding: 9px;
  }
}

@media (max-width: 420px) {
  .contact-main,
  .contact-sidebar,
  .agenda-panel,
  .contact-method,
  .contact-info-card {
    padding: 18px;
  }

  .contact-panel-label {
    letter-spacing: .14em;
  }
}

/* Contacto · respuesta visual táctil y accesibilidad */
@media (hover: none) {
  .contact-method:active,
  .contact-info-card:active {
    border-color: rgba(184, 115, 51, .34);
    box-shadow: 0 16px 34px rgba(74, 52, 40, .10);
  }

  .contact-method-whatsapp[href="agenda.html"]:active {
    border-color: rgba(37, 211, 102, .55);
    background: linear-gradient(180deg, rgba(37, 211, 102, .12), rgba(37, 211, 102, .06));
    box-shadow: 0 16px 34px rgba(37, 211, 102, .14);
    color: #168f49;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-method,
  .contact-info-card {
    transition: none;
  }

  .contact-method:hover,
  .contact-info-card:hover {
    transform: none;
  }
}
