@tailwind base;
@tailwind components;
@tailwind utilities;

body {
  background: linear-gradient(to bottom, #273f64, #193946);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Quita el borde de los inputs cuando estan activos */
.form-control {
  outline: none;
}

/* Navbar y botón hamburguesa */

.burger {
  position: relative;
  display: block;
  cursor: pointer;
  user-select: none;
  order: 1;
  z-index: 12;
  width: 1.6rem;
  height: 1.15rem;
  margin-right: 1.25rem;
  border: none;
  outline: none;
  background: none;
  visibility: visible;
  transform: rotate(0deg);
  transition: 0.35s ease;
}

@media only screen and (min-width: 48rem) {
  .burger {
    display: none;
    visibility: hidden;
  }
}

.burger-line {
  position: absolute;
  display: block;
  left: 0;
  width: 100%;
  height: 2px;
  border: none;
  outline: none;
  opacity: 1;
  border-radius: 1rem;
  transform: rotate(0deg);
  background-color: #000000;
  transition: 0.25s ease-in-out;
}

.burger-line:nth-child(1) {
  top: 0px;
}
.burger-line:nth-child(2) {
  top: 0.5rem;
  width: 70%;
}
.burger-line:nth-child(3) {
  top: 1rem;
}

.burger.is-active .burger-line:nth-child(1) {
  top: 0.5rem;
  transform: rotate(135deg);
}
.burger.is-active .burger-line:nth-child(2) {
  opacity: 0;
  visibility: hidden;
}
.burger.is-active .burger-line:nth-child(3) {
  top: 0.5rem;
  transform: rotate(-135deg);
}

/* Imagen del banner */

.banner-container {
  background-image: url("../assets/bg-banner.webp");
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .banner-container {
    background-image: url("../assets/bg-banner.webp");
    background-attachment: scroll;
  }
}

/* Inicio animación gradiente */

.gradient-border {
  position: relative;
  z-index: 1;
}

.gradient-border::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #46778c, #7ac1e0, #46778c, #7ac1e0);
  background-size: 300% 300%;
  z-index: -1;
  border-radius: inherit;
  animation: gradientMove 4s ease infinite;
  opacity: 0.7;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Estilos carrousel */

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel__container {
  display: flex;
  width: 300%;
  height: 100%;
  animation: slide 12s infinite;
}

.carousel__slide {
  flex: 1 0 33.333%;
  height: 100%;
}

@keyframes slide {
  0%,
  30% {
    transform: translateX(0);
  }

  33%,
  63% {
    transform: translateX(-33.333%);
  }

  66%,
  97% {
    transform: translateX(-66.666%);
  }

  100% {
    transform: translateX(0);
  }
}

.carousel:hover .carousel__container {
  animation-play-state: paused;
}

/* Formulario Step by Step */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out forwards;
}

select {
  appearance: none; /* Quita la flecha por defecto */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Transiciones suaves para todos los elementos del indicador */
.step-circle .circle,
#step-indicator > div:not(.step-circle) > div,
.step-circle p {
  transition: all 0.3s ease;
}

/* Estilo base para las barras de progreso */
#step-indicator > div:not(.step-circle) {
  background-color: rgba(255, 255, 255, 0.3);
}

#step-indicator > div:not(.step-circle) > div {
  background-color: white;
  height: 100%;
}

/* Fin formulario Step by Step */

/* Empresas */
.form-input {
  width: 100%;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  /* gray-800 */
  outline: none;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 1);
  /* focus:ring-2 focus:ring-yellow-400 */
}

.service-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition-property: transform, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.service-card:hover {
  transform: scale(1.02);
  border-color: rgba(234, 179, 8, 0.3);
  /* hover:border-yellow-400/30 */
}
