/* Estilos compartidos para Distribuidores y Nosotros */

/* ===== Section blocks ===== */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}
.content-section--narrow { max-width: 880px; }

/* ===== Benefits grid (Distribuidores) ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.benefit {
  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);
}
.benefit:hover {
  border-color: var(--imco-blue);
  box-shadow: var(--shadow-md);
}
.benefit__icon {
  width: 52px; height: 52px;
  background: var(--blue-50);
  color: var(--imco-blue);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.benefit__icon svg { width: 26px; height: 26px; }
.benefit h3 { font-size: 18px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.benefit p { font-size: 14px; color: var(--fg-muted); line-height: 1.55; margin: 0; }
.benefit__bullet {
  font-size: 13px; color: var(--imco-blue); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px;
}

/* ===== Steps (How to apply) ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  position: relative;
}
.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
}
.step-card__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 64px;
  color: var(--blue-100);
  line-height: 0.85;
  letter-spacing: -0.04em;
}
.step-card h3 {
  font-size: 18px; font-weight: 700; margin: 0;
  letter-spacing: -0.005em;
}
.step-card p {
  font-size: 14px; color: var(--fg-muted); line-height: 1.55; margin: 0;
}

/* ===== Requirements list ===== */
.req-card {
  background: var(--neutral-50);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px;
}
.req-card h3 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.req-card p {
  font-size: 14px; color: var(--fg-muted);
  line-height: 1.55; margin: 0;
}
.req-card ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 12px;
}
.req-card li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; line-height: 1.5;
}
.req-card li i {
  width: 20px; height: 20px;
  background: var(--success-soft);
  color: var(--success);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  padding: 2px;
}
.req-card li strong { display: block; color: var(--imco-black); font-weight: 700; margin-bottom: 2px; }
.req-card li span { color: var(--fg-muted); font-size: 13px; }

@media (max-width: 760px) {
  .req-card { grid-template-columns: 1fr; }
}

/* ===== Pillars (Nosotros) ===== */
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.pillar {
  border-left: 3px solid var(--imco-blue);
  padding: 4px 0 4px 22px;
}
.pillar h3 {
  font-size: 20px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em;
}
.pillar p {
  font-size: 14px; line-height: 1.6; color: var(--fg-muted); margin: 0;
}

/* ===== Quote block (mission / vision) ===== */
.brand-quote {
  background: var(--imco-black);
  color: #fff;
  padding: 96px 32px;
  position: relative;
  overflow: hidden;
}
.brand-quote__inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.brand-quote__diagonal {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(
    125deg,
    transparent 0%, transparent 55%,
    rgb(20 93 158 / 0.10) 55.2%,
    rgb(20 93 158 / 0.10) 70%,
    transparent 70.2%
  );
}
.brand-quote__eye {
  display: block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue-300); margin-bottom: 22px;
}
.brand-quote blockquote {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  text-wrap: balance;
}
.brand-quote blockquote em {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  color: var(--blue-400);
  text-transform: uppercase;
  font-size: 0.7em;
  letter-spacing: 0;
}
.brand-quote__sig {
  display: block;
  margin-top: 32px;
  font-size: 13px; font-weight: 600;
  color: var(--neutral-400);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ===== Timeline / Story ===== */
.story-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px;
  align-items: start;
}
.story-grid h2 {
  font-size: 40px; font-weight: 900;
  letter-spacing: -0.02em; line-height: 1.05;
  margin: 8px 0 24px;
}
.story-grid p {
  font-size: 16px; line-height: 1.65; color: var(--fg);
  margin: 0 0 16px;
}
.story-grid p:last-child { margin-bottom: 0; }
.story-stats {
  background: var(--neutral-50);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 24px;
}
.story-stat__num {
  font-size: 42px; font-weight: 900;
  letter-spacing: -0.02em; line-height: 1;
  color: var(--imco-blue);
}
.story-stat__label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 4px;
}
.story-stat__desc {
  font-size: 13px; color: var(--fg-muted);
  margin-top: 8px; line-height: 1.55;
}

