.row {
  --bs-gutter-x: 0rem;
}

#projects,
#about,
#virtual-instruments,
#contact {
  padding: 1.5rem;
  scroll-margin-top: 50px;
}
h1 {
  font-size: 1.3rem;
}
h2 {
  font-size: 1.2rem; /* Bajamos un poco el impacto */
}
.sectionTitle {
  font-size: 2rem;
}
.nav-link {
  font-size: 1.4rem;
  margin: 0.4rem;
  color: whitesmoke !important;
  text-align: end;
}
h3 {
  font-size: 2rem; /* El h3 era muy grande (3rem), aquí lo normalizamos */
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1rem;
}
.buttonType {
  font-size: 0.7rem !important;
}
p {
  font-size: 1.4rem; /* Un tamaño estándar de lectura para móviles */
}

.aarv-img {
  margin-bottom: 2rem;
}

#mobile-aarv {
  margin-bottom: 2rem;
}

#home, #hero {
  padding: 3rem;
  margin-top: 5rem;

  min-height: 85svh;
  height: auto !important;
  scroll-margin-top: 50px;

  flex-direction: column; /* Asegura que se apilen */

  /* Centra el texto para que se vea más profesional */
  padding: 2rem 1rem;

  padding-top: 8rem !important;
}

#home::before,
#hero::before {
  background-size: cover !important;
  background-position: calc(50% - 150px) center !important;
  background-repeat: no-repeat !important;
}

.typing {
  width: fit-content;
  max-width: 0; /* Comienza con ancho 0 */
}
.typing2-wrapper {
  animation: none !important;
  border-right: none !important;
  max-width: none !important;
  overflow: visible !important;
}

.typing2-part1, 
.typing2-part2 {
  display: flex; /* block-level flex keeps each on its own line */
  align-items: center;
  width: fit-content;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  white-space: nowrap !important; /* Required for typing animation per line */
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  overflow: hidden !important;
  max-width: 0;
  border-right: 3px solid transparent;
  line-height: 1;
  position: relative;
  top: 1px;
}

.typing2-part1 {
  animation:
    type-part1 0.45s steps(13, end) 0.5s both,
    blink 0.75s step-end 0.5s infinite,
    cursor-part1 0.1s step-end 0.95s forwards;
}

.typing2-part2 {
  animation:
    type-part2 0.35s steps(10, end) 0.95s both,
    blink 0.75s step-end 0.95s infinite;
}

/* @keyframes type/type2 are defined in style.css */

.slide {
  margin-top: 2rem;
}

.hero-btns-container {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 2rem !important;
}

.hero-btns-container .cta,
.hero-btns-container .btn-glow {
  text-align: center !important;
  margin: 0 !important;
  width: 49% !important; /* Lado a lado garantizado con flex */
  padding: 0.8rem !important;
  min-width: unset !important;
  display: block !important; /* Flex children can be block */
}

.hero-btns-container .cta div,
.hero-btns-container .btn-glow div {
  font-size: 0.9rem !important; /* Texto un poco más pequeño para evitar saltos de línea */
}

.buttonForm {
  text-align: center !important;
  margin: 1rem auto !important;
  width: calc(100% - 2rem);
}

.formContacto input,
.formContacto textarea {
  width: calc(100% - 2rem) !important;
  margin: 1rem auto !important;
  display: block;
}

.formContacto {
  width: 100% !important;
  margin: 0px !important;
  padding: 0px !important;
}

footer {
  flex-direction: column; /* Asegura que se apilen */
  align-items: center;
  text-align: center;
}

.logonavbar {
  margin-left: 0rem !important;
  margin-right: 0rem;
  text-align: center !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
}
#logonavbar {
  margin-left: 0rem !important;
}

ol,
ul {
  padding-left: 0rem;
}

.modal-title {
  font-size: 2rem !important;
}
