/* ════════════════════════════════════════════════════════════════════════════
   Professional Teams — WordPress Plugin Styles v2
   Colors: #e11b31 (rojo) · #0c3969 (azul) · #ffffff (blanco)
════════════════════════════════════════════════════════════════════════════ */
:root {
  --pt-red:        #e11b31;
  --pt-red-dk:     #b81526;
  --pt-blue:       #0c3969;
  --pt-blue-lt:    #1a5a9e;
  --pt-white:      #ffffff;
  --pt-bg:         #f5f7fa;
  --pt-card-bg:    #ffffff;
  --pt-border:     #e8ecf1;
  --pt-text:       #1a2535;
  --pt-muted:      #6b7a90;
  --pt-radius:     14px;
  --pt-shadow:     0 2px 16px rgba(12,57,105,.10);
  --pt-shadow-hov: 0 8px 32px rgba(12,57,105,.18);
  --pt-font:       'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Wrapper ───────────────────────────────────────────────── */
.pt-wrapper {
  font-family: var(--pt-font);
  font-size: 16px !important;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4px;
  color: var(--pt-text);
}
.pt-wrapper *, .pt-wrapper *::before, .pt-wrapper *::after { box-sizing: border-box; }

/* ── Header ────────────────────────────────────────────────── */
.pt-header { text-align: center; margin-bottom: 32px; }
.pt-title {
  font-size: 32px !important;
  font-weight: 800 !important;
  color: var(--pt-blue) !important;
  margin: 0 0 6.4px !important;
  letter-spacing: -.5px;
}
.pt-title i { color: var(--pt-red); margin-right: 7.2px; }
.pt-subtitle { color: var(--pt-muted); font-size: 15.2px; margin: 0; }

/* ── Search Bar ────────────────────────────────────────────── */
.pt-search-bar {
  position: relative;
  margin-bottom: 20px;
}
.pt-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pt-muted);
  font-size: 14.4px;
  pointer-events: none;
}
.pt-search-input {
  width: 100%;
  padding: 14px 44px 14px 17.6px;
  border: 1.5px solid var(--pt-border);
  border-radius: var(--pt-radius);
  font-family: var(--pt-font);
  font-size: 14.4px;
  color: var(--pt-text);
  background: var(--pt-white);
  box-shadow: var(--pt-shadow);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.pt-search-input:focus {
  border-color: var(--pt-red);
  box-shadow: 0 0 0 3px rgba(225,27,49,.12);
}
.pt-search-count {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--pt-muted);
}

/* ── Category Pills ────────────────────────────────────────── */
.pt-cats-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.pt-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6.4px;
  padding: 7.2px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--pt-border);
  background: var(--pt-white);
  color: var(--pt-muted);
  font-family: var(--pt-font);
  font-size: 12.8px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.pt-cat-pill:hover {
  border-color: var(--pt-blue);
  color: var(--pt-blue);
  background: rgba(12,57,105,.05);
}
.pt-cat-pill.active {
  background: var(--pt-blue);
  border-color: var(--pt-blue);
  color: var(--pt-white);
  box-shadow: 0 2px 8px rgba(12,57,105,.25);
}
.pt-cat-pill.active:hover {
  background: var(--pt-blue-lt);
  border-color: var(--pt-blue-lt);
}
.pt-cat-count {
  background: rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 0 7.2px;
  font-size: 11.2px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}
.pt-cat-pill:not(.active) .pt-cat-count {
  background: var(--pt-border);
  color: var(--pt-muted);
}

/* Active filter row */
.pt-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9.6px 14.4px;
  background: rgba(12,57,105,.05);
  border: 1px solid rgba(12,57,105,.12);
  border-radius: var(--pt-radius);
  margin-bottom: 16px;
  font-size: 12.8px;
}
.pt-af-label { color: var(--pt-muted); font-weight: 500; flex-shrink: 0; }
.pt-af-tags  { display: flex; flex-wrap: wrap; gap: 5.6px; flex: 1; }
.pt-af-tag {
  display: inline-flex;
  align-items: center;
  gap: 4.8px;
  background: var(--pt-blue);
  color: var(--pt-white);
  border-radius: 999px;
  padding: 3.2px 10.4px;
  font-size: 12px;
  font-weight: 600;
}
.pt-af-tag button {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 11.2px;
}
.pt-af-tag button:hover { color: #fff; }
.pt-af-clear {
  background: none;
  border: 1px solid rgba(225,27,49,.3);
  color: var(--pt-red);
  border-radius: 999px;
  padding: 3.2px 11.2px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--pt-font);
  font-weight: 500;
  transition: all .15s;
  flex-shrink: 0;
}
.pt-af-clear:hover { background: var(--pt-red); color: #fff; border-color: var(--pt-red); }

/* ── Grid ──────────────────────────────────────────────────── */
.pt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

/* ── Card ──────────────────────────────────────────────────── */
.pt-card {
  background: var(--pt-card-bg);
  border-radius: var(--pt-radius);
  border: 1px solid var(--pt-border);
  box-shadow: var(--pt-shadow);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
  cursor: pointer;
}
.pt-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--pt-shadow-hov);
}

