* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #d39a38;
  --gold-dark: #b98224;
  --text: #211913;
  --ink: #080808;
  --card: rgba(232, 214, 205, 0.96);
  --card-light: rgba(241, 230, 219, 0.97);
  --white: #ffffff;
  --shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  background: #eee8e2;
}

.header {
  width: 100%;
  min-height: 96px;
  padding: 0 5%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.06);
}

.logo {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--gold-dark);
  text-decoration: none;
}

.logo img {
  width: 112px;
  height: auto;
  display: block;
}

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin-left: 14px;
}

.nav a {
  color: var(--text);
  font-family: "Great Vibes", cursive;
  font-size: 36px;
  line-height: 1;
  text-decoration: none;
  transition: 0.3s;
}

.nav a:hover,
.nav a.active {
  color: var(--gold);
}

.nav a.active {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

.menu-btn {
  margin-left: auto;
  display: none;
  background: none;
  border: none;
  color: var(--gold-dark);
  cursor: pointer;
  font-size: 32px;
}

.contacts-page {
  min-height: calc(100vh - 96px);
  padding: 215px 8.9% 22px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    url("../img/imagenesContactos/fondo contactos.jpeg") center top / cover no-repeat;
}

.contacts-panel {
  width: min(665px, 100%);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-card {
  min-height: 80px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 18px;
  color: #020202;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.contact-card:first-child,
.contact-card:nth-child(2) {
  background: var(--card-light);
}

.contact-card:hover {
  transform: translateX(8px) translateY(-2px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.28);
  background: rgba(244, 232, 222, 0.98);
}

.contact-card img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.contact-card p {
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: 0;
}

.contact-card span {
  font-weight: 600;
}

@media (max-width: 1200px) {
  .contacts-page {
    padding-top: 185px;
  }
}

@media (max-width: 900px) {
  .menu-btn {
    display: block;
  }

  .nav {
    flex: none;
    margin-left: 0;
    justify-content: flex-start;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
  }

  .nav.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .contacts-page {
    min-height: calc(100vh - 96px);
    padding: 170px 6% 28px;
    background-position: center top;
  }

  .contacts-panel {
    width: min(610px, 100%);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .contacts-page {
    padding: 150px 5% 26px;
    background-position: 55% top;
  }

  .contacts-panel {
    gap: 16px;
  }

  .contact-card {
    min-height: 74px;
    padding: 12px 18px;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    border-radius: 30px;
  }

  .contact-card img {
    width: 46px;
    height: 46px;
  }

  .contact-card p {
    font-size: 16px;
  }
}

@media (max-width: 410px) {
  .contacts-page {
    padding-top: 130px;
  }

  .contact-card {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 12px 14px;
  }

  .contact-card img {
    width: 42px;
    height: 42px;
  }

  .contact-card p {
    font-size: 14px;
  }
}
