/* ============================================================
   index.css — Estilos específicos de index.html
   Tomás Hernández — Cloud · Ciberseguridad · Full-Stack
   ============================================================ */

/* ---------- Hero Section ---------- */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px 100px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
}

/* Badge de disponibilidad con punto pulsante */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #2d4a2d;
  background: #0f1f0f;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 28px;
  font-weight: 500;
}

/* Punto verde pulsante */
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px var(--accent);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.15);
    box-shadow: 0 0 12px var(--accent), 0 0 20px rgba(74, 222, 128, 0.5);
  }
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text) 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-desc {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-img-wrap {
  --foto-size: 320px;
  width: var(--foto-size);
  height: var(--foto-size);
  border-radius: 26px;
  overflow: hidden;
  border: 4px solid #2b2b2b;
  flex-shrink: 0;
  background: var(--bg3);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(133, 255, 154, 0.2) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

/* Z-index layering para parallax */
.hero-content { position: relative; z-index: 2; }
.hero-img-wrap { position: relative; overflow: hidden; }

@media (pointer: coarse) {
  .parallax-layer { display: none; }
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 18px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Stats / Métricas */
.stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.stat {
  text-align: left;
}

.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
  font-family: 'DM Mono', monospace;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 120px;
}

/* ---------- Stack Section ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stack-card-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.stack-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stack-item {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.stack-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.2s;
}

.card:hover .stack-dot {
  background: var(--accent);
}

/* ---------- Proyectos Section ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card-type {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.project-card-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.project-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 60px;
    text-align: center;
  }

  .hero-content {
    width: 100%;
    order: 2;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-role {
    font-size: 14px;
  }

  .hero-desc {
    font-size: 14px;
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
    margin-top: 24px;
  }

  .hero-img-wrap {
    order: 1;
    --foto-size: 180px;
    margin: 0 auto 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 24px;
    justify-content: center;
  }

  .stat {
    text-align: center;
  }

  .stat-label {
    max-width: none;
  }
}

/* Para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-img-wrap {
    order: -1;
    margin: 0 auto;
  }

  .hero-desc {
    margin: 0 auto 36px;
  }

  .hero-actions {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
