/* COLORES GLOBALES */
:root {
  --background-color: #0c0e11;
  --default-color: #ffffff;
  /* COLORES DEL LOGO DE LA ORGANIZACION */
  --bluecolor: #4bbee0;
  --redcolor: #cc273d;
  --greencolor: #36ae84;
  --yellowcolor: #fac758;
  --dark-color: #343131;
  --dark-color-hover: #222020;

/* Nav Menu Colors */
  --nav-color: #ffffff;
  --nav-hover-color: var(--bluecolor);
  --nav-background: #787979;
  --accent-color: #36ae84;
  --nav-dropdown-background-color: #ffffff;

  /* FUENTES */
  --default-font: "Poppins", sans-serif;
  --heading-font: "Inter", sans-serif;
  --nav-font: "Poppins ", sans-serif;
}

::selection {
  background: var(--bluecolor);
  color: var(--default-color);
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-thumb {
  background-color: var(--nav-background);
}

.t-part1 {
  color: var(--bluecolor);
}
.t-part2 {
  color: var(--yellowcolor);
}

/*--------------------------------------------------------------
#                           General
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  font-family: var(--default-font);
  background-color: var(--background-color);
}

a {
  color: var(--bluecolor);
  text-decoration: none;
  transition: 0.3s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--default-color);
  font-family: var(--heading-font);
}

/*----------------------
# Encabezazo en General
-----------------------*/
.header {
  color: var(--default-color);
  padding: 15px 0;
  transition: all 0.8s;
  z-index: 997;
  background-color: var(--nav-background);
  background-image: url(../img/Decorator/headerbg.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;

}

.header .logo img {
  max-height: 80px;
  margin-right: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .navmenu {
    order: 3;
  }
}

/* Navegacion Escritotri */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 15px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: #fff;
    background-color: var(--bluecolor);
    padding-top: 3px;
    padding-bottom: 3px;
    border-radius: 13px;
  }

  .navmenu li > a,
  .navmenu .active,
  .navmenu .active:focus {
    transition: background-color 0.5s ease, color 0.3s ease, padding 0.3s ease,
      border-radius 0.3s ease;
  }

  .navmenu .dd-box-shadow {
    box-shadow: 0px 0px 30px
      color-mix(in srgb, var(--default-color), transparent 85%);
  }
}

/* NAV MOVIL */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 32px;
    cursor: pointer;
    transition: 0.3s;
  }

  /* Estado inicial */
  .navmenu ul {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    padding-top: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 20px rgba(0,0,0,0.25);
    transition: right 0.4s ease;
    list-style: none;
    z-index: 9998;
  }

  /* Activado */
  .mobile-nav-active .navmenu ul {
    display: block;
    right: 0;
  }

  /* Fondo oscuro cuando está activo */
  .mobile-nav-active .navmenu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 9997;
  }

  /* Botón X */
  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
  }

  /* Links */
  .navmenu a {
    display: block;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    transition: 0.3s;
  }

  .navmenu a:hover {
    background: var(--bluecolor);
    color: #fff;
  }
}


/*------------------
# ESTILOS DE CARRUSEL
-------------------*/
#Inicio {
  display: flex;
  justify-content: center;
  align-items: center;
}
.carrusel-list {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  height: 304px;
  padding: 10px 0px;
  margin: 0px auto;
  max-width: 90vw;
  overflow: hidden;
}

.carrusel-track {
  position: relative;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  transition: left 0.5s ease-in-out;
}

.carrusel {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  box-sizing: border-box;
}

.carrusel-vertical {
  width: 210px;
  height: 300px;
}

.carrusel-vertical img {
  object-fit: cover;
  height: 300px;
  width: 200px;
  border-radius: 15px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.5);
}

.carrusel-horizontal {
  width: 320px;
  height: 225px;
}

.carrusel-horizontal img {
  object-fit: cover;
  height: 200px;
  width: 300px;
  border-radius: 15px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.5);
}

@media (max-width: 550px) {
  .carrusel-vertical {
    width: 110px;
    height: 200px;
  }

  .carrusel-vertical img {
    object-fit: cover;
    height: 200px;
    width: 120px;
    border-radius: 10px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.5);
  }

  .carrusel-horizontal {
    width: 240px;
    height: 130px;
  }

  .carrusel-horizontal img {
    object-fit: cover;
    height: 170px;
    width: 250px;
    border-radius: 15px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.5);
  }
}

.carrusel-arrow {
  border-radius: 30px;
  background-color: #fff;
  position: absolute;
  z-index: 4;
  width: 40px;
  height: 40px;
  text-align: center;
  cursor: pointer;
  border: 0;
}

