/* TecmiSoft — Landing · Universidad Tecmilenio · 5° Semestre */
:root {
  --tec-dark: #004a3c;
  --tec-dark-hover: #003830;
  --tec-green: #00bd71;
  --tec-green-light: #e6f9f1;
  --tec-green-glow: rgba(0, 189, 113, 0.25);
  --tec-accent: #00e88f;
  --surface: #f4f7f6;
  --surface-card: #ffffff;
  --text: #1a2421;
  --text-muted: #5c6b66;
  --border: #dde5e1;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 74, 60, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 74, 60, 0.12);
  --font: 'Montserrat', system-ui, sans-serif;

  --team-1: #2563eb;
  --team-2: #059669;
  --team-3: #dc2626;
  --team-4: #7c3aed;
  --team-5: #ea580c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: var(--tec-green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--tec-dark); }

/* ─── Nav ─── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 46, 37, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
}

.nav-brand img { height: 32px; }

.nav-brand-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-brand-text span {
  font-size: 0.65rem;
  opacity: 0.6;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--tec-accent); }

.nav-cta {
  background: var(--tec-green);
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover { background: #00a562; color: #fff !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

/* ─── Hero ─── */
.hero {
  background: linear-gradient(180deg, var(--tec-dark) 0%, #002e25 100%);
  color: #fff;
  padding: 7rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0,189,113,0.18) 0%, transparent 65%),
    radial-gradient(circle at 90% 90%, rgba(0,189,113,0.06) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content { position: relative; max-width: 780px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-block;
  background: rgba(0,189,113,0.15);
  border: 1px solid rgba(0,189,113,0.3);
  color: var(--tec-accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--tec-accent);
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 2rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 2.25rem;
  color: var(--tec-accent);
  font-weight: 700;
  line-height: 1;
}

.hero-stat span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.hero-scroll {
  margin-top: 2.5rem;
}

.hero-scroll a {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.hero-scroll a:hover { color: var(--tec-accent); }

.hero-scroll i { animation: bounce 2s infinite; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ─── Sections ─── */
.section {
  padding: 4.5rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tec-green);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--tec-dark);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

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

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.about-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--tec-green-light);
  color: var(--tec-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.about-card h4 {
  font-size: 0.85rem;
  color: var(--tec-dark);
  margin-bottom: 0.25rem;
}

.about-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── Projects ─── */
.projects-section {
  background: var(--surface);
}

.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--tec-dark);
  color: #fff;
  border-color: var(--tec-dark);
}

.project-card {
  background: var(--surface-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.project-card.hidden { display: none; }

.project-header {
  padding: 1.75rem 2rem;
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.project-header h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.project-header .team-label {
  font-size: 0.72rem;
  opacity: 0.85;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-header .project-tagline {
  font-size: 0.88rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.project-badge {
  background: rgba(255,255,255,0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.project-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.project-features {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.project-features li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 1.35rem;
  position: relative;
}

.project-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--tec-green);
  font-weight: 700;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tag {
  background: var(--tec-green-light);
  color: var(--tec-dark);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.project-sidebar h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.team-members {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-members li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
}

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.member-role {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.project-links {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--tec-green);
  color: #fff;
}

.btn-primary:hover {
  background: #00a562;
  box-shadow: 0 4px 16px var(--tec-green-glow);
  color: #fff;
}

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

.btn-outline:hover {
  border-color: var(--tec-green);
  color: var(--tec-green);
}

/* ─── CTA band ─── */
.cta-band {
  background: linear-gradient(135deg, var(--tec-dark), #006b52);
  color: #fff;
  text-align: center;
  padding: 3.5rem 2rem;
}

.cta-band h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.cta-band p {
  opacity: 0.8;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Footer ─── */
.site-footer {
  background: #001a15;
  color: rgba(255,255,255,0.5);
  padding: 2rem;
  text-align: center;
  font-size: 0.78rem;
}

.site-footer strong { color: var(--tec-accent); }

.site-footer a { color: rgba(255,255,255,0.65); }
.site-footer a:hover { color: var(--tec-accent); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .about-grid,
  .project-body { grid-template-columns: 1fr; }

  .about-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--tec-dark);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.open { display: flex; }

  .menu-toggle { display: block; }

  .site-nav { padding: 0.75rem 1.25rem; position: relative; }

  .hero { padding: 6rem 1.25rem 4rem; }

  .section { padding: 3rem 1.25rem; }

  .project-header,
  .project-body { padding: 1.25rem; }

  .hero-stats { gap: 1.5rem; }
}