@media (max-width: 880px) {
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-grid h2 { font-size: 32px; }
}

/* ===== FAQ ===== */
.faq-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 32px;
}
.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;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 15px; color: var(--imco-black);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--imco-blue); transition: transform 200ms var(--ease-out); }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item__body {
  padding: 0 22px 20px;
  color: var(--fg-muted); font-size: 14px; line-height: 1.6;
}

/* ===== Map / Address (Nosotros) ===== */
.where {
  background: var(--neutral-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.where__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 64px 32px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px;
  align-items: center;
}
.where__info h2 {
  font-size: 32px; font-weight: 900; letter-spacing: -0.02em;
  margin: 8px 0 16px;
}
.where__addr {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.where__addr-row {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px;
  line-height: 1.55;
}
.where__addr-row i {
  color: var(--imco-blue);
  width: 18px; height: 18px;
  flex-shrink: 0; margin-top: 3px;
}
.where__addr-row strong { display: block; font-weight: 700; color: var(--imco-black); }
.where__addr-row span { color: var(--fg-muted); }
.where__map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  aspect-ratio: 8/5;
  min-height: 320px;
  position: relative;
}
.where__map iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Stylized SVG map (compartido con Contacto cuando aplique) */
.where__map.map-canvas {
  background:
    linear-gradient(135deg, var(--blue-50) 0%, #fff 70%),
    var(--neutral-100);
}
.where__map.map-canvas svg {
  width: 100%; height: 100%;
  display: block; position: absolute; inset: 0;
}
.where__map .map-pin {
  position: absolute; left: 52%; top: 46%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transform: translate(-50%, -100%);
  pointer-events: none;
}
.where__map .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;
}
.where__map .map-pin__dot::after {
  content: ""; position: absolute; inset: -10px; border-radius: 999px;
  border: 2px solid rgb(20 93 158 / 0.4);
  animation: pulse-where 1.8s ease-out infinite;
}
@keyframes pulse-where {
  0%   { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}
.where__map .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;
}

@media (max-width: 880px) {
  .where__inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px; }
  /* The 8/5 aspect ratio + 320px min-height forced the map to 512px wide
     once the column dropped to 1fr, overflowing the viewport. Override to
     a portrait-friendly aspect and let min-height own the size. */
  .where__map { aspect-ratio: auto; height: 320px; min-height: 0; }
}

/* ===== CTA strip ===== */
.cta-strip {
  background: var(--imco-blue);
  color: #fff;
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}
.cta-strip__inner {
  max-width: 1000px; margin: 0 auto;
  text-align: center;
  position: relative;
}
.cta-strip__shape {
  position: absolute; right: -180px; top: -120px;
  width: 480px; height: 480px;
  background: rgb(255 255 255 / 0.06);
  transform: skewX(-18deg);
  pointer-events: none;
}
.cta-strip h3 {
  font-size: 36px; font-weight: 900;
  letter-spacing: -0.02em; line-height: 1.05;
  margin: 0 0 12px;
  color: #fff;
  text-wrap: balance;
}
.cta-strip p {
  font-size: 16px; opacity: 0.88; margin: 0 0 28px;
  max-width: 60ch; margin-left: auto; margin-right: auto;
}
.cta-strip__btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.cta-strip .btn-on-blue {
  background: #fff; color: var(--imco-blue); border-color: #fff;
}
.cta-strip .btn-on-blue:hover { background: var(--blue-50); }
.cta-strip .btn-on-blue-outline {
  background: transparent; color: #fff;
  border-color: rgb(255 255 255 / 0.5);
}
.cta-strip .btn-on-blue-outline:hover {
  background: rgb(255 255 255 / 0.1);
  border-color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .content-section { padding: 56px 24px; }
  .brand-quote { padding: 64px 24px; }
  .cta-strip { padding: 48px 24px; }
  .cta-strip h3 { font-size: 28px; }
}
