@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
/* Scroll suave para navegación */
html {
  scroll-behavior: smooth;
}

* {
box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  /* max-width: 800px; */
  line-height: 1.6;
  
}

img {
  display: block;
  margin: 1em auto;
  border-radius: 50%;
  width: 150px;
}

.hero-bg {
background: linear-gradient(to right, #000000, #373636);
  color: #333;
}

.section-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1em;
  text-align: justify;
}

header {
  padding: 1em 2em;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2em;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  text-align: center;
}

section {
  margin-top: 2em;
  padding: 1em;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

a {
  color: #004080;
}

a:hover {
  color: #0066cc;
}


.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  color: white;
  padding: 4em 2em;
  border-bottom: 1px solid #222;
  width: 100%;
  max-width: unset;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 2.8em;
  margin: 0 0 0.5em;
}

.hero-text h2 {
  font-size: 1.5em;
  font-weight: normal;
  margin-bottom: 1em;
}

.hero-text p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #ccc;
}

.hero-image {
  flex: 1;
  text-align: right;
}

.hero-image img {
  width: 80%;
  max-width: 350px;
  border-radius: 35px;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.1));
  
}

.hero-btn {
  display: inline-block;
  margin-top: 1.5em;
  padding: 0.75em 1.5em;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.hero-btn:hover {
  background: white;
  color: #000;
}
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text, .hero-image {
    flex: unset;
    max-width: 100%;
  }

  .hero-image {
    text-align: center;
    margin-top: 2em;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-end;
    gap: 1em;
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  margin-left: auto;
}

.menu-toggle span {
  background: white;
  height: 3px;
  width: 25px;
  border-radius: 3px;
}
/* Menu scroll letras */
.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 3.5s ease-out;
  visibility: hidden;
}

.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* En pantallas pequeñas, ocultar el nav y mostrar el icono */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav ul {
    display: none !important;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.9);
    padding: 1em;
    border-radius: 5px;
    position: absolute;
    top: 70px;
    right: 20px;
    z-index: 9999;
    width: max-content;
  }

  nav ul.active {
    display: flex !important;
  }

  header {
    flex-direction: column;
    align-items: flex-end;
  }
}