.carrusel-arrow:focus {
  outline: 0;
}

.carrusel-arrow svg {
  width: 12px;
  height: 10px;
  color: #343131;
}

.carrusel-prev {
  left: 0px;
}
.carrusel-next {
  right: 0px;
}
.carrusel-next:hover,
.carrusel-prev:hover {
  background-color: #343131;
  color: var(--bluecolor);
}

.carrusel-next:hover svg path,
.carrusel-prev:hover svg path {
  fill: var(--bluecolor);
}

/*--------------------------------------------------------------
# ESTILOS SECTION
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  padding: 2.5rem 0;
  scroll-margin-top: 88px;
  overflow: clip;
}

@media (max-width: 1199px) {
  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# SECCION GLOBAL TITULOS
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 0.8rem;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  text-transform: uppercase;
  position: relative;
}

.section-title h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  text-transform: uppercase;
  position: relative;
}

.section-title h2:before {
  content: "";
  position: absolute;
  display: block;
  width: 160px;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 40%);
  left: 0;
  right: 0;
  bottom: 1px;
  margin: auto;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

/* ----------------------------------------------
      ESTILOS SOBRE BIENVENIDA
----------------------------------------------- */

.welcome-description {
  text-align: justify;
  font-size: 16px;
}

.welcome-image img {
  border-radius: 10px;
  transition: transform 1s, border-radius 1s, border 1s;
}

.welcome-image img:hover {
  border: #072713 30px;
  transform: scale(1.1);
}

/* ----------------------------------------------
      ESTILOS DE ACERCA DE (MISION Y VISION)
----------------------------------------------- */
@media (min-width: 390px) {
  .card {
    margin-top: 3.5rem;
  }
}

.card {
  position: relative;
  display: flex;
  max-width: 500px;
  padding: 42px 32px;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 10px;
  border: 2px solid #343131;
  background: var(--dark-color);
  transition: 1s all;
  text-decoration: none;
}
.title {
  color: var(--default-color);
  text-align: center;
  font-size: 22px;
  font-style: normal;
  font-weight: 600;
  line-height: 35.196px;
  transition: 0.4s all;
}
.subtitle {
  color: var(--default-color);
  text-align: justify;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  transition: 0.4s all;
}
.icon-circle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e5f6eb;
}
.card:hover {
  background: var(--dark-color-hover);
  transition: 0.5s all;
}
.card:hover .title,
.card:hover .subtitle {
  color: var(--bluecolor);
  transition: 0.4s all;
}
.btnRound {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  padding: 6px 28px;
  border-radius: 100px;
  border: 2px solid #343131;
  background: #343131;
  transition: all 0.2s ease;
  color: var(--bluecolor);
}
.btnRound:hover {
  box-shadow: 0px 6px 10px 0px rgba(35, 197, 94, 0.2);
  transition: all 0.2s ease;
}
.btnService {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translate(-50%, -50%);
}
/*-----
# PRINCIPIOS Y VALORES
------*/
  .valor-card {
  background: var(--dark-color);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.10);
  transition: all 0.25s ease;
  min-height: 180px;
}

.valor-card h5 {
  font-weight: 600;
  margin-top: 8px;
  font-size: 1.05rem;
  color: var(--bluecolor);
}

.valor-card p {
  color: var(--default-color);
  font-size: 0.85rem;
  margin-top: 5px;
}

.valor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 7px 18px rgba(0,0,0,0.15);
}

.valor-card .icon {
  font-size: 1.8rem;
  color: var(--bluecolor);
}

/*-------------------
# SECCION DE GALERIA  
---------------------*/
/*estilos de la pagina default*/
.photo-gallery .photos {
  padding-bottom: 20px;
}
.photo-gallery .photos img {
  border-radius: 12px;
}

.photo-gallery .item {
  padding-bottom: 30px;
}

@media (max-width: 767px) {
  .photo-gallery h2 {
    margin-bottom: 20px;
    padding-top: 20px;
    font-size: 24px;
  }
}

/*estilos de la pagina galeria*/
.gallery {
  margin: 1.3rem;
  padding: 2rem;
  border-radius: 30px;
  background-color: var(--dark-color);
}

#album {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
  padding: 20px 0;
}

@media (max-width: 992px) {
  #album {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  #album {
    grid-template-columns: 1fr;
  }
}

.imagen-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.imagen-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.imagen-item:hover {
  transform: translateY(-4px);
}

.imagen-item:hover img {
  transform: scale(1.08);
}

/* Extra: efecto suave de carga */
img[loading="lazy"] {
  filter: brightness(0.98);
}