/* Photo */
.pt-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--pt-blue);
}
.pt-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .3s ease;
}
.pt-card:hover .pt-card-img { transform: scale(1.04); }

/* Overlay CTA */
.pt-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12,57,105,.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .22s ease;
}
.pt-card:hover .pt-card-overlay { opacity: 1; }
.pt-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pt-white);
  color: var(--pt-blue);
  border: none;
  border-radius: 999px;
  padding: 10.4px 22.4px;
  font-family: var(--pt-font);
  font-size: 13.6px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, color .18s;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.pt-view-btn:hover { background: var(--pt-red); color: var(--pt-white); }

/* Category Badge */
.pt-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--pt-blue);
  color: var(--pt-white);
  font-size: 11.2px;
  font-weight: 600;
  padding: 4px 11.2px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4.8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Card Body */
.pt-card-body { padding: 17.6px 20px 20px; }
.pt-card-name {
  font-size: 16.8px !important;
  font-weight: 700 !important;
  color: var(--pt-text) !important;
  margin: 0 0 4px !important;
  line-height: 1.3;
}
.pt-card-title {
  font-size: 12.8px;
  color: var(--pt-muted);
  margin: 0 0 13.6px;
  line-height: 1.4;
}
.pt-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Stars */
.pt-stars { display: flex; align-items: center; gap: 2.4px; }
.pt-s-on  { color: #f59e0b; font-size: 12.8px; }
.pt-s-off { color: #e2e8f0; font-size: 12.8px; }
.pt-rate-text { font-size: 12.48px; font-weight: 600; color: var(--pt-text); margin-left: 4.8px; }
.pt-rate-count { font-weight: 400; color: var(--pt-muted); }

/* Contact Buttons */
.pt-card-contacts { display: flex; gap: 6.4px; }
.pt-cc {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12,57,105,.08);
  color: var(--pt-blue);
  text-decoration: none;
  font-size: 12.8px;
  transition: all .18s;
}
.pt-cc:hover { background: var(--pt-blue); color: #fff; }
.pt-cc-wa { background: rgba(34,197,94,.1); color: #16a34a; }
.pt-cc-wa:hover { background: #16a34a; color: #fff; }

/* ── Pagination ────────────────────────────────────────────── */
.pt-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6.4px; margin-bottom: 16px; }
.pt-page-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--pt-border);
  background: var(--pt-white);
  color: var(--pt-muted);
  font-family: var(--pt-font);
  font-size: 13.6px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
}
.pt-page-btn:hover { border-color: var(--pt-blue); color: var(--pt-blue); }
.pt-page-btn.active { background: var(--pt-blue); border-color: var(--pt-blue); color: var(--pt-white); font-weight: 700; }

/* ── Messages ──────────────────────────────────────────────── */
.pt-message {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 64px 32px;
  color: var(--pt-muted);
  font-size: 15.2px;
}
.pt-message i { font-size: 40px; opacity: .5; }
.pt-error { color: var(--pt-red); }
.pt-error i { opacity: 1; }

/* ── Modal ─────────────────────────────────────────────────── */
/* NOTE: JS moves this element to <body> on init to escape WP theme stacking contexts */
.pt-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10,20,40,.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pt-modal-overlay.is-open {
  display: flex;
  animation: ptFadeIn .2s ease;
}
@keyframes ptFadeIn { from { opacity: 0; } to { opacity: 1; } }

.pt-modal {
  background: var(--pt-white);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  animation: ptSlideUp .25s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--pt-border) transparent;
}
@keyframes ptSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.pt-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.9);
  color: var(--pt-text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: all .18s;
}
.pt-modal-close:hover { background: var(--pt-red); color: var(--pt-white); }

/* Spinner */
.pt-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px;
  font-size: 40px;
  color: var(--pt-blue);
}

