/* ══════════════════════════════════════════════════════════
   DATAMATIUM — contacto.css v2
══════════════════════════════════════════════════════════ */

/* ── CONTACT CARDS ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.contact-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.contact-card:hover::after { transform: scaleX(1); }

.contact-icon {
  font-size: 28px;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 54px; height: 54px;
  background: var(--sky-light);
  border-radius: 14px;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.contact-card p {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 14px;
}

/* ── MAP ── */
.map-section {
  width: 100%;
  margin: 0 0 48px;
  color: #131111;  
}

.map-header {
  text-align: center;
  margin-bottom: 24px;
}

.map-header h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.map-header p {
  color: var(--text-soft);
  margin-top: 8px;
  font-size: 15px;
}

.map-container {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.map-container iframe {
  display: block;
  width: 100%; height: 420px; border: 0;
}

/* ── FORM ── */
.contact-form-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.contact-form {
  width: 100%;
  max-width: 780px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
}

.form-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px; font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.form-subtitle { font-size: 14px; color: var(--text-soft); margin-bottom: 8px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--off-white);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--sky);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,127,193,0.1);
}

.contact-form textarea { resize: vertical; min-height: 130px; }

.contact-form button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 99px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  align-self: start;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.contact-form button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; gap: 12px; }
  .map-container iframe { height: 300px; }
  .contact-form { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .contact-form input, .contact-form textarea { font-size: 16px; }
}
