/* ==========================================================================
   sections.css — Estilos específicos de cada sección de la página
   ========================================================================== */

/* ---- Hero ---- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--gradient-dark);
  color: #fff;
  overflow: hidden;
}

/* Brillo rojo difuso en la esquina superior derecha */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40rem circle at 80% 15%, rgb(153 27 27 / 0.35), transparent 60%);
  pointer-events: none;
}

/* Retícula sutil desvanecida */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 70% 30%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 75% at 70% 30%, #000 25%, transparent 75%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  padding-block: calc(var(--header-height) + 4rem) 5rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.hero__badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #dc2626;
}

.hero__title {
  max-width: 48rem;
  margin-bottom: 1.5rem;
  font-size: var(--text-h1);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero__subtitle {
  max-width: 40rem;
  margin-bottom: 2.5rem;
  font-size: var(--text-lead);
  color: var(--color-text-light);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
  }
}

/* Los enlaces sobre fondo oscuro necesitan un anillo de foco claro */
.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

/* ---- Grid de servicios ---- */
.services-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Grid de proyectos ---- */
.work-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Grid de contacto ---- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  max-width: 56rem;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--gradient-dark);
  color: #94a3b8;
  padding-block: 3rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer__tagline {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.site-footer__heading {
  margin-bottom: 1rem;
  font-weight: 600;
  color: #fff;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.site-footer__list a {
  transition: color var(--transition-fast);
}

.site-footer__list a:hover {
  color: #fff;
}

.site-footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid #374151;
  text-align: center;
  font-size: 0.875rem;
}
