:root {
  --bg-color: #f8fafc;
  --section-alt: #eef2f7;
  --text-color: #1e293b;
  --card-bg: #ffffff;
  --accent-primary: #6366f1;
  --accent-secondary: #0ea5e9;
  --tag-bg: #e2e8f0;
  --btn-outline-text: #1e293b;
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0f172a;
    --section-alt: #111827;
    --text-color: #f1f5f9;
    --card-bg: #1e293b;
    --tag-bg: #334155;
    --btn-outline-text: #f1f5f9;
  }
}
.hero {
  background: linear-gradient(
    180deg,
    var(--section-alt) 0%,
    var(--bg-color) 100%
  );
}

.hero-tag {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-subtitle {
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-size: 20px;
  opacity: 0.85;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-outline {
  border: 2px solid var(--accent-primary);
  color: var(--btn-outline-text);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: white;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.section {
  padding: 100px 20px;
  background-color: var(--bg-color);
}

.section.alt {
  background-color: var(--section-alt);
}

.section + .section {
  margin-top: 40px;
}
#contacto {
  padding-bottom: 120px;
}

.container {
  max-width: 1000px;
  margin: auto;
}

.section-title {
  font-size: 36px;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--accent-primary);
  display: block;
  margin: 15px auto 0;
  border-radius: 4px;
}
.project-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.project-description {
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-impact {
  margin-top: 40px;
}



.tech-stack span {
  display: inline-block;
  background: var(--tag-bg);
  padding: 6px 12px;
  margin: 5px;
  border-radius: 6px;
  font-size: 14px;
}

/* Botones unificados */
.project-buttons {
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  margin-right: 15px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  background: var(--accent-secondary);
}

.btn-secondary:hover {
  opacity: 0.85;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
}

.video-container {
  margin: 60px auto;
  max-width: 720px;
  padding: 0 20px;
}
.video-container video {
  width: 60%;    /* Ajusta este valor al tamaño deseado */
  max-width: 720px;
  height: auto;
  display: block;
  margin: 0 auto; /* centra el video */
}

video {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  display: block;
  margin: 0 auto;
}