/* Contact page — Imcopartes */
/* Note: styles-base.css is brought in by shared.css (loaded before this).
   Do NOT re-@import it here — that would re-inject its rules later in the
   cascade and clobber the mobile overrides in shared.css. */

/* ===== Page header (dark, diagonal accent) ===== */
.page-head {
  position: relative;
  background: var(--imco-black);
  color: #fff;
  padding: 72px 32px 96px;
  overflow: hidden;
  border-bottom: 4px solid var(--imco-blue);
}
.page-head__diagonal {
  position: absolute; inset: 0;
  background: linear-gradient(
    125deg,
    transparent 0%,
    transparent 58%,
    rgb(20 93 158 / 0.12) 58.2%,
    rgb(20 93 158 / 0.12) 68%,
    transparent 68.2%
  );
  pointer-events: none;
}
.page-head__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px;
  position: relative;
}
.page-head__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue-300); margin-bottom: 14px;
}
.page-head__title {
  font-size: 76px; font-weight: 900; line-height: 0.98;
  letter-spacing: -0.025em; margin: 0; color: #fff; text-wrap: balance;
}
.page-head__title em {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  color: var(--blue-400);
  font-size: 0.55em;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  display: inline-block;
  transform: translateY(-0.18em);
  margin-left: 6px;
}
.page-head__lead {
  font-size: 18px; line-height: 1.55; color: var(--neutral-300);
  margin: 18px 0 0; max-width: 56ch;
}
.page-head__quickfacts {
  display: flex; flex-direction: column; gap: 14px;
  min-width: 240px;
}
.qfact {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--neutral-300);
}
.qfact i {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--blue-300);
}
.qfact strong { color: #fff; display: block; font-size: 14px; font-weight: 700; }

/* ===== Main grid ===== */
.contact-section { max-width: 1200px; margin: 0 auto; padding: 80px 32px; }
.contact-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
  align-items: start;
}

/* ===== Form card ===== */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-card h2 {
  font-size: 32px; font-weight: 900; letter-spacing: -0.02em;
  margin: 0 0 8px; line-height: 1.1;
}
.form-card__sub {
  font-size: 14px; color: var(--fg-muted); margin: 0 0 28px;
}

/* Wholesale-only callout banner */
.wholesale-banner {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-left: 3px solid var(--imco-blue);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 24px;
  font-size: 13px; color: var(--imco-black); line-height: 1.5;
}
.wholesale-banner i { color: var(--imco-blue); flex-shrink: 0; margin-top: 1px; }
.wholesale-banner strong { display: block; font-weight: 700; color: var(--imco-black); margin-bottom: 2px; }
.wholesale-banner span { color: var(--fg-muted); }

/* Quick segmented selector for "Soy…" */
.segmented {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 24px;
  background: var(--neutral-100);
  padding: 6px; border-radius: 10px;
}
.segmented button {
  background: transparent; border: 0; cursor: pointer;
  padding: 10px 12px; border-radius: 6px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--fg-muted);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}
.segmented button:hover { color: var(--fg); }
.segmented button.active {
  background: #fff; color: var(--imco-blue);
  box-shadow: var(--shadow-xs);
}
.segmented button.active i { color: var(--imco-blue); }
.segmented i { width: 16px; height: 16px; }

/* Form fields */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.form-row--single { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--fg); text-transform: none;
}
.field label .req { color: var(--imco-blue); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  font-family: inherit; font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #fff; color: var(--fg);
  transition: border-color 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
  outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-subtle); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--imco-blue);
  box-shadow: var(--focus-ring);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field--error input,
.field--error select,
.field--error textarea {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.field__err {
  font-size: 12px; color: var(--danger); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}

.phone-wrap { display: grid; grid-template-columns: 86px 1fr; gap: 8px; }
.phone-wrap select { padding-left: 12px; padding-right: 8px; }

/* Consent + submit row */
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; color: var(--fg-muted); line-height: 1.5;
  margin: 8px 0 24px;
}
.consent input { width: 16px; height: 16px; accent-color: var(--imco-blue); margin-top: 2px; flex-shrink: 0; }
.consent a { color: var(--imco-blue); font-weight: 600; text-decoration: none; }
.consent a:hover { text-decoration: underline; }

