: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-slider {
  position: relative;
  width: 100vw;
  min-height: 460px;
  max-height: 750px;
  overflow: hidden;
  margin-bottom: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  transition: opacity 0.3s, z-index 0.3s;
  transform: translateX(100%);
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
  transform: translateX(0);
  transition: opacity 0.6s, z-index 0.6s, transform 0.6s cubic-bezier(.55, .07, .47, .77);
}

.hero-slide.to-left {
  transform: translateX(-100%);
}

.hero-slide.to-right {
  transform: translateX(100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.65) 40%, rgba(255, 255, 255, 0.15) 80%, rgba(255, 255, 255, 0) 100%);

  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-texto);
  padding-left: 7vw;
  padding-right: 3vw;
  max-width: 750px;
  min-width: 220px;
}

.hero-content h1 {
  font-size: 2.6em;
  font-weight: 800;
  line-height: 1.11em;
  margin-bottom: 0.38em;
  margin-top: 0;
  letter-spacing: 1px;
  color: var(--color-texto);
}

.hero-content .azul {
  color: var(--color-principal);
}

.hero-content p {
  font-size: 1.18em;
  font-weight: 400;
  margin-bottom: 1.2em;
  color: #555;
}

.hero-btn {
  display: inline-block;
  background: var(--color-principal);
  color: #fff;
  font-weight: 600;
  padding: 0.9em 2.1em;
  border-radius: 2em;
  text-decoration: none;
  font-size: 1.05em;
  margin-top: 0.5em;
  transition: background .18s;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.hero-btn:hover {
  background: var(--color-hover);
  color: #fff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-principal);
  color: #fff;
  border: none;
  font-size: 2.7em;
  border-radius: 50%;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow);
  opacity: 0.93;
}

.hero-arrow:hover {
  background: var(--color-hover);
  opacity: 1;
}

.hero-arrow-left { left: 2vw; }
.hero-arrow-right { right: 2vw; }

.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; }
}
