/* ============================================================
   VISA ABORDO CONSULTING — SOBRE NOSOTROS PAGE
   Page-specific styles. Load after components.css.
   ============================================================ */

/* ── HERO TIPOGRÁFICO ──────────────────────────────────────── */

.sn-hero {
  background: var(--bg-page);
  padding-top: clamp(80px, 10vw, 128px);
  padding-bottom: var(--space-12);
  text-align: center;
}

.sn-hero + .section {
  padding-top: var(--space-14);
}

.sn-hero__inner {
  max-width: 1040px;
  margin-inline: auto;
}

.sn-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(33,79,134,.08);
  border: 1px solid rgba(33,79,134,.2);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  color: var(--brand-primary);
  text-transform: uppercase;
  margin-bottom: var(--space-8);
}

.sn-hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--brand-primary);
  flex-shrink: 0;
}

.sn-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-4xl), 5.2vw, 64px);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-7);
}

.sn-hero__title em {
  font-style: normal;
  color: var(--brand-accent);
}

.sn-hero__desc {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 680px;
  margin-inline: auto;
}

/* ── HISTORIA CON FOTO CEO ─────────────────────────────────── */

.sn-historia__grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: stretch;
}

.sn-historia__media {
  display: flex;
  flex-direction: column;
}

/* Variación A — fondo gris claro, figura navy abajo-derecha */
.sn-historia__media-outer {
  position: relative;
  flex: 1;
  min-height: 420px;
}

.sn-historia__media-frame {
  position: absolute;
  top: 48px;
  left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-gray-50);
}

.sn-historia__bg-shape {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 65%;
  height: 64%;
  background: #0c1f3f;
  border-radius: 48px 0 0 0;
  z-index: 1;
}

.sn-historia__dots {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 90px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(12,31,63,.18) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  z-index: 2;
  pointer-events: none;
}

.sn-historia__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  z-index: 3;
}

.sn-historia__caption {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.sn-historia__caption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.sn-historia__caption span {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.sn-historia__content .section-header {
  margin-bottom: var(--space-8);
}

.sn-historia__quote {
  border-left: 2px solid var(--brand-accent);
  padding-left: var(--space-6);
  margin-block: var(--space-10);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: var(--text-lg);
  font-weight: normal;
  font-style: italic;
  line-height: 1.7;
  color: #0c1f3f;
}

.sn-historia__p {
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--text-secondary);
}

.sn-historia__p + .sn-historia__p {
  margin-top: var(--space-4);
}

/* ── QUÉ NOS DISTINGUE ─────────────────────────────────────── */

.sn-distingue__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.sn-distingue__item {
  padding: var(--space-10) var(--space-9);
  background: var(--bg-page);
  position: relative;
}

.sn-distingue__item--accent {
  background: #0c1f3f;
}

.sn-distingue__item--teal {
  background: var(--brand-accent);
}

.sn-distingue__item--accent::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 80px; height: 80px;
  background: rgba(90,211,209,.07);
  border-radius: 80px 0 0 0;
  pointer-events: none;
}

.sn-distingue__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: rgba(90,211,209,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--brand-accent);
  flex-shrink: 0;
}

.sn-distingue__item--accent .sn-distingue__icon {
  background: rgba(90,211,209,.14);
  color: var(--brand-accent);
}

.sn-distingue__item--teal .sn-distingue__icon {
  background: rgba(12,31,63,.12);
  color: #0c1f3f;
}

.sn-distingue__icon svg {
  width: 20px;
  height: 20px;
}

.sn-distingue__name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.25;
}

.sn-distingue__item--accent .sn-distingue__name { color: var(--color-white); }
.sn-distingue__item--teal  .sn-distingue__name  { color: #0c1f3f; }

.sn-distingue__desc {
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

.sn-distingue__item--accent .sn-distingue__desc { color: rgba(255,255,255,.62); }
.sn-distingue__item--teal  .sn-distingue__desc  { color: rgba(12,31,63,.68); }

/* ── HOVER EFFECTS ─────────────────────────────────────────── */

.sn-distingue__item {
  transition: background 0.3s var(--ease);
}

.sn-distingue__icon {
  transition: transform 0.3s var(--ease);
}

.sn-distingue__item:hover .sn-distingue__icon {
  transform: scale(1.18) rotate(-6deg);
}

/* Ítems blancos — línea teal que se desliza desde la izquierda */
.sn-distingue__item:not(.sn-distingue__item--accent):not(.sn-distingue__item--teal)::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.sn-distingue__item:not(.sn-distingue__item--accent):not(.sn-distingue__item--teal):hover {
  background: #f7f9fc;
}

.sn-distingue__item:not(.sn-distingue__item--accent):not(.sn-distingue__item--teal):hover::before {
  transform: scaleX(1);
}

/* Ítems navy — aclaran ligeramente */
.sn-distingue__item--accent:hover {
  background: #132d52;
}

/* Ítem turquesa — oscurece ligeramente */
.sn-distingue__item--teal:hover {
  background: #46c6c4;
}

/* ── CTA FINAL ─────────────────────────────────────────────── */

.sn-cta {
  padding-block: var(--space-12);
  background: var(--bg-page);
}

.sn-cta__bar {
  background: linear-gradient(135deg, #091525 0%, #0F2040 45%, #122A55 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  position: relative;
  overflow: hidden;
}

.sn-cta__bar::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(90,211,209,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.sn-cta__title {
  position: relative; z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(var(--text-xl), 2.2vw, var(--text-2xl));
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1.2;
}

.sn-cta__actions {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.sn-cta__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.8);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.sn-cta__wa svg {
  width: 22px;
  height: 22px;
}

.sn-cta__wa:hover {
  background: #25D366;
  border-color: #25D366;
  color: white;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */

@media (max-width: 900px) {
  .sn-historia__grid {
    grid-template-columns: 1fr;
  }
  .sn-historia__media-outer {
    flex: none;
    height: auto;
    margin-inline: auto;
  }
  .sn-historia__media-frame {
    position: relative;
    top: 0;
    height: auto;
    overflow: hidden;
    border-radius: 16px;
  }
  .sn-historia__photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: 440px;
    display: block;
    object-fit: cover;
    object-position: top center;
  }
  .sn-historia__bg-shape {
    display: none;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .sn-historia__media[data-animate],
  .sn-historia__content[data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  .sn-hero__title { font-size: 2.4rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .sn-distingue__grid { grid-template-columns: 1fr; }
  .sn-cta__bar { flex-direction: column; text-align: center; padding: var(--space-8); }
  .sn-cta__actions { width: 100%; }
  .sn-cta__actions .btn { flex: 1; justify-content: center; }
}
