/* VARIABLES */
:root {
  --bg-1: #0a0f1e;
  --bg-2: #12243a;
  --bg-3: #1e344f;
  --glass: rgba(255, 255, 255, 0.04);
  --card: rgba(255, 255, 255, 0.05);
  --muted: #94a3b8;
  --text: #e2e8f0;
  --accent: #00d4ff;
  --accent-2: #38bdf8;
  --shadow: rgba(0, 0, 0, 0.12);
}

/* RESET Y BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}
body {
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
  font-family: "Roboto Condensed", sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-attachment: fixed;
}

/* CONTENEDOR GENERAL */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.project-header {
  padding: 120px 20px 60px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.project-header h1 {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 20px;
}
.project-header p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto;
}

/* SECCIONES */
.project-section {
  padding: 80px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.project-section:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}
.project-section h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 30px;
  text-align: center;
}
.project-description {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.project-section h3 {
  font-size: 2rem;
  color: var(--text);
  margin: 40px 0 20px;
  text-align: center;
}

/* GALERÍA */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.gallery img:hover {
  transform: scale(1.05);
}

/* BOTÓN VOLVER */
.back-section {
  padding: 60px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}
.back-btn {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #00121c;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.back-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 230, 255, 0.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .project-header h1 {
    font-size: 2.5rem;
  }
  .project-section h2 {
    font-size: 2rem;
  }
  .project-description {
    font-size: 1rem;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
}
