:root {
  --mauve: #765F70;
  --mauve-dark: #66505F;
  --mauve-light: #8A7484;

  --rose-muted: #846D74;

  --amber: #AE8950;
  --amber-dark: #96733F;
  --amber-light: #E6D19C;

  --cream: #F3EDE4;
  --cream-dark: #DDD1C5;

  --white-soft: #F8F5F1;
  --white: #FFFFFF;

  --text-dark: #3F343A;
  --text-muted: #7A6D72;
  --text-light: #F4EEE8;

  --border-soft: #D8CCC7;
}

/* ========================================
   PÁGINA GENERAL
======================================== */

.contact-page {
  min-height: 100vh;
  background: var(--cream);
  color: var(--text-dark);
}

/* ========================================
   HERO
======================================== */

.contact-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;

  background:
    linear-gradient(
      rgba(102, 80, 95, 0.88),
      rgba(102, 80, 95, 0.88)
    ),
    url("{% static 'images/contacto/contacto-hero.jpg' %}")
    center center / cover no-repeat;
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 75% 30%,
      rgba(174, 137, 80, 0.24),
      transparent 45%
    );
}

.contact-hero-content {
  position: relative;
  z-index: 2;

  max-width: 760px;
  padding: 90px 20px;
}

.contact-eyebrow {
  display: inline-block;

  margin-bottom: 18px;

  color: var(--amber-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22rem;
  text-transform: uppercase;
}

.contact-hero h1 {
  margin-bottom: 22px;

  color: var(--text-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
}

.contact-hero p {
  max-width: 610px;
  margin: 0;

  color: rgba(244, 238, 232, 0.86);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ========================================
   SECCIÓN DE CONTACTO
======================================== */

.contact-section {
  padding: 90px 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;

  overflow: hidden;

  background: var(--white-soft);
  border-radius: 18px;

  box-shadow:
    0 22px 60px rgba(77, 58, 69, 0.14);
}

/* ========================================
   PANEL DE INFORMACIÓN
======================================== */

.contact-info {
  position: relative;
  overflow: hidden;

  padding: 58px 48px;

  background: var(--mauve);
  color: var(--text-light);
}

.contact-info::before {
  content: "";

  position: absolute;
  right: -120px;
  bottom: -100px;

  width: 260px;
  height: 260px;

  border: 1px solid rgba(230, 209, 156, 0.28);
  border-radius: 50%;
}

.contact-info::after {
  content: "";

  position: absolute;
  right: -70px;
  bottom: -60px;

  width: 180px;
  height: 180px;

  border: 1px solid rgba(244, 238, 232, 0.14);
  border-radius: 50%;
}

.contact-info-content {
  position: relative;
  z-index: 2;
}

.contact-info h2 {
  margin-bottom: 20px;

  color: var(--text-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  font-weight: 400;
}

.contact-info-intro {
  margin-bottom: 42px;

  color: rgba(244, 238, 232, 0.78);
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  gap: 16px;

  margin-bottom: 28px;
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--amber-light);

  border: 1px solid rgba(230, 209, 156, 0.55);
  border-radius: 50%;
}

.contact-detail h3 {
  margin-bottom: 6px;

  color: var(--amber-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13rem;
  text-transform: uppercase;
}

.contact-detail p,
.contact-detail a {
  margin: 0;

  color: rgba(244, 238, 232, 0.9);
  line-height: 1.6;
  text-decoration: none;
}

.contact-detail a {
  transition: color 0.25s ease;
}

.contact-detail a:hover {
  color: var(--amber-light);
}

.contact-note {
  margin-top: 38px;
  padding-top: 26px;

  color: rgba(244, 238, 232, 0.64);
  font-size: 0.84rem;
  line-height: 1.7;

  border-top: 1px solid rgba(244, 238, 232, 0.16);
}

/* ========================================
   FORMULARIO
======================================== */

.contact-form-area {
  padding: 58px 52px;

  background: var(--white-soft);
}

.contact-form-area h2 {
  margin-bottom: 14px;

  color: var(--mauve-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 400;
}

.contact-form-description {
  margin-bottom: 34px;

  color: var(--text-muted);
  line-height: 1.7;
}

.form-label {
  margin-bottom: 8px;

  color: var(--mauve-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
}

.form-control,
.form-select {
  min-height: 52px;

  padding: 12px 15px;

  background: #FBF8F4;
  color: var(--text-dark);

  border: 1px solid var(--border-soft);
  border-radius: 8px;

  box-shadow: none;

  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-control::placeholder {
  color: #A3979C;
}

textarea.form-control {
  min-height: 145px;
  resize: vertical;
}

.form-control:focus,
.form-select:focus {
  background: var(--white);
  color: var(--text-dark);

  border-color: var(--amber);

  box-shadow:
    0 0 0 0.2rem rgba(174, 137, 80, 0.14);

  outline: none;
}

/* ========================================
   BOTÓN ENVIAR
======================================== */

.contact-submit {
  width: 100%;
  min-height: 54px;

  color: var(--text-light);
  background: var(--mauve);

  border: 1px solid var(--mauve);
  border-radius: 8px;

  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  text-transform: uppercase;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-submit:hover {
  background: var(--mauve-dark);
  border-color: var(--mauve-dark);

  transform: translateY(-2px);

  box-shadow:
    0 10px 22px rgba(102, 80, 95, 0.18);
}

.contact-submit:active {
  transform: translateY(0);
}

/* ========================================
   WHATSAPP
======================================== */

.whatsapp-box {
  margin-top: 24px;
  padding: 20px;

  background: var(--cream);

  border: 1px solid var(--cream-dark);
  border-radius: 10px;

  text-align: center;
}

.whatsapp-box p {
  margin-bottom: 14px;

  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 46px;
  padding: 0 24px;

  background: rgba(174, 137, 80, 0.14);
  color: var(--mauve-dark);

  border: 1px solid var(--amber);
  border-radius: 6px;

  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07rem;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.whatsapp-button:hover {
  background: var(--amber);
  color: var(--cream);

  transform: translateY(-2px);

  box-shadow:
    0 8px 20px rgba(174, 137, 80, 0.18);
}

.whatsapp-button:active {
  transform: translateY(0);
}

/* ========================================
   PRESENCIA
======================================== */

.presence-section {
  padding: 30px 0 95px;
}

.presence-heading {
  margin-bottom: 42px;

  text-align: center;
}

.presence-heading span {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
}

.presence-heading h2 {
  margin-top: 12px;

  color: var(--mauve-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  font-weight: 400;
}

.presence-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.presence-card {
  padding: 34px;

  background: rgba(248, 245, 241, 0.78);

  border: 1px solid var(--cream-dark);
  border-radius: 12px;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.presence-card:hover {
  transform: translateY(-4px);

  border-color: rgba(174, 137, 80, 0.52);

  box-shadow:
    0 14px 34px rgba(77, 58, 69, 0.1);
}

.presence-card i {
  margin-bottom: 18px;

  color: var(--amber);
  font-size: 1.3rem;
}

.presence-card h3 {
  margin-bottom: 10px;

  color: var(--mauve-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 400;
}

.presence-card p {
  margin-bottom: 0;

  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   RESPONSIVE TABLET
======================================== */

@media (max-width: 991px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .contact-form-area {
    padding: 46px 34px;
  }

  .contact-hero-content {
    padding: 75px 20px;
  }
}

/* ========================================
   RESPONSIVE MÓVIL
======================================== */

@media (max-width: 767px) {
  .contact-hero {
    min-height: 360px;
  }

  .contact-hero-content {
    padding: 65px 12px;
  }

  .contact-hero h1 {
    font-size: 2.8rem;
  }

  .contact-hero p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .contact-section {
    padding: 55px 0;
  }

  .contact-wrapper {
    border-radius: 12px;
  }

  .contact-info,
  .contact-form-area {
    padding: 38px 24px;
  }

  .contact-form-area h2,
  .contact-info h2 {
    font-size: 2rem;
  }

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

  .presence-section {
    padding-bottom: 60px;
  }

  .presence-heading h2 {
    font-size: 2.1rem;
  }

  .whatsapp-button {
    width: 100%;
    padding: 0 16px;
  }
}

/* ========================================
   MÓVILES PEQUEÑOS
======================================== */

@media (max-width: 480px) {
  .contact-info,
  .contact-form-area {
    padding: 32px 20px;
  }

  .contact-detail {
    gap: 13px;
  }

  .contact-detail-icon {
    width: 38px;
    height: 38px;
  }

  .presence-card {
    padding: 28px 24px;
  }
}