/* CONFIGURACIÓN GENERAL*/

/* Resetea márgenes y paddings por defecto del navegador.
  box-sizing: border-box asegura que el padding y los 
  bordes no aumenten el tamaño total de los elementos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ocupa el 100% del alto de la ventana visible 
(viewport) y define la fuente por defecto */
html, body {
  width: 100%;
  min-height: 100%;
  font-family: "Montserrat", sans-serif;
  color: #ffffff;
}

/* CONTENEDOR PRINCIPAL Y FONDO */

#contenedor-principal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 70px 40px 70px;
  position: relative;
}

#background {
  position: fixed; /* Posiciona el fondo fijo*/
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2; /* Envía la imagen al último plano*/
}

/* Que la imagen de fondo cubra toda la pantalla y no se deforme*/
#background img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Escala la imagen haciendo recortes*/
  object-position: center; /* Centra la imagen*/
}

#noutrans {
  position: absolute;
  top: 50px;
  right: 70px;
}

#noutrans img {
  max-width: 175px;
  height: auto;
  display: block;
}

/* BLOQUE DE TEXTO SUPERIOR IZQUIERDO */

#contenido {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

#textos h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

#textos h2 {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
  color: #e5ebf5;
  margin-bottom: 24px;
}

/* BOTÓN + INFO */

.btn-info {
  display: inline-block;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 36px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-info:hover {
  background-color: #f1f4f8;
  transform: translateY(-1px);
}

footer {
  width: 100%;
}

#peu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
}

#peu a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

#peu a:hover {
  opacity: 0.8;
}

.legales {
  display: flex;
  gap: 14px;
}

/* Móvil */
@media (max-width: 850px) {
  #contenedor-principal {
    padding: 30px 24px 25px 24px;
    min-height: 100vh;
  }

  #noutrans {
    position: static;
    margin-bottom: 20px;
  }

  #noutrans img {
    max-width: 130px;
  }

  #textos h1 {
    font-size: 2.2rem;
  }

  #textos h2 {
    font-size: 0.95rem;
  }

  #peu {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 40px;
  }
}