*{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

h1{ font-size: 1.5em;}
h2{ font-size: 2.2em;}
h3{ font-size: 2em;}
p{ font-size: 1.25em;}
ul{ list-style: none;}
li{ font-size: 1.25em;}

button{
    font-size: 1.25em;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 5px;
    border: 2px solid rgba(0,0,0,0.3);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    color: white;
    background-color: rgb(0,0,128);
}

button:hover{
    background-color: rgb(0, 0, 255);
}

.container{
    max-width: 1400px;
    margin: auto;
}

.color-acento{ color:rgb(0, 0, 255); }
.color-acento2{ color:rgb(0,0,128); }
/*Prpiedades 2-5 mantienen fijo el header */
header{
    background-color: rgb(245,245,245);
	height: 105px;
	position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    
}


header .container{
    display: flex;
    flex-direction: column;
}

header nav{
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 25px;
}

header a{
    padding: 35px 20px;
    text-decoration: none;
    font-weight: bold;
    color: rgb(0,0,128);
}
header a:hover{
    color: rgb(0, 0, 255);
}

#hero{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    height:100vh;
	flex-grow: 1;
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.4)
    )
    ,url("Images/Web.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

#hero h1{
    color: white;
}

#hero button{
    font-size: 1.75em;
}

#CCTV .container{
    text-align: center;
    padding: 200px 12px;
}
#IoT .container{
    text-align: center;
    padding: 200px 12px;
}
#WEB .container{
    text-align: center;
    padding: 200px 12px;
}
#nuestros-programas{
    background-color: rgb(0,0,50.2);
    color: White;
    text-align: center;
}

#nuestros-programas .container{
    padding: 150px 12px;
}

#nuestros-programas h2{
    margin-top: 0;
    font-size: 3.2em;
}

#nuestros-programas p{
    display: none;
}

#nuestros-programas .carta{
    background-position: center;
    background-size: cover;
    padding: 50px 0px;
    margin: 20px;
    border-radius: 25px;
	color:black;
}

.carta:first-child{
    background-image: linear-gradient(
        0deg,
        rgba(255,255,255,0.5),
        rgba(255,255,255,0.5)
    )
    ,url("Images/BG2.jpeg");

}

.carta:nth-child(2){
    background-image: linear-gradient(
        0deg,
        rgba(255,255,255,0.5),
        rgba(255,255,255,0.5)
    )
    ,url("Images/BG2.jpeg");
}

.carta:nth-child(3){
    background-image: linear-gradient(
        0deg,
        rgba(255,255,255,0.5),
        rgba(255,255,255,0.5)
    )
    ,url("Images/BG2.jpeg");

}

#caracteristicas .container{
    text-align: center;
    padding: 250px 12px;
	display:flex;
}

#caracteristicas li{
    margin: 16px 0px;
    font-weight: bold;
}

#final{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgb(30,30,30);
    color: white;
    height: 80vh;
}

#final h2{
    font-size: 9vw;
}

#final button{
    font-size: 5vw;
}

footer{
    background-color: rgb(230,230,230);
}

footer p{
    margin: 0;
    padding: 12px;
    color: rgb(100,100,100);
}

footer .container{
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

@media (min-width: 850px){
    header{
        position: fixed;
        width: 100%;
    }

    header .container{
        flex-direction: row;
        justify-content: space-between;
    }

    header nav{
        flex-direction: row;
        padding-bottom: 0;
        padding-right: 20px;
    }

    #hero h1{
        font-size: 5em;
    }

    #CCTV .container{
        display: flex;
        justify-content: space-evenly;
    }

    #CCTV .texto{
        width: 50%;
        max-width: 600px;
        text-align: initial;
        padding-left: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
		font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    }

    #CCTV h2{
        margin-top: 0px;
    }

    #CCTV .img-container{
        background-image: url("Images/CCTV.jpg");
        background-size: cover;
        background-position: center center;
        height: 300px;
        width: 400px; 
		border-radius: 10%;
    }
	#IoT .container{
        display: flex;
        justify-content: space-evenly;
    }

    #IoT .texto{
        width: 50%;
        max-width: 600px;
        text-align: initial;
        padding-left: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #IoT h2{
        margin-top: 0px;
    }

    #IoT .img-container3{
        background-image: url("Images/IoT.jpg");
        background-size: cover;
        background-position: center center;
        height: 300px;
        width: 400px;
        border-radius: 10%;		
    }