.button1 {
  position: relative;
  height: 2.5em;
  padding: .5rem;
  border-bottom: 3px solid #000000;
  outline: none;
  background-color: transparent;
  color: var(--bluecolor);
  transition: 1s;
  border-radius: 0.5em;
  font-size: 18px; 
  cursor: pointer;
}

.button1::before {
  content: "";
  transform-origin: center;
  position: absolute;
  top: 80%;
  left: 3%;
  width: 95%;
  height: 30%;
  background-color: var(--dark-color);
  transition: 0.5s;
}

.button1:hover::before, .button1:hover::after {
  transform: scale(0)
}

.btn{
  padding: .5rem .8rem;
  background-color: var(--bluecolor);
  color: var(--default-color);
  border-radius: .8rem;
  font-size: 16px;
  cursor: pointer;
  border: none;
}

.btn:hover{
 transition: .5s;
  background-color: var(--dark-color-hover);
  color: var(--default-color);
}

/* Botones de categorías */
.nav-gallery .button {
  background: #d8e8fed7;
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.25s ease;
  color: #343131;
}

.nav-gallery .button:hover {
  background: var(--dark-color-hover);
  color: var(--bluecolor);
}

.nav-gallery .button.active {
  background: #e9e9e9;
  border: 1px solid var(--bluecolor);
  color: #333;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Aparición suave de imágenes */
.imagen-item {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeIn 0.45s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Skeleton loader para cargas por scroll */
.skeleton {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  background: linear-gradient(90deg, #e6e6e6 0%, #f6f6f6 50%, #e6e6e6 100%);
  background-size: 200% 100%;
  animation: skeletonShine 1.2s infinite linear;
}

@keyframes skeletonShine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}



.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;   /* Puedes ajustar el tamaño máximo */
  aspect-ratio: 16 / 9; /* Mantiene proporción horizontal */
  overflow: hidden;
  border-radius: 10px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.swiper-pagination {
  position: relative !important;
  margin-top: 20px !important;
}

.swiper-pagination-bullet {
  background: #0a3d62 !important;
  opacity: 1 !important;
}

.swiper-pagination-bullet-active {
  background: var(--bluecolor) !important;
}


/*------------------
# EQUIPOS
--------------------*/

.team .member {
  box-shadow: 0px 2px 25px rgba(112, 112, 112, 0.1);
  text-align: center;
  border-radius: 15px;
  padding: 8px;
  overflow: hidden;
  width: 15rem;
  background-color: var(--dark-color);
}

.team .member img {
  border-radius: 15px;
  overflow: hidden;
  width: 11rem;
}

.team .member .member-content {
  padding: 0 20px 30px 20px;
}

.team .member h4 {
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 2px;
  font-size: 16px;
  color: var(--bluecolor);
}

.team .member span {
  display: block;
  font-size: 12px;
  font-weight: 550;
}

.team .member .cv .cv-link {
  font-size: 0.9rem;
}

.team .member .cv .cv-link:hover {
  padding-left: 0.5rem;
  transition: 0.6s;
  text-decoration: underline;
  cursor: pointer;
}

.mb-n5 {
  margin-bottom: -7rem !important;
}

.mt-n5 {
  margin-top: -7rem !important;
}

@media (max-width: 1200px) {
  .mb-n5 {
    margin-bottom: 0 !important;
  }

  .mt-n5 {
    margin-top: 0 !important;
  }
}

/*------------------------
# EQUIPOS (MODAL VISOR CV)
--------------------------*/
.modal-cv {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 10px;
  box-sizing: border-box;
}
.modal-cv.mostrar {
  display: flex;
  opacity: 1;
}
.modal-cv-contenido {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  max-width: 1000px;
}
.modal-cv.mostrar .modal-cv-contenido {
  transform: scale(1);
}
.modal-cv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--dark-color);
  padding: 10px 15px;
  flex-wrap: wrap;
  gap: 10px;
}
.modal-cv-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--bluecolor);
}
.modal-cv-botones {
  display: flex;
  gap: 8px;
}
.btn-cerrar {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
}
.btn-cerrar:hover {
  background: #a71d2a;
}

iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
}

body.modal-abierto {
  overflow: hidden;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .modal-cv-contenido {
    width: 95%;
    height: 85%;
    border-radius: 6px;
  }
  .modal-cv-header h3 {
    font-size: 0.8rem;
  }

  .btn-cerrar {
    font-size: 0.85rem;
    padding: 5px 8px;
  }
}
@media (max-width: 480px) {
  .modal-cv-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .modal-cv-botones {
    width: 100%;
    justify-content: flex-end;
  }
  .modal-cv-contenido {
    width: 100%;
    height: 90%;
    border-radius: 0;
  }
  .btn-ver-cv {
    width: 100%;
  }
}

