/**
 * CSS Modal
 * Modal as reusable module
 * http://drublic.github.com/css-modal
 *
 * @author Hans Christian Reinl - @drublic
 * @version 1.0.4
 *
 * Usage:
 *    selector {
 *        @extend %modal;
 *    }
 */
/*
 * Configuration
 */
body {
  /*overflow-y: scroll;*/
}

.has-overlay {
  overflow: hidden;
}
.has-overlay > body {
  height: 100%;
  overflow-y: scroll;
}

.semantic-content {
  -webkit-transform: translate(0, 100%);
  -moz-transform: translate(0, 100%);
  -o-transform: translate(0, 100%);
  -ms-transform: translate(0, 100%);
  transform: translate(0, 100%);
  -webkit-transform: translate3d(0, 100%, 0);
  transform: translate3d(0, 100%, 0);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  opacity: 0;
  color: #222;
  line-height: 1.3;
  display: none\9;
  background: none repeat scroll 0 0 rgba(41, 80, 121, 0.84);
}
#semantic-content-descatalogado {
    position: initial;
    opacity: 1;
}
.semantic-content:target {
  -webkit-transform: translate(0, 0);
  -moz-transform: translate(0, 0);
  -o-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  transform: translate(0, 0);
  opacity: 1;
}
.is-active.semantic-content {
  display: block\9;
}
.semantic-content:target {
  display: block\9;
}
.semantic-content .modal-inner {
  position: absolute;
  top: 50px;
  left: 50%;
  z-index: 20;
  margin-left: -400px;
  width: 800px;
  overflow-x: hidden;
  border-radius: 2px;
  border:4px solid #c0c0c0;
  background: url("../../images/estrella.jpg") no-repeat scroll 120% 110% #FFF;
  -webkit-box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}
.semantic-content .modal-inner > img,
.semantic-content .modal-inner > video,
.semantic-content .modal-inner > iframe {
  width: 100%;
  height: auto;
  min-height: 300px;
}
.semantic-content .modal-inner > img {
  width: auto;
  max-width: 100%;
}
.semantic-content header {
  border-bottom: 1px solid #dddddd;
  margin: 0 3em;
}
.semantic-content header > h2 {
  color:#4374b7;
  font-size:35px;
  font-size:3.5rem;
  margin: 0.5em 0 0;
}
.semantic-content .modal-content {
  max-height: 400px;
  max-height: 75vh;
  padding: 15px 1.2em;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0 3em;
}
.error  .modal-content > p{
  color:#777b7b;
  margin:1em 0;
  font-size:15px;
  font-size:1.5rem;
}
.semantic-content .modal-content > * {
  max-width: 100%;
}
.semantic-content footer {
  border-top: 1px solid white;
  padding: 1em 3em;
  background: rgba(58,142,194,0.24);
  border-radius: 2px;
  margin-bottom:50px;
}

.semantic-content footer p{
  color:#145799;
  font-size:16px;
  font-size:1.6rem;
  margin-bottom:0.5em;
}
.semantic-content.error  footer{
  text-align:center;

}

.modal-content-email > p{
  	color: #145799;
	font-size: 16px;
	font-size: 1.6rem;
	margin-bottom: 0.5em;
	text-align: center;
}


