:root {
  --color-principal: #2563eb;
  --color-hover: #1d4ed8;
  --color-secundario: #0897c275;
  --color-header: #0178f0ce;
  --color-menu: #065b7c;
  --color-texto: #1f2937;
  --shadow: 0 6px 20px rgba(0,0,0,0.08);
}


.hero-slide-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  width: 100%;
  background: #f8fafc;
  padding: 2rem;
  gap: 2rem;
}

.hero-image {
  flex: 1;
  min-height: 300px;
  background-image: url('/assets/images/Nerd-cuate\ \(1\).svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.hero-text {
  flex: 1;
  color: #1f2937;
  text-align: left;
  padding: 1rem 2rem;
}

.hero-text h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.hero-btn {
  background: #2563eb;
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.hero-btn:hover{
  background-color: #5884e4;
}

/* RESPONSIVE para pantallas pequeñas */
@media (max-width: 768px) {
  .hero-slide-layout {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    width: 100%;
    min-height: 250px;
  }

  .hero-text {
    padding: 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }
}


.main-services {
  width: 100%;
  background: var(--color-secundario);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0;
  margin: 0 auto 2em auto;
  min-height: 180px;
}

.services-container {
  display: flex;
  gap: 2em;
  justify-content: center;
  align-items: stretch;
  width: 96vw;
  max-width: 1300px;
  padding: 0.5em 0;
  margin: 0 auto;
}

.service-card {
  flex: 1 1 230px;
  max-width: 300px;
  min-width: 180px;
  background: var(--color-header);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  padding: 2em 1.1em 1.4em 1.1em;
  text-align: center;
  text-decoration: none;
  color: var(--color-texto);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.18s, background 0.18s, color 0.18s;
  cursor: pointer;
}

.service-card .service-icon {
  margin-bottom: 0.65em;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
}

.service-card .service-title {
  font-weight: 700;
  font-size: 1.15em;
  margin-bottom: 0.5em;
  margin-top: 0.1em;
  color: var(--color-texto);
}

.service-card .service-desc {
  font-size: 0.98em;
  color: #555;
}

.service-card:hover,
.service-card.active {
  background: var(--color-menu);
  color: var(--color-texto);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
}

.service-card:hover .service-icon svg,
.service-card.active .service-icon svg {
  stroke: var(--color-texto);
}

.service-card.dark {
  background: var(--color-texto);
  color: #fff;
}
.service-card.dark .service-title { color: #fff; }
.service-card.dark .service-desc { color: #f1f1f1; }
.service-card.dark .service-icon svg { stroke: #fff; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .services-container { gap: 1em; }
}
@media (max-width: 800px) {
  .services-container {
    flex-wrap: wrap;
    gap: 1em;
    padding: 1em 0;
  }
  .service-card {
    min-width: 150px;
    max-width: 300px;
    padding: 1.3em 0.6em 1em 0.6em;
  }
}
@media (max-width: 900px) {
  .hero-content { padding-left: 3vw; }
  .hero-content h1 { font-size: 1.35em; }
  .hero-btn { padding: 0.8em 1.4em; font-size: 1em; }
  .hero-arrow { font-size: 1.5em; width: 40px; height: 40px; }
}
@media (max-width: 600px) {
  .services-container {
    flex-direction: column;
    align-items: center;
    gap: 1em;
    width: 100vw;
    padding: 0.6em 0.1em;
  }
  .service-card {
    width: 95vw;
    min-width: 0;
    max-width: 96vw;
    padding: 1.2em 0.7em 1em 0.7em;
    font-size: 0.98em;
  }
  .hero-slider { min-height: 310px; }
  .hero-content { max-width: 96vw; padding-right: 1vw; }
  .hero-content h1 { font-size: 1.12em; }
  .hero-btn { font-size: 0.98em; padding: 0.5em 1.1em; }
  .hero-arrow { top: unset; bottom: 30px; transform: none; }
  .hero-arrow-left { left: 5vw; }
  .hero-arrow-right { right: 5vw; }
}
