/* ====== Base ====== */
:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e5e5e5;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  height: 100%;
}
body {
  margin: 0;
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--fg);
  background: var(--bg);
}

/* ====== Layout  ====== */
.page {
  min-height: 100%;
  padding: 72px 24px 120px;
}
.contact {
  max-width: 760px;
  margin: 0 auto;
}
.contact__header {
  margin-bottom: 44px;
}
.contact__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(40px, 5vw, 56px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.contact__subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.5;
}

/* ====== Form ====== */
.form {
  width: 100%;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 46px;
  margin-bottom: 28px;
}
@media (min-width: 760px) {
  .form__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field--full {
  margin-top: 8px;
}

.field__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.field__control {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 10px 0 12px;
  font-size: 14px;
  color: var(--fg);
  background: transparent;
  outline: none;
  transition: border-color 0.25s ease;
}
.field__control::placeholder {
  color: rgba(107, 107, 107, 0.65);
}
.field__control:focus {
  border-bottom-color: var(--fg);
}

/* textarea (misma línea inferior) */
.field__textarea {
  resize: none;
  padding-right: 8px;
}

/* Select con caret minimal */
.select {
  position: relative;
}
.select__control {
  appearance: none;
  cursor: pointer;
  padding-right: 26px;
}
.select__chev {
  position: absolute;
  right: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-35%);
  pointer-events: none;
  opacity: 0.7;
}
.select__chev::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--fg);
  border-bottom: 1.5px solid var(--fg);
  transform: rotate(45deg);
  margin: 2px auto 0;
}

/* ====== Button ====== */
.form__actions {
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 34px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease;
}
.btn:hover {
  opacity: 0.92;
}
.btn:active {
  transform: scale(0.98);
}
.btn__icon {
  display: inline-flex;
  transition: transform 0.25s ease;
}
.btn:hover .btn__icon {
  transform: translateX(4px);
}

/* ====== WhatsApp ====== */
.wsp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wsp__button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #25d366;   /* verde oficial de WhatsApp */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  transition: background-color 0.2s, transform 0.2s;
}

.wsp:hover .wsp__button {
  background-color: #1ebe57;
  transform: scale(1.08);
}

.wsp__tooltip {
  background: #111;
  color: #fff;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.wsp:hover .wsp__tooltip {
  opacity: 1;
}
/* Animación de entrada del botón WhatsApp */
@keyframes wsp-entrada {
  0%   { opacity: 0; transform: translateY(20px) scale(0.8); }
  70%  { transform: translateY(-4px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.wsp {
  animation: wsp-entrada 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 2s; /* aparece 1 segundo después de cargar la página */
}