#WEB .container{
        display: flex;
        justify-content: space-evenly;
    }

    #WEB .texto{
        width: 50%;
        max-width: 600px;
        text-align: initial;
        padding-left: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    #WEB h2{
        margin-top: 0px;
    }

    #WEB .img-container2{
        background-image: url("Images/Web.jpg");
        background-size: cover;
        background-position: center center;
        height: 300px;
        width: 400px;
		border-radius: 10%;
    }
    #nuestros-programas .programas{
        display: flex;
        justify-content: center;
    }

    #nuestros-programas p{
        display: block;
        margin-bottom: 30px;
    }

    #nuestros-programas h2{
        font-size: 4em;
    }

    #nuestros-programas h3{
        margin-top: 0;
    }

    #nuestros-programas .carta{
        padding: 50px;
        background-size: 100% 120px;
		width: 33.3%;
        background-repeat: no-repeat;
        background-position-y: 0;
        background-color: rgba(255, 255, 255, 1);
        box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    }

    .carta:first-child{
        background-image: linear-gradient(
            0deg,
            rgb(0,0,0,),
            rgb(0,0,0,)
        )
        ,url("Images/BG2.jpeg");
    }	
    .carta:nth-child(2){
        background-image: linear-gradient(
            0deg,
            rgb(0,0,0,),
            rgb(0,0,0,)
        )
        ,url("Images/BG2.jpeg");
    }

    .carta:nth-child(3){
        background-image: linear-gradient(
            0deg,
            rgb(0,0,0,),
            rgb(0,0,0,)
        )
        ,url("Images/BG2.jpeg");

    }

    #caracteristicas{
        background-image: url("Images/BG2.jpeg");
        background-repeat: no-repeat;
        background-size: 500px 400px;
        background-position: calc(100vw - 500px) 120px;
    }

    #caracteristicas .container{
        text-align: initial;
    }

    #caracteristicas ul{
        margin-left: 100px;
    }

    #final h2{
        font-size: 5em;
    }

    #final button{
        font-size: 2em;
    }

    footer .container{
        justify-content: flex-end;
    }
}

@media (min-width: 1200px) {
    #caracteristicas{
        background-position-x: calc(100vw - 800px);
    }
}
#contact{
    background-color: rgb(0,0,50.2);
    color: White;
    text-align: center;
}

#contact .container{
    padding: 150px 12px;
}

#contact h2{
    margin-top: 0;
    font-size: 3.2em;
}

#contact p{
    display: none;
}	
#contact .carta2{
        padding: 50px;
        background-size: 100% 150px;
		width: 100%;
        background-repeat: no-repeat;
        background-position-y: 0;
        background-color: rgba(255, 255, 255, 1);
        box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    }
	
/* Reseteo básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

/* Estilos de la barra de navegación (Escritorio por defecto) */
.navbar {
  width : 100%;
  height:100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(245,245,245);
  padding: 15px 30px;
  position: relative;
  flex-wrap: wrap;
  position: relative;
}
.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: rgb(0,0,128);
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: rgb(0, 0, 255);
}

/* Ocultar el checkbox y el icono en pantallas grandes */
.menu-checkbox {
  display: none;
}

.hamburger-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 20px;
}

.hamburger-label span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: black;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* --- Media Query para Dispositivos Móviles --- */
@media (max-width: 768px) {
  /* Mostrar el icono de hamburguesa */
  .hamburger-label {
    display: flex;
	margin-left: auto;
    position: relative;
    top: 100%;
    transform: translateY(-50%);
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgb(245,245,245);
    
    display: flex;
    flex-direction: column;
    align-items: center;

    /* Animación PRO */
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;

    transition: 
      transform 0.4s ease,
      opacity 0.4s ease;
  }

  /* Estado abierto */
  .menu-checkbox:checked ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

  /* Transformar la lista de enlaces en un menú desplegable vertical 
  .nav-links {
	display: flex-end;
	justify-content:center;
	width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color:rgb(245,245,245);
    flex-direction: column;
    align-items: center;
    max-height: 0; 
    overflow: hidden;
    transition: max-height 0.4s ease-out;
  }
*/

  .nav-links li {
    margin: 15px 0;
  }

  /* Truco CSS: Cuando el checkbox esté marcado, muestra el menú */
  .menu-checkbox:checked ~ .nav-links {
    max-height: 300px; /* Ajusta este valor según el alto de tus enlaces */
  }

  /* Animación opcional: Transforma las líneas en una 'X' al abrir */
  .menu-checkbox:checked ~ .hamburger-label span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-checkbox:checked ~ .hamburger-label span:nth-child(2) {
    opacity: 0;
  }

  .menu-checkbox:checked ~ .hamburger-label span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}