:root {
  --clinica: #e6004c;
  --color-principal: #151d23;
  --color-secundario: #f6f2ee;
  --color-greytrans:#bbbbbba5;
}

/*------------------- Fuentes --------------------------*/
@font-face {
  font-family: 'Hind-400';
  font-display: swap;
  src: url("../fonts/hind-400.woff2") format("woff2");
}

@font-face {
  font-family: 'Hind-500';
  font-display: swap;
  src: url("../fonts/hind-500.woff2") format("woff2");
}

font-face {
  font-family: 'Hind-600';
  font-display: swap;
  src: url("../fonts/hind-600.woff2") format("woff2");
}

@font-face {
  font-family: 'Hind-700';
  font-display: swap;
  src: url("../fonts/hind-700.woff2") format("woff2");
}

.fredericka {
  font-family: "Fredericka the Great", serif;
  font-weight: 400;
  font-style: normal;
}


html {
  font-size: clamp(15px, 0.5vw + 12px, 18px);
}

body {
  font-family: "Hind-500", sans-serif;
  font-optical-sizing: auto;
  color: var(--color-principal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-family: "Hind-700", sans-serif;
  font-optical-sizing: auto;
}

a {
  color: var(--color-principal);
  text-decoration: none;
}

.d-grid{
  display: grid;
}

.grid-columns-1{
  grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width: 600px) {
  .grid-columns-md-4{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 400px){
  .grid-columns-md-2{
    grid-template-columns: 1fr;
  }
}

.d-flex {
  display: flex;
}

@media screen and (min-width: 600px) {
  .d-md-flex {
    display: flex;
  }
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

@media screen and (min-width: 600px) {
  .justify-content-md-between {
    justify-content: space-between;
  }
}

.gap-1 {
  gap: 1em;
}

.flex-grow {
  flex-grow: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

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

.border-bottom-1 {
  border-bottom: 1px solid var(--color-greytrans);
}

.border-top-1 {
  border-top: 1px solid var(--color-greytrans);
}

@media screen and (min-width: 600px) {
  .border-md-0 {
    border: 0 none;
  }
}

@media screen {
  .d-none {
    display: none;
  }
}

@media screen and (min-width: 600px) {
  .d-md-none {
    display: none;
  }
}

.pt-1 {
  padding-top: 0;
}

@media screen and (max-width: 600px) {
  .pt-0 {
    padding-top: 1em;
  }
}


/*------------------- Header y Navigation --------------------------*/
header {
  border-top: 4px var(--clinica) solid;
}

@media screen and (min-width: 600px) {
  header {
    border-top: 0;
  }
}

header ul {
  list-style: none;
  padding: 0;
}

header .telefono, header .correo, header .redes {
  display: flex;
  align-items: center;
  color: var(--color-greytrans);
}

header .telefono::after {
  content: "|";
  margin-left: 1em;
}

/* MOBILE MENU & ANIMATION */

.bg-opacity-75{
  background-color: rgba(255, 255, 255, 0.75);
  position: absolute;
  width: 100%;
}

nav button{
  display: flex;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #5b5a5a;
  margin: 5px auto;
  transition: all .3s ease-in-out;
  display: block;

}

.menu-toggle {
  margin-right: 25px;
  cursor: pointer;
}

/* Animación hamburguesa activa */
.menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* MOBILE NAVIGATION */

nav ul {
  transform: translateX(-101%);
  position: fixed;
  top: 240px;
  height: calc(100vh - 240px);
  width: 100%;
  display: flex;

  flex-direction: column;
  justify-content: flex-start;

  overflow: hidden;
  transition: transform 0.3s ease-in-out;
  margin: 0;
}

@media screen and (min-width: 600px) {
  nav ul {
    position: initial;
    transform: none;
    top: none;
    height: auto;
    width: auto;
    display: flex;
    text-align: initial;
    overflow: initial;
    transition: none;
    display: flex;

    flex-direction: initial;
    justify-content: initial;
  }

  nav ul li{
    display: flex;
  }
}

@media screen and (max-width: 600px) {
  nav ul { 
    background-color: white;
}}

nav li a {
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav li a:hover {
  color: var(--clinica);
}

@media screen and (min-width: 600px) {
  nav li a{
    border-top: transparent 4px solid;
  }
  nav li a:hover {
    border-top-color: currentColor;
  }
}

/* Mostrar menú móvil */
.mobile-nav ul {
  transform: translateX(0) !important;
}

.hero{
  text-align: center;
  background-image: url(../img/familia.jpeg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-block: 13%;
  color: white;
}

.hero h1{
  margin-top: 0;
  font-size: 3em;
  font-weight: 400;
}

.hero h1 + p{
  font-size: 1.5em;
}

.btn-cta{
  color: white;
  background-color: var(--clinica);
  border-radius: .4em;
  padding: 0.7em .9em;
}

.ventajas h2{
  text-align: center;
  font-size: 2em;
  font-weight: 500;
  color: var(--clinica);
}

.ventajas ul li{
  list-style: none;
  color: var(--color-greytrans);
  font-weight: 600;
  font-size: 1em;
  text-align: center;
  line-height: 1.5em;
  padding-top: calc(120px + 2em);
}

.ventajas img{
  display: block;
  align-items: center;
  margin: auto;
}

.claim{
  background-color: var(--clinica);
  height: 100px;
  font-size: 2em;
  font-weight: 500;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}