@font-face {
  font-family: dancing;
  src: url(../img/dancingscript.ttf); 
}

/*
 * Common
 */

* {
box-sizing: border-box;
}

li{
list-style: none;
}

a {
text-decoration: none;
color: inherit;
color: #004B6B;
font-weight: 500;
}

h1,h2,h3,h4,h5,h6{
font-family: Helvetica;
}

p{
color: #3E4349;
font-style: italic;
text-shadow: 1px 1px 1px #a9a9a933;
}

body{
font-family: Times;
font-weight: 400;
font-size: larger;
letter-spacing: 0.05rem;
word-spacing: 0.2rem;
line-height: 1.5rem;
margin: 0.2rem 1rem;
}

/*
 * Navigation
 */

#logo {
width: 4rem;
height: 4rem;
position: absolute;
top: 0.6rem;
left: 2rem;
}

nav {
position: fixed;
top: 0.5rem;
right: 0.3rem;
right: 1rem;
padding: 0.2rem;
}

#menu {
display: none;
font-size: 1rem;
text-align: center;
background-color: rgb(255,255,255,1);
max-width: 250px;
}

#menu-icon {
  font-size: 1.5rem;
}

#menu * {
display: inherit;
padding: 0 2rem;
}

#menu span {
background-color: #0005;
color: white;
}

#menu a:hover{
background-color: #22c5a6;
}

nav:hover #menu {
display: block ;
}

nav:hover #menu-icon {
display: none;
}

/*
 * Hero
 */

#hero {
margin: 6rem auto;
background-image: linear-gradient(to right, #AEAFAE20, #AAAAAA00),url("../img/flower-01.jpg");
background-repeat: no-repeat;
background-position: right;
background-size: auto 100%;
background-position-x: 90%;
height: 300px;
}

#hero h2 {
display: block;
padding: 2rem 8rem 2rem 1rem;
font-size: x-large;
font-family: dancing;
font-weight: 200;
text-align: center;
color: #5e6593;
line-height: 2rem;
word-spacing: 0.2rem;
}

/*
 * index pagina cajas
 */

#services {
display: flex;
flex-direction: column;
}

#services > div {
display: flex;
flex-direction: column;
width: 90%;
min-width: 250px;
margin: 1rem auto;
padding-top: 1rem;
border: solid 1px rgb(100, 100, 100, 0.5);
border-radius: 15px;
box-shadow: 0px 6px 4px lightgray;
border-right: solid 25px lightgray;
}

#services > div  h2 {
font-weight: 400;
font-size: x-large;
text-align: center;
color: gray;
}

#services > div img {
display:block;
max-width: 13rem;
margin: 2rem auto;
border-radius: 10px;
}

#page_bottom {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  background-color: #645e6226;
  background-color: #4FBDA820;
  margin-top: 4rem;
  padding: 2rem;
}

#contacts {
  display: flex;
  flex-direction: column;
  letter-spacing: 0.03rem;
  word-spacing: 0.15rem;
  font-weight: 200;
}

#contacts > div{
margin-top: 0.5rem;
}

#email{
color: darkolivegreen;
color: black;
}

#email:hover{
color: lightslategrey;
}

#map{
border: solid 9px darkgray;
border-radius: 20px;
}

#copyright{
font-size: smaller;
font-weight: bold;
text-align: center;
padding: 1rem 0 1rem 0;
}

#company {
  display: flex;
}

/*
 * Services Impresiones
 */

#services_impresiones > div{
  display:flex;
  flex-direction: column;
}

#services_impresiones img{
  width: 320px;
  padding: 0.2rem;
  margin: 0.2rem auto;
  box-shadow: 2px 2px 4px gray;
}

#services_impresiones .desc{
  width: 320px;
  padding: 1rem;
  margin: 0.2rem auto;
  margin-top: 0.5rem;
  font-style: italic;
  box-shadow: 2px 2px 5px gray;
  background-color: #ffc0cb54;
}

#services_impresiones .desc h3{
  font-family: dancing;
  font-style: italic;
  font-size: xx-large;
  font-weight: 200;
  text-align: right;
  margin: 0.5rem auto 2rem auto;
}

.decor{
  display: none;
}

#services_impresiones hr{
  height: 30px;
  color: white;
  border: initial;
}

@media only screen and (min-width: 1024px) {
  body { padding: 4rem;}
  #logo {
    width: 7rem;
    height: 7rem;
  }
  #menu-icon {
    font-size: 2.5rem;
  }
  #hero h2 {
    padding: 4rem 8rem 2rem 1rem;
    font-size: x-large;
  }
  #services {
    flex-direction: row;
    column-gap: 3rem;
  }
    
  #page_bottom {
    flex-direction: row;
    justify-content: space-between;
    padding: 3rem;
  }

  #services_impresiones > div {
    flex-direction: row;
  }
  #services_impresiones > div:nth-child(even){
    flex-direction: row;
  }
  #services_impresiones > div:nth-child(odd){
    flex-direction: row-reverse;
  }
  #services_impresiones img{
     margin: 1rem;
  }
  #services_impresiones .bigger{
     margin: 1rem;
     width: 400px;
  }
  #services_impresiones .desc{
    width: 100%;
    padding: 2rem;
    margin: 1rem;
  }
  .decor{
   display: initial;
  }
}
