/* ============================================================
   Nicas Design — home.css (Estructura Intercalada + Hero Centrado)
   ============================================================ */

/* ------------------------------------------------------------
   1. HERO (Oscuro - Centrado)
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-midnight-block);
  color: var(--color-pure-white);
  overflow: hidden;
  padding: 100px 0;
}

.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero__slide.is-active { opacity: 1; }

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(17,17,17,0.6) 0%, rgba(17,17,17,0.95) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 900px);
  margin-inline: auto;
  text-align: center; /* Texto centrado */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-ibm-plex-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-iris-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--color-pure-white);
  text-wrap: balance;
}

.hero__description {
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 40px;
  max-width: 680px;
}

/* Chips Interactivos */
.hero__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centrados */
  gap: 12px;
  margin-bottom: 40px;
}
.filter-chip { position: relative; cursor: pointer; display: inline-block; }
.filter-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.filter-chip span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-tags);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-pure-white);
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.filter-chip span::before {
  content: '';
  display: inline-block;
  width: 18px; height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.filter-chip:hover span { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.filter-chip input:checked + span {
  background: var(--color-studio-violet);
  border-color: var(--color-studio-violet);
  box-shadow: 0 4px 20px rgba(150, 113, 255, 0.3);
}
.filter-chip input:checked + span::before {
  background: var(--color-pure-white);
  border-color: var(--color-pure-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 10px; background-position: center; background-repeat: no-repeat;
}

.hero__actions .btn--violet {
  padding: 16px 40px;
  font-size: 18px;
  transition: all 0.3s ease;
}
.hero__actions .btn--violet:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(150, 113, 255, 0.4);
}

/* ------------------------------------------------------------
   2. ESCALA DE COMPLEJIDAD (Claro)
   ------------------------------------------------------------ */
.section--light {
  background: var(--color-pure-white);
  padding: 100px 0;
}
.section--light-alt {
  background: var(--surface-fog-card);
  padding: 100px 0;
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 40px auto 0;
}
.scale-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--color-pure-white);
  border: 1px solid var(--color-ash);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}
.scale-item:hover {
  border-color: var(--color-studio-violet);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.scale-num {
  font-family: var(--font-ibm-plex-sans);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-studio-violet);
}
.scale-content h3 { font-size: 20px; font-weight: 700; color: var(--color-carbon); margin-bottom: 8px; }
.scale-content p { font-size: 15px; line-height: 1.6; color: var(--color-graphite); }

/* ------------------------------------------------------------
   3. SERVICIOS (Oscuro - Completo)
   ------------------------------------------------------------ */
.section--dark {
  background: var(--surface-midnight-block);
  color: var(--color-pure-white);
  padding: 100px 0;
}
.section--dark .section-heading__title { color: var(--color-pure-white) !important; }
.section--dark .section-heading__description { color: rgba(255, 255, 255, 0.7) !important; }
.section--dark .section-heading__eyebrow { color: var(--color-iris-light) !important; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.service-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: var(--color-studio-violet);
  transform: translateY(-4px);
}
.service-card__image {
  width: 100%; height: 200px; object-fit: cover;
}
.service-card__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.service-card p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.7); margin-bottom: 20px; flex: 1; }
.service-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-card__tags span {
  font-size: 12px; font-weight: 500; padding: 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: #ccc;
}

/* ------------------------------------------------------------
   4. PROCESO (Claro)
   ------------------------------------------------------------ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 60px;
}
.process-step {
  padding-top: 20px;
  border-top: 2px solid var(--color-ash);
  position: relative;
}
.process-step::before {
  content: '';
  position: absolute;
  top: -2px; left: 0;
  width: 40px; height: 2px;
  background: var(--color-studio-violet);
  transition: width 0.3s ease;
}
.process-step:hover::before { width: 100%; }
.process-step h4 {
  font-family: var(--font-ibm-plex-sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-carbon);
  margin-bottom: 12px;
}
.process-step p { font-size: 15px; line-height: 1.6; color: var(--color-graphite); }

/* ------------------------------------------------------------
   5. STACK TECNOLÓGICO (Oscuro)
   ------------------------------------------------------------ */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.tech-tag {
  padding: 10px 24px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-pure-white);
  transition: all 0.2s ease;
}
.tech-tag:hover {
  border-color: var(--color-studio-violet);
  background: rgba(150, 113, 255, 0.1);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   6. CTA FINAL (Claro / Testimonial)
   ------------------------------------------------------------ */
.cta-section {
  background: var(--surface-fog-card);
  padding: 100px 0;
  text-align: center;
}
.cta-section__title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  color: var(--color-carbon);
  margin-bottom: 24px;
}
.cta-section__description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-graphite);
  margin: 0 auto 40px;
  max-width: 600px;
}

/* Animaciones */
html.js-animations [data-fade] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-animations [data-fade].is-visible {
  opacity: 1;
  transform: translateY(0);
}