/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BASE / LAYOUT
========================= */
html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #1d1d1f;
  overflow-x: hidden;
  overflow-y: hidden;

  display: flex;
  flex-direction: column;
}

/* MAIN */
main.page {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* =========================
   HERO
========================= */
.contact-hero {
  padding: 56px 20px 20px;
  text-align: center;
}

.contact-hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* =========================
   CONTENT
========================= */
.contact-content {
  max-width: 1050px;
  margin: 0 auto;
  padding: 24px 20px 0;
  transform: translateX(50px);
  flex: 1;

  display: flex;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

/* =========================
   TEXTO
========================= */
.contact-text h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.contact-text p {
  font-size: 15px;
  line-height: 1.55;
  color: #6e6e73;
  margin-bottom: 20px;
}

.contact-text ul {
  list-style: none;
}

.contact-text li {
  font-size: 14px;
  margin-bottom: 8px;
}

/* =========================
   VISUAL
========================= */
.contact-visual {
  position: relative;
  min-height: 280px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.contact-image {
  max-width: 340px;
  width: 100%;
  height: auto;
  z-index: 2;
}

/* =========================
   LOGO BG
========================= */
.contact-logo-bg {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%) scale(1.8);
  width: 240px;

  opacity: 0;
  z-index: 1;
  pointer-events: none;
  filter: blur(2px);

  transition: opacity 6s ease;
}

/* =========================
   BOTÓN
========================= */
.contact-open {
  padding: 13px 32px;
  border-radius: 999px;
  border: none;
  background: #000;
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;

  transition: transform 0.25s ease, opacity 0.25s ease;
}

.contact-open:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* =========================
   MODAL
========================= */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.contact-modal.active {
  display: block;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
}

.contact-modal-panel {
  position: relative;
  max-width: 480px;
  width: calc(100% - 32px);
  margin: 1.5vh auto;
  background: #fff;
  border-radius: 18px;
  padding: 26px 28px;

  box-shadow:
    0 0 0 1px rgba(0,0,0,0.12),
    0 30px 60px rgba(0,0,0,0.25);
}

.contact-modal-panel h2 {
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: none;
  font-size: 17px;
  cursor: pointer;
}

/* =========================
   FORM
========================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 11.5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 13.5px;
}

.form-group textarea {
  min-height: 96px;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000;
}

.form-submit {
  margin-top: 6px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #000;
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.form-submit:hover {
  opacity: 0.9;
}

/* =========================
   TOAST
========================= */
.toast-notification {
  position: fixed;
  top: 60px;
  right: 20px;

  background: rgba(20, 20, 20, 0.94);
  color: #fff;

  padding: 12px 18px;
  border-radius: 12px;

  font-size: 13.5px;
  line-height: 1.45;

  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 10px 30px rgba(0,0,0,0.35);

  z-index: 9999;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

  html, body {
    height: auto;
    overflow-y: auto;
  }

  .contact-content {
    transform: none !important;
    padding: 0 20px 28px;
  }

  .contact-grid {
    display: block;
  }

  .contact-modal-panel {
    margin: 4vh auto;
    padding: 24px;
  }
}