html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body {
  background-color: transparent;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.fondo {
  background-image: url('/static/images/años/Diseño.png');
  background-size: 300%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

header {
  display: flex;
  align-items: center;
  padding: 40px 25px 20px;
  background-color: transparent;
  position: relative;
  z-index: 1100;
  flex-wrap: wrap;
}

.header-content {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.logo {
  flex: 0.8;
  display: flex;
  justify-content: flex-start;
}

.logo img {
  height: 50px;
  margin-left: 50px;
}

/* 🔹 Menú de escritorio */
.navbar {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-right: 60px;
}

.nav-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center
}

.nav-row li a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  padding: 5px 8px;
  white-space: nowrap;
}

.nav-row li a:hover {
  color: #f2fc6e;
}

.main-menu {
  border-bottom: 2px solid  #f2fc6e;
  padding-bottom: 3px;
}

/* 🔽 Menú hamburguesa (oculto en escritorio) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.menu-toggle .bar {
  width: 30px;
  height: 4px;
  background-color: white;
  border-radius: 5px;
  transition: 0.3s;
}

/* 🔹 Contenedor del menú móvil */
.mobile-menu-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: none;  /* 🔹 Oculto por defecto */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow-y: auto;
}

/* 🔹 Cuando el menú está activo */
.mobile-menu-container.active {
  display: flex;
}

.body-no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* 🔹 Botón de cerrar (X) */
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: black;
  display: none;
}

.mobile-menu-container.active .close-menu {
  display: block;
}

/* 🔹 Estilos de los enlaces en el menú móvil */
.mobile-nav-links {
  list-style: none;
  text-align: center;
  padding: 0;
}

.mobile-nav-links li {
  margin: 20px 0;
}

.mobile-nav-links a {
  text-decoration: none;
  color: white;
  font-size: 24px;
  font-weight: bold;
}

.mobile-nav-links a:hover {
  color: #f2fc6e;
}

.social-icon {
  display: inline-block;
  margin: 0 10px;
  font-size: 1.8em;
  color: #ffffff;
  transition: color 0.3s ease;
  margin-right: 20px;
}

.social-icon:hover {
  color: #000000;
}

.social-icon.facebook:hover {
  color: #3b5998;
}

.social-icon.instagram:hover {
  color: #E4405F;
}

.titulo-seccion {
  text-align: center;
  padding: 130px 20px 40px;
}

.titulo-icono {
  display: block;
  margin: 0 auto 20px auto; 
  width: 1100px;  
  height: auto;
}

