:root {
  --primary-color: #0e233c;
  --secondary-color: #8bc34a;
  --dark-bg: #333;
  --light-bg: #fff;
  --text-light: #fff;
  --text-dark: #333;
  --accent-color: #007bff;
}

body {
  font-family: "DM Sans", sans-serif;
  font-display: swap;
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  background-color: var(--light-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Botones */
.btn {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.btn-tech {
  background-color: var(--primary-color);
  color: var(--text-light) !important;
  z-index: 5;
}

/* Navbar */
.navbar {
  background-color: var(--primary-color);
  color: var(--text-light);
  z-index: 15;
}

.navbar-brand {
  padding: 0 !important;
}

.navbar-brand h4 {
  font-size: 1em;
}

/* Estilos para los enlaces del menú */
.navbar-nav .nav-link {
  color: white;
  font-weight: normal;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

/* Efecto hover */
.navbar-nav .nav-link:hover {
  color: #00bfff !important;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.7);
  background-color: rgba(0, 191, 255, 0.1);
  transform: scale(1.09);
}

.navbar-toggler {
  border-color: var(--text-light) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Dark Mode */
body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--text-light);
}

body.dark-mode .navbar-brand img,
body.dark-mode .footer_logo img {
  border-radius: 0.25em;
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.4);
  margin-right: 0.5em;
}

body.dark-mode .navbar,
body.dark-mode .nosotros,
body.dark-mode .reviews,
body.dark-mode footer {
  background-color: var(--dark-bg) !important;
}

body.dark-mode .reviews h2 {
  color: var(--text-light) !important;
}

body.dark-mode .nosotros img {
  border-radius: 0.25em;
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.4);
}

.card-service:hover {
  transform: translateY(-10px); /* Elevación en el eje Y */
  box-shadow: 0 15px 25px rgba(255, 255, 255, 0.2); /* Sombra más pronunciada */
}

body.dark-mode .btn-tech {
  background-color: var(--dark-bg);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.4);
}

.toggle-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.toggle-button:hover {
  color: var(--secondary-color);
}

body.dark-mode .card-text {
  color: #000 !important;
}

/* Carrusel Hero */
.slider-wrap {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.single-slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  animation: slider-animation 36s infinite ease-in-out;
}

.single-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Estilos específicos para cada slide */
#slide-1 {
  opacity: 1; /* El primer slide es visible inmediatamente */
  z-index: 1;
}

#slide-2 {
  animation-delay: 6s;
}
#slide-3 {
  animation-delay: 12s;
}
#slide-4 {
  animation-delay: 18s;
}
#slide-5 {
  animation-delay: 24s;
}
#slide-6 {
  animation-delay: 30s;
}

@keyframes slider-animation {
  0%,
  11.1% {
    opacity: 1;
    z-index: 1;
  }
  16.7%,
  94.4% {
    opacity: 0;
    z-index: 0;
  }
  100% {
    opacity: 1;
    z-index: 1;
  }
}

.text-overlay {
  position: absolute;
  top: 0;
  left: 15%;
  z-index: 10;
  color: #fff;
  text-align: left;
  padding-top: 150px;
}

.text-overlay h1,
.text-overlay h2 {
  max-width: 600px;
  margin-bottom: 1rem;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5), 0 3px 6px rgba(0, 0, 0, 0.5);
}

.text-overlay h1 {
  animation: fade-in 0.8s ease-out forwards;
}

.text-overlay h2 {
  animation: fade-in 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.btn-tech {
  background-color: var(--accent-color);
  color: #fff;
  opacity: 0;
  animation: fade-in 0.8s ease-out 0.4s forwards;
}

.btn-tech:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media queries para responsividad */
@media (max-width: 768px) {
  .text-overlay {
    left: 10%;
    padding-top: 100px;
  }
}

@media (max-width: 576px) {
  .text-overlay {
    left: 5%;
    padding-top: 80px;
  }
}

/* Cambiar el color de los iconos del carrusel a negro en modo claro */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(288deg)
    brightness(103%) contrast(103%);
}

/* Iconos del carrusel en modo oscuro */
body.dark-mode .carousel-control-prev-icon,
body.dark-mode .carousel-control-next-icon {
  filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%)
    contrast(100%);
}

/* Animaciones */
@keyframes circle-in-center {
  from {
    clip-path: circle(0%);
  }
  to {
    clip-path: circle(125%);
  }
}

/* Secciones */
#nosotros,
#servicios {
  min-height: 100vh;
  overflow: auto;
}

.nosotros img {
  border-radius: 0.5em;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.text-paragraph {
  text-align: justify;
}

/* Servicios */
.card-service {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Sombra */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-service:hover {
  transform: translateY(-10px); /* Elevación en el eje Y */
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada */
}

/* Contacto */
input,
textarea {
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.3), 0 3px 6px rgba(0, 0, 0, 0.3);
}

/**/

footer {
  background-color: #0e233f;
  color: #fff !important;
}

/* *****   RRSS   ***** */
.text-icon {
  color: #ffff;
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
}

.text-icon:hover {
  color: rgb(139, 195, 74);
  text-shadow: 0 6px 12px rgba(255, 255, 255, 0.5);
}

/* *****   Responsive   ***** */

@media (max-width: 576px) {
  .navbar-brand img {
    width: 40px !important;
    height: 40px !important;
  }

  .navbar-brand h4 {
    font-size: 0.7em;
  }

  .navbar-toggler {
    padding: 0 !important;
  }
  .text-overlay {
    left: 10%;
  }

  #nosotros-text {
    text-align: justify;
  }
}