.submit-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.submit-row__meta {
  font-size: 12px; color: var(--fg-muted);
  display: flex; align-items: center; gap: 6px;
}
.submit-row__meta i { width: 14px; height: 14px; color: var(--success); }

/* ===== Success state ===== */
.form-success {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.form-success__check {
  width: 64px; height: 64px; border-radius: 999px;
  background: var(--success-soft); color: var(--success);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.form-success__check i { width: 32px; height: 32px; stroke-width: 2.5; }
.form-success h2 {
  font-size: 28px; font-weight: 900; letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.form-success p { color: var(--fg-muted); margin: 0 auto 24px; max-width: 44ch; }
.form-success__ref {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--neutral-100); padding: 10px 16px; border-radius: 8px;
  font-family: var(--font-mono); font-size: 13px; color: var(--fg);
  margin-bottom: 28px;
}
.form-success__ref strong { color: var(--imco-blue); }

/* ===== Info column ===== */
.info-stack { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.info-card:hover { border-color: var(--imco-blue); box-shadow: var(--shadow-sm); }
.info-card__icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-50); color: var(--imco-blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-card__icon i { width: 22px; height: 22px; }
.info-card__body { flex: 1; min-width: 0; }
.info-card__label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--imco-blue); margin-bottom: 6px;
}
.info-card__value {
  font-size: 16px; font-weight: 700; color: var(--imco-black);
  margin: 0 0 2px; line-height: 1.35;
}
.info-card__meta { font-size: 13px; color: var(--fg-muted); line-height: 1.5; margin: 4px 0 0; }
.info-card__link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: var(--imco-blue);
  text-decoration: none; margin-top: 10px;
}
.info-card__link:hover { text-decoration: underline; }
.info-card__link i { width: 14px; height: 14px; }

/* Hours specifics */
.hours { font-size: 13px; color: var(--fg-muted); line-height: 1.7; margin: 4px 0 0; }
.hours strong { color: var(--imco-black); font-weight: 600; }
.hours .open-now {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--success);
  background: var(--success-soft); padding: 3px 8px; border-radius: 999px;
  margin-top: 6px;
}
.hours .open-now::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--success);
  box-shadow: 0 0 0 3px rgb(31 138 91 / 0.18);
}

