* {
    margin: 0;
    box-sizing: border-box;
}
body{
    background: #000;
    font-family: sans-serif;
    color: #fff;
    display: flex;
    flex-direction: column;    
    word-wrap: break-word;
}
header{
    width: 100%;
    height: auto;
    padding: 1em;
    z-index: 20;
}
main{
    margin: 0 5%;
}
img{
    max-width: 100%;    
    height: auto;
    overflow-x: hidden;
}
a{
	color: #fff;
	text-decoration: none;
}
a:hover{
    color: #027805;
    text-decoration: none;
}
.overlay{
	position: absolute;
	left: 0;
	right: 0;
	overflow: hidden;
	width: 100%;
	height: 0;
	transition: .5s ease;
	background-color: #ccc;
}
.overlay-top{
	top: 0;
}
.overlay-bottom{
	bottom: 0;
}
.img-container:hover .overlay {
	height: 100%;
	opacity: 0.9;
}
.text {
	display: block;
	color: #6610f2;
	font-size: 0.7em;
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	text-align: center;
}
.contacto{
    margin: 0 5%;
}
footer{
    background-color: #222;
}
.social a{
    padding: 5px;
}
.social .facebook:hover{
    color: #4267b2;
}
.social .instagram:hover{
    color: #c32aa3; 
}
.social .whatsapp:hover{
    color: #25D366;
}
.inst{
    color: #c32aa3; 
}
.pd{
  padding: 1em;
}
.pd-1{
  padding: 0 1em 1em 1em;
}
.rocaldent-yellow{
    color: #ffc000;
}
.rocaldent-bg-yellow{
    color: #fff;
    background: #ffbd15;
}
.rocaldent-green{
    color: #027805;
}
.rocaldent-clinica{
	color: #2d9ac5;
}

/* Small devices (landscape phones, max 320px)*/
@media (max-width:320px) { 
	.logo span{
		display: none;
	}
}
/* Small devices (Phones, 320px and up)*/
@media (min-width:320px) { 

}
@media (min-width:480px) { /* smartphones, Android phones, landscape iPhone */ 
	main{
		margin: 0 15%;
	}
	.contacto{
	    margin: 0 8%;
	}
}
/* Small devices (Phones, 576px and up)*/
@media (min-width: 576px) {
	.text {
		font-size: 0.8em;
	}
}
/*  Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) {
    .contacto{
        margin: 0 15%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
	.text {
		font-size: 1em;
	}
    .contacto{
        margin: 0 25%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
	.text {
		font-size: 1.3em;
	}
}

