/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */


/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */


/*
 * 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;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */


/*Globales*/

html {
    box-sizing: border-box;
}

*,
*::before,
*:after {
    box-sizing: inherit;
}

body {
    background-color: #61555546;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

.contenedor {
    margin: 10px 50px;
}

.mt {
    margin-top: 30px;
}

.mb {
    margin-bottom: 20px;
}

.mi {
    margin-left: 20px;
}

.md {
    margin-right: 20px;
}

.mg {
    margin: 10px 10px;
}


/*ir al cielo*/

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: baseline;
    justify-items: stretch;
}

.uno {
    grid-row: 1;
    grid-column: 1;
}

.dos {
    grid-row: 1;
    grid-column: 2;
}

.tres {
    grid-row: 2;
    grid-column: 1/3;
}

.arriba {
    display: none;
    padding: 15px;
    background-color: #024959;
    opacity: 80%;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    position: fixed;
    bottom: 15px;
    right: 15px;
    border-radius: 50px;
}


/*Header*/

#header {
    background-image: url("../img/banner.jpg");
    height: 500px;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
}

#header::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.header {
    margin: 0 60px;
    padding-top: 10px;
    align-items: center;
}

.titulo {
    color: #ffffff;
    text-align: center;
    margin-top: 10px;
    position: relative;
}

.contacto {
    border-color: #3498db;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    padding: 0 5px;
    border-radius: 15px;
    box-shadow: 0 0 40px 40px #3498db inset, 0 0 0 0 #3498db;
    -webkit-transition: all 150ms ease-in-out;
    transition: all 150ms ease-in-out;
}

.contacto:hover {
    color: #ffffff;
    box-shadow: 0 0 10px 0 #3498db inset, 0 0 10px 4px #3498db;
}


/*Media query header*/

@media (min-width: 480px) {
    .titulo {
        color: #ffffff;
        text-align: center;
        margin-top: 10px;
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .titulo {
        color: #ffffff;
        text-align: center;
        margin-top: 10px;
        font-size: 2.5rem;
    }
    .contacto {
        border-color: #3498db;
        color: #ffffff;
        font-size: 36px;
        font-weight: bold;
        padding: 5px 10px;
        border-radius: 15px;
        box-shadow: 0 0 40px 40px #3498db inset, 0 0 0 0 #3498db;
        -webkit-transition: all 150ms ease-in-out;
        transition: all 150ms ease-in-out;
    }
}


/*navegación*/

.nav {
    display: flex;
    background-color: #eed09d;
    width: 100%;
    height: 50px;
    justify-content: space-around;
    align-items: center;
}

.navegacion_principal {
    float: right;
    margin: 0 50px;
    padding-top: 5px;
}

.navegacion_principal a {
    border-color: #3498db;
    color: #000000;
    font-size: 10px;
    text-align: center;
    font-weight: 700;
    /*box-shadow: 0 0 40px 40px #3498db inset, 0 0 0 0 #3498db;*/
    -webkit-transition: all 150ms ease-in-out;
    transition: all 150ms ease-in-out;
}

@media (min-width: 480px) {
    .navegacion_principal a {
        font-size: 12px;
        padding: 0 10px;
    }
}

@media (min-width: 768px) {
    .navegacion_principal a {
        font-size: 20px;
    }
}

.navegacion_principal a:hover {
    box-shadow: 0 0 10px 0 #3498db inset, 0 0 10px 4px #3498db;
    color: #000;
}


/*Servicios*/

#servicios {
    display: grid;
    grid-template-columns: 1fr;
    margin: 2rem 2rem;
    justify-content: center;
}

@media (min-width: 480px) {
    #servicios {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 1rem;
    }
}

@media (min-width: 768px) {
    #servicios {
        grid-gap: 1rem;
        margin: 4rem 4rem
    }
}

@media (min-width: 992px) {
    #servicios {
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 1rem;
        margin: 5rem 5rem
    }
}

.servicios {
    width: 100%;
    height: 100%;
    text-align: center;
}

.contenido_servicio {
    -webkit-box-shadow: 10px 21px 27px 6px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 10px 21px 27px 6px rgba(0, 0, 0, 0.75);
    box-shadow: 10px 21px 27px 6px rgba(0, 0, 0, 0.75);
    border-radius: 15px;
    width: 15rem;
    height: 20rem;
    -webkit-perspective: 800;
    perspective: 800;
}

.contenido_servicio img {
    margin-top: 25px;
    width: 90%;
    height: 70%;
}

