/* ─────────────────────────────────────────────────────────────────────────────
   Escala Digital — projects.css
   Sección de proyectos / casos de éxito
───────────────────────────────────────────────────────────────────────────── */

.projects-section {
  position: relative;
  z-index: 14;
  width: 100%;
  padding: 88px 60px 100px;
  background:
    linear-gradient(to bottom, #000 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 82%, #000 100%),
    radial-gradient(ellipse at 38% 52%, #0D2B5E 0%, #050F1C 55%, #000 80%);
  box-shadow: 0 -40px 60px 20px #000000;
  overflow: hidden;
}

/* ─── Texto decorativo fondo ─── */
.projects-bg-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: rgba(41, 168, 255, 0.025);
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

/* ─── Header ─── */
.projects-header {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-bottom: 64px;
}

.projects-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #29A8FF;
  margin-bottom: 16px;
}

.projects-eyebrow::before,
.projects-eyebrow::after {
  content: '';
  display: block;
  width: 22px;
  height: 1.5px;
  background: #29A8FF;
  opacity: 0.65;
}

.projects-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
  line-height: 1.08;
}

.projects-title .accent {
  background: linear-gradient(90deg, #1464FF 0%, #29A8FF 50%, #1464FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
}

/* ─── Contenedor de cards ─── */
.projects-grid {
  position: relative;
  z-index: 3;
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ─── Card principal ─── */
.project-card {
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(41, 168, 255, 0.15);
  background: linear-gradient(135deg, rgba(20,100,255,0.1) 0%, rgba(8,16,36,0.72) 100%);
  box-shadow:
    0 24px 80px rgba(20,100,255,0.12),
    0 4px 16px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: transform, opacity;
}

/* ─── Panel izquierdo: screenshot ─── */
.project-visual {
  flex: 0 0 56%;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  min-height: 360px;
}

/* Browser chrome bar */
.project-browser-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 32px;
  background: rgba(12, 18, 32, 0.96);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  flex-shrink: 0;
}

.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.browser-dot.r { background: #FF5F57; }
.browser-dot.y { background: #FEBC2E; }
.browser-dot.g { background: #28C840; }

.browser-url {
  margin-left: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.02em;
  flex: 1;
  text-align: center;
}

.project-screenshot {
  width: 100%;
  height: calc(100% - 32px);
  margin-top: 32px;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.32,0.72,0,1);
}

.project-card:hover .project-screenshot {
  transform: scale(1.03);
}

/* Gradient blend derecho */
.project-visual::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to right, transparent, rgba(8,16,36,0.92));
  pointer-events: none;
  z-index: 2;
}

/* ─── Panel derecho: info ─── */
.project-info {
  flex: 1;
  padding: 36px 36px 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #29A8FF;
  background: rgba(41,168,255,0.1);
  border: 1px solid rgba(41,168,255,0.22);
  border-radius: 4px;
  padding: 4px 10px;
  align-self: flex-start;
  margin-bottom: 16px;
}

.project-name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 12px;
}

.project-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.72;
  margin: 0 0 22px;
}

/* Tech stack */
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.tech-chip {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
  background: rgba(20,100,255,0.1);
  border: 1px solid rgba(41,168,255,0.18);
  border-radius: 5px;
  padding: 4px 10px;
  transition: border-color 0.25s, color 0.25s;
}

.project-card:hover .tech-chip {
  border-color: rgba(41,168,255,0.32);
  color: rgba(255,255,255,0.82);
}

/* VPS info */
.project-server {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  margin-bottom: 28px;
}

.project-server svg {
  width: 13px;
  height: 13px;
  color: rgba(41,168,255,0.45);
  flex-shrink: 0;
}

/* CTA */
.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #1464FF 0%, #0D4FCC 100%);
  border-radius: 8px;
  padding: 10px 20px;
  text-decoration: none;
  align-self: flex-start;
  border: 1px solid rgba(41,168,255,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, gap 0.25s ease;
  box-shadow: 0 4px 20px rgba(20,100,255,0.3);
}

.project-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(20,100,255,0.45);
  gap: 12px;
}

.project-cta svg {
  width: 13px;
  height: 13px;
}

/* ─── "Más proyectos" hint ─── */
.projects-more {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-top: 40px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.06em;
}

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .projects-section { padding: 72px 24px 88px; }
  .project-card { flex-direction: column; }
  .project-visual { flex: none; min-height: 220px; }
  .project-visual::after {
    width: auto;
    height: 60px;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, transparent, rgba(8,16,36,0.95));
  }
  .project-info { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .project-visual { min-height: 180px; }
  .project-name { font-size: 20px; }
  .project-info { padding: 22px 20px; }
  .project-desc { font-size: 12.5px; }
  .projects-header { margin-bottom: 48px; }
}

/* ─── 320px — teléfonos muy pequeños ─── */
@media (max-width: 320px) {
  .projects-section { padding: 56px 14px 72px; }
  .project-visual { min-height: 160px; }
  .project-info { padding: 18px 16px; }
  .project-name { font-size: 18px; }
  .project-cta { font-size: 10px; padding: 9px 16px; }
}
