/*! 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
   ========================================================================== */

:root {
  --colorPrimario: #0d101f;
  --rojo: #f05d5e;
  --azul: #4F759B;
  --celeste: #A6CFD5;
  --celesteClaro: #DBFCFF;

  --blanco: #ffffff;
  --negro: #000000;
  --grisClaro: #f8f9fa;
  --gris: #e5e5e5;
  --grisOscuro: #adb5bd;

  --barraTransparente: rgba(255, 255, 255, 0.6);

  --fuenteTexto: font-family: 'Lato', sans-serif;
  --fuenteTitulos:  font-family: 'Roboto', sans-serif;
}

/* Globales */

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: var(--fuenteTexto);
}

h1, h2, h3, h4 {
  font-family: var(--fuenteTitulos);
  color: var(--rojo);
}
a:hover {
  text-decoration: none;
}

/* Spinner */
.spinner {
  margin: 100px auto 0;
  width: 70px;
  text-align: center;
}

.spinner > div {
  width: 18px;
  height: 18px;
  background-color: #333;

  border-radius: 100%;
  display: inline-block;
  -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.spinner .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
  0%, 80%, 100% { -webkit-transform: scale(0) }
  40% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bouncedelay {
  0%, 80%, 100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  } 40% {
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
  }
}

/* Header */
.hero {
  background-image: url(../img/hero.jpg);
  background-position: center center;
  background-size: cover;
}
.hero-index {
  height: 60vh;
  min-height: 460px;
}


.barra {
  background-color: var(--barraTransparente);
}
.contacto {
  position: relative;
}
.contacto::after {
  position: absolute;
  content: '';
  background-color: var(--rojo);
  height: 1px;
  width: 100%;
  bottom: 0;
}
.contacto a {
  color: var(--colorPrimario);
  font-weight: bold;
}

.redes i {
  font-size: 32px;
}
@media (min-width: 768px) {
  .redes i {
    font-size: 26px;
  }
}
.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.slicknav_menu {
  display: flex;
  align-items: center;
  flex-direction: column;
  background: unset;
}
.slicknav_btn {
  font-size: 22px;
  background-color: var(--rojo);
}
.slicknav_nav {
  width: 100%;
  text-align: center;
  font-size: 18px;
  /* background-color: rgba(0, 0, 0, 0.4); */
}
.slicknav_nav a {
  color: var(--colorPrimario);
  font-weight: bold;
}

.slicknav_nav a:hover {
  background-color: var(--rojo);
  color: var(--blanco);
}

@media (min-width: 768px) {
  .slicknav_menu {
    display: none;
  }
}

.navegacion a {
  font-size: 18px;
  font-weight: bold;
  /* margin-right: 2rem; */
  color: var(--colorPrimario);
  transition: all .3s ease-in-out;
}
.navegacion a:hover {
  color: var(--blanco);
  background-color: var(--rojo);
  border-radius: 5%;
}
.logo {
  max-width: 160px;
  display: flex;
}
.activo {
  color: var(--blanco);
  background-color: var(--rojo);
}

/* Nuestros servicios */
.servicios {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-gap: 1rem 1rem;
}
.servicios img {
  width: 100%;
  height: 150px;
}
@media (min-width: 768px) {
  .servicios {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-gap: 1rem 2rem;
  }
  .servicios img {
    width: 100%;
    height: 210px;
  }
}

/* Sidebar */
.novedades .novedad:last-child {
  margin-bottom: 0!important;
}
.asociados ul {
  list-style: none;
}

/* Links de interes */
.links {
  display: grid;
  align-items: center;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 768px) {
  .links {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}
/* .links a img {
  border-radius: 50%;
} */

/* Seccion contacto */

.contact-section {
  background-image: url(../img/contacto_op.jpg);
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--blanco);
}
.btn-contact,
.btn-servicios {
  background-color: var(--rojo);
  color: var(--blanco);
  width: 100%;
}
@media (min-width: 768px) {
  .btn-contact {
    width: unset;
  }
  .btn-servicios {
    width: 25%;
  }
}

.btn-contact:hover,
.btn-servicios:hover {
  color: var(--blanco);
  background-color: #EE4444;
}

/* Footer */
#map {
  height: 250px;
  min-width: 250px;
}

footer {
  position: relative;
  background-color: var(--gris);
}

footer::before {
  position: absolute;
  content: '';
  background-color: var(--rojo);
  /* left: 0; */
  height: 2px;
  width: 100%;
  left: 0;
  top: 0;
}

.services .list-group-item {
  background-color: var(--gris)
}

@media (min-width: 768px) {
  .footer {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    column-gap: 2rem;
  }
}

.information-image {
  max-width: 120px;
}

.location-information li {
  list-style: none;
}

/* Barra fija */
@media (min-width: 768px) {
  .fixed-bar {
      position: fixed;
      width: 100%;
      top: 0;
      left: 0;
      background-color: var(--grisClaro);
      padding: 0rem 1rem!important;
      height: 6rem;
      z-index: 1000;
      /* transition: all .3s ease; */
  }
  body.ft-activo {
    margin-top: 6rem;
  }
}
@media (min-width: 992px) {
  .fixed-bar {
      padding: 0rem 8rem!important;
  }
}
@media (min-width: 1200px) {
  .fixed-bar {
      padding: 0rem 15rem!important;
  }
}

/* Pagina Nosotros */
/* .img-nosotros {
  width: 100%;
} */


/* Pagina Servicios */
.tarjetas .card-title {
  color: var(--rojo);
  font-size: 1.8rem;
}
@media (min-width: 768px) {
  .tarjetas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 2rem;
  }
  .tarjetas img {
    height: 180px;
  }
}
@media (min-width: 992px) {
  .tarjetas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 2rem;
  }
  .tarjetas img {
    height: 210px;
  }
}

/* Seccion Novedades */
@media (min-width: 768px) {
  .card-novedades {
    position: relative;
  }

  .link-novedades {
    position: absolute;
    padding: 0;
    bottom: 0%;
    right: 0%;
  }
  .link-novedades button {
    width: 100%;
  }
}

/* Pagina Contacto */
.h2-contacto {
  position: relative;
  /* color: var(--azul); */
  font-size: 2.5rem;
}
.h2-contacto::after {
  position: absolute;
  content: '';
  background-color: var(--azul);
  height: 1px;
  width: 80%;
  bottom: -50%;
  left: 10%;
  right: -10%;
}
.info-contacto {
  position: relative;
  list-style-type: none;
  padding-left: 0;
}
.info-contacto:first-of-type::after{
  position: absolute;
  content: '';
  background-color: var(--azul);
  height: 1px;
  width: 100%;
  bottom: -25%;
}
.info-contacto i {
  min-width: 15px;
  text-align: center ;
}
.info-contacto a {
  color: var(--negro);
}
.contacto-redes {
  font-size: 2.5rem;
}



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

