:root {
  --turquoise: #86d0cc;
  --wine: #8e251f;
  --ink: #05070b;
  --soft-green: rgba(151, 220, 144, 0.2);
  --soft-yellow: rgba(247, 218, 87, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(134, 208, 204, 0.34), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 225, 156, 0.42), transparent 24%),
    linear-gradient(135deg, #f8fffe 0%, #fff7fb 47%, #f3fbff 100%);
  font-family: "Nunito", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.redes-page {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 30px;
}

.brand-header {
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.brand-header img {
  width: min(340px, 58vw);
  height: auto;
  display: block;
}

.redes-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(560px, 1.32fr);
  gap: 44px;
  align-items: stretch;
}

.social-panel,
.branch-card {
  background: #ffffff;
  border: 2px solid #111111;
  border-radius: 14px;
  box-shadow: -12px 18px 22px rgba(0, 0, 0, 0.27);
}

.social-panel {
  min-height: 512px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  padding: 22px 14px 18px;
  text-align: center;
}

.social-panel p {
  margin: 0;
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  font-weight: 700;
  line-height: 1.2;
}

.social-icons {
  position: relative;
  min-height: 390px;
  margin-top: 18px;
}

.social-icon,
.branch-links a {
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.social-icon:hover,
.branch-links a:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.18));
}

.social-icon img,
.branch-links img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.social-icon {
  position: absolute;
}

.social-icon.fb {
  top: 22px;
  left: 8px;
  width: 170px;
  height: 170px;
}

.social-icon.ig {
  top: 112px;
  right: 16px;
  width: 174px;
  height: 174px;
}

.social-icon.tk {
  left: 18px;
  bottom: 8px;
  width: 170px;
  height: 170px;
}

.branches-panel {
  display: grid;
  gap: 28px;
}

.branch-card {
  min-height: 153px;
  display: grid;
  grid-template-columns: 200px minmax(245px, 1fr) minmax(145px, 0.58fr) 54px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px 10px 18px;
}

.branch-photo {
  width: 100%;
  height: 118px;
  display: block;
  object-fit: cover;
  border: 1px solid #bfc5c9;
  border-radius: 10px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.22);
}

.branch-address {
  min-width: 0;
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 0 4px;
  text-align: center;
}

.branch-address h2 {
  margin: 0;
  font-size: clamp(1.16rem, 1.72vw, 1.43rem);
  font-weight: 700;
  line-height: 1.08;
  white-space: normal;
}

.branch-address h2 strong {
  font-weight: 900;
}

.branch-address p {
  margin: 0;
  padding: 4px 3px;
  background: linear-gradient(90deg, transparent, var(--soft-green), transparent);
  font-size: clamp(0.95rem, 1.38vw, 1.08rem);
  font-weight: 700;
  line-height: 1.16;
}

.branch-hours {
  min-width: 0;
  padding: 6px 4px;
  background: linear-gradient(90deg, transparent, var(--soft-yellow), transparent);
  text-align: center;
}

.branch-hours p {
  margin: 0;
  font-size: clamp(0.68rem, 1.05vw, 0.78rem);
  font-weight: 700;
  line-height: 1.1;
}

.branch-hours p + p {
  margin-top: 4px;
}

.branch-links {
  display: grid;
  gap: 7px;
  justify-items: center;
}

.branch-links a {
  width: 43px;
  height: 43px;
}

@media (max-width: 1060px) {
  .redes-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .social-panel {
    min-height: 390px;
  }

  .social-icons {
    width: min(480px, 100%);
    min-height: 270px;
    justify-self: center;
  }

  .social-icon.fb {
    width: 145px;
    height: 145px;
  }

  .social-icon.ig {
    width: 150px;
    height: 150px;
    top: 74px;
  }

  .social-icon.tk {
    width: 145px;
    height: 145px;
  }
}

@media (max-width: 760px) {
  .redes-page {
    width: min(100% - 20px, 480px);
    padding-top: 10px;
  }

  .brand-header img {
    width: min(280px, 80vw);
  }

  .social-panel,
  .branch-card {
    border-radius: 12px;
    box-shadow: -7px 11px 16px rgba(0, 0, 0, 0.2);
  }

  .social-panel {
    min-height: auto;
  }

  .social-icons {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 8px;
    margin-top: 12px;
  }

  .social-icon {
    position: static;
    inset: auto;
  }

  .social-icon.fb,
  .social-icon.tk {
    width: min(105px, 26vw);
    height: min(105px, 26vw);
  }

  .social-icon.ig {
    width: min(112px, 28vw);
    height: min(112px, 28vw);
  }

  .branches-panel {
    gap: 18px;
  }

  .branch-card {
    grid-template-columns: minmax(0, 1fr) 74px;
    grid-template-rows: auto auto auto auto;
    gap: 8px 12px;
    align-items: stretch;
    padding: 10px 12px;
  }

  .branch-photo {
    grid-column: 1 / -1;
    grid-row: 1;
    height: 170px;
    object-fit: contain;
    background: #f8fafc;
  }

  .branch-address {
    display: contents;
    text-align: center;
  }

  .branch-address h2 {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: center;
    font-size: 1.18rem;
    white-space: normal;
  }

  .branch-address p {
    grid-column: 1;
    grid-row: 3;
    align-self: stretch;
    display: grid;
    place-items: center;
    font-size: 0.96rem;
  }

  .branch-hours {
    grid-column: 1;
    grid-row: 4;
    display: grid;
    align-content: center;
    padding: 6px;
    text-align: center;
  }

  .branch-hours p {
    display: block;
    font-size: 0.74rem;
  }

  .branch-hours p + p {
    margin-top: 3px;
  }

  .branch-links {
    grid-column: 2;
    grid-row: 3 / 5;
    align-content: center;
    gap: 10px;
  }

  .branch-links a {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 420px) {
  .branch-card {
    grid-template-columns: minmax(0, 1fr) 64px;
  }

  .branch-photo {
    grid-column: 1 / -1;
    grid-row: 1;
    height: 150px;
  }

  .branch-address h2 {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .branch-address p {
    grid-column: 1;
    grid-row: 3;
  }

  .branch-hours {
    grid-column: 1;
    grid-row: 4;
  }

  .branch-links {
    grid-column: 2;
    grid-row: 3 / 5;
  }

  .branch-links a {
    width: 44px;
    height: 44px;
  }
}
