@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #000000;       /* Azul principal */
  --primary-color-dark: #1d85ca;  /* Azul más oscuro */
  --text-dark: #222;              /* Texto oscuro */
  --text-light: #df1c1c;             /* Texto claro */
  --white: #e6e21f;                  /* Blanco */
  --max-width: 1000px;            /* Ancho máximo del contenido */
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background-color: var(--primary-color-dark);
}

img {
  width: 100%;
  display: flex;
}

a {
  text-decoration: none;
}

.logo {
  max-width: 120px;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}


nav {
  position: fixed;
  isolation: isolate;
  top: 0;
  width: 100%;
  max-width: var(--max-width);
  margin: auto;
  z-index: 999;
}
.nav__bar {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background-color: rgba(0, 0, 0, 0.4);
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  display: none; /* Oculto en escritorio */
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: linear-gradient(90deg, #db6c11, #e49d5a);
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-block;
}


.nav__links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.nav__btn {
  display: none;
}


.header {
  background-image: url("/assets/familiar.JPG");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 90vh; /* Ocupa toda la altura de la ventana */
}


.header__container {
  min-height: 50%; /* Mínimo 50% en pantallas grandes */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  padding-top: 80px; /* Compensa el nav fijo */
}

/* En pantallas pequeñas, usa más altura */
@media (max-width: 768px) {
  .header__container {
    min-height: 100%; /* Que ocupe todo el alto disponible */
    padding-top: 0;   /* Quita el espacio extra arriba */
  }
}


.header__container p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: white; /* Amarillo puro brillante */
  text-align: center;
  font-weight: bold;
}

.header__container h1 {
  font-size: 4rem;
  font-weight: 500;
  line-height: 4.5rem;
  color: var(--white);
  text-align: center;
}

.header__container h1 span {
  color: var(--primary-color);
}

.input__group {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.input__group span {
  font-size: 1.75rem;
  color: var(--primary-color);
}

.input__group label {
  font-weight: 500;
  color: var(--text-dark);
}

.input__group input {
  display: block;
  width: 100%;
  max-width: 150px;
  padding-block: 5px;
  color: var(--text-dark);
  font-size: 0.9rem;
  outline: none;
  border: none;
}

.input__group input::placeholder {
  color: var(--text-light);
}

/* ================== Responsive ================== */
@media (max-width: 768px) {
  .nav__menu__btn {
    display: block; /* Mostrar hamburguesa */
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    height: 100vh;
    background-color: rgba(24, 2, 2, 0.9);
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    z-index: 8;
  }

  .nav__links.open {
    transform: translateY(0);
  }

  .nav__bar {
    background-color: transparent;
    position: fixed;
    width: 100%;
    z-index: 10;
  }

  .header__container h1 {
    font-size: 2.5rem;
    line-height: 3rem;
  }

  .header__container p {
    font-size: 1rem;
  }
}

