@import url(app.css);

/* ===== Contacto ===== */
.contact {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vw, 26px);
  overflow-x: hidden;

  /* Fondo tipo hero */
  background-image: url('../assets/img/hero-background.webp');
  background-size: cover;
  background-position: center;
}

/* Gradiente DESKTOP (como tu hero viejo) */
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
  z-index: 0;
}

.contact-section {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(34px, 6vw, 70px) 0;
}

/* (Opcional) decor plus, reutiliza .plus de app.css si ya existe */
.contact-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
}

/* Grid principal */
.contact-grid {
  position: relative;
  z-index: 1;

  max-width: var(--container);
  width: 100%;

  /* Glass box como tu content-box */
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(11, 43, 58, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(7, 7, 54, 0.1);
  backdrop-filter: blur(10px);

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: clamp(22px, 3.2vw, 40px);
}

/* ===== Columna izquierda ===== */
.contact-copy {
  color: var(--ink);
}

.contact-logo .logo-brand {
  width: 150px;
  height: auto;
  display: block;
}

.contact-title {
  margin: 18px 0 0;
  font-size: clamp(28px, 3.4vw, 26px);
  line-height: 1.12;
  letter-spacing: -0.2px;
  color: var(--ink);
}

.contact-rule {
  width: 140px;
  height: 4px;
  margin: 18px 0 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  opacity: 0.92;
}

.contact-sub {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(11, 43, 58, 0.78);
  max-width: 560px;
}

/* ===== Columna derecha ===== */
.contact-right {
  color: var(--ink);
  display: grid;
  gap: 18px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(11, 43, 58, 0.1);
  border-radius: 18px;
  padding: 22px;
}

.contact-kicker {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: rgba(11, 43, 58, 0.85);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Inputs (mapeo de tu CSS viejo) */
.input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(11, 43, 58, 0.16);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition:
    transform 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.input:focus {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(10, 160, 200, 0.55);
  box-shadow: 0 0 0 4px rgba(10, 160, 200, 0.12);
}

/* Botón (alineado con tu sistema de botones) */
.btn-submit {
  height: 46px;
  padding: 0 18px;
  width: fit-content;
  min-width: 120px;

  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  color: #fff;
  border: 0;
  border-radius: 14px;
  cursor: pointer;

  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-family: inherit;

  box-shadow: var(--shadow);
  transition:
    transform 180ms var(--ease),
    filter 180ms var(--ease);
}

.btn-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}

/* Socials */
.contact-socials {
  margin-top: 2px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
}

.social-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;

  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(11, 43, 58, 0.08);
}

.social-ico > img {
  width: 36px;
  height: auto;
  display: block;
}

.social-content > a {
  color: rgba(11, 43, 58, 0.86);
  text-decoration: none;
  font-weight: 700;
}

.social-content > a:hover {
  text-decoration: underline;
}

/* ===== Anti-flash fallback (igual que Nosotros/Partners) ===== */
.contact [data-st] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  will-change: transform, opacity;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact::before {
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 0)
    );
  }

  .contact-socials {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}