/*--------------------------
# CONTACTO
---------------------------*/
.contact .info-item {
  background-color: var(--dark-color);
  padding: 20px 0 30px 0;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  min-height: 12.5rem;
}

.contact .info-item i {
  font-size: 10px;
  color: var(--bluecolor);
  width: 40px;
  height: 40px;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  border-radius: 50%;
  border: 2px dotted color-mix(in srgb, var(--accent-color), transparent 40%);
}

.contact .info-item h3 {
  font-size: 20px;
  font-size: 16px;
  font-weight: 700;
  margin: 10px 0;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 13px;
  color: var(--bluecolor);
}

.contact .php-email-form {
  background-color: var(--dark-color);
  height: 100%;
  padding: 30px;
  box-shadow: 0px 0px 20px rgba(112, 112, 112, 0.1);
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 5px 10px;
  box-shadow: none;
  border-radius: 7px;
  color: var(--default-color);
  background-color: var(--dark-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form input[type="text"]:focus,
.contact .php-email-form input[type="email"]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type="text"]::placeholder,
.contact .php-email-form input[type="email"]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------
# FOOTER
--------------------------*/
.footer {
  color: var(--background-color);
  font-size: 12x;
  background-color: var(--nav-background);
  padding-bottom: 50px;
  position: relative;
  background-image: url(../Img/Decorator/footerbg.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.footer h4 {
  font-size: 1.1rem;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-top {
  padding-top: 50px;
}

.footer .social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem; 
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 22px;
  background-color: var(--dark-color-hover);
  color: white;
  transition: 0.3s;
  border-radius: .5rem;
}

.footer .social-links a:hover .bi-twitter-x {
  color: #000000;
}
.footer .social-links a:hover.bi-twitter-bg {
  background-color: #ffffff;
}

.footer .social-links a:hover.bi-facebook-bg {
  background-color: #1877F2;
}

.footer .social-links a:hover.bi-instagram-bg {
  background: #d62976;
}

/* YouTube */
.footer .social-links a:hover.bi-youtube-bg {
  background: #FF0000;
}

.footer .footer-contact p {
  margin-bottom: 5px;
  color: color-mix(in srgb, var(--background-color), transparent 20%);
}

.footer .copyright {
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

/*--------------------------
# TERMINOS Y CONDICIONES
--------------------------*/
div .modal-content {
  background: var(--dark-color);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  border: 1px solid rgba(30, 30, 30, 0.275);
}

div .modal-content h3 {
  font-size: 1.3rem;
  color: white;
}
div .modal-content h4 {
  font-size: 1.1rem;
  color: white;
}

.modal .modal-content .modal-body p,
ul {
  font-size: .8rem;
  text-align: justify;
  color: white;
}

/*------------------------
#         Loader
-------------------------*/

.loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  transition: all 0.6s ease-out;
  transform: rotate(165deg);
}

.loader:before,
.loader:after {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  display: block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 0.25em;
  transform: translate(-50%, -50%);
}

.loader:before {
  animation: before8 3s infinite;
}

.loader:after {
  animation: after6 3s infinite;
}

@keyframes before8 {
  0% {
    width: 0.5em;
    box-shadow: 1em -0.5em rgba(248, 198, 86, 0.75),
      -1em 0.5em rgba(86, 190, 225, 0.75);
  }

  35% {
    width: 2.5em;
    box-shadow: 0 -0.5em rgba(248, 198, 86, 0.75),
      0 0.5em rgba(86, 190, 225, 0.75);
  }

  70% {
    width: 0.5em;
    box-shadow: -1em -0.5em rgba(248, 198, 86, 0.75),
      1em 0.5em rgba(86, 190, 225, 0.75);
  }

  100% {
    box-shadow: 1em -0.5em rgba(248, 198, 86, 0.75),
      -1em 0.5em rgba(86, 190, 225, 0.75);
  }
}

@keyframes after6 {
  0% {
    height: 0.5em;
    box-shadow: 0.5em 1em rgba(99, 183, 146, 0.75),
      -0.5em -1em rgba(212, 83, 85, 0.75);
  }

  35% {
    height: 2.5em;
    box-shadow: 0.5em 0 rgba(99, 183, 146, 0.75),
      -0.5em 0 rgba(212, 83, 85, 0.75);
  }

  70% {
    height: 0.5em;
    box-shadow: 0.5em -1em rgba(99, 183, 146, 0.75),
      -0.5em 1em rgba(212, 83, 85, 0.75);
  }

  100% {
    box-shadow: 0.5em 1em rgba(99, 183, 146, 0.75),
      -0.5em -1em rgba(212, 83, 85, 0.75);
  }
}
