body {
  margin: 0;
  padding: 0;
  background-image: url("../img/bg1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  font-family: Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

/* PANTALLA DE CARGA */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-title {
  font-size: clamp(32px, 8vw, 72px);
  font-weight: 400;
  letter-spacing: 4px;
  margin: 0 0 50px 0;
  color: #f0f8ff;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.loading-title-image {
  max-width: 90%;
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto 50px;
  filter: drop-shadow(0 2px 20px rgba(255, 255, 255, 0.3));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

.loading-blob-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 40px;
}

.loading-blob {
  position: absolute;
  inset: 0;
  overflow: hidden;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, .4));
  --layerBase: none;
  --layerA: none;
  --layerB: none;
  --layerC: none;
  will-change: clip-path;
  border-radius: 18px;
  animation: rotateBlob 10s linear infinite;
  transition: clip-path 0.8s ease-in-out, -webkit-clip-path 0.8s ease-in-out;
}

.loading-blob::before {
  content: "";
  position: absolute;
  inset: -14%;
  background: var(--layerBase), var(--layerA), var(--layerB), var(--layerC);
  background-blend-mode: screen;
  filter: blur(22px) saturate(110%) brightness(95%);
  transform: rotate(0deg) scale(1.1);
  will-change: transform;
  animation: swirlLoading 12s linear infinite;
}

@keyframes rotateBlob {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes swirlLoading {
  0% {
    transform: rotate(0deg) scale(1.1);
  }

  100% {
    transform: rotate(-360deg) scale(1.1);
  }
}

.loading-text {
  font-size: clamp(14px, 2.5vw, 18px);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 2px;
  animation: dots 1.5s steps(4, end) infinite;
}

.loading-text::after {
  content: '...';
  animation: dots-anim 1.5s steps(4, end) infinite;
}

@keyframes dots-anim {

  0%,
  20% {
    content: '';
  }

  40% {
    content: '.';
  }

  60% {
    content: '..';
  }

  80%,
  100% {
    content: '...';
  }
}

.GENERAL {
  width: 100dvw;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.288);
}

.HERO-GLASS {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 300;
  min-height: clamp(320px, 38vh, 520px);
  display: grid;
  place-items: center;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.05); /* MANIPULAR GLASS TRANSPARENCIA */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 8px 22px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px) saturate(100%); /* MANIPULAR GLASS DESENFOQUE */
  -webkit-backdrop-filter: blur(5px) saturate(120%); /* MANIPULAR GLASS  INTENSIDAD DE COLOR*/

  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 300"><path fill="white" d="M0,0 H1440 V190 Q720,300 0,190 Z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 300"><path fill="white" d="M0,0 H1440 V190 Q720,300 0,190 Z"/></svg>');
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-position: top center;
  mask-position: top center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

@supports not (mask-image: url("data:image/svg+xml;utf8,<svg></svg>")) {
  .HERO-GLASS {
    -webkit-mask-image: none;
    mask-image: none;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
  }
}

.HERO-GLASS .hero-content {
  position: relative;
  z-index: 1;
  width: min(90vw, 1200px);
  text-align: center;
  color: #fff;
  padding: clamp(56px, 9vh, 120px) 16px clamp(80px, 12vh, 140px);
}

.hero-title {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 400;
  margin: 0 0 8px 0;
  font-size: clamp(28px, 8dvh, 64px);
  letter-spacing: 0.4px;
  color: #f0f8ff;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(14px, 2.6dvh, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.hero-image {
  max-width: 90%;
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
  .hero-image {
    max-width: 95%;
  }
}

.CONTENT {
  flex-grow: 1;
  width: 90dvw;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
}

