/* Import Merriweather Sans Google Font */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
/* CSS Variables */
:root {
    --main-bg-color: #9cff33;
    --main-text-color: #000;
    --accent-color: #a700ff;
    --accent-secundary: #fff;
    --accent-hover-color: #000;
    --text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
    --title-color: #000; /* 26FF9C */
}

/* verde  d1ff33  morado a700ff*/


/* Preload Background Image */
.link-preload {
    display: none;
    background-image: url('../imagenes/FondoDerivasWeb.png');
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Manrope", sans-serif;
    font-size: 19px;
    line-height: 1.5;
    color: var(--main-text-color);
    background-color: var(--main-bg-color);
}


/* Background Image */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    opacity: 1;
    background-image: url('../imagenes/FondoDerivasWeb.png');
    background-position: center left;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Responsive Background Image for Small Screens */
@media (max-width: 768px) {
    .background-image {
        background-position: top left;
    }
}

/* Content Styles */
.content {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    /*text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); /*  0.45 */
}

  .white-text a {
      color: var(--accent-color);
      text-decoration-color: var(--accent-color);
  }

  .white-text a:hover {
      color: var(--accent-hover-color);
      text-decoration-color: var(--accent-color);
  }

  .header-image {
      width: 100%;
      height: auto;
      margin-bottom: 20px;
  }

  .title {
      font-size: 36px;
      font-weight: 600;
      text-transform: uppercase;
      color: var(--title-color);
      margin-bottom: 20px;
      /*text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);*/
      animation: appear 2s forwards;
  }

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

  .text {
      font-size: 18px;
      color: #fff;
  }

  /* Link Image Overlay Effect */
  a.content-image {
      position: relative;
      display: inline-block;
      overflow: hidden;
      width: auto;
  }

  a.content-image::before {
      content: '';
      position: absolute;
      width: 60%;
      height: 0%;
      background-color: var(--accent-color);
      mix-blend-mode: color;
      opacity: 0;
      transition: opacity 0.5s;
  }

  a.content-image:hover::before {
      width: 100%; /* Change width to 100% on hover */
      height: 99.5%; /* Change height to 100% on hover */
      opacity: 0.6; /* Adjust opacity on hover */
  }

  /* Responsive Styles 768px*/
  @media (max-width: 768px) {
      .content {
          margin: 20px auto;
          padding: 10px;
      }
      .title {
          font-size: 24px;
      }
      .text {
          font-size: 16px;
      }

      .header-image {
        margin-top: 100px; /* Add space above the header image */
    }

      a.content-image {
          position: relative;
          display: inline-block;
          overflow: hidden;
          width: auto;
      }

      a.content-image::before {
          content: '';
          position: absolute;
          width: 70%;/* 70% */
          height: 0%;
          background-color: var(var(--accent-color));
          mix-blend-mode: multiply;
          opacity: 0;
          transition: opacity 0.5s;
      }

      a.content-image:hover::before {
          width: 70%; /* Change width to 100% on hover */
          height: 98%; /* Change height to 100% on hover */
          opacity: 0.6; /* Adjust opacity on hover */
      }

  }

  @media (max-width: 480px) {
      .content {
          margin: 10px auto;
          padding: 5px;
          margin-left: 10px;
          margin-right: 10px;
      }
      .title {
          font-size: 26px;
      }
      .text {
          font-size: 14px;
      }

      .header-image {
        margin-top: 100px; /* Add space above the header image */
    }
  }

  a {
      text-decoration: none;
      color: var(--accent-color);
  }

  a:visited {
      color: var(--accent-color);
  }

  a:hover {
      color: var(--accent-hover-color);
  }

  .social-media img:hover {
      opacity: 0.4;
  }

  .social-icon {
      transition: opacity 0.5s;
  }

  .social-icon:hover {
      opacity: 0.4;
  }

  @keyframes fade {
      0% {
          opacity: 1;
      }
      100% {
          opacity: 0.4;
      }
  }

  .content-image {
      width: 100%;/*60 */
  }

  /* Media query for cellphone versions */
  @media only screen and (max-width: 768px) {
      .content-image {
          width: 100%;
      }
  }

/* Galería de imágenes horizontal */
.galeria-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    padding: 0;
    margin: 0;
    width: 100%;
}

.galeria-horizontal a {
    flex: 1 1 0;
    aspect-ratio: 4 / 5; /* Cambia esto si tus imágenes no son cuadradas */
    display: block;
    overflow: hidden;
}

.galeria-horizontal a img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* No recorta la imagen, la escala completa */
    display: block;
    transition: opacity 0.3s ease;
}


/* Botón burbuja */
.boton-burbuja {
    background-color: var(--accent-color);
    padding: 3px 15px;
    border-radius: 20px;
    color: #000;
    display: inline-block;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    text-shadow: none;

}

a.boton-burbuja{
    background-color: var(--accent-color);
    color: var(--accent-secundary); /* Opcional: hace el texto blanco en hover para mejor contraste */
}

a.boton-burbuja:hover {
    background-color: var(--accent-hover-color);
    color: var(--accent-color); /* Opcional: hace el texto blanco en hover para mejor contraste */
}
