/* =========================================
   CONTACTO — Página con header + footer
   Form + Mapa + WhatsApp
   ========================================= */

/* ---------- Page layout ---------- */
.contacto-page {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 5rem;
}

.contacto-page__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.contacto__back {
  display: inline-block;
  font-size: var(--font-xs);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 2rem;
  transition: color var(--transition);
}

.contacto__back:hover {
  color: var(--black);
}

.contacto__title {
  font-family: var(--font-heading);
  font-size: var(--font-2xl);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.contacto__subtitle {
  font-size: var(--font-base);
  font-weight: 300;
  color: var(--gray);
  line-height: 1.7;
}

/* ---------- Grid: form + map ---------- */
.contacto-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ---------- Form ---------- */
.contacto__form {
  margin-bottom: 2.5rem;
}

.contacto__field {
  margin-bottom: 1.25rem;
}

.contacto__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0;
}

.contacto__field label {
  display: block;
  font-size: var(--font-xs);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black-soft);
  margin-bottom: 0.5rem;
}

.contacto__field input,
.contacto__field select,
.contacto__field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: var(--font-sm);
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--gray-light);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.contacto__field input::placeholder,
.contacto__field textarea::placeholder {
  color: #bbb;
}

.contacto__field input:focus,
.contacto__field select:focus,
.contacto__field textarea:focus {
  border-color: var(--black);
}

.contacto__field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contacto__field textarea {
  resize: vertical;
  min-height: 80px;
}

.contacto__field input[type="date"] {
  cursor: pointer;
}

/* ---------- WhatsApp Button ---------- */
.contacto__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: var(--font-sm);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: #25D366;
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.contacto__btn:hover {
  background: #1EBE5A;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.contacto__btn svg {
  flex-shrink: 0;
}

/* ---------- Contact Info ---------- */
.contacto__info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-light);
}

.contacto__info-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--font-sm);
  color: var(--gray);
  font-weight: 300;
}

.contacto__info-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

.contacto__info-item a {
  color: var(--gray);
  transition: color var(--transition);
}

.contacto__info-item a:hover {
  color: var(--gold);
}

/* ---------- Map ---------- */
.contacto-page__map {
  position: relative;
  width: 100%;
  height: 600px;
  border: 1px solid var(--gray-light);
}

.contacto-page__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Active link ---------- */
.navbar__link--active {
  color: var(--gold) !important;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .contacto-page__grid {
    grid-template-columns: 1fr;
  }

  .contacto-page__map {
    height: 400px;
  }
}

@media (max-width: 600px) {
  .contacto-page {
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 3rem;
  }

  .contacto__title {
    font-size: var(--font-xl);
  }

  .contacto__row {
    grid-template-columns: 1fr;
  }

  .contacto-page__map {
    height: 300px;
  }

  .contacto__info {
    flex-direction: column;
    gap: 1rem;
  }

  .contacto-page__header {
    margin-bottom: 2.5rem;
  }
}
