/* ==========================================================================
   contacto.css — Página de Contacto | Grupo del Sur
   ========================================================================== */

/* ── Grid contacto ──────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

/* ── Caja info ──────────────────────────────────────────────────────────── */
.contact-info-box {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(255,255,255,0.5) 100%);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-info-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}
.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 12px;
  transition: background 0.3s ease;
}
.contact-item:hover {
  background: rgba(99, 102, 241, 0.05);
}
.contact-item-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-item:hover .contact-item-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}
.contact-item h4 { 
  font-size: 1.1rem; 
  margin-bottom: 0.5rem; 
  font-weight: 600;
  color: var(--text-dark);
}
.contact-item p  { 
  font-size: 0.95rem; 
  color: var(--text-muted); 
  line-height: 1.6;
  transition: color 0.3s ease;
}
.contact-item:hover p {
  color: var(--text-dark);
}

/* ── Horario visual ─────────────────────────────────────────────────────── */
.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.9rem;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row span:first-child { color: var(--text-muted); }
.schedule-row strong { color: var(--secondary); }

/* ── Formulario de contacto ─────────────────────────────────────────────── */
.contact-form {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(255,255,255,0.5) 100%);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-form:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}
.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-weight: 700;
}
.contact-form > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Campo de texto animado */
.form-control:focus + .form-underline {
  width: 100%;
}
.form-underline {
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.4s ease;
  margin-top: -1px;
}

/* ── Mapa embed ─────────────────────────────────────────────────────────── */
.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.1);
  margin-top: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.map-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}
.map-container iframe {
  width: 100%;
  height: 400px;
  display: block;
  border: none;
  filter: grayscale(30%);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.map-container:hover iframe { 
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; } }
