/* 
    Estilos principales de la web
*/

body { 
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 100%;
    margin: 20px 0 0 0;
}
a {
    color: #aaa;
    text-decoration: none;
}
a img {
  border: none;
}
p {
  margin-top: 0;  
  text-align: justify;
}
ul {
  margin-top: 0;
}
h1,h2 {
    color: #4A8391;
}

h3 {
    color: #9ECACE;
    border-bottom: 1px solid #9ECACE;
}
a[href^="mailto:"] {
	color: #4A8391 !important;
}

/* ESTILOS */

.img-izquierda {
  float: left;
  margin-right: 2%;
  margin-bottom: 10px;
}
.img-derecha {
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
}
.s30 {
  width: 30%;
  height: auto;
}
.s32 {
  width: 32%;
  height: auto;
}

.s35 {
  width: 35%;
  height: auto;
}
.s40 {
  width: 40%;
  height: auto;
}
.s45 {
  width: 45%;
  height: auto;
}
.s50 {
  width: 50%;
  height: auto;
}
.s55 {
  width: 55%;
  height: auto;
}
.s60 {
  width: 60%;
  height: auto;
}
.s65 {
  width: 65%;
  height: auto;
}

/* LAYOUT */
#wrapper {
    width: 95%;
    max-width: 1300px;
    margin: 0 auto;
}
#wrapper2 {
  overflow: hidden;
}
#subheader {
    overflow: hidden;
    margin-bottom: 20px;
}
#slider {
	margin-bottom: 40px;
}
#logo {
    width: 31.53846154%; /* 410/1300 */
    min-width: 350px;
    float: left;;
    margin-right: 1.538461538%; /* 20/1300 */
}
#logo img {
    width: 100%;
    height: auto;
}
#menu {
    width: 66.92307692%; /* 870/1300 */
    float: right;
    margin-top: 7.9%;
	overflow: hidden;
}
nav ul.menu {
    list-style: none;
    padding: 0;
    margin: 0;
	float: right;
}
nav ul.menu li {
    display: inline-block;
}
nav ul.menu a {
    display: block;
    text-transform: uppercase;
    text-align: center;
    padding: 5px 10px;
    font-size: 1.125em;
    color: #888;
}
nav ul.menu a:hover, nav ul.menu li.current a, nav ul.menu li.active a {
    color: #9ECACE;
}
footer {
    margin-top: 40px;
    margin-bottom: 40px;
    border-top: 1px solid #9ECACE;
    padding-top: 10px;
    position: relative;
  	clear: both;
}
footer .direccion {
    text-align: center;
}
footer .moduletable.right {
    position: absolute;
    right: 0;
}
footer .mod-languages {
    
}
footer .mod-languages a {
    font-size: .8125em;
}
footer .facebook {
  float: right;
  margin-left: 4px;
}

/* INICIO */
.eslogan {
    margin: 0 0 40px 0;
    text-align: center;
    font-size: 1.875em;
}
#fotos-inicio {
    width: 81.53846154%; /* 1060/1300 */
    margin: 0 auto;
    overflow: hidden;
}
#fotos-inicio div {
    float: left;
    width: 23.58490566%; /* 250/1060 */
}
#fotos-inicio div+div {
    margin-left: 1.886792453%; /* 20/1060 */
}
#fotos-inicio div img {
    width: 100%;
    height: auto;
    display: block;
}
#fotos-inicio div span {
    display: block;
    background-color: #9ECACE;
    text-align: center;
    font-size: 1.25em;
    line-height: 2em;
    color: white;
}
/* QUIENES SOMOS */
.items-row {
    overflow: hidden;
}
.span4 {
    float: left;
    width: 49%;
  	
}
.span4:first-child {
  margin: 0;
}

.item-image img {
    width: 100%;
    height: auto;
}
.items-leading h2 a {
    color: #4A8391;
}
.objetivo {
    text-align: center;
    font-size: 1.25em;
    margin-bottom: 40px;
    padding-top: 40px;
  	padding-bottom: 40px;
    border-top: 1px solid #9ecace;
  	border-bottom: 1px solid #9ecace;
}
/* TRATAMIENTOS */
.tratamientos #side {
  width: 18.46153846%;
  float: left;
  margin-right: 1.538461538%; /* 20/1300 */
}
.tratamientos #side ul {
  padding: 0 0 0 15px;
  text-transform: uppercase;
  font-size: 0.90625em;
}
.tratamientos #main-sided {
  width: 80%;
  float: left;
}
.tratamientos .dedicacion {
  text-align: center;
  margin: 30px 0;
  text-transform: uppercase;
  font-size: 1.8em;
}
.tratamientos .blog {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	flex-grow: 1;
	flex-basis: 0;
	justify-content: space-between;
}
.tratamientos .items-row {
	margin-bottom: 20px;
	display: flex;
	width: 32%;
	background-color: rgba(158, 202, 206,0.1);
	padding-bottom: 10px;
	flex-direction: row
	flex-wrap: nowrap;
	justify-content: space-between;
}
.tratamientos .item-image a {
	position: relative;
	display: block;
	overflow: hidden;
}
.tratamientos .item-image img {
	display: block;
}
.tratamientos .items-row .item-image .cortina {
	display: block;
	background-color: rgba(158, 202, 206,0.2);
	-webkit-transition: background-color 0.5s; /* Safari */
    transition: background-color 0.5s;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}
