/* ── PÁGINAS INTERNAS ── */

/* Banner hero de cabecera */
.page-banner {
  background: var(--bg);
  padding: 120px 5% 64px;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

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

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.page-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.page-breadcrumb a:hover {
  color: var(--blue);
}

.page-breadcrumb span {
  color: var(--blue);
  opacity: 0.5;
}

.page-breadcrumb strong {
  color: var(--text);
  font-weight: 400;
}

.page-banner .hero-badge {
  animation: none;
  opacity: 1;
}

.page-banner h1 {
  font-size: clamp(32px, 5vw, 60px);
  animation: none;
  opacity: 1;
  letter-spacing: -1.5px;
}

.page-banner .hero-sub {
  animation: none;
  opacity: 1;
  margin-bottom: 32px;
}

.page-banner .hero-btns {
  animation: none;
  opacity: 1;
  justify-content: flex-start;
}

/* ── CONTENIDO INTERNO ── */
.page-content {
  background: var(--bg2);
  padding: 80px 5%;
}

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

/* Sección de etapas */
.etapas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.etapa-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-left: 2px solid var(--blue);
  border-radius: 0 12px 12px 0;
  padding: 28px;
  opacity: 0;
  transform: translateY(20px);
}

.etapa-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.etapa-card.teal {
  border-left-color: var(--teal);
}

.etapa-num {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.etapa-card.teal .etapa-num {
  color: var(--teal);
}

.etapa-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.etapa-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* Equipos compatibles */
.equipos-section {
  margin-bottom: 32px;
}

.equipos-section .section-tag {
  margin-bottom: 16px;
}

.equipos-section .section-title {
  font-size: clamp(22px, 3vw, 34px);
  margin-bottom: 32px;
}

.equipos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.equipo-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  opacity: 0;
  transform: translateY(20px);
}

.equipo-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.equipo-card:hover {
  border-color: rgba(55, 138, 221, 0.4);
}

.equipo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(55, 138, 221, 0.1);
  border: 0.5px solid rgba(55, 138, 221, 0.2);
}

.equipo-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.equipo-card h4 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.equipo-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* CTA final */
.page-cta {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  margin-top: 64px;
  opacity: 0;
  transform: translateY(20px);
}

.page-cta.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.page-cta h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.page-cta p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-weight: 300;
}

.page-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── ÍNDICE DE SERVICIOS ── */
.servicios-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.servicio-index-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.servicio-index-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.3s;
}

.servicio-index-card.teal::before {
  background: var(--teal);
}

.servicio-index-card:hover::before {
  opacity: 1;
}

.servicio-index-card:hover {
  border-color: rgba(55, 138, 221, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.servicio-index-card.teal:hover {
  border-color: rgba(29, 158, 117, 0.45);
}

.servicio-index-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
}

.servicio-index-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(55, 138, 221, 0.1);
  border: 0.5px solid rgba(55, 138, 221, 0.2);
  flex-shrink: 0;
}

.servicio-index-icon.teal {
  background: rgba(29, 158, 117, 0.1);
  border-color: rgba(29, 158, 117, 0.2);
}

.servicio-index-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.servicio-index-icon.teal svg {
  stroke: var(--teal);
}

.servicio-index-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.servicio-index-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.servicio-index-tag.teal {
  color: var(--teal);
}

.servicio-index-card h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.servicio-index-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 20px;
  flex: 1;
}

.servicio-index-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.servicio-index-pills span {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(55, 138, 221, 0.1);
  color: var(--blue-lt);
  border: 0.5px solid rgba(55, 138, 221, 0.2);
}

.servicio-index-pills.teal span {
  background: rgba(29, 158, 117, 0.1);
  color: var(--teal);
  border-color: rgba(29, 158, 117, 0.2);
}

.servicio-index-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  margin-top: auto;
}

.servicio-index-link.teal {
  color: var(--teal);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .servicios-index-grid { grid-template-columns: 1fr; }
  .page-banner { padding: 100px 5% 48px; }
  .page-content { padding: 60px 5%; }
  .etapas-grid { grid-template-columns: 1fr; }
  .equipos-grid { grid-template-columns: repeat(2, 1fr); }
  .page-cta { padding: 32px 24px; }
  .page-banner .hero-btns { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .equipos-grid { grid-template-columns: 1fr; }
}

/* ── CARDS CON IMAGEN DE CABECERA ── */
.servicio-index-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.servicio-index-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
}

.servicio-index-card:hover .servicio-index-img img {
  transform: scale(1.04);
}

.servicio-index-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 14, 24, 0.1) 0%,
    rgba(6, 14, 24, 0.55) 100%
  );
}

/* ── PARTÍCULAS EN BANNER ── */
#servicios-banner {
  position: relative;
  overflow: hidden;
}

#particles-servicios {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ── BANNER CON IMAGEN DE FONDO ── */
.page-banner.has-bg-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-banner.has-bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(6,14,24,0.92) 0%, rgba(6,14,24,0.65) 60%, rgba(6,14,24,0.4) 100%),
    linear-gradient(to bottom, rgba(6,14,24,0.4) 0%, rgba(6,14,24,0.85) 100%);
  z-index: 0;
}

.page-banner.has-bg-img .page-banner-inner {
  position: relative;
  z-index: 1;
}

/* ── FONDO GRID DE PUNTOS (contacto) ── */
.page-banner.bg-dots::before {
  background: none;
}

.page-banner.bg-dots .bg-dots-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(55,138,221,0.35) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
}

.page-banner.bg-dots .bg-dots-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(55,138,221,0.1) 0%, transparent 65%);
}

.page-banner.bg-dots .page-banner-inner {
  position: relative;
  z-index: 1;
}

/* ── FONDO LÍNEAS DE CIRCUITO (tecnologías) ── */
.page-banner.bg-circuit .page-banner-inner {
  position: relative;
  z-index: 1;
}

.page-banner.bg-circuit .bg-circuit-svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
}

/* ── FONDO HEXÁGONOS (servicios) ── */
.page-banner.bg-hex .page-banner-inner {
  position: relative;
  z-index: 1;
}

.page-banner.bg-hex .bg-hex-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.12;
}

.page-banner.bg-hex .bg-hex-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(55,138,221,0.1) 0%, transparent 60%);
}