.SECTION-TITLE {
  width: 100%;
  color: #fff;
  text-align: center;
  font-weight: 500;
  font-size: clamp(18px, 2.6dvh, 24px);
  letter-spacing: 0.3px;
  margin: 0px 0 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.CATEGORIES {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 40px;
  align-items: flex-start;
}

@media (min-width: 1200px) {
  .CATEGORIES {
    justify-content: space-evenly;
  }
}

@media (max-width: 900px) {
  .CATEGORIES {
    justify-content: center;
  }
}

.category-item {
  padding: 20px 35px;
  /* era 15px 25px */
  color: white;
  font-size: 20px;
  /* era 2.2dvh */
  text-decoration: none;
  text-align: center;
  white-space: nowrap;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;

  backdrop-filter: blur(5px) saturate(150%);
  -webkit-backdrop-filter: blur(5px) saturate(150%);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;

  cursor: pointer;
}

.category-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.AGENT-GRID {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 80px;
  justify-items: center;
  margin-bottom: 20px;
}

.agent-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  color: white;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 350px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.agent-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.agent-card h3 {
  font-size: 3dvh;
  margin-top: 0;
  margin-bottom: 15px;
  color: #f0f8ff;
}

.agent-card .agent-description {
  font-size: 2dvh;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-card .agent-author {
  font-size: 1.8dvh;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  font-style: italic;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.blob-wrapper {
  position: relative;
  width: 150px;
  /* era 80px */
  aspect-ratio: 1;
  display: block;
}

.blob {
  position: absolute;
  inset: 0;
  overflow: hidden;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .10));
  --layerBase: none;
  --layerA: none;
  --layerB: none;
  --layerC: none;
  will-change: clip-path;
  border-radius: 18px;
  z-index: 0;
  pointer-events: none;
}

.blob::before {
  content: "";
  position: absolute;
  inset: -14%;
  background: var(--layerBase), var(--layerA), var(--layerB), var(--layerC);
  background-blend-mode: screen;
  filter: blur(20px) saturate(110%) brightness(95%);
  transform: rotate(0deg) scale(1.08);
  will-change: transform;
  animation: swirl 28s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes swirl {
  to {
    transform: rotate(360deg) scale(1.08);
  }
}

.agent-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
  overflow-y: auto;
}

.agent-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.4s ease;
  position: relative;
}

.agent-modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 30px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  color: #f0f8ff;
  font-size: clamp(24px, 4vw, 36px);
  margin: 0;
  font-weight: 400;
}

.close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px 40px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.modal-left {
  color: white;
}

.modal-info-group {
  margin-bottom: 25px;
}

.modal-info-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  font-weight: 500;
}

.modal-info-value {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.modal-right {
  display: flex;
  flex-direction: column;
}

.prompt-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
  font-weight: 500;
}

.prompt-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.7;
  overflow-y: auto;
  flex-grow: 1;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.copy-btn {
  margin-top: 15px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  text-align: center;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.copy-btn.copied {
  background: rgba(46, 213, 115, 0.3);
  border-color: rgba(46, 213, 115, 0.5);
}

.hidden-textarea {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.toast-notification {
  position: fixed;
  top: 30px;
  right: 30px;
  background: rgba(46, 213, 115, 0.95);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10001;
  font-size: 15px;
  font-weight: 500;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.toast-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-message {
  flex-grow: 1;
}

@keyframes checkmark {
  0% {
    transform: scale(0) rotate(45deg);
  }

  50% {
    transform: scale(1.2) rotate(45deg);
  }

  100% {
    transform: scale(1) rotate(45deg);
  }
}

.toast-notification.show .toast-icon {
  animation: checkmark 0.5s ease;
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .modal-header,
  .modal-body {
    padding: 20px;
  }

  .prompt-box {
    max-height: 300px;
  }

  .toast-notification {
    top: 20px;
    right: 20px;
    left: 20px;
    transform: translateY(-200px);
  }

  .toast-notification.show {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob::before {
    animation: none !important;
  }

  .loading-blob {
    animation: none !important;
    transition: none !important;
  }

  .loading-blob::before {
    animation: none !important;
  }

  .category-item {
    transition: none;
  }

  .loading-title {
    animation: none;
  }

  .agent-modal,
  .modal-content {
    transition: none !important;
  }

  .toast-notification {
    transition: none !important;
    animation: none !important;
  }
}