.tratamientos .items-row:hover .item-image .cortina {
	background-color: rgba(158, 202, 206,0.7);
}

.tratamientos .items-row p {
	padding: 0 7px;
	margin-bottom: 0;
	margin-top: 10px;
	font-size: 0.92em;
}
.tratamientos .page-header h2 {
	background-color: rgba(74, 131, 145, 0.4);
	margin: 0;
	padding: 7px;
}
.tratamientos .page-header a {
	display: block;
	color: #fff;
	font-size: 0.9em;
}
.tratamientos p.readmore a {
	display: inline-block;
	padding: 5px;
	background-color: rgba(74, 131, 145, 0.4);
	color: #fff;
	font-size: 0.85em;
}

/*ODONTOPEDIATRIA*/
.img-ninos {
	width: 50%;
	height: auto;
	margin-bottom: 10px;
	margin-left: 20px;
	float: right;
}


/* ASI TRABAJAMOS */
.article-info {
  font-size: 0.85em;
}
.blog .pull-left {
  float: left;
  margin-right: 2%;
  width: 25%;
}
.blogabout .span4 {
	margin-left: 2%;
}
.blogabout .span4:first-child {
	margin-left: 0;
}

/* CONTACTO */
.contacto #wrapper2 {
  
}
.contacto #side {
  width: 36.92307692307692%;
  float: left;
  margin-right: 3.076923076923077%; /* 40/1300 */
}
.contacto #main-sided {
  width: 60%;
  float: left;
}
form.bfQuickMode input, form.bfQuickMode textarea, form.bfQuickMode button {
  font-size: 1.1em;
  line-height: 1.85em;
  font-family: 'Source Sans Pro', sans-serif;
  border: 0;
  background-color: #e1f0f1;
}
form.bfQuickMode button {
  border: none;
  background-color: #9ECACE;
  margin-left: 10px;
}
.bfQuickMode .bfNoSection {
  margin-top: 0;
}
.bfQuickMode section.bfElemWrap {
  padding: 0;
  margin-bottom: 10px;
  border: 1px solid #9ECACE;
}
.bfQuickMode section.bfElemWrap:last-child {
	border: none;
}

/* MEDIA QUERIES */
@media (max-width: 1180px) {
    nav ul.menu a {
        padding: 7px;
        font-size: 1.1em;
    }

    #logo {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
    #menu {
        float: none;
        margin-top: 10px;
        width: 100%;
        position: relative;
        overflow: hidden;
    }
    #menu ul.menu {
        float: left;
        left: 50%;
        position: relative;
        text-align: center;
    }
    nav ul.menu li {
        display: block;
        float: left;
        position: relative;
        right: 50%;
    }
	.blog .pull-left {
		width: 40%;
	}
}
@media (max-width: 1010px) {
    #fotos-inicio {
        width: 54.19489317%; /* 520/959.5 */
    }
    #fotos-inicio div {
        width: 50%;
    }
    #fotos-inicio div+div {
        margin: 0;
    }
	.img-ninos {
		width: 60%;
	}
}
@media (max-width: 760px) {
	nav ul.menu a {
		font-size: 1em;
		padding: 5px;
	}
	#fotos-inicio div span {
		font-size: 1em;
	}
	.contacto #side, .contacto #main-sided {
		float: none;
		width: 100%;
	}
	#main-sided {
		margin-top: 20px;
	}
	.img-ninos {
		width: 100%;
		margin-left: 0;
		float: none;
	}
	.tratamientos .items-row {
		width: 49%;
	}
}
@media (max-width: 655px) {
	nav ul.menu li {
		width: 33.33333333%;
	}
	.blog .pull-left {
		width: 50%;
	}
	.tratamientos .items-row {
		flex-direction: column;
	}
	
	
}
@media (max-width: 550px) {
	#fotos-inicio div{
		width: 100%;
	}
	.tratamientos .items-row {
		width: 100%;
	}
	.blog .pull-left {
		float: none;
		width: 100%;
		margin: 0;
	}
	.blogabout .span4 {
	width: 100%;
	margin: 0;
	
	}
}
@media (max-width: 415px) {
nav ul.menu li {
	width: 100%;
}

#logo {
	min-width: inherit;
	width: 100%;
}
}