@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

html {
  font-size: 18px;
  font-family: "Source Sans 3", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f7f7;
  color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #56347c;
}

.container {
  overflow: hidden;
}

a {
  color: green;
  cursor: pointer;
}

.text_colored {
  color: #56347c;
}

.bold {
  font-weight: bold;
}

img {
  width: 50%;
  float: right;
  margin: 10px;
}

.header-wrapper {
  width: 100%;
  background: #563d7c;
  padding: 5px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

#menu_desplegable {
  display: flex;
  height: 35px;
  width: 35px;
  background-color: #48346696;
  border: 1px solid #3333338f;
  border-radius: 50%;
  margin-left: 10px;
  aspect-ratio: 1;
  position: relative;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
  /* Added transition */
}

#menu_desplegable:hover {
  background-color: #452c66;
  /* Darker background on hover */
  cursor: pointer;
}

#menu_desplegable::before {
  content: '';
  width: 15px;
  height: 2px;
  background: white;
  position: absolute;
  box-shadow:
    0 -6px 0 white,
    0 6px 0 white;
  transition: transform 0.3s ease;
  /* Added transition for lines */
}

header {
  max-width: 800px;
  margin: 0 auto;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#IsoLogoTails {
  display: inline-block;
  width: 125px;
  height: 50px;
  margin-right: 8px;
  padding: 3px;
}

.acordeon-titulo {
  width: fit-content;
  cursor: pointer;
  text-align: center;
  margin: 0 auto;
  user-select: none;
  border: 1px solid #56347c3d;
  padding: 3px 10px;
  padding-right: 5px;
  border-radius: 6px;
  background-color: #56347c09;
}
.acordeon-contenido {
  display: none;
  margin: 15px 0;
  padding: 0px 20px;
  border: 1px solid #ddd;
  background-color: #fff3b01a ;
  border: 1px solid #bd970173;
  border-radius: 12px;
}

header h1 {
  margin: 0;
  font-size: 18px;
  cursor: pointer;
}

nav a {
  width: fit-content !important;
  line-height: 18px;
  min-height: 35px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #11111118;
  padding: 9px !important;
  border: 1px solid #11111149;
  border-radius: 9px;
}

nav a span {
  font-size: 0.75rem;
  color: #ddd;
}

.container {
  max-width: 800px;
  margin: 20px auto;
  width: calc(100% - 30px);
  box-sizing: border-box;
  padding: 5px 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

section {
  margin-bottom: 30px;
}

h2 {
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  min-width: 100px;
}

p {
  line-height: 1.6;
}

.note-info {
  margin: 25px 0;
  line-height: 100%;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

.note-info p {
  margin-bottom: -5px;
  line-height: 100%;
}

.warning {
  display: inline-block;
  padding: 5px 10px;
  margin: 15px 0 30px 10px;
  border-radius: 5px;
}

.warning.red {
  border: 1px solid #9e000038;
  border-left: 2px solid #9e000065;
  background-color: #c03a2b1a;
}

.warning.green {
  border: 1px solid #2e7d3233;
  border-left: 2px solid #2e7d3265;
  background-color: #a3d39c1a;
}

.warning.yellow {
  border: 1px solid #e6b80028;
  border-left: 2px solid #e6b80065;
  background-color: #fff3b01a;
}

textarea,
input,
select,
button {
  display: block;
  width: 62%;
  margin-top: 8px;
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

button {
  background: #563d7c;
  color: white;
  border: none;
  cursor: pointer;
  width: auto;
  display: inline-block;
  margin-right: 5px;
  padding: 8px 10px;
  border-radius: 12px;
}

button:hover {
  background: #452c66;
}

.delete-btn {
  background: #c0392b;
}

.delete-btn:hover {
  background: #922b21;
}

.saved-list {
  width: fit-content;
  max-width: calc(100% - 20px);
  background: #2e7d3233;
  padding: 10px;
  border-radius: 15px;
  border: 1px solid #ddd;
  padding-bottom: 0px;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  margin: 5px 0;
  justify-content: baseline;
  align-items: center;
  gap: 5px;
}

.menu {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #0000003d;
  background: #483368;
  color: white;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s ease;
}

.scroll-to-top:hover {
  background: #452c66;
}

footer {
  background: #563d7c;
  color: white;
  padding: 20px 0;
  margin-top: 50px;
  text-align: center;
}

footer p {
  margin: 5px 0;
  font-size: 0.9rem;
}

footer a {
  color: white;
  text-decoration: underline;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1000;
}

.menu-content {
  position: fixed;
  width: calc(100% + 40px);
  max-width: 240px;
  min-width: 170px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 15px;
  height: fit-content;
  background-color: #563d7c;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  padding: 20px;
  padding-bottom: 65px;
  overflow-y: auto;
  border: 1px solid #3333338f;
}

.menu-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.close-menu {
  height: 35px;
  width: 35px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #452c66;
  border: 1px solid #3333338f;
  cursor: pointer;
  color: white;
  text-align: center;
  align-items: center;
}

.close-menu::after {
  content: '⨯';
  color: white;
  font-size: 27px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.close-menu:hover {
  color: #ddd;
}

.menu-nav {
  text-align: center;
}

.menu-nav ul {
  width: fit-content;
  padding: 0;
  margin: 0 auto;
}

.menu-nav li {
  list-style: none;
  margin: 5px 0;
  font-size:  1.1rem;
  color: white;
  padding: 10px 15px;
  cursor: pointer;
}

.menu-nav li:hover {
  background-color: #3a295a;
  border-radius: 5px;
}

.menu-content img {
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
}





@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  img {
    width: 100%;
    height: auto;
  }

  .clearfix::after {
    content: "";
    clear: both;
    display: table;
  }

  #logo {
    margin-bottom: 15px;
  }

  .menu {
    width: 100%;
    justify-content: center;
    /* Centra los enlaces del menú */
  }

  header h1 {
    width: 100%;
    text-align: center;
  }

  nav a {
    justify-content: center;
    width: 100%;
  }

  textarea,
  input,
  select {
    width: calc(100% - 20px);
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

}

@media (max-width: 330px) {
  .menu-content {
    width: fit-content;
  }
}