/* Social row */
.socials { display: flex; gap: 8px; margin-top: 4px; }
.socials a {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--neutral-100); color: var(--imco-black);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}
.socials a:hover { background: var(--imco-blue); color: #fff; }
.socials a i { width: 18px; height: 18px; }

/* ===== Departments band ===== */
.depts-section {
  background: var(--neutral-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 32px;
}
.depts-inner { max-width: 1200px; margin: 0 auto; }
.depts-head { margin-bottom: 28px; }
.depts-head .eye {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--imco-blue);
  display: block; margin-bottom: 8px;
}
.depts-head h2 {
  font-size: 32px; font-weight: 900; letter-spacing: -0.02em;
  margin: 0; line-height: 1.1;
}
.depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dept-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.dept-card:hover { border-color: var(--imco-blue); box-shadow: var(--shadow-md); }
.dept-card__icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--imco-black); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.dept-card__icon i { width: 20px; height: 20px; }
.dept-card h3 {
  font-size: 18px; font-weight: 800; margin: 0; letter-spacing: -0.01em;
  color: var(--imco-black);
}
.dept-card p { font-size: 13px; color: var(--fg-muted); margin: 0; line-height: 1.55; }
.dept-card__contact {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.dept-card__contact a {
  font-size: 13px; color: var(--imco-black); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.dept-card__contact a:hover { color: var(--imco-blue); }
.dept-card__contact a i { width: 14px; height: 14px; color: var(--fg-subtle); }

/* ===== Map strip ===== */
.map-strip {
  background: #fff; padding: 64px 32px 96px;
}
.map-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 380px 1fr; gap: 32px;
  align-items: stretch;
}
.map-info {
  background: var(--imco-black); color: #fff;
  border-radius: 16px; padding: 36px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative; overflow: hidden;
}
.map-info::after {
  content: ""; position: absolute; right: -60px; bottom: -60px;
  width: 220px; height: 220px;
  background: rgb(20 93 158 / 0.18);
  transform: skewX(-18deg); pointer-events: none;
}
.map-info .eye { color: var(--blue-300); }
.map-info h3 {
  font-size: 28px; font-weight: 900; letter-spacing: -0.02em;
  margin: 0; line-height: 1.1; color: #fff;
}
.map-info p { font-size: 14px; color: var(--neutral-300); margin: 0; line-height: 1.55; }
.map-info .btn { align-self: flex-start; position: relative; z-index: 1; }
.map-canvas {
  border-radius: 16px; overflow: hidden; min-height: 360px;
  background:
    linear-gradient(135deg, var(--blue-50) 0%, #fff 70%),
    var(--neutral-100);
  border: 1px solid var(--border);
  position: relative;
}
.map-canvas svg { width: 100%; height: 100%; display: block; position: absolute; inset: 0; }
.map-pin {
  position: absolute; left: 52%; top: 46%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transform: translate(-50%, -100%);
}
.map-pin__dot {
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--imco-blue); border: 4px solid #fff;
  box-shadow: 0 6px 16px rgb(20 93 158 / 0.4);
  position: relative;
}
.map-pin__dot::after {
  content: ""; position: absolute; inset: -10px; border-radius: 999px;
  border: 2px solid rgb(20 93 158 / 0.4);
  animation: pulse 1.8s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}
.map-pin__label {
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px;
  font-size: 12px; font-weight: 700; color: var(--imco-black);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* ===== FAQ mini ===== */
.faq-section {
  background: var(--neutral-50); padding: 64px 32px 96px;
  border-top: 1px solid var(--border);
}
.faq-inner { max-width: 880px; margin: 0 auto; }
.faq-head { text-align: center; margin-bottom: 32px; }
.faq-head .eye {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--imco-blue); display: block; margin-bottom: 8px;
}
.faq-head h2 {
  font-size: 32px; font-weight: 900; letter-spacing: -0.02em;
  margin: 0; line-height: 1.1;
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden;
  transition: border-color 160ms var(--ease-out);
}
.faq-item.open { border-color: var(--imco-blue); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px;
  font-size: 15px; font-weight: 700; color: var(--imco-black);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
  width: 18px; height: 18px; color: var(--imco-blue);
  transition: transform 200ms var(--ease-out);
  flex-shrink: 0;
}
.faq-item.open summary i { transform: rotate(45deg); }
.faq-body {
  padding: 0 22px 20px; font-size: 14px; color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .page-head { padding: 56px 24px 72px; }
  .page-head__inner { grid-template-columns: 1fr; }
  .page-head__title { font-size: 52px; }
  .contact-section { padding: 48px 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-card { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .depts, .map-inner { grid-template-columns: 1fr; }
  .nav__search { display: none; }
  .nav__links { display: none; }
}

/* ==========================================================================
   MOBILE OVERFLOW FIXES — narrow phones
   ========================================================================== */
@media (max-width: 560px) {
  /* Form card: shrink padding + heading */
  .form-card { padding: 24px 18px; border-radius: 12px; }
  .form-card h2 { font-size: 26px; }

  /* Segmented control: minmax(0, 1fr) lets cells shrink below content width
     so "Comercializador" doesn't push the grid past the card. Icon stacks
     above smaller text on narrow phones. */
  .segmented { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; }
  .segmented button {
    flex-direction: column;
    gap: 4px;
    padding: 8px 4px;
    font-size: 11px;
    min-width: 0;
    text-align: center;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  /* Info cards: long values (emails, phone numbers with parens, em-dashes)
     can't break naturally and push the card. Allow them to wrap anywhere. */
  .info-card { padding: 18px; gap: 12px; }
  .info-card__icon { width: 38px; height: 38px; }
  .info-card__icon i { width: 18px; height: 18px; }
  .info-card__value,
  .info-card__meta,
  .info-card__link,
  .hours { overflow-wrap: anywhere; word-break: break-word; }
  .info-card__value { font-size: 15px; }
  .info-card__meta { font-size: 12px; }

  /* Quickfacts in dark header */
  .page-head__title { font-size: 38px; }
  .page-head__lead { font-size: 15px; }
  .page-head__quickfacts { min-width: 0; }

  /* Departments + brands grids */
  .depts-section { padding: 48px 20px; }
  .depts { grid-template-columns: 1fr; gap: 12px; }
  .depts-head h2 { font-size: 24px; }
}
