/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9fafc;
  color: #333;
  scroll-behavior: smooth;
}

/* Navbar fijo */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #7e57c2, #42a5f5);
  color: #fff;
  z-index: 1000;
  transition: 0.3s ease;
}

.navbar.scrolled {
  background: #4a148c;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  position: relative;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #ffe082;
}

/* Estilos del menú hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: 0.3s;
}

/* Animación del menú hamburguesa */
.hamburger.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero principal */
.hero {
  background: url('/fondoi.jpg') center/cover no-repeat;
  height: 110vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  color: white;
}

.hero-content h2 {
  font-size: 2.5rem;
}

.hero-content span {
  color: #ffeb3b;
}

.hero-content p {
  margin: 20px 0;
  font-size: 1.2rem;
}

.btn {
  background: #ffca28;
  color: #333;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #fff59d;
}

/* Secciones */
.section {
  padding: 100px 10%;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  color: #4a148c;
  margin-bottom: 10px;
}

.section p {
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* Tarjetas */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-10px);
}

/* Video */
.video-section {
  padding: 80px 10%;
  text-align: center;
  background: linear-gradient(135deg, #42a5f5, #7e57c2);
  color: white;
}

.video-container iframe {
  width: 100%;
  height: 400px;
  border-radius: 15px;
}

/* Grid de accesos */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.box {
  background: linear-gradient(135deg, #7e57c2, #42a5f5);
  color: white;
  padding: 40px 20px;
  border-radius: 20px;
  font-weight: 600;
  transition: transform 0.3s;
}

.box:hover {
  transform: scale(1.05);
}

/* Frase */
.quote {
  background: #f3e5f5;
  padding: 80px 10%;
  text-align: center;
}

blockquote {
  font-size: 1.5rem;
  color: #4a148c;
  font-weight: 500;
}

cite {
  display: block;
  margin-top: 10px;
  color: #6a1b9a;
  font-style: italic;
}

/* Footer */
.footer {
  background: #4a148c;
  color: white;
  text-align: center;
  padding: 50px 20px;
}

.footer h3 {
  margin-bottom: 10px;
}

.footer p {
  margin-bottom: 5px;
}

/* Estilos adicionales para las nuevas páginas */
.quiz-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.quiz-question {
  margin-bottom: 20px;
}

.quiz-question p {
  font-weight: 600;
  margin-bottom: 10px;
}

.tips-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.tips-list li {
  background: white;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-left: 50px;
}

.tips-list li:before {
  content: "💡";
  position: absolute;
  left: 20px;
  top: 20px;
  font-size: 1.2rem;
}

.journal-prompts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.prompt {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.prompt h4 {
  color: #4a148c;
  margin-bottom: 10px;
}

.resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.resource {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.team-member {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.contact-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-link {
  background: linear-gradient(135deg, #7e57c2, #42a5f5);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s;
}

.social-link:hover {
  transform: translateY(-3px);
}

/* Responsivo */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 100%;
    background: linear-gradient(90deg, #7e57c2, #42a5f5);
    flex-direction: column;
    width: 250px;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    gap: 15px;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .navbar .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .video-container iframe {
    height: 250px;
  }

  .journal-prompts,
  .resources,
  .team,
  .contact-info {
    grid-template-columns: 1fr;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
  }
}