.card {
    background-color: #ffffff;
    border-radius: 15px;
    height: 100%;
    width: 100%;
    margin: 1rem auto;
    position: relative;
    transform-style: preserve-3d;
    transition: .7s ease;
}


/*card 3d*/

.delante,
.atras {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.atras {
    transform: rotateY(180deg);
}

.atras p {
    margin: 5px 5px;
    font-size: 12px;
}

.contenido_servicio:hover .card {
    transform: rotateY(180deg);
}


/*Sobre nosotros*/

#sobre_nosotros {
    margin-top: 10rem;
    border-top: 2px solid #000000;
}

.nosotros h1 {
    text-align: center;
}


/*Contacto*/

#contactanos {
    background-color: #ffffff;
    border-radius: 10px;
}

#contactanos h2,
p {
    text-align: center;
}

.contactanos {
    display: grid;
    grid-template-columns: 1fr;
}

.contacto_texto {
    display: block;
    font-size: .5rem;
}

.lugar {
    width: 90%;
    margin-left: 2rem;
}

.lugar i {
    font-size: .5rem;
    height: 100%;
}

.contenido_lugar {
    font-size: .4rem;
}

@media (min-width: 480px) {
    .contacto_texto {
        font-size: 1rem;
    }
    .lugar {
        margin-left: 2rem;
    }
    .lugar i {
        width: 100%;
        font-size: 1rem;
        height: 100%;
    }
    .contenido_lugar {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .contacto_texto {
        font-size: 1.5rem;
    }
    .lugar {
        margin-left: 2rem;
    }
    .lugar i {
        font-size: 1.5rem;
        height: 100%;
    }
}

@media (min-width: 992px) {
    .contacto_texto {
        font-size: 1.5rem;
    }
    .lugar {
        margin-left: 2rem;
    }
    .lugar i {
        height: 100%;
    }
}

.formulario {
    margin: 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
}

.campo {
    padding-left: 10px;
    margin-bottom: 1rem;
}

.campo input {
    padding-left: 15px;
    width: 8rem;
}

.campo__textarea {
    width: 8rem;
    height: 10rem;
    border: 1px solid #000000;
    padding-left: 15px;
}

@media (min-width: 480px) {
    .campo input {
        padding-left: 15px;
        width: 18rem;
    }
    .campo__textarea {
        width: 18rem;
        height: 10rem;
        border: 1px solid #000000;
        padding-left: 15px;
    }
}

@media (min-width: 768px) {
    .contactanos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .campo input {
        padding-left: 15px;
        width: 20rem;
    }
    .campo__textarea {
        width: 20rem;
        height: 10rem;
        border: 1px solid #000000;
        padding-left: 15px;
    }
}

@media (min-width: 992px) {
    .contactanos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .campo input {
        padding-left: 15px;
        width: 28rem;
    }
    .campo__textarea {
        width: 28rem;
        height: 10rem;
        border: 1px solid #000000;
        padding-left: 15px;
    }
}

.campo input,
textarea {
    border-radius: 8px;
}

.btn-contacto {
    margin: .5rem 5rem;
    text-decoration: none;
    padding: 10px;
    font-weight: 600;
    font-size: 20px;
    color: #ffffff;
    background-color: #1883ba;
    border-radius: 6px;
    border: 2px solid #0016b0;
}

.btn-contacto:hover {
    color: #1883ba;
    background-color: #ffffff;
}


/*Mapa*/

#mapa {
    margin: 1rem 1rem;
}

.mapa {
    height: 420px;
    width: 80%;
}

@media (min-width: 480px) {
    #mapa {
        margin: 2rem 3rem;
    }
}

@media (min-width: 768px) {
    #mapa {
        margin: 3rem 4rem;
    }
}

@media (min-width: 992px) {
    #mapa {
        margin: 3rem 6rem;
    }
}


/*Aviso de privacidad*/

.aviso h1 {
    text-align: center;
    margin-bottom: 3rem;
}

.aviso ol li {
    list-style: decimal;
}

.aviso p {
    text-align: left;
    margin-bottom: 1rem;
    font-weight: 600;
}


/*Footer*/

#footer {
    margin-top: 5rem;
    background-color: #eed09d;
    width: 100%;
    height: 100px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem;
}

.copyright {
    padding-top: 1rem;
    text-align: center;
    font-size: 1rem;
}


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


/*
 * Hide visually and from screen readers
 */

.hidden,
[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
 */

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


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

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


/*
 * 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: " ";
    display: table;
}

.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: #fff !important;
        color: #000 !important;
        /* Black prints faster */
        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:
   * https://web.archive.org/web/20180815150934/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;
    }
}