/* ── Modal Hero ────────────────────────────────────────────── */
.pt-mhero {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 32px 32px 24px;
  background: var(--pt-blue);
  border-radius: 20px 20px 0 0;
  flex-wrap: wrap;
}
.pt-mhero-photo {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  object-fit: cover;
  object-position: top;
  border: 3px solid rgba(255,255,255,.3);
  flex-shrink: 0;
}
.pt-mhero-info { color: var(--pt-white); flex: 1; min-width: 180px; }
.pt-mhero-cat {
  display: inline-flex;
  align-items: center;
  gap: 5.6px;
  background: rgba(255,255,255,.15);
  border-radius: 999px;
  padding: 3.2px 12px;
  font-size: 11.52px;
  font-weight: 600;
  margin-bottom: 9.6px;
}
.pt-mhero-name {
  font-size: 27.2px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 4px;
}
.pt-mhero-title {
  font-size: 14.08px;
  opacity: .8;
  margin: 0 0 9.6px;
}
.pt-mhero-stars { display: flex; align-items: center; gap: 3.2px; }
.pt-mhero-stars i { font-size: 14.4px; }
.pt-mhero-stars .pt-s-on { color: #fbbf24; }
.pt-mhero-stars .pt-s-off { color: rgba(255,255,255,.2); }
.pt-mhero-stars span { font-size: 12.8px; opacity: .8; margin-left: 6.4px; }
.pt-mhero-actions { display: flex; gap: 9.6px; flex-wrap: wrap; margin-top: 13.6px; }
.pt-mbtn {
  display: inline-flex;
  align-items: center;
  gap: 7.2px;
  padding: 8.8px 20px;
  border-radius: 999px;
  font-family: var(--pt-font);
  font-size: 12.8px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .18s;
}
.pt-mbtn-primary { background: var(--pt-red); color: var(--pt-white); }
.pt-mbtn-primary:hover { background: var(--pt-red-dk); color: var(--pt-white); text-decoration: none; }
.pt-mbtn-outline { background: rgba(255,255,255,.15); color: var(--pt-white); }
.pt-mbtn-outline:hover { background: rgba(255,255,255,.25); color: var(--pt-white); text-decoration: none; }

/* ── Modal Body ────────────────────────────────────────────── */
.pt-mbody { padding: 28px 32px; }

.pt-mbody-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
}
@media (max-width: 600px) {
  .pt-mbody-grid { grid-template-columns: 1fr; }
  .pt-mhero { padding: 24px; }
  .pt-mhero-name { font-size: 21.6px; }
}

.pt-msection { margin-bottom: 24px; }
.pt-msection:last-child { margin-bottom: 0; }
.pt-msection-title {
  font-size: 12.8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pt-muted);
  margin: 0 0 13.6px;
  display: flex;
  align-items: center;
  gap: 7.2px;
}
.pt-msection-title i { color: var(--pt-red); font-size: 13.6px; }

/* Bio */
.pt-mbio { font-size: 14.4px; line-height: 1.75; color: var(--pt-text); }

/* Contact */
.pt-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9.6px; }
.pt-contact-list a {
  display: flex;
  align-items: center;
  gap: 10.4px;
  font-size: 13.6px;
  color: var(--pt-text);
  text-decoration: none;
  transition: color .18s;
}
.pt-contact-list a:hover { color: var(--pt-red); }
.pt-contact-list i { width: 20px; text-align: center; color: var(--pt-blue); font-size: 14.4px; flex-shrink: 0; }
.pt-contact-wa i  { color: #16a34a; }

/* Socials */
.pt-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pt-soc-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pt-bg);
  color: var(--pt-text);
  font-size: 16px;
  text-decoration: none;
  transition: all .18s;
}
.pt-soc-icon:hover { background: var(--pt-blue); color: var(--pt-white); }

/* Skills */
.pt-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-skill {
  background: rgba(12,57,105,.07);
  color: var(--pt-blue);
  border-radius: 8px;
  padding: 4.8px 12px;
  font-size: 12.8px;
  font-weight: 500;
}

/* Timeline */
.pt-timeline { position: relative; padding-left: 24px; }
.pt-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, var(--pt-red), var(--pt-blue));
  border-radius: 2px;
}
.pt-tl-item { position: relative; margin-bottom: 17.6px; }
.pt-tl-item::before {
  content: '';
  position: absolute;
  left: -18.4px;
  top: 5.6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pt-red);
  border: 2px solid var(--pt-white);
  box-shadow: 0 0 0 1.5px var(--pt-red);
}
.pt-tl-year {
  display: inline-block;
  background: var(--pt-blue);
  color: var(--pt-white);
  font-size: 10.88px;
  font-weight: 700;
  padding: 1.6px 8px;
  border-radius: 5px;
  margin-bottom: 4px;
}
.pt-tl-title { font-size: 14px; font-weight: 700; color: var(--pt-text); margin-bottom: 2.4px; }
.pt-tl-desc  { font-size: 12.8px; color: var(--pt-muted); line-height: 1.5; }

/* Reviews */
.pt-reviews { display: flex; flex-direction: column; gap: 16px; }
.pt-review {
  background: var(--pt-bg);
  border-radius: 12px;
  padding: 14.4px 16px;
  border: 1px solid var(--pt-border);
}
.pt-review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6.4px; }
.pt-review-name { font-size: 13.6px; font-weight: 700; color: var(--pt-text); }
.pt-review-stars { display: flex; gap: 1.6px; }
.pt-review-stars i { font-size: 12px; }
.pt-review-comment { font-size: 13.12px; color: var(--pt-muted); line-height: 1.55; }
.pt-review-date { font-size: 11.52px; color: var(--pt-muted); margin-top: 5.6px; }
.pt-no-reviews { font-size: 13.6px; color: var(--pt-muted); text-align: center; padding: 24px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pt-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
}
@media (max-width: 480px) {
  .pt-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pt-title { font-size: 24px !important; }
  .pt-mbody { padding: 20px; }
}
@media (max-width: 340px) {
  .pt-grid { grid-template-columns: 1fr; }
}
