/* ====================================================================
   FEGAM - Nosotros Page - Apple-level Polish
   Versión: 2.0 - Feb 2026
   ==================================================================== */

/* Reset y base mejorada */
#nosotros {
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Header con espaciado Apple */
#nosotros header h1 {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

#nosotros header .lead {
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.003em;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.85;
}

/* Contenido principal - mejor tipografía */
#nosotros article p {
  line-height: 1.7;
  letter-spacing: -0.003em;
  margin-bottom: 1.25rem;
}

#nosotros article strong {
  font-weight: 600;
}

/* Cards de proceso - estilo Apple */
#nosotros .row.g-3 .col-md-6 > .d-flex {
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: color-mix(in srgb, var(--surface, #f5f5f7) 100%, transparent);
  border: 1px solid color-mix(in srgb, var(--border, #d2d2d7) 100%, transparent);
}

#nosotros .row.g-3 .col-md-6 > .d-flex:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
  border-color: color-mix(in srgb, var(--accent, #007aff) 30%, var(--border, #d2d2d7) 70%);
}

#nosotros .row.g-3 .d-flex .fa {
  color: var(--accent, #007aff);
  opacity: 0.9;
}

#nosotros .row.g-3 h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text, #1d1d1f);
}

#nosotros .row.g-3 p.small {
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0.75;
  margin: 0;
}

/* Botones estilo Apple */
#nosotros .btn {
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 12px;
  padding: 0.875rem 1.75rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.0625rem;
  border-width: 1px;
  position: relative;
  overflow: hidden;
}

#nosotros .btn-primary {
  background: var(--accent, #007aff);
  border-color: var(--accent, #007aff);
  color: white;
  box-shadow: 0 4px 12px -4px rgba(0, 122, 255, 0.4);
}

#nosotros .btn-primary:hover {
  background: color-mix(in srgb, var(--accent, #007aff) 90%, black 10%);
  border-color: color-mix(in srgb, var(--accent, #007aff) 90%, black 10%);
  box-shadow: 0 8px 20px -6px rgba(0, 122, 255, 0.5);
  transform: translateY(-1px);
}

#nosotros .btn-outline-primary {
  background: transparent;
  border-color: var(--accent, #007aff);
  color: var(--accent, #007aff);
}

#nosotros .btn-outline-primary:hover {
  background: var(--accent, #007aff);
  border-color: var(--accent, #007aff);
  color: white;
  transform: translateY(-1px);
}

#nosotros .btn-warning {
  background: linear-gradient(135deg, #ffb340 0%, #ff9500 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 12px -4px rgba(255, 149, 0, 0.4);
  font-weight: 600;
}

#nosotros .btn-warning:hover {
  background: linear-gradient(135deg, #ff9500 0%, #e68600 100%);
  box-shadow: 0 8px 20px -6px rgba(255, 149, 0, 0.5);
  transform: translateY(-1px);
}

/* Sidebar cards - diseño refinado */
#nosotros aside .bg-light {
  background: var(--surface, #f5f5f7) !important;
  color: var(--text, #1d1d1f);
  border: 1px solid var(--border, #d2d2d7);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#nosotros aside .bg-light:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

#nosotros aside .bg-light h2,
#nosotros aside .bg-light h3 {
  color: var(--text, #1d1d1f);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

/* Listas con iconos - espaciado perfecto Apple */
#nosotros aside .bg-light ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#nosotros aside .bg-light li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.9375rem;
}

#nosotros aside .bg-light li:last-child {
  margin-bottom: 0;
}

#nosotros aside .bg-light li .fa {
  flex-shrink: 0;
  margin-right: 0.875rem;
  margin-top: 0.125rem;
  font-size: 1.125rem;
  color: var(--accent, #007aff);
  opacity: 0.9;
}

#nosotros aside .bg-light li .fa-check-circle {
  color: #34c759; /* Verde Apple */
}

/* Sección de equipo - galería mejorada */
#nosotros .row.g-4 img {
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#nosotros .row.g-4 .position-relative {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

#nosotros .row.g-4 .position-relative:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  transform: translateY(-4px);
}

#nosotros .row.g-4 .position-relative:hover img {
  transform: scale(1.05);
}

#nosotros .row.g-4 .position-absolute {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%) !important;
  padding: 1.25rem !important;
}

#nosotros .row.g-4 .position-absolute p {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

/* Sección de contacto inferior */
#nosotros .bg-light.py-5 {
  background: linear-gradient(135deg, 
    var(--surface, #f5f5f7) 0%, 
    color-mix(in srgb, var(--surface, #f5f5f7) 95%, var(--text, #000) 5%) 100%
  ) !important;
  border-top: 1px solid var(--border, #d2d2d7);
}

#nosotros .bg-light h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

#nosotros .bg-light .small {
  font-size: 0.9375rem;
  line-height: 1.6;
}

#nosotros .bg-light .fa {
  color: var(--accent, #007aff);
  opacity: 0.9;
  margin-right: 0.75rem;
}

/* Animaciones suaves Apple */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#nosotros header,
#nosotros article,
#nosotros aside > * {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

#nosotros aside > *:nth-child(1) { animation-delay: 0.1s; }
#nosotros aside > *:nth-child(2) { animation-delay: 0.2s; }

/* Responsive refinado */
@media (max-width: 991.98px) {
  #nosotros header h1 {
    font-size: 2.25rem;
  }
  
  #nosotros header .lead {
    font-size: 1.125rem;
  }
  
  #nosotros aside .bg-light {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  #nosotros .btn {
    width: 100%;
    text-align: center;
  }
  
  #nosotros .row.g-3 .col-md-6 > .d-flex {
    padding: 1.25rem;
  }
}

/* Dark mode refinado */
@media (prefers-color-scheme: dark) {
  #nosotros aside .bg-light {
    background: color-mix(in srgb, var(--surface, #1d1d1f) 100%, transparent) !important;
    border-color: color-mix(in srgb, var(--border, #424245) 100%, transparent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
  }
  
  #nosotros .row.g-3 .col-md-6 > .d-flex {
    background: color-mix(in srgb, var(--surface, #1d1d1f) 100%, transparent);
    border-color: color-mix(in srgb, var(--border, #424245) 100%, transparent);
  }
  
  #nosotros .btn-primary {
    box-shadow: 0 4px 12px -4px rgba(0, 122, 255, 0.3);
  }
  
  #nosotros .btn-warning {
    box-shadow: 0 4px 12px -4px rgba(255, 149, 0, 0.3);
  }
}

/* Micro-interacciones */
#nosotros .btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.3s;
}

#nosotros .btn:active::before {
  opacity: 0.15;
}

/* Typography refinamiento final */
#nosotros h1, #nosotros h2, #nosotros h3 {
  font-feature-settings: 'kern' 1, 'liga' 1, 'ss01' 1;
}

#nosotros p, #nosotros li {
  font-feature-settings: 'kern' 1, 'liga' 1;
}