/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body{
    font-family: 'Montserrat', sans-serif;
}

.iniciolista{

    background-image: url('../img/servicios.jpg');
    margin-top: 34px;
    height: 500px;
    background-position:  center;
    background-size: cover;
    position: relative;
}
.textodatos h2{
    margin: 0;

}
.textodatos p{
    margin: 0;

}
.textodatos{
    color: white;
    position: relative;
    top: 50%;
    width: 80%;
    margin: 0 auto;
    font-size: 1.4em;

}

.servicios{
    height: 62vh;
    background-position: center;
    background-size: cover;  
    position: relative;   
}
.datosservicio{
    background-color: rgba(26,26,26, 0.7);
    color: white;
    position: relative;
    top: 20%;

}
.datosservicio h2{
    padding-top: 10px;

}
.datosservicio p{
    font-size: 1.1em;
    color: #2CAEC3;
    font-weight: 600;
    padding-bottom: 10px;
}
.margenservicio{
    width: 1120px;
    margin: 0 auto;
}
.iservicios{
    float: left;
    width: 10%;
}
.iservicios img{
    position: relative;
    -webkit-transform: translateY(20%);
    -ms-transform: translateY(20%);
    -o-transform: translateY(20%);
    transform: translateY(20%);
}
.servicios:nth-child(2){
    background-image: url('../img/urgencias.jpg');
}
.servicios:nth-child(3){
    background-image: url('../img/hemodialisis.jpg');
}
.servicios:nth-child(4){
    background-image: url('../img/xray.jpg');
}
.servicios:nth-child(5){
    background-image: url('../img/servicios-clinicos.jpg');

}
.servicios a img{
    padding-right: 20px;
    height: 30px;
}
.servicios a{
    font-weight: 900;
    color: white;
    text-decoration: none;
    background-color: #e10c5e;
    padding: 5px 15px 5px 15px;
    position: absolute;
    bottom: 20px;
    left: 25%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
}
.servicios a:hover {
    background-color: #c9004d;
}

.servicios a:hover img {
    animation: shake 1s;
    animation-iteration-count: infinite;
    background-color: #c9004d;
}

