* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #f77f0b, #f4a42c);
  padding: 35px 30px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo img {
  height: 80px;
  width: 180px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: border 0.3s;
  padding-bottom: 3px;
}

.nav-links li a.active,
.nav-links li a:hover {
  border-top: 2px solid white;
  border-bottom: 2px solid white;
  padding-top: 3px;
}

.call-button a {
  background-color: transparent;
  border: 2px solid white;
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}

.call-button a:hover {
  background-color: white;
  color: #f77f0b;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background: white;
  display: block;
  border-radius: 2px;
}
.mobile-call {
  display: none;
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #f77f0b;
  cursor: pointer;
  display: none;
  z-index: 105;
}

main.material-educativo {
  padding-top: 220px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.material-card {
  background-color: #fff4e6; 
  border-radius: 20px;
  padding: 40px;
  max-width: 1400px;
  width: 95%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  margin: 0 auto;
}

.material-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.material-texto {
  flex: 1;
  min-width: 300px;
}

.material-texto h1 {
  font-size: 2.5rem;
  color: #000;
  margin-bottom: 20px;
}

.material-texto h2 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: 1.5rem;
  color: #f77f0b;
}

.material-texto p {
  font-size: 1.2rem;
  margin-bottom: 15px;
  line-height: 1.6;
}

.material-texto ul {
  margin: 15px 0 25px 20px;
  line-height: 1.6;
}

.material-texto ul li {
  margin-bottom: 8px;
}

.material-texto .intro {
  font-size: 1.25rem;
  font-weight: 500;
}

.material-texto .condiciones li {
  font-size: 1.05rem;
}

.btn-mail {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: white;
  border: 2px solid #f77f0b;
  color: #f77f0b;
  font-weight: 600;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s;
}

.btn-mail:hover {
  background: #f77f0b;
  color: white;
}

.material-imagen {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.material-imagen img {
  max-width: 100%;
  height: 1500px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .call-button {
    display: none;
  }

  .menu-close {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    flex-direction: column;
  }

  nav.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }

  .mobile-call {
    display: block;
  }
}
@media (max-width: 768px) {
  .material-imagen img {
    height: auto;
    max-height: 400px;
    width: 100%;
    object-fit: contain; 
  }
}

@media (max-width: 900px) {
  .material-container {
    flex-direction: column;
    text-align: center;
  }
  .material-texto {
    text-align: center;
  }
}