
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
  font-family: sans-serif;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://lh5.googleusercontent.com/proxy/GTW9dXiH2Gzt6t_tVa7lf4FiOpN2H7x_Jayn1IuZbqPjAxan4HZObxJ1EyCI88RZpQYtLFo91_VV7D7hNOJPo3_tyIc134tOqvvCC6bGoftwe_JqfNA3WQJ46vT7_iCPmZwkARw");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(10px); 
  transform: scale(1.1); 
  z-index: -1; 
}

main, .content {
  flex: 1;
  width: 100%;
}

nav {
  padding: 10px 0;
}

nav a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  background-color: rgb(218, 7, 7);
  padding: 8px 15px;
  border: 1px solid black;
  border-radius: 5px;
  margin: 5px;
  display: inline-block;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: rgb(6, 224, 231);
  color: black;
}


img {
  margin-top: 10px;
  border: 2px solid black;
  border-radius: 10px;
  max-width: 100%; 
  height: auto;
}


h1 {
  background-color: rgb(218, 7, 7);
  color: white;
  border-radius: 20px;
  padding: 10px;
  margin: 20px auto; 
  width: 60%;
}

p {
  background-color: rgb(255, 255, 255);
  color: black;
  padding: 15px;
  margin: 10px auto;
  width: 70%;
  border-radius: 10px;
  border: 2px solid black;
  line-height: 1.5;
}

footer {
  background-color: rgb(218, 7, 7);
  color: white;
  padding: 10px;
  margin-top: 20px;
  width: 100%;
}


@media (max-width: 768px) {

  .contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    width: 100%;
  }

  .imagen {
    width: 100%;
    max-width: 300px; 
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }

  .texto {
    text-align: center;
    width: 90%;
  }

  
  h1 {
    width: 90%; 
    margin: 10px auto;
    font-size: 1.5rem;
  }

  p {
    width: 90%; 
    margin: 10px auto;
  }
}