* {
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", sans-serif;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background-image: linear-gradient(#002a56, #002a56ab),
    url("../imagenes/fotomar.jpg");
  background-size: cover;
  background-position: center;
}

img {
  width: 100%;
}

/* ----------------NAV---------------- */
nav {
  padding: 1.2rem 0rem 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

nav figure {
  width: 80px;
}

nav figure img {
  width: 100%;
  object-fit: cover;
}

.menu-container {
  position: relative;
  padding-right: 2rem;
}

#menu-toggle {
  display: none;
}

.menu {
  position: relative;
  width: 40px;
  height: 30px;
  margin-top: 0.5rem;
  cursor: pointer;
  display: block;
}

.menu span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background-color: #f5f7f9;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transition: 0.25s ease-in-out;
}

.menu span:nth-of-type(1) {
  top: 0px;
  transform-origin: left center;
}

.menu span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
}

.menu span:nth-of-type(3) {
  top: 100%;
  transform-origin: left center;
  transform: translateY(-100%);
}

#menu-toggle:checked + .menu span:nth-of-type(1) {
  transform: rotate(45deg);
  top: 0;
  left: 5px;
}

#menu-toggle:checked + .menu span:nth-of-type(2) {
  width: 0%;
  opacity: 0;
}

#menu-toggle:checked + .menu span:nth-of-type(3) {
  transform: rotate(-45deg);
  top: 28px;
  left: 5px;
}

.menu-container ul {
  display: none;
  flex-direction: column;
  gap: 2rem;
  position: absolute;
  top: 105%;
  right: 0;
  width: 16rem;
  padding: 2rem;
  list-style: none;
  background-color: #002a56;
  border-radius: 0 0 0 10px;
  z-index: 10;
}

.menu-container .links {
  display: block;
  font-size: 1.2rem;
  color: #f5f7f9;
  text-decoration: none;
}

.menu-container .links:hover {
  color: #00a6ff;
  font-weight: 500;
}

.menu-container #menu-toggle:checked ~ ul {
  display: flex;
}

.botones {
  padding: 0.8rem 1rem;
  display: block;
  font-size: 1.2rem;
  color: #f5f7f9;
  border-radius: 5rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.5s;
}

.inicio {
  border: 1px solid #f5f7f9;
}

.inicio:hover {
  background-color: #00a6ff;
}

.registro {
  background-color: #00a6ff;
  border: 1px solid #f5f7f9;
}

.registro:hover {
  background-color: transparent;
}

/* ----------------SECTION---------------- */
.container {
  padding: 4rem 2rem;
  color: #f5f7f9;
}

.container h2 {
  padding-bottom: 4rem;
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
}

.container article svg {
  transform: rotate(-45deg);
  fill: #00a6ff;
}

/* --------Inicio-------- */
.portada {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(#002a56, #002a5646),
    url("../imagenes/fotobuqueargentino.jpg") center / cover no-repeat;
}

.portada article div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  color: #f5f7f9;
  text-align: center;
}

.portada article div h1 {
  font-size: 3.6rem;
  font-weight: 900;
}

.portada article div p {
  width: 80%;
  font-size: 1.1rem;
}

.portada article div a {
  padding: 0.8rem 1rem;
  border: 1px solid #f5f7f9;
  border-radius: 5rem;
  transition: all 0.5s;
  text-decoration: none;
  color: #f5f7f9;
  font-size: 1.2rem;
}
.portada article div a:hover {
  background-color: #00a6ff;
  transform: translate(0, -0.25rem);
}

/* --------Noticias-------- */
.noticias-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.noticias-container > div {
  background-color: #002a56;
  width: 100%;
  transition: all 0.5s;
}

.noticias-container > div:hover {
  transform: scale(1.02);
  box-shadow: 0px 0px 22px 0px #00a6ff;
}

.noticias-info {
  padding: 0.8rem;
}

/* --------Astilleros-------- */
.astilleros-container > div {
  display: grid;
  place-content: center;
  gap: 1rem;
  transition: all 0.5s;
  background-color: #002a56;
  padding: 2rem;
  margin-bottom: 2rem;
}

.astilleros-container > div:hover {
  transform: scale(1.02);
  box-shadow: 0px 0px 22px 0px #00a6ff;
}

.astilleros-container img {
  width: 12rem;
  height: 8rem;
  aspect-ratio: 1;
  object-fit: contain;
}

.astilleros-container a {
  padding: 0.8rem 1rem;
  color: #f5f7f9;
  border: 1px solid #f5f7f9;
  border-radius: 5rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.5s;
}

.astilleros-container a:hover {
  background-color: #00a6ff;
}

/* ----------------MEDIA QUERIES---------------- */
@media screen and (min-width: 975px) {
  .menu {
    display: none;
  }

  #menu-toggle {
    display: none;
  }

  .menu-container ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    padding: 0;
    background-color: none;
    width: auto;
    border-radius: 0;
  }

  .portada article div h1 {
    font-size: 6rem;
  }

  .noticias-container {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
  }

  .noticias-container > div:nth-child(1) {
    font-size: 1.8rem;
    grid-column: 1/2;
    grid-row: 1/3;
  }

  .noticias-container > div:nth-child(2) {
    font-size: 1.2rem;
    grid-column: 2/3;
    grid-row: 1/2;
  }

  .noticias-container > div:nth-child(3) {
    font-size: 1.2rem;
    grid-column: 2/3;
    grid-row: 2/3;
  }
}
