/* assets/css/home-sections.css */

/* ==================================
   1) FADE-IN AL SCROLL
   ================================== */
section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================================
   2) QUIÉNES SOMOS
   ================================== */
.about-us {
  padding: 4rem 1rem;
  background: var(--white);
}
.about-us h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.about-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.about-item {
  background: var(--gray-light);
  padding: 2rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}
.about-item img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}
.about-item h3 {
  margin-bottom: 0.75rem;
}
.about-item p,
.about-item ul {
  margin-bottom: 1rem;
}
.about-item ul {
  list-style: none;
  padding-left: 0;
}
.about-item ul li {
  margin-bottom: 0.5rem;
}

/* ==================================
   3) PROPUESTA DE VALOR
   ================================== */
.value-proposition {
  padding: 4rem 1rem;
  background: var(--light-cyan);
}
.value-proposition h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.value-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.value-grid article {
  background: var(--white);
  padding: 2rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}
.value-grid i {
  font-size: 2rem;
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
}
.value-grid h3 {
  margin-bottom: 0.75rem;
}
.value-grid p {
  color: var(--gray-dark);
}

/* ==================================
   4) SERVICIOS DETALLADOS
   ================================== */
.services-detail {
  padding: 4rem 1rem;
  background: var(--white);
}
.services-detail h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.services-detail .container {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.service-card {
  background: var(--gray-light);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.service-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.service-header img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.service-card h3 {
  margin-left: 0.5rem;
}
.service-card ul {
  list-style: disc inside;
  padding-left: 0;
}
.service-card ul li {
  margin-bottom: 0.5rem;
}

/* ==================================
   5) CÓMO TRABAJAMOS (DETALLADO)
   ================================== */
.how-we-work-detailed {
  padding: 4rem 1rem;
  background: var(--gray-light);
}
.how-we-work-detailed h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.process-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.process-step {
  background: var(--white);
  padding: 2rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}
.process-step i {
  font-size: 2rem;
  color: var(--medium-blue);
  margin-bottom: 0.75rem;
}
.process-step h4 {
  margin-bottom: 0.75rem;
}
.process-step p {
  color: var(--gray-dark);
}

/* ==================================
   6) NÚMEROS CLAVE
   ================================== */
.stats {
  padding: 4rem 1rem;
  background: var(--white);
}
.stats h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.stats-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  text-align: center;
}
.stat-number {
  font-size: 3rem;
  color: var(--deep-blue);
  display: block;
}
.stats-grid p {
  margin-top: 0.5rem;
}

/* ==================================
   7) TESTIMONIOS
   ================================== */
.testimonials {
  padding: 4rem 1rem;
  background: var(--light-cyan);
}
.testimonials h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.testimonials-slider {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.testimonials-slider blockquote {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}
.testimonials-slider blockquote.active {
  position: relative;
  opacity: 1;
}
.testimonials-slider footer {
  margin-top: 0.75rem;
  font-style: italic;
  color: var(--gray-dark);
}

/* ==================================
   8) ECOSISTEMA NEXXIS
   ================================== */
.ecosystem {
  padding: 4rem 1rem;
  background: var(--white);
}
.ecosystem-intro {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--gray-dark);
}
.ecosystem-logos {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.ecosystem-logos article {
  background: var(--gray-light);
  padding: 2rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}
.ecosystem-logos article:hover {
  transform: translateY(-5px);
  background: #dbdcdd;
}
.ecosystem-logos img {
  max-width: 160px;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

/* ==================================
   9) CLIENTES
   ================================== */
.clients-logos {
  padding: 4rem 1rem;
  background: var(--light-cyan);
  max-height: 50%;
}
.clients-logos h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.logos-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
}
.logos-grid img {
  max-width: 100px;
  filter: grayscale(100%);
  transition: filter 0.3s;
}
.logos-grid img:hover {
  filter: grayscale(0);
}

/* ==================================
   10) CTA INTERMEDIA
   ================================== */
.intermediate-cta {
  padding: 4rem 1rem;
  background: var(--deep-blue);
  color: var(--white);
  text-align: center;
}
.intermediate-cta h2 {
  margin-bottom: 1rem;
}
.intermediate-cta .btn-cta {
  background: var(--light-cyan);
  color: var(--gray-dark);
}

/* ==================================
   11) NEWSLETTER
   ================================== */
.newsletter-home {
  padding: 4rem 1rem;
  background: var(--white);
  text-align: center;
}
.newsletter-home h2 {
  margin-bottom: 1.5rem;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.newsletter-form input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-dark);
  border-radius: 4px;
  flex: 1 1 300px;
  max-width: 400px;
}
.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: var(--deep-blue);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}
.newsletter-form button:hover {
  background: var(--medium-blue);
}

/* ==================================
   12) MULTICOLUMNAS EN DESKTOP
   ================================== */
@media (min-width: 768px) {
  .about-grid                { grid-template-columns: repeat(3,1fr); }
  .value-grid                { grid-template-columns: repeat(4,1fr); }
  .services-detail .container{ grid-template-columns: repeat(3,1fr); }
  .process-grid              { grid-template-columns: repeat(5,1fr); }
  .stats-grid                { grid-template-columns: repeat(4,1fr); }
  .ecosystem-logos           { grid-template-columns: repeat(3,1fr); }
  .logos-grid                { grid-template-columns: repeat(4,1fr); }
}


/* ==================================================
   OVERRIDES MULTICOLUMNAS DESKTOP PARA HOME SECTIONS
   Pegá esto AL FINAL de home-sections.css
   ================================================== */
@media (min-width: 1024px) {
  /* 2. Quiénes somos */
  .about-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
  }

  /* 3. Propuesta de valor */
  .value-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem;
  }

  /* 4. Servicios detallados */
  .services-detail .container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
  }

  /* 5. Cómo trabajamos (detallado) */
  .process-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 2rem;
  }

  /* 6. Números clave */
  .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem;
  }

  /* 8. Ecosistema Nexxis */
  .ecosystem-logos {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
  }

  /* 9. Logos de clientes */
  .logos-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem;
    align-items: center;
    justify-items: center;
  }
}


@media (min-width: 1024px) {
  .about-grid           { display: grid !important; grid-template-columns: repeat(3,1fr); gap: 2rem; }
  .services-grid        { display: grid !important; grid-template-columns: repeat(3,1fr); gap: 2rem; }
  .ecosystem-logos      { display: grid !important; grid-template-columns: repeat(3,1fr); gap: 2rem; }
  .stats-grid           { display: grid !important; grid-template-columns: repeat(4,1fr); gap: 2rem; }
  .process-grid         { display: grid !important; grid-template-columns: repeat(5,1fr); gap: 2rem; }
  .portfolio-grid       { display: grid !important; grid-template-columns: repeat(3,1fr); gap: 2rem; }
  .team-grid            { display: grid !important; grid-template-columns: repeat(3,1fr); gap: 2rem; }
  .logos-grid           { display: grid !important; grid-template-columns: repeat(4,1fr); gap: 2rem; justify-items: center; align-items: center; }
}
