/* Contacts page modern styles */
:root {
  --bg: #f7faf9;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --brand: #0b6b3a; /* consistent green */
  --brand-2: #16a34a; /* lighter green */
  --accent: #2563eb;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --radius: 14px;
}

html, body { background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; }

.contacts-hero {
  background: radial-gradient(90% 120% at 100% -10%, rgba(11,107,58,.08), transparent 60%),
              linear-gradient(135deg, #e7fff1 0%, #f2fff7 30%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.contacts-hero .wrap {
  max-width: 1200px; margin: 0 auto; padding: 48px 20px 36px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center;
}
.contacts-hero h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; color: #062d1a; }
.contacts-hero p  { font-size: 1.05rem; color: var(--muted); margin: 0; }
.contacts-hero .badge { display:inline-flex; gap:8px; align-items:center; font-weight:700; color: var(--brand);
  background:#d1fae5; border:1px solid #bbf7d0; padding:6px 10px; border-radius: 999px; margin-bottom: 12px; }
.contacts-hero .art { display:flex; justify-content:center; }
.contacts-hero .art img { max-width: 340px; width: 100%; height: auto; filter: drop-shadow(0 12px 24px rgba(11,107,58,.12)); }

.contacts-container { max-width: 1200px; margin: 26px auto 40px; padding: 0 20px; }

.info-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px;
}
.info-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.info-card .icn { width: 42px; height: 42px; display:grid; place-items:center; border-radius: 10px;
  background: #ecfdf5; color: var(--brand); margin-bottom: 10px; }
.info-card h3 { font-size: 1rem; margin: 0 0 6px; font-family: Arial, Helvetica, sans-serif; }
.info-card p, .info-card a { margin: 0; color: var(--muted); text-decoration: none; }
.info-card a:hover { color: var(--brand); text-decoration: underline; }

.main-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 18px; }

.card { background: var(--card); border:1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card .card-h {
  padding: 18px 18px 10px; border-bottom: 1px solid var(--border); display:flex; align-items:center; gap:10px; font-weight:700;
}
.card .card-h .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px #e7fbefff; }
.card .card-b { padding: 18px; }

/* Form */
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 28px; }
/* Separación vertical entre bloques de filas (cada .row independiente) */
.contact-form .row + .row { margin-top: 20px; }
.contact-form label { display:block; font-size:.92rem; color:#0f3c25; margin-bottom:6px; font-weight:600; font-family: Arial, Helvetica, sans-serif; }
.contact-form label[for="cfMessage"]{ display:inline-block; margin-top:4px; margin-bottom:8px; }
.input, .textarea, .select {
  width: 100%; background:#fbfdfc; border:1px solid #cde8da; border-radius: 12px; padding: 12px 14px; color:#0a263a;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(22,163,74,.12); }
.textarea { min-height: 150px; resize: vertical; }

.form-actions { display:flex; align-items:center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.btn {
  appearance: none; border: 0; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff;
  padding: 12px 16px; border-radius: 12px; font-weight:700; cursor:pointer; box-shadow: 0 10px 20px rgba(11,107,58,.18);
}
.btn:hover { filter: brightness(.98); transform: translateY(-1px); }
.btn.alt { background: #fff; color: var(--brand); border:1px solid #bbf7d0; box-shadow: none; }

.alert { border-radius: 12px; padding: 12px 14px; font-weight:600; }
.alert.ok { background:#ecfdf5; color:#065f46; border:1px solid #bbf7d0; }
.alert.err { background:#fff1f2; color:#9f1239; border:1px solid #fecdd3; }
.hidden { display:none !important; }

/* Departments */
.dept-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dept { border:1px solid var(--border); background: var(--card); border-radius: 12px; padding: 14px; display:flex; gap:10px; align-items:flex-start; }
.dept .icn { width: 40px; height:40px; border-radius: 10px; display:grid; place-items:center; background:#eef2ff; color:#1e3a8a; }
.dept h4 { margin: 0 0 4px; font-size: 1rem; font-family: Arial, Helvetica, sans-serif; }
.dept p { margin: 0; color: var(--muted); font-size: .95rem; text-align: justify; text-justify: inter-word; hyphens: auto; }

/* Map */
.map-embed { border:0; width:100%; height: 320px; border-radius: 12px; box-shadow: var(--shadow); }

/* FAQ */
.faq { margin-top: 16px; }
.faq details { border:1px solid var(--border); border-radius: 12px; background: var(--card); margin-bottom:10px; }
.faq summary { padding: 12px 14px; cursor:pointer; font-weight:700; font-family: Arial, Helvetica, sans-serif; }
.faq .ans { padding: 0 14px 14px; color: var(--muted); text-align: justify; text-justify: inter-word; hyphens: auto; }

/* Social row */
.social-row { display:flex; gap:10px; flex-wrap:wrap; }
.social-row a { display:inline-flex; align-items:center; gap:8px; padding:10px 12px; border-radius: 999px; border:1px solid var(--border); color:#0a263a; text-decoration:none; background:#fff; }
.social-row a svg { width:18px; height:18px; display:block; }
.social-row a:hover { border-color: var(--brand); color: var(--brand); }

/* Responsive */
@media (max-width: 1024px) {
  .contacts-hero .wrap { grid-template-columns: 1fr; text-align:center; }
  .main-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .contact-form .row { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr; }
}
