/*pagina*/
html {
  font-family: "IM Fell English", serif;
  image-rendering: pixelated;
  margin: 0;
  padding: 0;
  height: 100%;
}

/*cuerpo*/
body {
    padding: 0px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
    /* background-image: 
       linear-gradient(rgba(255, 255, 255, 0.175), rgba(255, 255, 255, 0.175)),
    url("imagen/fondo.jpe"); */
    background-image:url("https://i.pinimg.com/736x/63/47/a9/6347a9e2fa2603e27486d4521fb936c7.jpg");
    /* background-color: #000; */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;

    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.10) 0px,
        rgba(0, 0, 0, 0.10) 1px,
        rgba(255, 255, 255, 0.12) 1px,
        rgba(255, 255, 255, 0.12) 2px
    );

    z-index: 9999;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    pointer-events: none;
    background-image: url("https://i.pinimg.com/736x/30/2b/33/302b331f164f1bd296be58fa65bf8141.jpg");
    opacity: 0.07;
    z-index: 10000;
} 


/*encabezado*/
header {
    background-color: #d01040;
    color: white;
    padding: 30px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 65rem;
    margin: 0 auto; /*esta etiqueta centra el encabezado*/
    box-sizing: border-box;
    text-align: center; 
}

/* Botones del emcabezado  */
header h1 {
    margin: 0;
    padding: 0; 
    font-size: 35px;
}
header nav {
    margin-left: auto;
    display: flex;
    gap: 1rem;
}
header a {
    transition: color 0.3s ease;
    color: rgb(255, 255, 255);
    text-decoration: none;
    padding: 0.5rem;
    background-color: #010310;
    border-radius: 0.5rem;
    font-size: 16px;
}
header a:hover {
    color: #dfb015;
}

@media (max-width: 700px) {
    header {
        flex-direction: column;
        padding: 20px;
    }

    header nav {
        margin-left: 0;
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        display: inline-block;
        gap: 0.5rem;
    }

    header h1 {
        font-size: 28px;
    }

    header a {
        font-size: 10px;
    }
}

/*estructura*/
.contenido-principal {
  flex: 1 0 auto;
  min-height: 60rem;  /*ajuste del largo delcontenido */
  /* padding-bottom: 700px; tambien sirve */
  background-image: url("imagen/fondo.jpe");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  width: 100%;
  max-width: 65rem;
  margin: 0 auto;
  margin-top: auto;
  /* border: 3px solid lime; */
  flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 0;
}

/* imagenes */
.deco-img2 {
    position: absolute;
    bottom: 80px;
    top: 600px;
    left: -250px;
    width: 130px;
    transition: left 0.9s ease;
}

.deco-img2:hover {
    left: -50px;            /* al pasar el mouse se asoma más */
}

/*articulo*/
.ventana-windows {
  background-color: #e01346c4; /*no se cmabia*/
  border-radius: 0.7rem;
  box-shadow: 2px 2px 0 #1d1c1ca1; /*sombra en las ventanas*/
  font-family: "MS Sans Serif", "Segoe UI", sans-serif;  /*cambiemos esta letra luego*/
  position: absolute; 
  z-index: 10;
}



/* Posiciones de las ventanas */
#ventana-menu {
  top: 120px;  /*movimiento de arriba y abajo, anotar por si me olvido*/
  left: 8rem; /*ajuste a la derecha*/
  width: 100%; /*largo*/
  max-width: 16.5rem;
  z-index: 20;
}

#ventana-contenido {
  top: 120px;
  left: 25rem;
  width: 100%;
  max-width: 33rem;
  z-index: 15;
}

#ventana-enlaces {
  top: 120px;
  left: 58.5rem;
  width: 220px;
  z-index: 20;
}

#app{
  position: absolute;
  top: 25.5rem;
  left: 8.3rem;
  height: 150px; 
  width: 100%;
  max-width: 270px;
}

