/**
 * Nexus Team — CSS v1.0.0
 * Autor: Jesús Ángel Hernández / Jetechnik
 */

/* ============================================================
   WRAPPER
   ============================================================ */
.ntm-wrapper {
  width: 100%;
  font-family: 'Nunito', -apple-system, sans-serif;
  --ntm-cols: 3;
}

/* ============================================================
   TABS
   ============================================================ */
.ntm-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.ntm-tab {
  display: inline-flex;
  align-items: center;
  padding: 7px 22px;
  border: none;
  border-radius: 50px;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
  outline: none;
}

.ntm-tab:hover {
  color: rgba(255,255,255,0.85);
}

.ntm-tab:focus-visible {
  outline: 2px solid #C89B3C;
  outline-offset: 2px;
}

.ntm-tab.ntm-active {
  background: #C89B3C;
  color: #ffffff;
}

/* ============================================================
   PANELS
   ============================================================ */
.ntm-panel {
  display: none;
  animation: ntmFadeIn .3s ease;
}

.ntm-panel.ntm-panel-active {
  display: block;
}

@keyframes ntmFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ============================================================
   GRID
   ============================================================ */
.ntm-grid {
  display: grid;
  grid-template-columns: repeat(var(--ntm-cols), 1fr);
  gap: 20px;
}

/* ============================================================
   CARD
   ============================================================ */
.ntm-card {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}

.ntm-card:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.ntm-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  text-decoration: none;
  color: inherit;
  width: 100%;
  box-sizing: border-box;
}

/* ============================================================
   AVATAR
   ============================================================ */
.ntm-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.ntm-avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.ntm-avatar-initials {
  font-size: calc(72px * 0.33);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  user-select: none;
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: .02em;
}

/* ============================================================
   TEXTS
   ============================================================ */
.ntm-name {
  font-size: .95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 5px;
  line-height: 1.35;
}

.ntm-role {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #C89B3C;
  margin: 0 0 10px;
}

.ntm-bio {
  font-size: .82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  margin: 8px 0 0;
  max-width: 240px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.ntm-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  width: 100%;
}

.ntm-email,
.ntm-phone {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
}

.ntm-email svg,
.ntm-phone svg {
  width: 13px;
  height: 13px;
  fill: rgba(255,255,255,0.45);
  flex-shrink: 0;
}

.ntm-email a,
.ntm-phone a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color .2s ease;
  word-break: break-all;
}

.ntm-email a:hover,
.ntm-phone a:hover {
  color: #C89B3C;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ntm-wrapper { --ntm-cols: 2; }
}

@media (max-width: 768px) {
  .ntm-wrapper { --ntm-cols: 1; }

  .ntm-tabs {
    margin-bottom: 28px;
  }

  .ntm-grid {
    gap: 14px;
  }
}

/* ============================================================
   LIGHT THEME (fondo claro)
   Añade la clase ntm-light al wrapper desde Elementor
   ============================================================ */
.ntm-light .ntm-tab {
  color: rgba(0,0,0,0.45);
}

.ntm-light .ntm-tab.ntm-active {
  background: #1A3F7A;
  color: #fff;
}

.ntm-light .ntm-card {
  background: #ffffff;
  border-color: rgba(26,63,122,0.1);
  box-shadow: 0 4px 20px rgba(26,63,122,0.08);
}

.ntm-light .ntm-card:hover {
  background: #f8faff;
  box-shadow: 0 12px 32px rgba(26,63,122,0.15);
}

.ntm-light .ntm-name  { color: #1A1A2E; }
.ntm-light .ntm-bio   { color: #6B6B7D; }
.ntm-light .ntm-email a,
.ntm-light .ntm-phone a { color: #6B6B7D; }
.ntm-light .ntm-email a:hover,
.ntm-light .ntm-phone a:hover { color: #1A3F7A; }

/* ============================================================
   GROUP HEADER (título + línea + descripción)
   ============================================================ */
.ntm-group-header {
  margin-bottom: 40px;
}

.ntm-group-title {
  font-family: 'Nunito', -apple-system, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 14px;
  line-height: 1.2;
}

.ntm-group-line {
  width: 48px;
  height: 3px;
  background: #C89B3C;
  border-radius: 2px;
  margin-bottom: 20px;
}

.ntm-group-description {
  font-family: 'Nunito', -apple-system, sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin: 0;
  max-width: 640px;
}

/* Light theme overrides */
.ntm-light .ntm-group-title       { color: #1A1A2E; }
.ntm-light .ntm-group-description { color: #6B6B7D; }
