/* ESTILOS PARA LA PÁGINA DE INICIO */

:root {
  /* ----- COLORES MODO CLARO ----- */
  --base-color: #fff;
  --base-variant: #20325e;
  --body-base: #fff;
  --body-secondary: #20325e;
  --body-details: #E0E0E0;
  --text-color-base: #666;
  --text-color-secondary: #fff;
  --accent-color: #0da44d;
}

.darkmode {
  /* ----- COLORES MODO OSCURO ----- */
  --base-color: #20325e;
  --base-variant: #fff;
  --body-base: #2F3637;
  --body-secondary: #464F51;
  --body-details: #5F6B6D;  
  --text-color-base: #fff;;
  --text-color-secondary: #fff;;
  --accent-color: #f69911;
}


/* HERO SECTION */
.hero-section {
  min-height: 100vh;
  background: var(--body-secondary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-left: 20px;
  padding-right: 20px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 0px;
  gap: 60px;
  align-items: center;
  min-height: 100vh;
}

.hero-image {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.hero-content {
  color: var(--text-color-secondary);
  padding: 40px 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
  color: var(--text-color);
}

.hero-title-emphasis {
  color: var(--accent-color);
  font-size: 3.5rem;
}

.hero-subtitle {
  color: var(--accent-color);
  font-size: 1.8rem;
  font-weight: 600;
  display: block;
  margin-top: 10px;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-color-secondary);
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.hero-button {
  background: var(--accent-color);
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--accent-color);
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 164, 77, 0.3);
}

.hero-button.secondary {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.hero-button.secondary:hover {
  background: #fff;
  color: #162653;
}

/* SERVICIOS INTEGRALES SECTION */
.servicios-section {
  background: var(--body-base);
  padding: 80px 0;
}

.servicios-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 60px;
  align-items: center;
}

.servicios-content {
  color: #162653;
}

.servicios-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #162653;
}

.servicios-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.servicios-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color-base);
}

.servicios-visual {
  position: relative;
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
}

.servicios-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.servicios-background img {
  width: 100%;
  height: 100%;
}

/* CLIENTES SECTION */
.clientes-section {
  background: var(--body-secondary);
  padding: 80px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.clientes-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.clientes-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.clientes-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.clientes-subtitle {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.clientes-carousel {
  position: relative;
  height: 400px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.carousel-container {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 0;
}

.carousel-item {
  position: absolute;
  width: auto;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.carousel-item img {
  width: auto;
  height: auto;

  transition: transform 0.6s ease;
}

.carousel-item:hover img {
  transform: scale(1.05);
}

/* Posiciones de las imágenes */
.carousel-far-left {
  transform: translateX(-700px) scale(0.8);
  opacity: 0.05;
  z-index: 1;
}

.carousel-left {
  transform: translateX(-360px) scale(1);
  opacity: 0.9;
  z-index: 2;
}

.carousel-center {
  transform: translateX(0) scale(1.3);
  opacity: 1;
  z-index: 5;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.carousel-right {
  transform: translateX(360px) scale(1);
  opacity: 0.9;
  z-index: 2;
}

.carousel-far-right {
  transform: translateX(700px) scale(0.8);
  opacity: 0.05;
  z-index: 1;
}

.carousel-hidden {
  transform: translateX(1000px) scale(0.8);
  opacity: 0;
  z-index: 0;
}

/* Efectos de desvanecimiento */
.carousel-far-left::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 25%;
  bottom: 0;
  background: linear-gradient(to right, rgba(22, 38, 83, 1) 0%, rgba(22, 38, 83, 0.95) 20%, rgba(22, 38, 83, 0.8) 40%, rgba(22, 38, 83, 0.5) 70%, transparent 100%);
  pointer-events: none;
  transition: all 0.8s ease;
}

.carousel-far-right::after {
  content: '';
  position: absolute;
  top: 0;
  left: 85%;
  right: 0;
  bottom: 0;
  background: linear-gradient(to left, rgba(22, 38, 83, 1) 0%, rgba(22, 38, 83, 0.95) 20%, rgba(22, 38, 83, 0.8) 40%, rgba(22, 38, 83, 0.5) 70%, transparent 100%);
  pointer-events: none;
  transition: all 0.8s ease;
}

/* Animaciones de desplazamiento */
@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100px) scale(0.8);
    opacity: 0;
  }

  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100px) scale(0.8);
    opacity: 0;
  }

  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ANIMACIONES DE SCROLL */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.fade-in.animate {
  opacity: 0;
  transform: translateY(30px);
}

