/* #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: 'Manrope Bold';
  src: url('../font/Manrope-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

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

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

/* #endregion FONT */

body {
  background-color: var(--color-white);
  font-family: 'Manrope 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: 'Manrope 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-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  /*border: 1px solid white;*/
  border-left: none;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  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: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  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: 40px;
  /**/
  padding: 0 20px;
  border: none;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.06);
  background-color: white;
  color: var(--color-grey-dark);
  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 {
  color: var(--color-red);
}

.btn-tipo.btn-red:hover {
  background-color: var(--color-red);
  color: white;
}

.btn-tipo.btn-yellow {
  color: var(--color-yellow);
}

.btn-tipo.btn-yellow:hover {
  background-color: var(--color-yellow);
  color: white;
}

.btn-tipo.btn-orange {
  color: var(--color-orange);
}

.btn-tipo.btn-orange:hover {
  background-color: var(--color-orange);
  color: white;
}

.btn-tipo.btn-lime {
  color: var(--color-lime);
}

.btn-tipo.btn-lime:hover {
  background-color: var(--color-lime);
  color: white;
}

.btn-tipo.btn-green {
  color: var(--color-green);
}

.btn-tipo.btn-green:hover {
  background-color: var(--color-green);
  color: white;
}

.btn-tipo.btn-blue {
  color: var(--color-blue);
}

.btn-tipo.btn-blue:hover {
  background-color: var(--color-blue);
  color: white;
}

.btn-tipo.btn-sky {
  color: var(--color-sky);
}

.btn-tipo.btn-sky:hover {
  background-color: var(--color-sky);
  color: white;
}

.hover-down {
  transition: transform 0.2s ease;
}

.hover-down:hover {
  transform: translateY(2px);
}

/* Apply to chapter items and summary buttons */
.cp-item,
.rs-cap-botones a {
  transition: transform 0.2s ease;
}

.cp-item:hover,
.rs-cap-botones a:hover {
  transform: translateY(2px);
}

@media (max-width: 820px) {

  .cp-item:hover,
  .rs-cap-botones a:hover {
    transform: none;
  }
}


/* #endregion BOTONES*/

/* #region MENU*/

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

.topbar {
  background-color: var(--color-blue);
  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-white);
}

.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-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  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: 36px;
}

/* 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: var(--color-blue);
  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-blue);
  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,
.menu a.active h5::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);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
}

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: var(--color-blue);
  padding: 10px 10px;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--color-grey);
}

.legal-container {
  width: 1080px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.legal-container a {
  color: var(--color-white);
  text-decoration: none;
  transition: border-bottom 0.3s ease;
  position: relative;
  text-transform: capitalize;
}

.legal-container h6 {
  color: var(--color-white);
  text-transform: capitalize;

}

/* 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-white);
    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*/