/* ========== Ajustes para móvil ========== */
@media (max-width: 768px) {

  /* Todas las ventanas se apilan y ocupan casi todo el ancho */
  #ventana-menu,
  #ventana-contenido,
  #ventana-enlaces,
  #reloj-ventana,
  #app {
    /* position: absolute; */
    width: 96vw;
    max-width: 96vw;
    left: 2vw;
    right: auto;
  }

  /* Separarlas verticalmente para que no se monten */
  #ventana-menu {
    top: 600px; 
  }

  #ventana-contenido {
    top: 115px; /* ajusta este valor según la altura de la ventana de menú */
  }

  #app{
    position: relative;
    top: 1440px; 
  }

  #ventana-enlaces {
    top: 810px;   /* ajusta este valor según la altura de la ventana de contenido */
  }

  /* Si tienes la ventana del reloj, también la movemos */
  #reloj-ventana {
    top: 20px;
    left: 4vw;
    width: 92vw;
  }
}

.contenido-ventana {
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 0.7rem;
  border: #e01346c4;
  color: #000;
}

.contenido-ventana h2 {
  margin: 0 0 8px 0;
  font-size: 16px;
  border-bottom: 1px solid #808080;
  padding-bottom: 4px;
}

.contenido-ventana p {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.4;
}

.contenido-ventana img{
  border-top: 2px solid #6d6d6d;
  border-left: 2px solid #6b6a6a;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.contenido-ventana section img{
  width: 100%;
  max-width: 600px;
}
.imagen-destacada {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #6d6d6d;
  border-bottom: 1px solid #6e6e6e;
}

.titulo-ventana {
  background: linear-gradient(to right, #800006, #d01040);  /*color de ventada*/
  border-radius: 0.7rem;
  color: white;
  padding: 3px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
  cursor: move; /* indica que se puede arrastrar */
}


/* ver aqui */
.titulo-ventana > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.botones {
  display: flex;
  gap: 3px;
}

.boton {
  background-color: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #6d6d6d;
  border-bottom: 2px solid #6e6e6e;
  width: 16px;
  height: 14px;
  font-size: 11px;
  text-align: center;
  line-height: 12px;
  color: black;
  cursor: default;
}

/*reloj digital*/
#reloj-ventana {
  position: absolute;
  top: 760px;  /*movimiento de arriba y abajo*/
  left:  58.5rem;  /*ajuste a la derecha*/
  width: 220px;
  background-color: #ffffff;
  box-shadow: 2px 2px 0 #31313185;
  font-family: "MS Sans Serif", "Courier New", monospace;
  user-select: none;
  z-index: 1000;
  border-radius: 0.7rem;
}
#reloj {
  font-family: "Courier New", Courier, monospace;
  font-size: 35.5px;
  color: rgb(253, 253, 253);
  text-align: center;
  padding: 10px 10px;
  letter-spacing: 1px;      
  background-image: linear-gradient(rgba(255, 255, 255, 0.175), rgba(255, 255, 255, 0.175)),
    url("https://i.pinimg.com/736x/3d/3c/29/3d3c2966764a7084e3d92ac883d4d5c9.jpg");
  border-top: 2px solid #6d6d6d;
  border-left: 2px solid #6b6a6a;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  background-size: cover;
  background-position: center;
  display: inline-block;
  margin: 5px 10px;
  user-select: none;
}

/* Estilos para las listas del menú y enlaces */
.menu-lista, .lista-enlaces {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.menu-lista li, .lista-enlaces li {
  margin-bottom: 6px;
}

.lista-enlaces li{
  background-color: #d0104077;
  border-radius: 1rem;
  text-align: center;
  border-top: 2px solid #6d6d6d;
  border-left: 2px solid #6b6a6a;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.menu-lista ul {
  margin: 4px 0 8px 15px;
  padding: 0;
  list-style: none;
}

.menu-lista a, .lista-enlaces a {
  color: #121213;
  text-decoration: none;
  font-size: 15px;
}

.menu-lista a:hover, .lista-enlaces a:hover {
  text-decoration: underline;
  color: #d01030;
}

.imagen-pequeña {
  width: 100%;
  max-width: 195px; /*ancho*/
  margin-top: 12px;
  /* border: 2px solid #808080; */
  display: block;
  border-top: 2px solid #6d6d6d;
  border-left: 2px solid #6b6a6a;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

/*pie de pagina*/
footer {
    background-color: #141414;
    color: white;
    padding: 2rem;
    width: 65rem;
    margin: 0 auto; /*esta etiqueta centra el encabezado*/
    box-sizing: border-box;
    margin-top: auto;
    justify-content: space-between;
    flex-shrink: 0;
}

footer section {
    float: right;
}

footer p {
    margin: 0;
}

footer a {
    transition: color 0.3s ease;
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: cornflowerblue;
}