﻿/* ==========================================================================
   MYCLOUD.UNO — CASO DE ESTUDIO / SHOWCASE DESTACADO (AVAX)
   ========================================================================== */

.showcase-section {
  padding: 100px 0 110px 0;
  background-color: var(--bg-alt);
}

.showcase-header {
  margin-bottom: 48px;
}

/* Contenedor Principal Bento / Card de Proyecto */
.showcase-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.showcase-card:hover {
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* --------------------------------------------------------------------------
   LADO VISUAL: MOCKUP NAVEGADOR
   -------------------------------------------------------------------------- */
.showcase-visual {
  background: #f1f5f9;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.showcase-browser-bar {
  height: 44px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 2;
}

.showcase-dots {
  display: flex;
  gap: 6px;
}

.showcase-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.showcase-dots span:nth-child(1) { background: #ff5f56; }
.showcase-dots span:nth-child(2) { background: #ffbd2e; }
.showcase-dots span:nth-child(3) { background: #27c93f; }

.showcase-url-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

.live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  display: inline-block;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.showcase-image-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 24px;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover .showcase-img {
  transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   LADO CONTENIDO: INFORMACIÓN, STACK Y METRICAS
   -------------------------------------------------------------------------- */
.showcase-content {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showcase-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.showcase-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.showcase-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

.showcase-title {
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink);
}

.showcase-desc {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Micro-Cards de Capacidades Técnicas */
.showcase-grid-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.highlight-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.highlight-box-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.highlight-box-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* Tech Stack Pills */
.showcase-stack {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.stack-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  background: #f1f5f9;
  color: var(--ink-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

/* Botón de Acción Principal */
.showcase-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-showcase-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25);
}

.btn-showcase-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .showcase-card {
    grid-template-columns: 1fr;
  }
  
  .showcase-visual {
    border-right: none;
    border-bottom: 1px solid var(--line);
    min-height: 300px;
  }

  .showcase-content {
    padding: 32px 24px;
  }

  .showcase-grid-highlights {
    grid-template-columns: 1fr;
  }
}
