@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@100..900&display=swap");

@layer utilities {
  .bee-box {
    border: 2px dashed #cccccc;
    border-radius: 10px;
  }
}

:root {
  --beegreen: #004d4a;
}

.panel {
  transition: opacity 0.5s;
}

@keyframes appear-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes appear-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* ::view-transition-old(navBarLineBig) {
  animation-name: -ua-view-transition-fade-out, appear-out;
}

::view-transition-new(navBarLineBig) {
  animation-name: -ua-view-transition-fade-in, appear-in;
} */

@font-face {
  font-family: "monaco";
  src: url("./fonts/monaco.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "cmunrm";
  src: url("./fonts/cmunrm.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "MESPREG";
  src: url("./fonts/MESPREG.woff") format("truetype");
  font-display: swap;
}

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --color-primary: 24 66 66;
    --color-secondary: 237 237 237;
  }
}

body,
html {
  margin: 0;
  padding: 0;
  overscroll-behavior: none;
  font-family: "Raleway", sans-serif;
}

.cmunrm {
  font-family: "cmunrm", sans-serif;
}

.monaco {
  font-family: "monaco", sans-serif;
}

html {
  scroll-behavior: smooth;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(0);
  }
  40% {
    transform: translateX(10px);
  }
  60% {
    transform: translateX(5px);
  }
}

.arrow-bounce {
  animation: bounce 2s infinite;
}

@keyframes subtleBounce {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

.arrow-subtle-bounce {
  animation: subtleBounce 0.5s ease-in-out forwards;
}

@keyframes slideUp {
  0% {
    transform: translateY(20px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.anim-slide-up {
  animation: slideUp 1s ease-in-out forwards 1.5s;
}

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

.hr-slide-up {
  animation: slideUpHr 0.4s ease-in 1.2s forwards;
}

@keyframes appear {
  0% {
  }
  100% {
    opacity: 1;
  }
}

.anim-appear {
  animation: appear 1s ease-in-out forwards;
  animation-delay: 1s;
}

@keyframes appear-copyright {
  0% {
  }
  100% {
    opacity: 0.3;
  }
}

.anim-appear-copyright {
  animation: appear-copyright 1s ease-in-out forwards;
  animation-delay: 1s;
}

@keyframes moveRight {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(170px);
  }
}

.arrow-move-right {
  animation: moveRight 0.5s forwards;
}

@keyframes slide-in-bottom {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-in-bottom {
  animation: slide-in-bottom 1s ease-out forwards;
}

@keyframes hr-fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.hr-fill {
  animation: hr-fill 0.6s ease-out forwards 1s;
}

@keyframes rotate-button-form2 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(180deg);
  }
}

@keyframes rotate-button-form2-back {
  from {
    transform: rotate(180deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.rotate-button-form2 {
  animation: rotate-button-form2 0.3s ease-in-out forwards;
}

.rotate-button-form2-back {
  animation: rotate-button-form2-back 0.3s ease-in-out forwards;
}

.bg-primary {
  background-color: rgb(var(--color-primary));
}

.bg-secondary {
  background-color: rgb(var(--color-secondary));
}

.text-stroke {
  -webkit-text-stroke: 1px black;
  text-stroke: 1px black;
}

.pulsating-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 15px;
  height: 15px;
  opacity: 50;

  &:before {
    content: "";
    position: relative;
    display: block;
    width: 300%;
    height: 300%;
    box-sizing: border-box;
    margin-left: -100%;
    margin-top: -100%;
    border-radius: 45px;
    background-color: #357557;
    animation: pulse-ring 1.25s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  }

  &:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    animation: pulse-dot 1.25s cubic-bezier(0.455, 0.03, 0.515, 0.955) -0.4s infinite;
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.33);
  }
  80%,
  100% {
    opacity: 0;
  }
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.8);
  }
}

@keyframes clipPathChange {
  from {
    clip-path: inset(100% 0 0 0); /* Oculta toda la imagen */
  }
  to {
    clip-path: inset(0 0 0 0); /* Muestra toda la imagen */
  }
}

.image-container {
  animation: clipPathChange 2s ease-in-out forwards; /* Duración de la animación */
}

@keyframes aparecerCard {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes desaparecerCard {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}
#card-1,
#card-2,
#card-3,
#card-4,
#card-5,
#card-6 {
  opacity: 0;
}

.aparecer {
  animation: 0.25s aparecerCard forwards linear;
  animation-delay: 0.25s;
}

.desaparecer {
  animation: 0.25s desaparecerCard forwards linear;
}

@keyframes appearPulsating {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.appear-pulsating {
  animation-delay: 0.5s;
  animation: appearPulsating 1s ease-in-out forwards;
}

@keyframes appearSections {
  from {
    transform: translateX(150px);
    opacity: 0;
  }
  to {
    transform: translateX(0px);
    opacity: 1;
  }
}

.appear-sections {
  animation: appearSections 1s ease-in-out forwards;
}

@keyframes disappearSections {
  from {
    transform: translateX(0px);
    opacity: 1;
  }
  to {
    transform: translateX(150px);
    opacity: 0;
  }
}

.disappear-sections {
  animation: disappearSections 1s ease-in-out forwards;
}

#sections-div {
  display: none;
  transform: translateX(150px);
  opacity: 0;
}

#sections-div-vertical {
  display: flex;
  transform: translateX(150px);
  opacity: 0;
}

@media (min-width: 820px) {
  #sections-div {
    display: flex;
  }

  #sections-div-vertical {
    display: none;
  }
}

/* @keyframes appearSectionsVertical {
  from {
    transform: translateY(-150px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}

.appear-sections-vertical {
  animation: appearSectionsVertical 1s ease-in-out forwards;
}

@keyframes disappearSectionsVertical {
  from {
    transform: translateY(0px);
    opacity: 1;
  }
  to {
    transform: translateY(-150px);
    opacity: 0;
  }
}

.disappear-sections-vertical {
  animation: disappearSectionsVertical 1s ease-in-out forwards;
} */

/* .navigator-mobile {
  -webkit-box-shadow: 1px -23px 51px -7px rgba(168, 168, 168, 0.64);
  -moz-box-shadow: 1px -23px 51px -7px rgba(168, 168, 168, 0.64);
  box-shadow: 1px -23px 51px -7px rgba(168, 168, 168, 0.64);
} */

/* .navigator-mobile {
  -webkit-box-shadow: 1px -23px 67px 9px rgba(255, 255, 255, 1);
  -moz-box-shadow: 1px -23px 67px 9px rgba(255, 255, 255, 1);
  box-shadow: 1px -23px 67px 9px rgba(255, 255, 255, 1);
} */

#carrusel {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

#carrusel::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

#carrusel,
#carrusel li {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10+ */
  user-select: none; /* Standard syntax */
}

.sections-top-title {
  @apply grid gap-y-2 bg-white w-full sticky top-0  px-8 z-10;

  h2 {
    @apply lg:text-2xl text-xl font-semibold pb-[5px] pt-[15px];
  }

  hr {
    @apply w-0 border-gray-900 hr-fill;
  }
}

.section-sub-title {
  @apply grid gap-y-2 bg-white w-full sticky top-0 px-8 z-10;

  div {
    @apply flex flex-row justify-start items-center;

    h2 {
      @apply lg:text-2xl text-xl font-[Raleway] text-[#b8b7b7] font-semibold pb-[5px] pt-[15px];
    }

    span {
      @apply lg:text-lg text-sm font-semibold pb-[5px] pt-[15px] lg:pl-4 pl-2;
    }
  }

  hr {
    @apply w-0 border-gray-900 hr-fill;
  }
}
