/* School contact channels, location and community support. */
.contact-grid {
  grid-template-columns: 1fr 1.08fr;
  align-items: stretch;
  gap: 25px;
}

.contact-panel {
  padding: clamp(25px, 3vw, 40px);
  border-radius: 26px;
  box-shadow: 0 15px 45px #102b5010;
}

.contact-panel > h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
}

.contact-panel .contact-row {
  gap: 16px;
  margin: 0;
  padding-block: 18px;
  border-color: #e5ebf3;
}

.contact-panel .contact-row:last-child { padding-bottom: 0; }
.contact-row > div { min-width: 0; }
.contact-panel .contact-row h3 {
  color: var(--muted);
  font-size: .73rem;
  font-weight: 650;
  letter-spacing: .045em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.contact-panel .contact-row a {
  display: inline-block;
  color: var(--navy);
  font-size: .99rem;
  font-weight: 650;
  text-decoration-color: #b5c5dd;
  text-underline-offset: 4px;
  transition: color .2s ease;
}

.contact-panel .contact-row a:hover { color: var(--blue); }
.contact-panel .contact-row:first-of-type a { font-size: 1.24rem; letter-spacing: -.025em; }
.contact-panel .contact-row p { font-size: .9rem; line-height: 1.7; }
.contact-panel .contact-row p + p { font-size: .77rem; margin-top: 5px; }
.contact-panel .contact-icon {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: #edf3fd;
  color: var(--blue);
  transition: transform .22s ease, background .22s ease;
}

.contact-row:first-of-type .contact-icon { background: #fff0f2; color: var(--red); }
.contact-row:hover .contact-icon, .contact-row:focus-within .contact-icon { transform: translateX(3px); }
.contact-map {
  border-radius: 26px;
  box-shadow: 0 15px 45px #102b5010;
}

.contact-map > iframe { min-height: 440px; }
.contact-map figcaption {
  padding: 18px 25px;
  background: #f6f9fd;
  border-top: 1px solid var(--line);
}

.contact-map figcaption .text-link { font-size: .84rem; }

.contact-convivencia {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  column-gap: clamp(25px, 5vw, 70px);
  row-gap: 17px;
  align-items: start;
  padding: clamp(28px, 4vw, 50px);
  border: 1px solid #244269;
  border-radius: 28px;
  background: linear-gradient(120deg, var(--navy), #1b3a63);
  color: #fff;
  box-shadow: 0 20px 45px #071b3d20;
}

.contact-convivencia > div { grid-column: 1; grid-row: 1 / 4; }
.contact-convivencia .eyebrow {
  color: #e5efff;
  background: #ffffff0d;
  border-color: #ffffff29;
  font-size: .64rem;
}

.contact-convivencia h2 {
  margin: 22px 0 17px;
  color: #fff;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  letter-spacing: -.045em;
}

.contact-convivencia p { color: #d4e1f2; font-size: .94rem; line-height: 1.8; }
.contact-convivencia .contact-topics {
  grid-column: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 19px;
  margin: 9px 0 5px;
}

.contact-convivencia .contact-topics li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #eaf1fc;
  font-size: .84rem;
  line-height: 1.5;
}

.contact-topics li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #f57782;
  transform: translateY(-2px);
}

.contact-convivencia > .button {
  grid-column: 2;
  justify-self: start;
  min-height: 46px;
  padding-inline: 20px;
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  font-size: .8rem;
  transition: background .2s ease, color .2s ease;
}

.detail-content .contact-convivencia > .button:hover { background: #e9f1fd; color: var(--blue); }
.contact-convivencia > p { grid-column: 2; margin: 0; font-size: .77rem; }
.detail-content .contact-convivencia > p a { color: #d4e1f2; font-weight: 500; text-decoration-color: #7e96b6; }
.detail-content .contact-convivencia > p a:hover { color: #fff; }
.contact-convivencia a:focus-visible { outline-color: #fff; }

.contact-socials { padding-top: 12px; }
.contact-socials > h2 { margin-bottom: 23px; }
.contact-socials .detail-grid { gap: 20px; }
.detail-content .contact-socials .family-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 17px;
  min-height: 100px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 650;
  box-shadow: 0 9px 25px #102b5009;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.contact-socials .family-card > i { font-size: 1.75rem; }
.contact-socials .family-card[href*="instagram.com"] > i { color: #d83866; }
.contact-socials .family-card[href*="facebook.com"] > i { color: #1877f2; }
.contact-socials .family-card[href*="youtube.com"] > i { color: #d92725; }
.contact-socials .family-card > span { margin-left: auto; font-size: 1.13rem; }
.detail-content .contact-socials .family-card:hover,
.detail-content .contact-socials .family-card:focus-visible {
  transform: translateY(-4px);
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 15px 35px #071b3d20;
}

.contact-socials .family-card:hover > i, .contact-socials .family-card:focus-visible > i { color: #fff; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .contact-panel { padding: 25px; }
  .contact-convivencia { grid-template-columns: 1fr; padding: 32px; gap: 18px; }
  .contact-convivencia > div { grid-row: auto; }
  .contact-convivencia > :is(div, .button, p), .contact-convivencia .contact-topics { grid-column: 1; }
  .contact-convivencia .contact-topics { margin: 0; }
  .contact-convivencia h2 { margin-top: 17px; }
  .contact-socials .detail-grid { gap: 13px; }
  .detail-content .contact-socials .family-card { padding: 20px 17px; gap: 11px; }
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-panel, .contact-map { border-radius: 22px; }
  .contact-panel .contact-row { gap: 13px; padding-block: 16px; }
  .contact-panel .contact-row a { font-size: .88rem; }
  .contact-panel .contact-row:first-of-type a { font-size: 1.16rem; }
  .contact-panel .contact-icon { width: 38px; height: 38px; border-radius: 11px; }
  .contact-map > iframe { min-height: 330px; }
  .contact-map figcaption { padding: 16px 20px; }
  .contact-convivencia { padding: 27px 24px; border-radius: 23px; }
  .contact-convivencia .contact-topics { grid-template-columns: 1fr; gap: 0; }
  .contact-convivencia > .button { justify-self: stretch; text-align: center; }
  .contact-convivencia > p { overflow-wrap: anywhere; }
  .contact-socials .detail-grid { grid-template-columns: 1fr; gap: 12px; }
  .detail-content .contact-socials .family-card { min-height: 82px; padding: 20px 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-row:hover .contact-icon,
  .contact-row:focus-within .contact-icon,
  .detail-content .contact-socials .family-card:hover,
  .detail-content .contact-socials .family-card:focus-visible { transform: none; }
  .contact-panel .contact-icon, .detail-content .contact-socials .family-card { transition: none; }
}
