body{
	margin: 0;
	padding: 0;
}

header{
	position: fixed;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: rgb(255 255 255);
	width: 100vw;
	padding-top: 10px;
	padding-bottom: 10px;
	z-index: 10;
}

header img{
	width: 10%;
	height: 10%;
	padding-left: 50px;
}

header div{
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
	padding-right: 150px;
	/*transition: color 0.3s ease, text-shadow 0.3s ease;*/
}

header a {
	text-decoration: none; /* elimina el subrayado */
	color: rgb(0, 32, 78);
	font-family: tahoma;
	font-size: 130%;
	font-weight: bold;
}

header a:hover{
	color: forestgreen;
	text-shadow: 0 0 1px forestgreen;
}

section{
	display:flex;
	flex-direction: column; /* Permite a los elementos pasar a la siguiente fila */	
	align-items: center;
	/*background-color: rgb(189 189 189)*/
}

section h1{
	background-color: rgb(0 32 78);
	font-family: tahoma;
	color: white;
	padding-top: 40px; /* relleno superior */
        padding-bottom: 20px; /* relleno inferior */
	text-align: center;  
	width: 100%;
	margin-top: 100px;
	margin-bottom: 0px;/* desplazamiento hacia abajo*/
	font-weight: bolder;
	font-size: 40px; /* Tamaño de letra */
}

.imagen_1{
	/*background-image: url("D:\home.jpg");*/
	/*background-size: cover;*/
	position: relative; /* Esto es para el before */
	display: flex;
	justify-content: space-between;
	align-items: center;
	/*position: relative;*/ /*Necesario para el before*/
}

.imagen_1::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("imagenes/home_2.webp");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.6; /* controla transparencia del fondo */
	/*z-index: 0;*/
}

.imagen_1 p{
	color: rgb(0 32 78);
	font-family: tahoma;
	font-size: 150%;
	padding-left: 5%;
	z-index: 1; /* asegura que la imagen este por encima */
}

.imagen_1 img{
	width: 30%;
	height: 30%;
	padding-right: 5%;
	z-index: 1;
	/*margin-bottom: 100px; */
}

.imagen_2{
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	/*width: 100%;*/
}

.imagen_2::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("imagenes/pcb.webp");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.4; /* controla transparencia del fondo */
	/*z-index: 0;*/
}

.imagen_2 img{
	width: 30%;
	height: 30%;
	padding-left: 5%;
	z-index: 1;
	/*margin-bottom: 100px; */
}

.imagen_2 p{
	color: rgb(0 32 78);
	font-family: tahoma;
	font-size: 150%;
	padding-left: 5%;
	padding-right: 5%;
	z-index: 1;
}

.imagen_3{
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	/*width: 100%;*/ /*Duda*/
	/*margin-bottom: 50px;*/
}

.imagen_3::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("imagenes/red_2.webp");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.6; /* controla transparencia del fondo */
	/*z-index: 0;*/
}

.imagen_3 p{
	color: rgb(0 32 78);
	font-family: tahoma;
	font-size: 150%;
	padding-left: 5%;
	z-index: 1;
}

.imagen_3 img{
	width: 30%;
	height: 30%;
	padding-right: 5%;
	/*margin-bottom: 100px; */
	z-index: 1;
}

section img:hover{
      /*transform: scale(1.1);*/ /* La imagen se agranda un 10% */
    }

footer{
	background-color: rgb(0 32 78);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-bottom: 0px;
	padding-top: 40px; /* relleno superior */
    padding-bottom: 20px; /* relleno inferior */
}

#celular{
	text-decoration: none;
	font-family: tahoma;
	color: white;
	font-size: 100%;
	font-weight: bold;
	margin-right: 5%;
}

footer #celular:hover{
	color: forestgreen;
	text-shadow: 0 0 1px forestgreen;
}

#correo{
	text-decoration: none;
	font-family: tahoma;
	color: white;
	font-size: 100%;
	font-weight: bold;
	margin-right: 5%;
}

footer #correo:hover{
	color: forestgreen;
	text-shadow: 0 0 1px forestgreen;
}


footer img{
	width: 2%;
	height: 2%;
}







/*---------------------------------------------------------------------------------------------*/

@media (max-width: 1024px) {
  header img {
    width: 15%; /* el logo se reduce un poco */
    padding-left: 20px;
  }

  header div {
    padding-right: 50px;
    gap: 10px;
  }

  header a {
    font-size: 110%;
  }

  .imagen_1, .imagen_2, .imagen_3 {
	position: relative;
    flex-direction: column; /* apila texto e imagen */
    text-align: center;
    width: 100vw;
  }
  
  
  .imagen_1 img,
  .imagen_2 img,
  .imagen_3 img {
    width: 60%; /* imágenes más grandes, pero centradas */
    height: auto;
    padding: 0;
    margin-bottom: 20px;
  }

  .imagen_1 p,
  .imagen_2 p,
  .imagen_3 p {
    padding: 10px 20px;
    font-size: 120%;
  }
	
  .imagen_2 p{
	order: -1;
  }
	
  footer {
    justify-content: center;
    flex-wrap: wrap;
    margin-right: 0;
    gap: 5px;
  }

  footer img {
    width: 6%;
    height: auto;
  }
}

/* === Ajustes para teléfonos pequeños === */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  header img {
    width: 30%;
    padding: 0;
  }

  header div {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0;
  }

  header a {
    font-size: 100%;
  }

  section h1 {
    font-size: 25px;
    padding-top: 20px;
    padding-bottom: 15px;
  }

  .imagen_1 img,
  .imagen_2 img,
  .imagen_3 img {
    width: 80%;
  }

  footer img {
    width: 8%;
  }
}