.semantic-content footer input[type="button"]{
	cursor:pointer;
	margin-left: 0.5em;
    padding: 0.7em 1em;
	border:0;
	border-radius:5px;
background: rgb(123,161,215);
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPHJhZGlhbEdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY3g9IjUwJSIgY3k9IjUwJSIgcj0iNzUlIj4KICAgIDxzdG9wIG9mZnNldD0iNTUlIiBzdG9wLWNvbG9yPSIjN2JhMWQ3IiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iNTYlIiBzdG9wLWNvbG9yPSIjNTI4M2NiIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzUyODNjYiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9yYWRpYWxHcmFkaWVudD4KICA8cmVjdCB4PSItNTAiIHk9Ii01MCIgd2lkdGg9IjEwMSIgaGVpZ2h0PSIxMDEiIGZpbGw9InVybCgjZ3JhZC11Y2dnLWdlbmVyYXRlZCkiIC8+Cjwvc3ZnPg==);
background: -moz-radial-gradient(center, ellipse cover,  rgba(123,161,215,1) 55%, rgba(82,131,203,1) 56%, rgba(82,131,203,1) 100%);
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(55%,rgba(123,161,215,1)), color-stop(56%,rgba(82,131,203,1)), color-stop(100%,rgba(82,131,203,1)));
background: -webkit-radial-gradient(center, ellipse cover,  rgba(123,161,215,1) 55%,rgba(82,131,203,1) 56%,rgba(82,131,203,1) 100%);
background: -o-radial-gradient(center, ellipse cover,  rgba(123,161,215,1) 55%,rgba(82,131,203,1) 56%,rgba(82,131,203,1) 100%);
background: -ms-radial-gradient(center, ellipse cover,  rgba(123,161,215,1) 55%,rgba(82,131,203,1) 56%,rgba(82,131,203,1) 100%);
background: radial-gradient(ellipse at center,  rgba(123,161,215,1) 55%,rgba(82,131,203,1) 56%,rgba(82,131,203,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7ba1d7', endColorstr='#5283cb',GradientType=1 );
background-size:211% 186% ; background-position: 25% -109%;
position:relative; text-transform:uppercase; color: #fff; text-decoration:none; font-size:14px; font-size:1.4rem; line-height:1.15em;
}

.semantic-content .modal-close {
  display: block;
  text-indent: -100px;
  overflow: hidden;
  cursor: pointer;

}

.semantic-content .modal-close:after {
 background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
    border-radius: 2px 2px 2px 2px;
    bottom: 21px;
    content: "Volver";
    font-size: 13px;
	font-size: 1.3rem;
    left: 0;
    margin-left: 3em;
    padding: 2px 8px;
    position: absolute;
    text-decoration: underline;
    text-indent: 0;
    z-index: 20;
	color:#60ade3;
}
@media screen and (max-width: 690px) {
  .semantic-content .modal-inner {
    width: auto;
    left: 20px;
    right: 20px;
    margin-left: 0;
  }
  .semantic-content .modal-close {
    left: auto;
    right: 33px;
    margin-left: 0;
    cursor: pointer;

  }
  .semantic-content .modal-close:after {
    margin-left: 40%;
	content:"x";
	z-index:50;
  }
}
@media screen and (max-width: 30em) {
  .semantic-content {
    -webkit-transform: translate(0, 400px);
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
    -webkit-transition: -webkit-transform .25s ease-in-out, opacity 1ms .25s;
    -moz-transition: -moz-transform .25s ease-in-out, opacity 1ms .25s;
    -o-transition: -o-transform .25s ease-in-out, opacity 1ms .25s;
    -ms-transition: -ms-transform .25s ease-in-out, opacity 1ms .25s;
    transition: transform .25s ease-in-out, opacity 1ms .25s;
    display: block;
    height: 100%;
    bottom: auto;
  }
  .semantic-content:target {
    -webkit-transition: -webkit-transform .25s ease-in-out;
    -moz-transition: -moz-transform .25s ease-in-out;
    -o-transition: -o-transform .25s ease-in-out;
    -ms-transition: -ms-transform .25s ease-in-out;
    transition: transform .25s ease-in-out;
  }
  .semantic-content:before {
    background-color: #27aae2;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#27aae2), to(#1c9cd3));
    background-image: -webkit-linear-gradient(top, #27aae2, #1c9cd3);
    background-image: -moz-linear-gradient(top, #27aae2, #1c9cd3);
    background-image: -o-linear-gradient(top, #27aae2, #1c9cd3);
    background-image: linear-gradient(to bottom, #27aae2, #1c9cd3);
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: 3em;
    -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
  }
  .semantic-content .modal-inner {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    top: 0;
    left: 0;
    right: 0;
    padding-top: 3em;
    height: 87%;
    overflow: scroll;
    -webkit-box-shadow: none;
    box-shadow: none;
  }
  .semantic-content .modal-content {
    max-height: none;
  }
  .semantic-content .modal-close {
    right: auto;
    text-decoration: none;
	width: 0;
  }
  .semantic-content .modal-close:before {

  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
	display: none;
  }
  .semantic-content .modal-close:after {
    /*content: attr(data-close);*/
	background: #27AAE2;
	color: #FFFFFF;
    font-size: 1.5em;
    top: 0.4em;
    right: 1em;
	left:auto;
    z-index: 40;
    margin-left: 0;
    padding: 0.5em 1em;
	text-decoration:none;
  }
  .semantic-content .modal-close:after{
	 top:1em;
	 bottom: auto;
  }
}
@media screen and (max-height: 46em) and (min-width: 30em) {
  .semantic-content .modal-content {
    max-height: 340px;
    max-height: 50vh;
  }
}
@media screen and (max-height: 36em) and (min-width: 30em) {
  .semantic-content .modal-content {
    max-height: 265px;
    max-height: 40vh;
  }
}

@media screen and (min-width: 30em) {
  .semantic-content {
    -webkit-transition: opacity 0.4s;
    -o-transition: opacity 0.4s;
    transition: opacity 0.4s;
  }
}


@media all and (max-width: 320px) {
	.semantic-content header,
	.semantic-content .modal-content
	{margin: 0 0.5em;}
}
