@font-face {
    font-family: "Malonet";
    src: url(../fuentes/malonet.otf);
  }

  @font-face {
    font-family: "Super Water";
    src: url(../fuentes/superwater.ttf);
  }

  * {
    font-family: Malonet, sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html, body {
    position: relative;
  }

  body {
    font-family: Malonet, sans-serif;
    color: #ffffff;
    margin: 0;
    padding: 0;

    background-image: url(../imagenes/herramientas/background_relsb.jpg); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.5);
  }

  body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
  }

  .content {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding-top: 70px; 
  }

  .w3-bar, .w3-bar .w3-bar-item {
    font-family: 'Super Water', sans-serif !important;
    font-size: 24px;
    font-weight: normal;
  }

  .w3-bar {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap; 
    justify-content: center; 
    padding: 0;
    margin: 0;
    font-weight: bold;
    position: relative;
    z-index: 2;
  }

  .w3-bar .w3-bar-item {
    flex: 1 1 auto;
    margin: 0; 
    text-align: center;
    padding: 15px 10px;
  }

  #menu-button {
    position: relative;
    z-index: 3;
  }

  button.w3-bar-item {
    margin: 0;
    padding: 15;
    border: none;
  }

  #homeicon {
    flex: 0 0 auto;
  }

  #capa1 {
    background-color: #0051ff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    color: #ffffff;
    text-align: center;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0; 
  }

  #capa2, #capa3 {
    text-align: center;
  }

  #capa2 {
    font-weight: bold;
  }

  #capa2 * {
    position: relative;
    z-index: 1;
  }

  .arrow { 
    position: fixed;
    width: 28px;
    height: 28px; 
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
  }

  .arrow:hover {
    transform: scale(1.2);
  }

  #capa3 {
    background-color: #003bb9;
    width: 100%;
  }

  h1, h2 {
    font-family: Malonet, sans-serif;
    background-color: transparent;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 18px;
  }

  p {
    text-align: justify;
    margin: 10px 0;
    padding: 0 5%;
  }

  ol {
    list-style-position: inside;
    text-align: center;
    margin: 0 auto;
  }

  footer {
    font-size: 14px;
    text-align: center;
    background-color: #003bb9;
    padding: 20px 0;
    width: 100%;
    position: relative; 
    left: 0;
    box-sizing: border-box;
  }

  footer a, footer p {
    display: inline-block;
    text-align: center;
  }

  footer a img {
    margin: 0 3px;
    vertical-align: middle;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 50%;
    background-color: transparent;
  }

  footer a img:hover {
    transform: scale(1.2);
  }

  /* Menú lateral */
  .w3-sidebar {
    width: 250px;
    display: none;
    position: fixed; 
    top: 52px; 
    left: 0;
    z-index: 2;
  }

  /* Iconos Redes */

  #music img {
    width: 150px;
    height: 150px;
    padding: 10px 10px;
  }

  #rrss img {
    width: 150px;
    height: 150px;
    padding: 10px 10px;
  }

  .logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
  }

  .logo-grid img {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    transition: transform 0.3s ease;
  }

  .logo-grid img:hover {
    transform: scale(1.08);
  }

  /* Imágenes portada */
  .CSSgal {
    position: relative;
    overflow: hidden;
    height: 80%;
    margin-top: 100px;
    margin-bottom: -25px;
    margin-left: 25px;
    margin-right: 25px;
    z-index: 1;
  }

  .CSSgal .slider {
    height: 100%;
    white-space: nowrap;
    font-size: 0;
    transition: 0.8s;
  }

  .CSSgal .slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .CSSgal .slider > * {
    font-size: 1rem;
    display: inline-block;
    white-space: normal;
    vertical-align: top;
    height: 100%;
    width: 100%;
    background: none 50% no-repeat;
    background-size: cover;
  }

  .CSSgal .prevNext {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 100%;
    height: 0;
  }

  .CSSgal .prevNext > div+div {
    visibility: hidden;
    z-index: 5;
  }

  .CSSgal .prevNext a {
    background: rgba(255, 255, 255, 0); 
    position: absolute;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    opacity: 0.7;
    transition: 0.3s;
    transform: translateY(-50%);
    cursor: pointer;
    left: 0;
    z-index: 5;
  }
  .CSSgal .prevNext a:hover {
    opacity: 1;
  }
  .CSSgal .prevNext a+a {
    left: auto;
    right: 0;
  }

  .CSSgal .bullets {
    position: absolute;
    z-index: 5;
    bottom: 0;
    padding: 10px 0;
    width: 100%;
    text-align: center;
  }
  .CSSgal .bullets > a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-decoration: none;
    text-align: center;
    background: #0051ff;
    color: white;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
  }
  .CSSgal .bullets > a+a {
    background: #0051ff;
  }
  .CSSgal .bullets > a:hover {
    background: #0051ff !important;
  }

  .CSSgal >s:target ~ .bullets >* {      background: #0051ff;}
  
  #s1:target ~ .bullets >*:nth-child(1) {background: #0051ff;}
  #s2:target ~ .bullets >*:nth-child(2) {background: #0051ff;}
  #s3:target ~ .bullets >*:nth-child(3) {background: #0051ff;}
  #s4:target ~ .bullets >*:nth-child(4) {background: #0051ff;}
 
  .CSSgal >s:target ~ .prevNext >* {visibility: hidden;}
  
  #s1:target ~ .prevNext >*:nth-child(1) {visibility: visible;}
  #s2:target ~ .prevNext >*:nth-child(2) {visibility: visible;}
  #s3:target ~ .prevNext >*:nth-child(3) {visibility: visible;}
  #s4:target ~ .prevNext >*:nth-child(4) {visibility: visible;}

  #s1:target ~ .slider {transform: translateX(   0%); -webkit-transform: translateX(   0%);}
  #s2:target ~ .slider {transform: translateX(-100%); -webkit-transform: translateX(-100%);}
  #s3:target ~ .slider {transform: translateX(-200%); -webkit-transform: translateX(-200%);}
  #s4:target ~ .slider {transform: translateX(-300%); -webkit-transform: translateX(-300%);}

/* RESPONSIVE */

/* Pantallas grandes */
@media only screen and (min-width: 769px) {
  .content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-top: 60px;
  }

  form table {
    width: 100%;
  }
}

/* Tablets */
@media only screen and (min-width: 481px) and (max-width: 768px) {
  .content {
    width: 90%;
    margin: auto;
  }
}

/* Móviles */
@media only screen and (max-width: 480px) {
  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 16px;
  }

  .w3-bar {
    justify-content: flex-start;
    padding-left: 5px;
  }

  .arrow {
    width: 24px;
    height: 24px;
    bottom: 15px;
    right: 15px;
  }

}