
html, 
body > *:first-child {
  margin-top: 0 !important;
}
header {
  position: relative !important;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgb(56, 8, 231) 0%, rgb(234, 14, 14) 36%, rgb(230, 9, 108) 65%, rgb(25, 87, 212) 100%);
    padding: 10px 80px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
header .logo img {
    height: 100px;
    object-fit: contain;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    margin-right: 10px;
}
nav {
    padding: 12px 0;
    text-align: center;
    position: relative;
    z-index: 10;
}
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
nav ul li {
    margin: 0 20px;
    position: relative;
}
nav ul li>a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 10px 15px;
    display: block;
}
nav ul li>a:hover {
    color: #9ab8df;
    transform: translateY(-2px);
}
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1d45ca;
    padding: 10px 0;
    width: 200px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
nav ul li:hover>ul {
    display: block;
}
nav ul li ul li {
    margin: 0;
}
nav ul li ul li a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
nav ul li ul li a:hover {
    background-color: #cec698;
    color: #1046f4;
    transform: translateY(-2px);
}
nav ul li:first-child a {
    margin-left: 0;
}
nav ul li:last-child a {
    margin-right: 0;
}
@media (max-width: 768px) {
    header {
        padding: 10px 30px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    header .logo img {
        height: 80px;
    }
    .logo-text {
        font-size: 24px;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        margin: 10px 0;
    }
    nav ul li a {
        font-size: 16px;
        padding: 8px 15px;
    }
    nav ul li ul {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        background-color: #1d45ca;
    }
    nav ul li ul li a {
        padding: 12px 20px;
        font-size: 16px;
        text-align: center;
    }
    nav ul li:hover>ul {
        display: block;
    }
}
@media (max-width: 480px) {
    header {
        padding: 10px 20px;
    }
    header .logo img {
        height: 60px;
    }
    .logo-text {
        font-size: 20px;
    }
    nav ul {
        padding-top: 10px;
    }
    nav ul li a {
        font-size: 14px;
        padding: 10px 10px;
    }
    nav ul li ul {
        width: 100%;
    }
    nav ul li {
        margin: 8px 0;
    }
    nav ul li a:hover {
        transform: none;
    }
}
.sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    padding: 40px 30px;
}
.section-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.section-item.left .section-image {
    order: 2;
}
.section-item.right .section-image {
    order: 1;
}
.section-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.section-text {
    width: 50%;
}
.section-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}
.section-image {
    width: 100%;
    max-width: 350px;
}
.section-item.left {
    flex-direction: row-reverse;
}
.section-item.right {
    flex-direction: row;
}
.section-title {
    font-size: 24px;
    color: #1d45ca;
    margin-bottom: 10px;
}
footer {
    background-color: #f9f9f9;
    padding: 40px 80px;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}
