.search-intro-text {
  max-width: 900px;
  margin: 0 auto 35px;
  padding: 20px 25px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--primary-color);
}

.search-intro-text p {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
  margin: 0;
  text-align: justify;
}

.search-intro-text strong {
  color: var(--primary-color);
  font-weight: 700;
}

.search-container-compact {
  max-width: 700px;
  margin: 0 auto 35px;
}

.search-box-compact {
  display: flex;
  align-items: center;
  background: white;
  padding: 6px;
  border-radius: 50px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}

.search-box-compact:focus-within {
  box-shadow: 0 5px 15px rgba(38, 179, 180, 0.15);
  transform: translateY(-1px);
}

.search-icon {
  color: var(--primary-color);
  font-size: 18px;
  padding: 0 12px;
  flex-shrink: 0;
}

.search-box-compact input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: "Open Sans", sans-serif;
  outline: none;
  color: #333;
}

.search-box-compact input::placeholder {
  color: #999;
}

.search-btn-compact {
  padding: 10px 25px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-btn-compact:hover {
  background: var(--primary-hover);
  transform: scale(1.03);
}

.search-btn-compact:active {
  transform: scale(0.98);
}

.search-hint {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: #666;
  font-size: 12px;
}

.search-hint i {
  color: var(--primary-color);
  margin-right: 4px;
}

.loading {
  text-align: center;
  padding: 50px 20px;
  font-size: 16px;
  color: var(--primary-color);
  font-weight: 500;
}

.loading i {
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.no-results {
  text-align: center;
  padding: 50px 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-top: 25px;
}

.no-results i {
  color: #ccc;
  margin-bottom: 15px;
}

.no-results p {
  font-size: 15px;
  color: #666;
  margin: 0;
}

.results-list-compact {
  margin-top: 25px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-title-compact {
  color: #2c3e50;
  font-size: 1.2rem;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.results-title-compact i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.result-card-expanded {
  background: white;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 18px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  animation: fadeInCard 0.3s ease;
  border: 1px solid #e8e8e8;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card-expanded:hover {
  box-shadow: 0 4px 12px rgba(38, 179, 180, 0.12);
  transform: translateY(-2px);
  border-color: #d0d0d0;
}
.result-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(90deg, #f5f5f5 25%, #e8e8e8 50%, #f5f5f5 75%);
  background-size: 200% 100%;
  border: 1.5px solid #d5d5d5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.result-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.result-info-full {
  flex: 1;
  min-width: 0;
}

.result-info-full h4 {
  color: #2c3e50;
  margin: 0 0 8px 0;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  line-height: 1.3;
}

.result-meta {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-meta i {
  color: var(--primary-color);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.country-flag {
  width: 18px;
  height: auto;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}
.diplomados-inline {
  margin-top: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 2px solid rgba(38, 179, 180, 0.5);
}

.diplomados-inline h5 {
  margin: 0 0 10px 0;
  color: rgba(38, 179, 180, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Montserrat", sans-serif;
}

.diplomados-inline h5 i {
  font-size: 0.9rem;
  color: rgba(38, 179, 180, 0.7);
}

.diplomado-item {
  padding: 10px 12px;
  background: white;
  border-radius: 5px;
  margin-bottom: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.diplomado-item:last-child {
  margin-bottom: 0;
}

.diplomado-item:hover {
  border-color: #d0d0d0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.diplomado-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.diplomado-row:last-child {
  margin-bottom: 0;
}

.diplomado-label {
  font-size: 0.8rem;
  color: #495057;
  font-weight: 700;
  min-width: 60px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "Montserrat", sans-serif;
}

.diplomado-label i {
  font-size: 0.85rem;
  color: #868e96;
}

.diplomado-value {
  font-size: 0.9rem;
  color: #2c3e50;
  font-weight: 600;
  flex: 1;
}

.no-diplomados {
  margin-top: 8px;
  padding: 10px;
  background: #fff3cd;
  border-left: 3px solid #ffc107;
  border-radius: 5px;
  color: #856404;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.no-diplomados i {
  color: #ffc107;
  font-size: 1rem;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
  gap: 8px;
  padding: 15px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.pagination-info {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  margin-right: 15px;
}

.pagination-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.page-btn {
  padding: 8px 16px;
  background: white;
  color: #333;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-btn:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(38, 179, 180, 0.2);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-btn i {
  font-size: 11px;
}

.page-numbers {
  display: flex;
  gap: 4px;
}

.page-number {
  width: 36px;
  height: 36px;
  background: white;
  color: #333;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-number:hover {
  background: #f5f5f5;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.page-number.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 2px 6px rgba(38, 179, 180, 0.25);
}

.page-dots {
  padding: 0 6px;
  color: #999;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .search-box-compact {
    flex-wrap: wrap;
    border-radius: 10px;
    padding: 10px;
  }

  .search-icon {
    order: 1;
  }

  .search-box-compact input {
    order: 2;
    width: 100%;
    padding: 8px 10px;
  }

  .search-btn-compact {
    order: 3;
    width: 100%;
    margin-top: 8px;
    border-radius: 6px;
  }

  .result-card-expanded {
    flex-direction: column;
    padding: 15px;
  }

  .result-photo {
    width: 65px;
    height: 65px;
    margin: 0 auto;
  }

  .result-info-full h4 {
    font-size: 1.05rem;
    text-align: center;
  }

  .result-meta {
    justify-content: center;
    font-size: 0.85rem;
  }

  .diplomado-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .diplomado-label {
    min-width: auto;
  }

  .search-intro-text {
    padding: 18px;
  }

  .search-intro-text p {
    font-size: 13px;
    text-align: left;
  }

  .pagination-container {
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
  }

  .pagination-info {
    width: 100%;
    text-align: center;
    margin-right: 0;
    margin-bottom: 8px;
  }

  .page-btn {
    padding: 7px 12px;
    font-size: 12px;
  }

  .page-number {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .results-title-compact {
    font-size: 1.05rem;
  }

  .result-card-expanded {
    padding: 12px;
    margin-bottom: 15px;
  }

  .result-photo {
    width: 60px;
    height: 60px;
  }

  .result-info-full h4 {
    font-size: 1rem;
  }

  .result-meta {
    font-size: 0.8rem;
  }

  .diplomados-inline {
    padding: 10px;
  }

  .diplomados-inline h5 {
    font-size: 0.8rem;
  }

  .diplomado-item {
    padding: 8px 10px;
  }

  .diplomado-label {
    font-size: 0.75rem;
  }

  .diplomado-value {
    font-size: 0.85rem;
  }

  .search-intro-text {
    padding: 15px;
    margin-bottom: 25px;
  }

  .search-intro-text p {
    font-size: 12px;
  }

  .search-container-compact {
    padding: 0 10px;
  }

  .search-box-compact input {
    font-size: 13px;
  }

  .search-btn-compact {
    font-size: 13px;
    padding: 9px 18px;
  }

  .page-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .page-number {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .page-numbers {
    gap: 3px;
  }
}

@media (max-width: 360px) {
  .result-info-full h4 {
    font-size: 0.95rem;
  }

  .diplomado-item {
    padding: 6px 8px;
  }

  .diplomado-label,
  .diplomado-value {
    font-size: 0.7rem;
  }

  .page-number {
    width: 30px;
    height: 30px;
  }
}

html {
  scroll-behavior: smooth;
}

.page-btn,
.page-number {
  user-select: none;
  -webkit-user-select: none;
}

.page-btn:focus-visible,
.page-number:focus-visible,
.search-btn-compact:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.swal2-popup.swal2-toast {
  padding: 8px 12px !important;
  min-height: auto !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
}

.swal2-popup.swal2-toast .swal2-title {
  font-size: 13px !important;
  margin: 0 0 3px 0 !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

.swal2-popup.swal2-toast .swal2-html-container {
  font-size: 12px !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.swal2-popup.swal2-toast .swal2-icon {
  width: 24px !important;
  height: 24px !important;
  margin: 0 10px 0 0 !important;
  font-size: 12px !important;
}

.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content {
  font-size: 12px !important;
}

.swal2-popup.swal2-toast .swal2-success-ring {
  width: 24px !important;
  height: 24px !important;
}

.swal2-popup.swal2-toast .swal2-success-line-tip,
.swal2-popup.swal2-toast .swal2-success-line-long {
  height: 2px !important;
}

.swal2-popup.swal2-toast .swal2-error [class^="swal2-x-mark-line"] {
  width: 12px !important;
  height: 2px !important;
}

.swal2-timer-progress-bar {
  height: 2px !important;
  background: rgba(255, 255, 255, 0.5) !important;
}

.swal2-popup.swal2-toast .swal2-content {
  margin: 0 !important;
}

.swal2-show {
  animation: slideInRight 0.2s ease-out !important;
}

.swal2-hide {
  animation: fadeOut 0.15s ease-out !important;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .swal2-popup.swal2-toast {
    padding: 6px 10px !important;
    max-width: 280px !important;
  }

  .swal2-popup.swal2-toast .swal2-title {
    font-size: 12px !important;
  }

  .swal2-popup.swal2-toast .swal2-html-container {
    font-size: 11px !important;
  }

  .swal2-popup.swal2-toast .swal2-icon {
    width: 20px !important;
    height: 20px !important;
    margin: 0 8px 0 0 !important;
  }
}
