@font-face {
  font-family: "Olive";
  src: url("../fonts/olive/antiqueolivecompact.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Transición suave entre secciones */
html {
  scroll-behavior: smooth;
}

/* Personalización de la barra de scroll */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00f5d4, #9b5de5);
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00f5d4 20%, #9b5de5 80%);
  box-shadow: 0 0 10px rgba(155, 93, 229, 0.5);
}

p,
li,
button {
  font-family: "Montserrat", sans-serif;
}

/* Algunos estilos aún necesitan CSS personalizado */
.gradient-text {
  background: linear-gradient(90deg, #00f5d4, #9b5de5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Efecto para línea del menú que no se puede hacer con Tailwind */
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #00f5d4, #9b5de5);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Estilos para la sección de Mente Digital */
.section-mente-digital {
  position: relative;
  background-image: url("../../content/images/background-mente-digital.jpg");
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  overflow: hidden;
}

/* Ajuste de nave espacial */
.nave-espacial {
  max-width: 95%;
  transform: translateY(40px);
}

/* Estilos específicos para los textos de esa sección */
.title-mente-digital {
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 800;
}

.subtitle-impulsar {
  font-size: 1.7rem;
  font-weight: 600;
  margin: 2.5rem 0 1.5rem 0;
}

.text-transformamos {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Scroll icon */
.scroll-icon {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 54px;
  border: 2px solid transparent;
  border-radius: 25px;
  z-index: 10;
  opacity: 0.9;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 15px rgba(155, 93, 229, 0.3);
  overflow: hidden;
}

.scroll-icon:hover {
  opacity: 1;
  cursor: pointer;
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 0 20px rgba(155, 93, 229, 0.5);
}

.scroll-icon::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: linear-gradient(90deg, #00f5d4, #9b5de5);
  border-radius: 50%;
  animation: scrollDown 2s infinite;
}

.scroll-icon::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  border: 2px solid transparent;
  border-radius: 25px;
  background: linear-gradient(90deg, #00f5d4, #9b5de5) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

@keyframes scrollDown {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(25px);
  }
}

/* Overlay para suavizar la transición entre secciones */
.section-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 5;
}

/* Navbar fixed */
.navbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  z-index: 100;
}

/* Mejores ajustes para la sección Filosofía */
#filosofia {
  background-color: #050509;
  padding: 0;
  display: flex;
  overflow: hidden;
}

/* Para móviles */
@media (max-width: 1023px) {
  #filosofia {
    height: auto;
    min-height: 100vh;
  }

  #filosofia .order-2 {
    margin-top: 2rem;
    margin-bottom: 0;
    align-self: flex-end;
  }

  #filosofia .order-1 {
    padding: 4rem 0;
  }

  #filosofia img {
    max-height: 50vh;
  }
}

/* SERVICIOS - DISEÑO WEB */
.text-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding-right: 1rem;
}

/* Para móviles */
@media (max-width: 768px) {
  .text-vertical {
    writing-mode: horizontal-tb;
    transform: none;
    padding-right: 0;
    margin-bottom: 2rem;
  }

  #desarrollo-web .flex {
    flex-direction: column;
  }

  #desarrollo-web .w-1/6,
  #desarrollo-web .w-5/6 {
    width: 100%;
  }
}

/* Estilos para replicar exactamente el boceto */
#contacto .bg-opacity-60 {
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
}

.contact-input {
  background-color: rgba(26, 26, 46, 0.5) !important;
  border-color: rgba(75, 85, 99, 0.4) !important;
}

.contact-input::placeholder {
  color: rgba(156, 163, 175, 0.6);
}

/* Checkbox personalizado */
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: 1px solid rgba(107, 114, 128, 0.4);
  border-radius: 0.25rem;
  padding: 0;
}

.custom-checkbox:checked {
  background-color: #9b5de5;
  border-color: #9b5de5;
  position: relative;
}

.custom-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Transición entre columnas en móvil */
@media (max-width: 768px) {
  #contacto .md\:border-r {
    border-right-width: 0;
  }
  #contacto .md\:border-t {
    border-top: 1px solid rgba(75, 85, 99, 0.4);
    padding-top: 2rem;
    margin-top: 1rem;
  }
}
