/* ============================================================================
   contact-premium.css
   Polished contact page — form card + sidebar cards.
   ============================================================================ */

/* --- Layout breathing -------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: flex-start;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Form wrap: premium card ----------------------------------------- */
.contact-form-wrap {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 4px 14px -6px rgba(15, 23, 42, 0.05);
}

/* --- Form fields: consistent refined inputs --------------------------- */
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.contact-form__field label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.contact-form__field label .req,
.contact-form__field label [aria-hidden="true"] {
  color: #dc2626;
  font-weight: 700;
}
.contact-form__field input:not([type="checkbox"]):not([type="radio"]),
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: #94a3b8;
  font-weight: 500;
}
.contact-form__field input:hover,
.contact-form__field select:hover,
.contact-form__field textarea:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}
.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--primary, #2563eb);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.contact-form__field textarea {
  min-height: 140px;
  line-height: 1.55;
  resize: vertical;
}

/* --- Two-column row for name + empresa / email + teléfono ------------- */
.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.contact-form__row .contact-form__field { margin-bottom: 0; }
@media (max-width: 640px) {
  .contact-form__row { grid-template-columns: 1fr; gap: 10px; }
}

/* --- Submit actions row ----------------------------------------------- */
.contact-form__actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-form button[type="submit"],
.contact-form__actions .btn--primary {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 12px 26px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 4px 12px -3px rgba(16, 185, 129, 0.4);
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.contact-form button[type="submit"]:hover,
.contact-form__actions .btn--primary:hover {
  background: linear-gradient(180deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 8px 20px -4px rgba(16, 185, 129, 0.45);
}

.contact-form__privacy {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

/* --- Sidebar wrapper -------------------------------------------------- */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 20px;
}

/* --- Contact info card ------------------------------------------------ */
.contact-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.contact-card__title,
.contact-card > h2,
.contact-card > h3 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

/* Info list items (email, dirección, horario) */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.45;
}
.contact-info-list li svg,
.contact-info-list li .icon {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary, #2563eb);
  flex-shrink: 0;
  box-sizing: border-box;
}
.contact-info-list a {
  color: var(--primary, #2563eb);
  font-weight: 600;
  text-decoration: none;
}
.contact-info-list a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- FAQ (Preguntas frecuentes) -------------------------------------- */
.contact-faq {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* FAQ items — existing template has inline style="" on each details/summary
   and a hardcoded <span>+</span> inside summary. Override via !important
   and restyle the existing +/− instead of injecting a new ::after.      */
details.contact-faq {
  border: 1px solid #eef2f6 !important;
  border-radius: 10px !important;
  background: #fafbfc !important;
  margin-bottom: 6px !important;
  padding: 0 !important;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
details.contact-faq[open] {
  background: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
}
details.contact-faq summary {
  list-style: none !important;
  cursor: pointer;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  transition: color 0.15s ease;
}
details.contact-faq summary::-webkit-details-marker { display: none; }
details.contact-faq[open] summary { color: var(--primary, #2563eb) !important; }
/* Restyle the existing <span>+</span> inside summary */
details.contact-faq summary > span[aria-hidden="true"] {
  width: 22px;
  height: 22px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b !important;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1 !important;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.2s ease;
}
details.contact-faq[open] summary > span[aria-hidden="true"] {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary, #2563eb) !important;
  transform: rotate(45deg);
}
details.contact-faq > p {
  margin: 0 !important;
  padding: 0 14px 12px !important;
  font-size: 13px !important;
  color: #475569 !important;
  line-height: 1.55 !important;
}
