:root {
  /* Fondo base */
  --color-background: #01121c;

  /* Colores principales */
  --color-primary: #00b5c2;
  --color-primary-light: #00e0d0;
  --color-primary-alt: #00a8e8;

  /* Colores secundarios */
  --color-secondary: #a7f0f9;
  --color-secondary-light: #e1f7f9;

  /* Texto y contraste */
  --color-text-main: #ffffff;
  --color-text-secondary: #b3c2cc;
  --color-text-muted: #4da8b1;
}

* {
  box-sizing: border-box;
}

p {
  font-family: "Source Sans Pro", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Merriweather", serif;
}

a {
  font-family: "Source Sans Pro", sans-serif;
}

body {
  background-color: var(--color-text-main);
  margin: 0;
  padding: 0;
}

.header {
  background-color: var(--color-background);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 100px 20px;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
  flex-wrap: wrap;
}

.title1 {
  font-family: "Merriweather", sans-serif;
  font-size: 3.8em;
  margin: 0;
}

.title2 {
  font-family: "Source Sans Pro", sans-serif;
  color: var(--color-primary-alt);
  font-size: 3.2em;
  margin: 0;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #34495e;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

.navbar a {
  color: white;
  display: flex;
  padding: 20px;
  justify-content: space-between;
  text-decoration: none;
  font-size: 1.2em;
}

.navbar a:hover {
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(1.1);
  color: var(--color-primary-alt);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
  margin: 30px auto;
}

.Intro {
  padding: 20px;
  border-radius: 10px;
  background-color: #f2f2f2;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 25px;
}

.Intro h1 {
  font-size: 2em;
  color: var(--color-background);
  border-bottom: 2px solid #2c3e5050;
  padding-bottom: 10px;
}

.intro-text {
  font-size: 1.2em;
  line-height: 1.6;
  color: var(--color-background);
  margin-bottom: 20px;
}

.Ejercicio {
  padding: 20px;
  border-radius: 10px;
  background-color: #f2f2f2;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 25px;
}

.Ejercicio h1 {
  font-size: 2em;
  color: var(--color-background);
  border-bottom: 2px solid #2c3e5050;
  padding-bottom: 10px;
}

.ejercicio-text {
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--color-background);
  margin-bottom: 15px;
}

.Ejercicio1,
.Ejercicio2,
.Ejercicio3 {
  background-color: #ffffff;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 8px;
}

.Ejercicio1 h3,
.Ejercicio2 h3,
.Ejercicio3 h3 {
  font-size: 1.5em;
  color: #2980b9;
}

/* Formulas Section */
.Formulas {
  padding: 20px;
  border-radius: 10px;
  background-color: #f2f2f2;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 25px;
}

.Formulas h1 {
  font-size: 2em;
  color: var(--color-background);
  border-bottom: 2px solid #2c3e5050;
  padding-bottom: 10px;
}

.cont {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  font-size: 1.3em;
  line-height: 1.6;
  color: var(--color-background);
  margin-bottom: 20px;
  background-color: #fbfbfb;
  border-radius: 8px;
  border-left: var(--color-primary-alt) 4px solid;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.teorema,
.entitrigo,
.razonestrigo {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

h2 {
  color: #2980b9;
}

.Ejercicios {
  padding: 20px;
  border-radius: 10px;
  background-color: #f2f2f2;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 25px;
}

.Ejercicios h1 {
  font-size: 2em;
  color: var(--color-background);
  border-bottom: 2px solid #2c3e5050;
  padding-bottom: 10px;
}

.video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
}

.video iframe {
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 16/9;
}

.conti {
  margin-bottom: 40px;
}

.ejercicio-text {
  font-size: 1.2em;
  line-height: 1.6;
  color: var(--color-background);
  margin-bottom: 20px;
}

.formula {
  padding: 20px;
  font-size: 1.3em;
  line-height: 1.6;
  color: var(--color-background);
  margin-bottom: 20px;
  background-color: #fbfbfb;
  border-radius: 8px;
  border-left: var(--color-primary-alt) 4px solid;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  overflow-x: auto !important;
}

.footer {
  background-color: var(--color-background);
  color: white;
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

.cuestionario iframe {
  width: 100%;
  max-width: 1088px;
  height: 637px;
}

.logo img {
  max-width: 100%;
  height: auto;
}

.contenedor {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.pitagoricas,
.reciprocas {
  flex: 1 1 300px;
}

/* Eliminamos las clases relacionadas con el menú hamburguesa que ya no usaremos */
.menu-toggle {
  display: none;
}

.navbar-links {
  display: flex;
}

/* Media Queries para Responsive Design */
@media (max-width: 992px) {
  .container {
    width: 95%;
  }

  .title1 {
    font-size: 3em;
  }

  .title2 {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 60px 20px;
    text-align: center;
  }

  .title1 {
    font-size: 2.5em;
  }

  .title2 {
    font-size: 2em;
  }

  /* Ocultamos la navbar completamente en móvil */
  .navbar {
    display: none;
  }

  .contenedor,
  .cont {
    flex-direction: column;
    gap: 10px;
  }

  /* Ajustamos el margen superior del container ya que no hay navbar */
  .container {
    margin-top: 10px;
  }
}

@media (max-width: 576px) {
  .title1 {
    font-size: 2em;
  }

  .title2 {
    font-size: 1.5em;
  }

  .Intro h1,
  .Ejercicio h1,
  .Formulas h1,
  .Ejercicios h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.3em;
  }

  .ejercicio-text,
  .intro-text {
    font-size: 1em;
  }

  .formula {
    font-size: 1em;
  }

  .cuestionario iframe {
    height: 400px;
  }
}

.references {
  padding: 20px;
    margin-top: 20px;
  border-radius: 10px;
  background-color: #f2f2f2;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 25px;
}