.footer-logo img {
    height: 120px;
    object-fit: contain;
}
.footer-info,
.footer-careers,
.footer-contact,
.footer-libro {
    width: 13%;
}
.footer-info h3,
.footer-careers h3,
.footer-contact h3 {
    color: #1d45ca;
    font-size: 20px;
    margin-bottom: 10px;
}
.footer-info p,
.footer-careers p,
.footer-contact p {
    font-size: 16px;
    color: #1d45ca;
}
.footer-careers a {
    color: #1d45ca;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-careers a:hover {
    color: #9b2eff;
}
.footer-libro {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.footer-libro img.libro-img {
    max-width: 160px;
    height: auto;
    transition: transform 0.3s ease;
}
.footer-libro img.libro-img:hover {
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .footer-info,
    .footer-careers,
    .footer-contact {
        width: 100%;
        margin-bottom: 20px;
    }
}
@media (max-width: 768px) {
    .sections-grid {
        grid-template-columns: 1fr;
    }
}
.footer-container-2 {
    width: 100%;
    box-sizing: border-box;
    height: 50px;
    background: linear-gradient(90deg, rgb(56, 8, 231) 0%, rgb(234, 14, 14) 36%, rgb(230, 9, 108) 65%, rgb(25, 87, 212) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    color: white;
    overflow-x: hidden;
}
.footer-container-2 li a {
    color: white;
    text-decoration: none;
}
.footer-container-2 li a:hover {
    text-decoration: underline;
}
.footer-container-2 p {
    color: white;
    margin: 0;
    font-size: 14px;
}
.nav-list {
    list-style-type: none;
    display: flex;
    gap: 1rem;
}
.nav-list li a {
    text-decoration: none;
    color: white;
}
.abrir-menu,
.cerrar-menu {
    display: none;
    font-size: 2rem;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
}
@media screen and (max-width: 768px) {
    .abrir-menu,
    .cerrar-menu {
        display: block;
        z-index: 1001;
    }
    .nav {
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 1rem;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    max-height: 80vh;
    background-color: #1d45ca;
    padding: 1rem 2rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 1000;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
}
    .nav.visible {
        opacity: 1;
        visibility: visible;
    }
    .nav-list {
        flex-direction: column;
        align-items: end;
    }
    .nav-list li a {
        color: white;
        font-size: 1.2rem;
        padding: 8px 0;
    }
}
.section-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    flex-wrap: wrap;
}
.section-text {
    flex: 1 1 300px;
}
.section-image {
    flex: 1 1 300px;
}
.section-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}
@media screen and (max-width: 900px) {
    .section-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .section-text {
        order: 2;
    }
    .section-image {
        order: 1;
    }
}
.footer-libro {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 200px;
  max-width: 200px;
  padding-top: 1rem;
}
.footer-libro img {
  max-width: 100%;
  height: auto;
}
.logo-text {
  white-space: normal;
  text-align: center;
  font-weight: bold;
  word-break: break-word;
  max-width: 150px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}
.footer-container > div {
  min-width: 200px;
  text-align: left;
}
.footer-container-2 ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  row-gap: 0.5rem;
}
.footer-container-2 li {
  flex: 0 0 auto;
  padding: 0 1rem;
  text-align: center;
  white-space: nowrap;
}
.logo-text {
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  text-decoration: none;
}
@media screen and (max-width: 500px) {
  .logo-text {
    font-size: 1rem;
    max-width: 140px;
  }
}
.logo a {
  text-decoration: none;
}
@media screen and (max-width: 768px) {
  .nav {
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
  }
}
.footer-container-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #444;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}
.footer-container-2 ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
  row-gap: 0.5rem;
}
.footer-container-2 li {
  flex: 1 1 120px;
  text-align: center;
  white-space: nowrap;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1d45ca;
  padding: 1rem 2rem;
  position: relative;
  flex-wrap: wrap;
}
.logo {
  height: 60px;
}
.abrir-menu,
.cerrar-menu {
  display: none;
  font-size: 2rem;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}
.nav {
  display: flex;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
}
.nav-list li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}
@media screen and (max-width: 600px) {
  .abrir-menu {
    display: block;
    color: white;
  }
  .nav {
    display: none;
    flex-direction: column;
    background-color: #1d45ca;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 1000;
  }
  .nav.visible {
    display: flex;
  }
  .cerrar-menu {
    display: block;
    align-self: flex-end;
    color: white;
    margin-bottom: 1rem;
  }
  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-list li a {
    font-size: 1.2rem;
  }
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo-container .logo {
  height: 60px;
}
.logo-container .logo-text {
  font-size: 1.5rem;
  color: white;
  font-weight: bold;
  white-space: nowrap;
}
@media screen and (min-width: 601px) {
  header {
    flex-direction: row;
  }
  .nav {
    justify-content: flex-end;
  }
}
.logo-container a {
  text-decoration: none !important;
  color: white !important;
}

/* Submenús móviles */
.submenu {
  display: none;
}

.submenu.visible {
  display: block;
}