.rompe-section {
  position: relative;
  background-image: url('/static/images/años/Diseño.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: white;
  padding: 350px 40px;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rompe-linea {
  position: absolute;
  top: 100px; /* Ajusta según dónde la quieres exactamente */
  left: 200px;
  width: 65%;
  height: 1px; /* ancho de la línea */
  background-color: white;
  z-index: 2;
}

.rompe-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 600px;
  gap: 40px;
}

.rompe-textos {
  flex: 1;
  max-width: 500px;
  text-align: left;
  padding: 0 20px 0 0; /* pegado a la izquierda */
  margin-left: 40px;
}

.rompe-textos h3 {
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 30px;
  margin-bottom: 110px;
}

.rompe-textos p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.rompe-imagen {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-left: 600px;
  margin-top: -830px;
}

.rompe-imagen img {
  width: 100%;
  max-width: 550px; /* ajusta el tamaño visual */
  height: auto;
  border-radius: 10px;
}

.footer {
  background-color: #000;
  color: white;
  padding: 30px 20px;
  text-align: center;
  font-size: 18px;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin-right: 20px;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-social a {
  color: white;
  margin: 0 10px;
  font-size: 25px;
  transition: color 0.3s ease;
}

.fa-x-twitter:hover {
  color: #000000;
}

.fa-facebook-f:hover {
  color: #3b5998;
}

.fa-instagram:hover {
  color: #E4405F;
}

.footer-copy {
  margin-top: 20px;
  font-size: 18px;
  opacity: 0.8;
}

@media (max-width: 1186px) {
  .logo img {
    height: 40px;
    margin-left: 10px;
  }

  .nav-row li a {
    font-size: 12px;
    padding: 4px 6px;
  }

  .social-icon {
    font-size: 1.2em;
    margin: 5px;
  }

  .titulo-icono {
    width: 90%;
  }

  .rompe-linea {
    top: 200px;
    left: 10%;
    width: 80%;
  }

  .rompe-imagen {
    margin-left: 600px;
    margin-top: -900px;
  }

  .rompe-imagen img {
    width: 100%;
    max-width: 450px; /* ajusta el tamaño visual */
    height: auto;
    border-radius: 10px;
  }

  .rompe-textos {
    margin-left: -20px;
  }

  .rompe-textos h3 {
    font-size: 48px;
  }

  .rompe-textos p {
    font-size: 20px;
  }

  .footer {
    font-size: 14px;
    padding: 25px 20px;
  }

  .footer-social a {
    font-size: 18px;
    margin: 0 8px;
  }

  .footer-link {
    font-size: 14px;
    margin-right: 10px;
  }
}

@media (max-width: 768px) {
  .fondo {
    background-size: 500%;
  }
  header {
    background-color: white;
  }
  /* 🔹 Ocultamos el menú de escritorio */
  .navbar {
    display: none;
  }

  /* 🔹 Ocultamos íconos sociales */
  .social-icons {
    display: none;
  }

  /* 🔹 MOSTRAMOS EL BOTÓN DE HAMBURGUESA */
  .menu-toggle {
    display: flex;
    margin-right: 15px;
  }

  .menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: black;
    border-radius: 5px;
    transition: 0.3s;
  }

  .logo {
    flex: 1;
    justify-content: flex-start;
  }

  .logo img {
    height: 40px;
    margin-left: 20px;
  }

  .header-content {
    justify-content: space-between;
  }

  .rompe-section {
    padding: 200px 20px;
    flex-direction: column;
    justify-content: flex-start;
    min-height: auto;
  }

  .rompe-linea {
    top: 60px;
    left: 5%;
    width: 90%;
  }

  .rompe-content {
    flex-direction: column;
    gap: 30px;
    max-width: 100%;
    align-items: center;
  }

  .rompe-textos {
    margin-left: 0;
    max-width: 100%;
    padding: 0 10px;
    text-align: center;
  }

  .rompe-textos h3 {
    font-size: 36px;
    margin-bottom: 60px;
  }

  .rompe-textos p {
    font-size: 16px;
  }

  .rompe-imagen {
    margin-left: 0;
    margin-top: 0;
    justify-content: center;
  }

  .rompe-imagen img {
    max-width: 90%;
  }

  .titulo-icono {
    width: 100%;
  }

  .footer {
    padding: 20px 15px;
    font-size: 13px;
  }

  .footer-links,
  .footer-social,
  .footer-copy {
    margin-bottom: 10px;
    display: block;
  }

  .footer-link {
    display: block;
    margin: 5px 0;
    font-size: 13px;
  }

  .footer-social a {
    font-size: 18px;
    margin: 0 6px;
  }

  .footer-copy {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 30px;
    margin-left: 10px;
  }

  .rompe-section {
    padding: 150px 15px;
  }

  .rompe-linea {
    top: 50px;
    left: 5%;
    width: 90%;
  }

  .rompe-textos h3 {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .rompe-textos p {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .rompe-imagen img {
    max-width: 100%;
  }

  .titulo-icono {
    width: 100%;
  }

  .footer {
    font-size: 12px;
  }

  .footer-link {
    font-size: 12px;
  }

  .footer-social a {
    font-size: 16px;
  }

  .footer-copy {
    font-size: 11px;
  }
}
