/* -------------------------------------------------------------------------- */
/**
 * Cards (versión responsive sin medidas absolutas)
 */

/* === Cards === */
.cards-list ul,
.card .list-block ul {
  background: none;
}
.cards-list > ul:before,
.card .list-block > ul:before,
.cards-list > ul:after,
.card .list-block > ul:after {
  display: none;
}

.card {
  background: #fff;
  margin: 1vh 2vw;
  position: relative;
  border-radius: 0.5vw;
  font-size: 1em;
  box-shadow: 0 0.2vh 0.6vh rgba(0, 0, 0, 0.12), 0 0.2vh 0.4vh rgba(0, 0, 0, 0.24);
}

.card .list-block,
.card .content-block {
  margin: 0;
}

.row:not(.no-gutter) .col > .card {
  margin-left: 0;
  margin-right: 0;
}

.page-content > .card:last-child {
  margin-bottom: 4vh;
}

.card-content {
  position: relative;
}

.card-content-inner {
  padding: 2vh 2vw;
  position: relative;
}

.card-content-inner > p:first-child {
  margin-top: 0;
}
.card-content-inner > p:last-child {
  margin-bottom: 0;
}
.card-content-inner > .list-block,
.card-content-inner > .content-block {
  margin: -2vh;
}

/* === Headers & Footers === */
.card-header,
.card-footer {
  min-height: 7vh;
  position: relative;
  padding: 1vh 3vw;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header[valign="top"],
.card-footer[valign="top"] {
  align-items: flex-start;
}
.card-header[valign="bottom"],
.card-footer[valign="bottom"] {
  align-items: flex-end;
}

.card-header a.link,
.card-footer a.link {
  color: #2196f3;
  text-decoration: none;
  text-align: center;
  display: block;
  border-radius: 0.5vw;
  line-height: 6vh;
  box-sizing: border-box;
  appearance: none;
  background: none;
  padding: 0 2vw;
  margin: 0;
  height: 6vh;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.95em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  min-width: 12vw;
  position: relative;
  overflow: hidden;
  outline: 0;
  border: none;
  transition-duration: 300ms;
  transform: translate3d(0, 0, 0);
  user-select: none;
}

html:not(.watch-active-state) .card-header a.link:active,
html:not(.watch-active-state) .card-footer a.link:active,
.card-header a.link.active-state,
.card-footer a.link.active-state {
  background: rgba(0, 0, 0, 0.1);
}

.card-header a.link.button-fill,
.card-footer a.link.button-fill {
  background-color: #2196f3;
  color: #fff;
}

html:not(.watch-active-state) .card-header a.link.button-fill:active,
html:not(.watch-active-state) .card-footer a.link.button-fill:active,
.card-header a.link.button-fill.active-state,
.card-footer a.link.button-fill.active-state {
  background: #0c82df;
}

.card-header a.link.button-big,
.card-footer a.link.button-big {
  height: 8vh;
  line-height: 8vh;
  border-radius: 0.6vw;
}

.card-header a.link i.icon + span,
.card-footer a.link i.icon + span,
.card-header a.link span:not(.ripple-wave) + span,
.card-footer a.link span:not(.ripple-wave) + span,
.card-header a.link span:not(.ripple-wave) + i.icon,
.card-footer a.link span:not(.ripple-wave) + i.icon,
.card-header a.link i.icon + i.icon,
.card-footer a.link i.icon + i.icon {
  margin-left: 1vw;
}

.navbar .card-header a.link:not(.button-fill),
.navbar .card-footer a.link:not(.button-fill),
.toolbar .card-header a.link:not(.button-fill),
.toolbar .card-footer a.link:not(.button-fill),
.subnavbar .card-header a.link:not(.button-fill),
.subnavbar .card-footer a.link:not(.button-fill),
.notifications .card-header a.link:not(.button-fill),
.notifications .card-footer a.link:not(.button-fill) {
  color: #fff;
}

html:not(.watch-active-state)
  .navbar .card-header a.link:not(.button-fill):active,
html:not(.watch-active-state)
  .toolbar .card-footer a.link:not(.button-fill):active,
html:not(.watch-active-state)
  .subnavbar .card-header a.link:not(.button-fill):active,
html:not(.watch-active-state)
  .notifications .card-footer a.link:not(.button-fill):active,
.navbar .card-header a.link:not(.button-fill).active-state,
.toolbar .card-footer a.link:not(.button-fill).active-state,
.subnavbar .card-header a.link:not(.button-fill).active-state,
.notifications .card-footer a.link:not(.button-fill).active-state {
  background: rgba(255, 255, 255, 0.15);
}

.card-header a.link i.icon,
.card-footer a.link i.icon {
  display: block;
}

.card-header a.icon-only,
.card-footer a.icon-only {
  min-width: 7vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

/* === BORDES, CABECERA Y PIE === */
.card-header {
  border-radius: 0.5vw 0.5vw 0 0;
  font-size: 1.1em;
}
.card-header:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 0.1vh;
  width: 100%;
  background-color: #e1e1e1;
  display: block;
  z-index: 15;
}

.card-header.no-border:after {
  display: none;
}

.card-footer {
  border-radius: 0 0 0.5vw 0.5vw;
  color: #757575;
}
.card-footer:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 0.1vh;
  width: 100%;
  background-color: #e1e1e1;
  display: block;
  z-index: 15;
}
.card-footer.no-border:before {
  display: none;
}
