/* #region CSS RESET */


*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  /* line-height: 1.5; */
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* #endregion CSS RESET */
/* #region FONT */
@font-face {
    font-family: 'Fira Bold';
    src: url('../font/FiraSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Fira Medium';
    src: url('../font/FiraSans-Medium.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Fira Regular';
    src: url('../font/FiraSans-Regular.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
/* #endregion FONT */

body {
    background-color: var(--color-white);
    font-family: 'Fira Regular', sans-serif;
    font-optical-sizing: auto;
    font-weight: 350;
    font-style: normal;
    color: var(--color-black);
  }
  a {
    text-decoration: none;
}
/* #region FONTFAMILY AND SIZE */
h1 {
    font-size: 2.8 rem;
}

h2 {
    font-size: 1.5 rem;
}

h3 {
    font-size: 1.12 rem;
}
h5 {
    font-size: 0.8rem;
    font-family: 'Fira Medium', sans-serif;
    text-transform: uppercase;
    color: var(--color-white);
}

h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-white);
}

p, li {
    font-size: 1rem;
    padding-bottom: 10px ;
}
/* #endregion FONTFAMILY */

/* #region ACCESIBILITY*/

#accesibilidad-toggle {
  position: fixed;
  top: 20vh;
  left: 0;
  width: 80px;
  height: 60px;
  background-color: var(--color-blue);
  border: 1px solid white;
  border-left: none;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 12;
}

#accesibilidad-toggle img {
  width: 30px;
  height: auto;
}

#accesibilidad-panel {
  border-radius: 0 20px 20px 0;
  position: fixed;
  top: calc(20vh + 60px);
  left: 0;
  width: 250px;
  background-color: white;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 11;
}

#accesibilidad-panel.visible {
  transform: translateX(0);
}

#accesibilidad-panel button {
  padding: 10px;
  border-radius: 9999px;
  border: 1px solid var(--color-blue);
  background: white;
  color: var(--color-blue);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#accesibilidad-panel button:hover {
  background-color: var(--color-blue);
  color: white;
}



/* #endregion ACCESIBIITY*/

/* #region BOTONES*/
/* Estilos base del botón */
.btn-tipo {
    height: 60px;
    padding: 0 20px;
    border: 1px solid var(--color-blue); 
    background-color: white;
    color: var(--color-blue);
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
  }
  
  .btn-tipo:hover {
    background-color: var(--color-blue);
    color: white;
  }
  
  /* Variantes de color */
  .btn-tipo.btn-red {
    border: 1px solid var(--color-red);
    color: var(--color-red);
  }
  .btn-tipo.btn-red:hover {
    background-color: var(--color-red);
    color: white;
  }
  
  .btn-tipo.btn-yellow {
    border: 1px solid var(--color-yellow);
    color: var(--color-yellow);
  }
  .btn-tipo.btn-yellow:hover {
    background-color: var(--color-yellow);
    color: white;
  }
  
  .btn-tipo.btn-orange {
    border: 1px solid var(--color-orange);
    color: var(--color-orange);
  }
  .btn-tipo.btn-orange:hover {
    background-color: var(--color-orange);
    color: white;
  }
  
  .btn-tipo.btn-lime {
    border: 1px solid var(--color-lime);
    color: var(--color-lime);
  }
  .btn-tipo.btn-lime:hover {
    background-color: var(--color-lime);
    color: white;
  }
  
  .btn-tipo.btn-green {
    border: 1px solid var(--color-green);
    color: var(--color-green);
  }
  .btn-tipo.btn-green:hover {
    background-color: var(--color-green);
    color: white;
  }
  
  .btn-tipo.btn-blue {
    border: 1px solid var(--color-blue);
    color: var(--color-blue);
  }
  .btn-tipo.btn-blue:hover {
    background-color: var(--color-blue);
    color: white;
  }
  
  .btn-tipo.btn-sky {
    border: 1px solid var(--color-sky);
    color: var(--color-sky);
  }
  .btn-tipo.btn-sky:hover {
    background-color: var(--color-sky);
    color: white;
  }
  
  .btn-tipo.btn-grey {
    border: 1px solid var(--color-grey-dark);
    color: var(--color-grey-dark);
  }
  .btn-tipo.btn-grey:hover {
    background-color: var(--color-grey-dark);
    color: white;
  }
  

/* #endregion BOTONES*/

/* #region MENU*/

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.topbar {
    background-color: var(--color-white);
    display: flex;
    justify-content: center;
}

.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    width: 1080px;
    padding: 0 20px;
    box-sizing: border-box;
}
.legal-nav {
    display: flex;
    gap: 1rem;
}

.legal-nav h6 {
    position: relative;
    margin: 0;
    cursor: pointer;
    display: inline-block;
    color: var(--color-blue);
}

.legal-nav h6::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.legal-nav h6:hover::after {
    transform: scaleX(1);
}

.social-media {
    display: flex;
    gap: 0.5rem;
}
.social-media a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

}
.social-media img {
    width: 16px;
    height: 16px;
}

/*****NAV*/
.navbar {
    background-color: var(--color-blue);
    display: flex;
    justify-content: center;
    height: 50px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1080px;
    height: 100%;
}

