/* ===== PAGE HERO (compartido) ===== */
.page-hero {
  background: #0a0a0a;
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(227, 234, 28, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 234, 28, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-hero-subtitle {
  font-size: 1.05rem;
  color: #888888;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== SERVICE DETAIL ===== */
.service-detail {
  padding: 96px 0;
  background: #0a0a0a;
}

.service-detail.alt-bg {
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.service-detail-grid {
  display: flex;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}

.service-detail-grid.reverse {
  flex-direction: row-reverse;
}

.service-detail-content {
  flex: 1;
  min-width: 280px;
}

.service-detail-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.service-detail-desc {
  font-size: 1rem;
  color: #888888;
  line-height: 1.8;
  margin-bottom: 28px;
}

.service-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.service-detail-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #f0f0f0;
}

.service-detail-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e3ea1c;
  flex-shrink: 0;
}

.service-detail-visual {
  flex: 1;
  min-width: 260px;
  display: flex;
  justify-content: center;
}

.service-visual-card {
  background: #1a1a1a;
  border: 1px solid rgba(227, 234, 28, 0.2);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  width: 100%;
  max-width: 320px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-visual-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(227, 234, 28, 0.1);
}

.visual-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(227, 234, 28, 0.1);
  border: 1px solid rgba(227, 234, 28, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-visual-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
}

.visual-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.visual-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e3ea1c;
  background: rgba(227, 234, 28, 0.1);
  border: 1px solid rgba(227, 234, 28, 0.25);
  padding: 4px 12px;
  border-radius: 50px;
}

/* ===== WHY US ===== */
.why-us {
  padding: 96px 0;
  background: #0a0a0a;
}

.why-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.why-card {
  flex: 1;
  min-width: 220px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.why-card:hover {
  border-color: rgba(227, 234, 28, 0.3);
  transform: translateY(-4px);
}

.why-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: #e3ea1c;
  line-height: 1;
  margin-bottom: 12px;
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.875rem;
  color: #888888;
  line-height: 1.6;
}

/* ===== PROYECTOS GRID ===== */
.projects-section {
  padding: 80px 0;
  background: #111111;
}

.projects-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #888888;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #e3ea1c;
  color: #000000;
  border-color: #e3ea1c;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.project-card {
  flex: 1;
  min-width: 280px;
  max-width: calc(33.333% - 16px);
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  border-color: rgba(227, 234, 28, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 0 32px rgba(227, 234, 28, 0.1);
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #161616;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333333;
}

.project-body {
  padding: 24px;
}

.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e3ea1c;
  background: rgba(227, 234, 28, 0.1);
  border: 1px solid rgba(227, 234, 28, 0.2);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.875rem;
  color: #888888;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e3ea1c;
  transition: gap 0.2s;
}

.project-link:hover {
  gap: 10px;
}

/* ===== RESPONSIVE INTERIOR ===== */
@media (max-width: 768px) {
  .page-hero-title {
    font-size: 2rem;
  }

  .service-detail-grid {
    flex-direction: column;
  }

  .service-detail-grid.reverse {
    flex-direction: column;
  }

  .service-detail-title {
    font-size: 1.7rem;
  }

  .why-card {
    min-width: 100%;
  }

  .project-card {
    min-width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .service-visual-card {
    padding: 32px 24px;
  }
}