@keyframes shake {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  20% { transform: translate(0px, 0px) rotate(5deg); }
  40% { transform: translate(0px, 0px) rotate(10deg); }
  60% { transform: translate(0px, 0px) rotate(-10deg); }
  80% { transform: translate(0px, 0px) rotate(-5deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

@media screen and (max-width: 480px) {
  .iniciolista{
    margin-top: 54px;
    height: 250px;
    background-position:  left;
}
.textodatos{
    top: 20%;
    width: 80%;
    margin: 0 auto;
    font-size: 1em;

}

.servicios{
    height: 45vh;    
}
.datosservicio{
    top: 5%;
    height: 200px;
}
.datosservicio h2{
    padding-top: 10px;
    font-size: 1em;
    text-align: center;
}
.datosservicio p{
    width: 95%;

    position: absolute;
    font-size: 0.8em;
    bottom: 0px;
    padding-left: 10px;

}
.margenservicio{
    width: 100%;
    margin: 0 auto;
}
.iservicios{
    float: left;
    width: 10%;
}
.iservicios img{
    position: absolute;
    top: 15%;
    left: 50%;
    -webkit-transform: translate(-50%,20%);
    -ms-transform: translate(-50%,20%);
    -o-transform: translate(-50%,20%);
    transform: translate(-50%,20%);
}

.servicios a img{
    padding-right: 20px;
    height: 30px;
}
.servicios a{
    background-color: #e10c5e;
    padding: 5px 15px 5px 15px;
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 80%;
    font-size: 0.8em;
    
}

}

@media screen and (min-width: 481px) and (max-width: 768px) {
  .iniciolista{
    margin-top: 54px;
    height: 250px;
    background-position:  left;
}
.textodatos{
    top: 20%;
    width: 80%;
    margin: 0 auto;

}

.servicios{
    height: 45vh;    
}
.datosservicio{
    top: 5%;
    height: 220px;
}
.datosservicio h2{
    padding-top: 10px;

    text-align: center;
}
.datosservicio p{
    width: 95%;

    position: absolute;

    bottom: 0px;
    padding-left: 10px;
    text-align: center;
    

}
.margenservicio{
    width: 100%;
    margin: 0 auto;
}
.iservicios{
    float: left;
    width: 10%;
}
.iservicios img{
    position: absolute;
    top: 15%;
    left: 50%;
    -webkit-transform: translate(-50%,20%);
    -ms-transform: translate(-50%,20%);
    -o-transform: translate(-50%,20%);
    transform: translate(-50%,20%);
} 



.servicios a img{
    padding-right: 20px;
    height: 30px;
}
.servicios a{
    background-color: #e10c5e;
    padding: 5px 15px 5px 15px;
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 50%;
    font-size: 0.8em;
    
}

}

@media screen and (min-width: 769px) and (max-width: 1200px) {
  .iniciolista{
    margin-top: 54px;
    height: 250px;
    background-position:  left;
}
.textodatos{
    top: 20%;
    width: 80%;
    margin: 0 auto;
    font-size: 1em;

}

.servicios{
    height: 55vh;    
}
.datosservicio{
    top: 15%;
    height: 140px;
}
.datosservicio h2{
    padding-top: 10px;
    position: relative;
    left: 110px;

}
.datosservicio p{
    width: 75%;
    position: relative;
    float: right;

}
.margenservicio{
    width: 100%;
    margin: 0 auto;
}
.iservicios{
    float: left;
    width: 10%;
}
.iservicios img{
    position: relative;
    top: 15%;
    padding-left: 100px;
}  
}

/*********************************************/
.seccionformulario{
    text-align: center;
}
.seccionformulario p{
    color: #2daec3;
    font-weight: 700;
    line-height: 17px;
    font-size: 14px;
    padding-bottom: 20px;

}
.seccionformulario h3{
    font-weight: 400;
    font-size: 32px;
    line-height: 36px;
    color: #666666;
    margin-bottom: 0;
}
.formizq{
    width: 50%;
    float: left;

}
.formizq input{
    margin-right: 10px;
    float: right;

}
.formder{
    width: 50%;
    float: right;

}
.formder input{
    margin-left: 10px;
    float: left;

}
input:focus, textarea:focus{
    color: grey;


}
input,textarea{
    padding-left: 10px;
   border: 1px solid #199CC0;

}
form input{
    width: 380px;
    height: 25px;
    margin-bottom: 30px;
}
form textarea{
    width: 790px;
    height: 200px;
    resize: none;
}
input[type=submit]{
    width: 150px;
    height: 30px;
    background-color: #199CC0;
    color: white;
}

input[type=submit]:hover{
    background-color: #1a82bf;
    color: white;
    font-weight: 900;
}

.barratitulo{
    height: 6px;
    margin-top: 60px;
    width: 120px;
    background-color: #2DAEC3;
    position: relative;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
}
.aseguradoras{
    text-align: center;

}
.qproceso{
    color: #666666;
    font-weight: 700;
    font-size: 14px;
    

}
.procesosreg{
    width: 85%;
    
    margin: 0 auto;

}
#tablacheckimg{
    padding-bottom: 20px;
}
.proceso1{
    padding-top: 20px;
    width: 33.3%;
    color: white;
    background-color: #2DAEC3;
    float: left;
    height: 100px;
    font-size: 14px ;
    font-weight: 900;

}
.proceso2{
    padding-top: 20px;
    width: 33.3%;
    color: white;
    background-color: #199CC0;
    float: left;
    height: 100px;
    font-size: 14px ;
    font-weight: 900;

}
.proceso3{
    padding-top: 20px;
    width: 33.3%;
    color: white;
    background-color: #3F5A83;
    float: left;
    height: 100px;
    font-size: 14px ;
    font-weight: 900;

}
.aseguradoras h2{
    color: #666666;

}
.p1{
    color: #2DAEC3;
    font-weight: 700;

}

.aseguradorasimg{


    width: 769px;
    margin: 0 auto;
}
.aseguradorasimg img{
    position: relative;
    float: left;
    padding: 30px 20px 30px 20px;
    display: block;
}
.aseguradorasimg img:last-child{
    text-align: center;
    float: none;
}

.gastos{
    text-align: center;

}

.barragastos{
    background-image: url('../img/aseguradoras.jpg');
    height: 80vh;
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
}
.gasto img{ 
    float: left;    
    border-radius:50%;
    position: relative;
    top: 40%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    padding: 10px;
}
.gasto h4{
    margin: 0;
    padding: 0;
    color: #2daec3;
    font-size: 1.4em;
    
}
.gasto p{
    margin: 0;
    padding-right: 15px;
    
}
.gasto:nth-child(1){
    float: right;
}
.gasto{
    float: right;
    width: 48%;
    height: 130px;
    margin: 0 auto;
    float: left;
    background-color: white;
    box-shadow: 10px 10px 20px grey;
    font-size: 0.7em;
    text-align: justify;
}
.ancho{
    width: 800px;
    margin: 0 auto;
    
}

.degradado{
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&1+0,0+100;White+to+Transparent */
background: -moz-linear-gradient(top, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.9) 35%, rgba(255,255,255,0) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(255,255,255,0.9) 0%,rgba(255,255,255,0.9) 35%,rgba(255,255,255,0) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%,rgba(255,255,255,0.9) 35%,rgba(255,255,255,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=0 ); /* IE6-9 */
height: 70vh;
}



@media screen and (max-width: 480px) {
.formizq{
    width: 90%;
    margin: 0 auto;
    float: none;

}
.seccionformulario h3{
    font-size: 1.4em;
}
.formizq input{
    margin-right: 0px;
    float: none;
}
.formder{
    width: 90%;
    margin: 0 auto;
    float: none;
}
.formder input{
    margin-left: 0px;
    float: none;
}

form input{
    width: 85%;
    height: 25px;
    margin-bottom: 30px;
}
form textarea{
    width: 75%;
    height: 200px;
    resize: none;
}

.procesosreg{
    width: 100%;


}
.proceso1{
    width: 100%;
    float: none;
}
.proceso2{
    width: 100%;
    float: none;
}
.proceso3{
    width: 100%;
    float: none;

}

.aseguradorasimg{
    width: 100%;
}




.gasto img{ 
    float: left;    
    border-radius:50%;
    position: relative;
    top: 40%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    padding: 10px;
}
.gasto h4{
    margin: 0;
    padding: 0;
    color: #2daec3;
    font-size: 1.4em;
    
}
.gasto p{
    margin: 0;
    padding-right: 15px;
    
}
.gasto:nth-child(1){
    float: none;
}
.gasto{
    float: none;
    width: 90%;
    height: 170px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 10px 10px 20px grey;
    font-size: 0.7em;
    text-align: justify;
    margin-bottom: 40px;

}
.ancho{
    width: 100%;
    margin: 0 auto;
    
}

}

@media screen and (max-width: 839px) {
    .procesosreg{
    width: 100%;
}
.proceso1{
    width: 100%;
    float: none;
}
.proceso2{
    width: 100%;
    float: none;
}
.proceso3{
    width: 100%;
    float: none;
}
.aseguradorasimg{
    width: 100%;
}



.gasto:nth-child(1){
    float: none;
}
.gasto{
    float: none;
    width: 90%;
    height: 100px;
    margin-bottom: 40px;

}
.ancho{
    width: 100%;
    margin: 0 auto;
    
}

}
@media screen and (max-width: 840px) {


form input{
    width: 80%;
    height: 25px;
    margin-bottom: 30px;
}
form textarea{
    width: 80%;
    height: 200px;
    resize: none;
}

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