.fade-in.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.8s ease;
}

.slide-in-left.animate {
  opacity: 0;
  transform: translateX(-50px);
}

.slide-in-left.animate.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.8s ease;
}

.slide-in-right.animate {
  opacity: 0;
  transform: translateX(50px);
}

.slide-in-right.animate.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 1;
  transform: scale(1);
  transition: all 0.8s ease;
}

.scale-in.animate {
  opacity: 0;
  transform: scale(0.8);
}

.scale-in.animate.visible {
  opacity: 1;
  transform: scale(1);
}

/* RESPONSIVIDAD */
@media (max-width: 1200px) {

  .hero-container,
  .servicios-container {
    gap: 40px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-title-emphasis {
    font-size: 3rem;
  }

  .servicios-modules {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 900px) {

  .hero-container,
  .servicios-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image {
    height: 50vh;
  }

  .hero-overlay {
    padding: 20px;
  }

  .hero-logo img {
    width: 80px;
  }

  .hero-logo h2 {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-title-emphasis {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }

  .servicios-visual {
    height: 500px;
  }

  .servicios-modules {
    grid-template-columns: repeat(2, 1fr);
    max-width: 400px;
  }

  .module-circle {
    width: 100px;
    height: 100px;
  }

  .module-icon {
    font-size: 1.5rem;
  }

  .module-text {
    font-size: 0.7rem;
    max-width: 80px;
  }

  .carousel-item {
    width: 200px;
    height: 120px;
  }

  .carousel-far-left {
    transform: translateX(-450px) scale(0.8);
  }

  .carousel-left {
    transform: translateX(-220px) scale(1);
  }

  .carousel-right {
    transform: translateX(220px) scale(1);
  }

  .carousel-far-right {
    transform: translateX(450px) scale(0.8);
  }

  /* Mantener los desvanecidos en tablet */
  .carousel-far-left::after,
  .carousel-far-right::after {
    transition: all 0.8s ease;
  }
}

@media (max-width: 600px) {

  .hero-container,
  .servicios-container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-title-emphasis {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .hero-button {
    padding: 14px 24px;
    font-size: 1rem;
  }

  .servicios-title {
    font-size: 2rem;
  }

  .servicios-subtitle {
    font-size: 1.3rem;
  }

  .servicios-description {
    font-size: 1rem;
  }

  .servicios-visual {
    height: 400px;
  }

  .servicios-modules {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 300px;
  }

  .module-circle {
    width: 80px;
    height: 80px;
  }

  .module-icon {
    font-size: 1.2rem;
  }

  .module-text {
    font-size: 0.6rem;
    max-width: 70px;
  }

  .servicios-logo img {
    width: 60px;
  }

  .clientes-title {
    font-size: 2rem;
  }

  .clientes-subtitle {
    font-size: 1rem;
  }

  .carousel-item {
    width: 160px;
    height: 100px;
  }

  .carousel-far-left {
    transform: translateX(-360px) scale(0.8);
  }

  .carousel-left {
    transform: translateX(-180px) scale(1);
  }

  .carousel-right {
    transform: translateX(180px) scale(1);
  }

  .carousel-far-right {
    transform: translateX(360px) scale(0.8);
  }

  /* Mantener los desvanecidos en móvil */
  .carousel-far-left::after,
  .carousel-far-right::after {
    transition: all 0.8s ease;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-title-emphasis {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .servicios-title {
    font-size: 1.8rem;
  }

  .servicios-subtitle {
    font-size: 1.2rem;
  }

  .servicios-visual {
    height: 350px;
  }

  .servicios-modules {
    max-width: 250px;
  }

  .module-circle {
    width: 70px;
    height: 70px;
  }

  .module-icon {
    font-size: 1rem;
  }

  .module-text {
    font-size: 0.5rem;
    max-width: 60px;
  }

  .carousel-item {
    width: 120px;
    height: 80px;
  }

  .carousel-far-left {
    transform: translateX(-280px) scale(0.8);
  }

  .carousel-left {
    transform: translateX(-140px) scale(1);
  }

  .carousel-right {
    transform: translateX(140px) scale(1);
  }

  .carousel-far-right {
    transform: translateX(280px) scale(0.8);
  }

  /* Mantener los desvanecidos en móvil pequeño */
  .carousel-far-left::after,
  .carousel-far-right::after {
    transition: all 0.8s ease;
  }
}