*{
	margin:0;
	padding: 0;
	box-sizing: border-box;
}



body {
	font-family: 'Merriweather', serif;
    width: 100%;
    height: 100%;
    letter-spacing: 0.03em;
    line-height: 1.6;
}

.logo {
	width: 80%;
	height: 50px;
	float: left;	
}

.logo img {
	width: 10%;
	margin: 50px 50px 20px;
	cursor: pointer;
	background: transparent;
	margin-top: 100px;
}

nav {
    flex: 1;
    text-align: right; /* menu posicion*/
}


.navbar {
    width: 50%;
    height: 10%;        /*modificar el objeto menu*/
    margin: auto;
    padding: 20px;
    align-items: right;
    justify-content: space-between;
}

p{
	font-size: 30px;  /*font-size*/
}

.navbar ul{
	width: 100%;
	margin-top: 70px;
	margin-bottom: -80px;
}

.navbar ul img {
	font-size: 20px;             /*size de los logos*/
    color: #4237d4;              /* color de los logos*/
    transition: transform 0.5s;
}
.navbar ul li {
    list-style: none;
    display:inline-flex;
    margin: -30px 10px ;
    position:relative;
   
}

a{  /* forma del buton*/
    display: flex;
    height: 80px;
    width: 75px;
    margin: 50px 15px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 6px 6px 10px -1px rgba(78, 66, 66, 0.15),
               -6px -6px 10px -1px rgba(255,255,255,0.7);
    transition: transform 0.5s;        
}

a:hover {
    box-shadow: inset 4px 4px 6px -1px rgba(0,0,0,0.2),
                inset -4px -4px 6px -1px rgba(255,255,255,0.7),
                -0.5px -0.5px 0px rgba(255,255,255,1),
                0.5px 0.5px 0px rgba(0,0,0,0.15),
                0px 12px 10px -10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.01);
    transform: translateY(2px);
}



.title-main {
	font-size: 70px;
	line-height: 100px;
	height: 100px;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	color: #f7931e;
	margin-top: 150px;
	margin-bottom: -100px;
}

.title {
    font-size: 50px;
    line-height: 100px;    
    height: 100px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #f7931e;   
	margin-top: 150px;
   
}

.slider {
    color: yellow;
    margin-left: 20px;
    box-sizing: border-box;
    animation: slider 5s linear infinite;
}
@keyframes slider {

    0%{ margin-top: -400px; }
    5%{ margin-top: -200px; }
    30%{ margin-top: -200px; }
    35%{ margin-top: 0px; }
    65%{ margin-top: 0px; }
    50%{ margin-top: 0px; }
    70%{ margin-top: 200px; }
    100%{ margin-top: 200px; }
}



/*header*/

header {
	width: 100%;
	height: 600px;	
	background-image:  url(../img/portada.jpg);	     
	background-size:contain;
	background-attachment:local;
	position: relative;
}	

.wave {
	position: absolute;
	bottom: 0;
	width: 100%;
}

.container {
	width: 100%;
	max-width: 1200px;
	height: 430px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: auto;
}

.container .card {
	width: 330px;
	height: 430px;
	border-radius: 8px;
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	margin: 20px;
	text-align: center;
	transition:all 0.25s;
	background-color: rgb(58, 47, 47);
	color: #f7931e;

}

.container .card:hover {
	transform: translateY(-15px);
	box-shadow: 0 12px 16px rgba(0, 0, 0, 0.2);
}

.container .card img {
	width: 330px;
	height: 220px;	
}

.container .card h4 {
	font-weight: 600;
	color: yellow;
}

.container .card p {
	padding: 0 1rem;
	font-size: 14px;
	font-weight: 300;
}

.container .card a {
	font-weight: 500;
	text-decoration: none;
	color: yellow;
	margin: 10px;
}

aside{
	width: 30%;
	background: #ffff;
	float: left;
}
.contenedor-sobre-nosotros {
	display: flex;
	justify-content: space-evenly;
	position: center;
	width: 100%;
	height: 95%;
	margin-bottom: 40px;
    margin-left: 1rem;
    
}

.imagen-about-us {
	width: 50%;       /* imagen size position*/
	height: 60%;
	height: auto;
	margin-top: -10px;
	position: center;
	margin-left: 80px;
}


@media  screen and  (max-width: 500px){
	
	
	header {
		background-position: center;
	}
	.sobre-nosotros{
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.sobre-nosotros .contenido-textos{
		width: 80%;		
	}
	.imagen-about-us {
		width: 90%;
	}
	.imagen-port {
		width: 44%;
	}
	.cards {
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	

	.cards .card:first-child{
		margin-bottom: 30px;
	}

	.service-cont {
		justify-content: center;
		flex-direction: column;
	}

	.personal-service{
		width: 100%;
		text-align: center;
	}

	.personal-service:nth-child(1), .personal-service:nth-child(2){
		margin-bottom: 60px;
	}

	.personal-service img {
		width: 90%;
	}
}

@media screen and (max-width:500px) {
	nav {
		text-align:center;
		padding: 30px 0 0 0;
	}

	nav > a {
		margin-right: 5px;
	}

	.textos-header h1{
		font-size: 35px;
	}

	.textos-header h2 {
		font-size: 20px;
	}



	
}