﻿/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200;400&family=Roboto&display=swap");
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a {
  outline: none;
  text-decoration: none;
}
a:active {
  text-decoration: none;
  outline: none;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Fuentes */
/* Colores */
/* Estilos generales */
* {
  box-sizing: border-box;
}

body {
  font-family: Roboto, Arial, Helvetica, sans-serif;
  height: 100vh;
  color: #333;
  font-weight: 300;
}

h1 {
  position: relative;
  font-size: 26px;
  font-weight: 400;
  color: rgb(145, 13, 13);
}

h2 {
  font-size: 20px;
  font-weight: 500;
  color: rgb(145, 13, 13);
}

hr {
  position: relative;
  height: 10px;
  border: none;
  border-top: 1px solid #DDD;
  margin-bottom: 30px;
}
hr:before {
  position: absolute;
  left: 0;
  top: 0px;
  height: 4px;
  width: 50px;
  content: "";
  background-color: #910D0D;
}

p {
  line-height: 22px;
  margin: 20px 0;
}

img {
  display: block;
  margin: 20px auto;
}

.more {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 4px;
  background-color: #fff;
  color: #222;
  font-size: 14px;
}
.more:hover {
  background-color: rgba(145, 13, 13, 0.1);
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgb(145, 13, 13);
  border-radius: 4px;
  background-color: rgb(145, 13, 13);
  color: #fff;
}

/* Dispositivos */
/* Extra small devices (phones, 600px and down) */
/* Small devices (portrait tablets and large phones, 600px and up) */
/* Medium devices (landscape tablets, 768px and up) */
/* Large devices (laptops/desktops, 992px and up) */
/* Extra large devices (large laptops and desktops, 1200px and up) */
/* Dispositivos */
/* Extra small devices (phones, 600px and down) */
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (max-width: 600px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background-image: url("/img/background.jpeg");
    background-repeat: no-repeat;
    background-position: top;
    background-position-x: -500px;
    background-position-y: -50px;
    box-shadow: inset 0 0 0 1000px rgba(145, 13, 13, 0.8);
    transition: height 0.3s ease-out;
    z-index: 1;
  }
  .sidebar.open {
    height: 350px;
  }
  .sidebar .logo {
    position: fixed;
    top: -10px;
    left: -20px;
    padding: 0 8%;
    height: 25px;
    opacity: 0.3;
  }
  .sidebar .profile {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin-top: 10px;
  }
  .sidebar .profile img {
    display: none;
    height: 120px;
    width: 120px;
    border-radius: 50%;
  }
  .sidebar .profile .name {
    margin: 18px auto 14px auto;
    font-size: 22px;
    font-weight: 500;
    color: white;
    text-transform: uppercase;
  }
  .sidebar .profile .summary {
    font-size: 16px;
    font-weight: 300;
    color: white;
    text-transform: uppercase;
  }
  .sidebar nav {
    position: relative;
    margin-top: 16px;
    padding: 64px 10%;
  }
  .sidebar nav ul {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 0 10%;
  }
  .sidebar nav li a {
    display: flex;
    align-items: center;
    justify-content: end;
    height: 35px;
    font-weight: 300;
    font-size: 14px;
    color: white;
    text-transform: uppercase;
    opacity: 0.7;
  }
  .sidebar nav li a:active {
    opacity: 1;
  }
  .sidebar nav:after {
    position: absolute;
    left: 0;
    top: 0;
    content: "";
    height: 52px;
    width: 100%;
    border-top: 1px solid #AC5757;
    border-bottom: 1px solid #AC5757;
  }
  .sidebar .contact {
    position: absolute;
    top: 97px;
    font-weight: 300;
    font-size: 11px;
    color: white;
    padding: 0 8%;
  }
  .sidebar .contact span {
    display: none;
  }
  .sidebar .contact .social {
    margin: 6px 0;
  }
  .sidebar .contact .social a {
    margin: 1px;
    opacity: 0.6;
  }
  .sidebar .contact .social a:hover {
    opacity: 1;
  }
  main {
    width: 90%;
    margin: 130px auto 40px auto;
    padding: 40px 50px;
  }
  #btnMain {
    z-index: 1;
    position: absolute;
    top: 6px;
    right: 10%;
  }
  img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
  }
}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 600px) and (max-width: 1200px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 310px;
    overflow: hidden;
    background-image: url("/img/background.jpeg");
    background-repeat: no-repeat;
    background-position: top;
    background-position-x: -500px;
    background-position-y: -50px;
    box-shadow: inset 0 0 0 1000px rgba(145, 13, 13, 0.8);
    transition: height 0.3s ease-out;
    z-index: 1;
  }
  .sidebar.open {
    height: 504px;
  }
  .sidebar .logo {
    position: fixed;
    top: 10px;
    padding: 0 8%;
    height: 35px;
    opacity: 0.3;
  }
  .sidebar .profile {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin-top: 10px;
  }
  .sidebar .profile img {
    height: 120px;
    width: 120px;
    border-radius: 50%;
  }
  .sidebar .profile .name {
    margin: 18px auto 14px auto;
    font-size: 22px;
    font-weight: 500;
    color: white;
    text-transform: uppercase;
  }
  .sidebar .profile .summary {
    font-size: 16px;
    font-weight: 300;
    color: white;
    text-transform: uppercase;
  }
  .sidebar nav {
    position: relative;
    margin-top: 16px;
    padding: 64px 10%;
  }
  .sidebar nav ul {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 0 10%;
  }
  .sidebar nav li a {
    display: flex;
    align-items: center;
    justify-content: end;
    height: 35px;
    font-weight: 300;
    font-size: 14px;
    color: white;
    text-transform: uppercase;
    opacity: 0.7;
  }
  .sidebar nav li a:active {
    opacity: 1;
  }
  .sidebar nav:after {
    position: absolute;
    left: 0;
    top: 0;
    content: "";
    height: 52px;
    width: 100%;
    border-top: 1px solid #AC5757;
    border-bottom: 1px solid #AC5757;
  }
  .sidebar .contact {
    position: absolute;
    top: 257px;
    font-weight: 300;
    font-size: 11px;
    color: white;
    padding: 0 8%;
  }
  .sidebar .contact span {
    display: none;
  }
  .sidebar .contact .social {
    margin: 6px 0;
  }
  .sidebar .contact .social a {
    margin: 1px;
    opacity: 0.6;
  }
  .sidebar .contact .social a:hover {
    opacity: 1;
  }
  main {
    width: 90%;
    margin: 290px auto 40px auto;
    padding: 40px 50px;
  }
  #btnMain {
    z-index: 1;
    position: absolute;
    top: 6px;
    right: 10%;
  }
}
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 1200px) and (min-width: 1200px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 25%;
    height: 100%;
    background-image: url("/img/background.jpeg");
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: inset 0 0 0 1000px rgba(145, 13, 13, 0.8);
    z-index: 1;
  }
  .sidebar .logo {
    position: fixed;
    top: 10px;
    left: 40px;
    height: 35px;
    opacity: 0.3;
  }
  .sidebar .profile {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin-top: 50px;
  }
  .sidebar .profile img {
    height: 150px;
    width: 150px;
    border-radius: 50%;
  }
  .sidebar .profile .name {
    margin: 18px auto 14px auto;
    font-size: 22px;
    font-weight: 500;
    color: white;
    text-transform: uppercase;
  }
  .sidebar .profile .summary {
    font-size: 16px;
    font-weight: 300;
    color: white;
    text-transform: uppercase;
  }
  .sidebar nav {
    padding: 8%;
  }
  .sidebar nav li a {
    display: flex;
    align-items: center;
    height: 35px;
    font-weight: 300;
    font-size: 14px;
    color: white;
    text-transform: uppercase;
    opacity: 0.7;
  }
  .sidebar nav li a:hover {
    opacity: 1;
  }
  .sidebar nav li a:hover:after {
    content: "";
    height: 4px;
    width: 4px;
    margin: 0 0 1px 4px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
  }
  .sidebar .contact {
    font-weight: 300;
    font-size: 12px;
    color: white;
    padding: 0 8%;
  }
  .sidebar .contact span {
    opacity: 0.6;
    text-transform: uppercase;
  }
  .sidebar .contact .social {
    margin: 6px 0;
  }
  .sidebar .contact .social a {
    margin: 1px;
    opacity: 0.6;
  }
  .sidebar .contact .social a:hover {
    opacity: 1;
  }
  main {
    margin-left: 25%;
    width: 75%;
    padding: 40px 50px;
  }
  #btnMain {
    display: none;
  }
}
/* Extra large devices (large laptops and desktops, 1200px and up) */
.row {
  display: grid;
  grid-template-columns: 80px 1fr;
  height: 30px;
}

/* Tarjetas */
.card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 4px 4px 10px 0 rgba(0, 0, 0, 0.2);
  padding: 20px 20px 10px 20px;
  margin: 20px 0;
}
.card h2 {
  grid-row: 1;
  font-size: 18px;
  font-weight: 500;
  color: rgb(145, 13, 13);
  height: 30px;
}
.card span {
  grid-row: 2;
  display: block;
  line-height: 20px;
  margin-bottom: 10px;
}
.card .toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  height: 50px;
  margin: 10px -20px 0 -20px;
  border-top: 1px solid #ccc;
}
.card .toolbar .more {
  grid-column: 1;
  margin: 10px 0 0 10px;
}
.card .toolbar .button {
  grid-column: 3;
  margin: 10px 10px 0 0;
}

ul.list {
  margin: 20px;
  list-style-type: circle;
}
ul.list li {
  margin: 10px 0;
  line-height: 22px;
}

h1.name {
  font-size: 35px;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
}

h2 {
  text-align: center;
  color: gray;
  font-size: 24px;
  font-weight: 300;
  margin: 10px auto;
}

.subtitle {
  display: block;
  width: 400px;
  margin: 8px auto 14px auto;
  text-align: center;
  line-height: 22px;
  font-size: 14px;
}