.logo img {
    height: 24px;
}

/* BURGER BUTTON */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 20;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
}

/* Transformaciones para cruzar líneas */
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 2px);/*4px 4px*/
}

.burger.open span:nth-child(2) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.menu {
    display: flex;
    gap: 1.5rem;
}

.menu h5 {
    position: relative;
    margin: 0;
    color: var(--color-white);
    cursor: pointer;
    display: inline-block;
}

.menu h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.menu h5:hover::after {
    transform: scaleX(1);
}

/* Quitar subrayado de enlaces */
.menu a {
    text-decoration: none;
    color: inherit;
}





/* #endregion MENU*/

.top-space {
    padding-top: 90px;
    /*height: 500px;*/
}

/* #region FOOTER*/
footer .marca {
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--color-white);
}

footer .marca img {
    height: auto;
    max-height: 100px;
}

.logos {
    background-color: var(--color-blue);
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
  }
  
  .logos-container {
    width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  /* Sellos */
  .ft-sellos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .ft-sellos img {
    height: 60px;
  }
  
  /* Miembros */
  .ft-miembros {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .ft-miembros h6 {
    text-align: center;
    color: white;
    min-width: 100px;
  }
  .ft-miembros img {
    height: 60px;
  }
  
  /* Dirección */
  .ft-direccion p {
    color: var(--color-white);
    font-size: 0.7rem;
    text-align: center;
    /*line-height: 1.5;*/
   /* max-width: 100%;*/
/*    margin: 0;*/
  }
  
  /* Redes sociales */
  .ft-social-media {
    display: flex;
    justify-content: center;
    gap:1rem;
    align-items: center;
    flex-wrap: wrap;
  }
  .ft-social-media a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .ft-social-media img {
    height: 20px;
  }

  /*Legal*/
  .legal {
    background-color: white;
    padding: 20px 10px;
    display: flex;
    justify-content: center;
  }
  
  .legal-container {
    width: 1080px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .legal-container a {
    color: var(--color-blue);
    text-decoration: none;
    transition: border-bottom 0.3s ease;
    position: relative;
  }
  .legal-container h6 {
    color: var(--color-blue);

  }
  
  /* Efecto subrayado al hacer hover */
  .legal-container a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: white;
    transition: width 0.3s ease;
  }
  .legal-container a:hover::after {
    width: 100%;
  }
  
/* #endregion FOOTER*/
 

/* #region MQ*/

@media (max-width: 1080px) {
  /*FONTFAMILY AND SIZE*/
  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.05rem;
  }

  h5 {
    font-size: 0.7rem;
  }

  h6 {
    font-size: 0.72rem;
  }

  p,li {
    font-size: 0.95rem;
  }

  /*MENU*/

  .navbar-container {
    padding: 0 1rem;
  }
  .menu {
    gap: 0.8rem;
  }
  .logo img {
    height: 18px;
  }

}


@media (max-width: 820px) {
  /*FONTFAMILY AND SIZE*/
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1rem;
  }

  h6 {
    font-size: 0.7rem;
  }

  p, li {
    font-size: 0.95rem;
  }
  /*ACCESIBILIDAD*/
  #accesibilidad-panel button {
    font-size: 12px;
  }
  /*BOTONES*/
  .btn-tipo {
    height: 40px;
    font-size: 12px;
  }

  /*TOPBAR*/
  .topbar-container {
    padding: 0 1rem;
  }
  .legal-nav {
    gap: 0.5rem;
  }
  .topbar-container {
    gap: 0.5rem
  }

  /*MENU BURGER*/


  .menu {
    position: absolute;
    top: 50px; /* debajo del navbar */
    left: 0;
    width: 100%;
    height: calc(100vh - 50px);
    background-color: var(--color-blue);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    display: none;
    z-index: 14;
  }

  .menu.show {
    display: flex;
  }

  .burger {
    display: flex;
  }

  /*FOOTER*/
  .logos {
    padding: 1.5rem 1rem;
}

  .legal {
    padding: 1rem;
}
.ft-miembros {
  gap: 0;
}
.ft-miembros img {
  height: 50px;
}

}


@media (max-width: 450px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  h3 {
    font-size: 0.9rem;
  }

  h5 {
    font-size: 0.65rem;
  }

  h6 {
    font-size: 0.5rem;
  }

  p, li {
    font-size: 0.8rem;
  }
  /*BOTONES*/
  .btn-tipo {
    height: 20px;
    padding: 15px 10px;
  }
  /*ACCESIBILIDAD*/
  #accesibilidad-panel {
    top: calc(15vh + 40px);
  }
  #accesibilidad-toggle {
    top:15vh; /**/
    width: 60px;
    height: 40px;
  }
  #accesibilidad-toggle img {
    width: 25px;
  }

  /*FOOTER*/
  footer .marca {
    height: 200px;
  }
  footer .marca img {
    max-height: 80px;
  }
  .ft-sellos  {
    gap: 0.5rem;
  }
  .ft-sellos img {
  height: 40px;
  }
 
  .ft-miembros h6 {
    min-width: 0px;
  }
  .ft-miembros img{
    height: 40px;
  }
  .ft-social-media img {
    height: 16px;
}
}

/* #endregion MQ*/