/*!
Theme Name: biozelle
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: biozelle
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

biozelle is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
/* Create a root stacking context */
#root, #__next {
  isolation: isolate;
}

:root {
  font-family: "Hiragino Sans",Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-size: 18px;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(34, 34, 34, 1);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  --main-color: #65B8B1;
  --accent-color: #01b7ac;
  --context-color: #171d3f;
  --blue-color: #171D3F;
}

a {
  font-weight: 500;
  color: var(--accent-color);
  text-decoration: inherit;
}
a:hover {
  color: var(--context-color);
}

body {
  background-color: #fcfcfc;
  font-weight: 200;
}

h2 {
  font-size: 1.6em;
  font-weight: 500;
  margin-bottom: 24px;
}

.cita-button {
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}


/* General styles __________ */
.inner {
  max-width: 1600px;
  margin: 0 auto;
}
.social-media {
  display: flex;
  gap: 18px;

  figure {
    max-width: 32px;
  }
  img {
    width: 100%;
  }
}
section {
  display: flex;
  width: 94%;
  max-width: 1200px;
  margin: 0 auto;
}
strong {
  font-weight: 500;
}
span {
  color: var(--accent-color);
  font-weight: 500;
}
.section-description {
  width: 100%;
  align-self: center;
  text-align: center;

  hr {
    border-top: 2px solid var(--accent-color);
  }
  h2 {
    margin-top: 40px;
  }
}

@media (min-width: 768px) {
  .section-description {
    width: 55%;
  }
}


/* Header __________ */
#main-header .inner {
  width: 94%;
  max-width: 1600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto 12px;
  padding: 20px 0;
}
.site-header {
  margin-bottom: 80px;
}
#main-header img {
  max-width: 200px;
  margin: 0 auto 20px;
}
#header-logo {
  width: 160px;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 15px;
  list-style: none;
  font-size: 16px;
  text-transform: uppercase;
  line-height: 28px;
}
li {
  display: flex;
  align-items: center;
}
nav a {
  color: var(--context-color);
  font-weight: 300;
}
nav a:hover{
  color: var(--accent-color);
}
.cita {
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--accent-color);
}
.cita a {
  color: var(--context-color);
  font-weight: 500;
}

@media (min-width: 768px) {
  #main-header .inner {
    flex-direction: row;
    margin: 0 auto;
  }
  #main-header img {
    max-width: 100%;
    padding:0;
    margin: 0;
  }
  nav {
    width: 70%;
    gap: 20px;
  }
}


/* Hero __________ */
#hero {
  max-width: 1600px;
  display: flex;
  flex-direction: column;
  align-items: stretch;

  figure {
    width: 100%;
  }
}
#hero-text {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  background-color: var(--main-color);
  padding: 32px 60px;
  overflow: hidden;

  &::after {
    position: absolute;
    content: url(images/adn.png);
    top: -80px;
    right: 0px;
  }
  > * {
    z-index: 2;
  }
  h1 {
    margin-bottom: -4px;
    font-size: 1.6em;
    font-weight: 400;
    color: #171d3f;
  }
  p {
    font-weight: 300;
    color: #fff;
  }
}

.cita-button {
  position: relative;
  width: fit-content;
  padding: 15px 30px 15px 64px;
  background-color: var(--blue-color);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;

  &::before {
    position: absolute;
    content: url(images/icon-calendar.svg);
    width: 24px;
    top: 14px;
    left: 28px;
  }
}

@media (min-width: 768px) {
  #hero {
    flex-direction: row;

    figure {
      width: 60%;
    }
  }
  #hero-text {
    width: 60%;
    padding: 0 20px;

    p {
      width: 100%;
    }
  }
}

@media (min-width: 1400px) {
  #hero {
    flex-direction: row;

    figure {
      width: 30%;
    }
  }
  #hero-text {
    width: 70%;
    padding: 0 60px;
    padding: 0 60px;

    p {
      width: 45%;
    }
  }
}


/* Nosotros __________ */
#nosotros {
  flex-direction: column;
  margin-top: 60px;
  padding: 20px;
  gap: 20px;

  aside {
    width:100%;
  }
  p {
    margin-bottom: 24px;
  }
  cite {
    font-style: normal;
    font-weight: 600;
  }
}

@media (min-width: 768px) {
  #nosotros {
    padding: 0 80px;
    margin-top: 120px;
    gap: 60px;

    aside {
      width: 100%;
      column-count: 2;
      column-gap: 40px;
    }
    figure {
      width: 60%;
      margin: 0 auto;
    }
  }
}

@media (min-width: 1080px) {
  #nosotros {
    flex-direction: row;
    aside {
      column-count: 1;
    }
  }
}


/* Noticias __________ */
#noticias {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  flex-direction: column;
  gap: 40px;
  margin-top: 120px;

  ul {

    li {
      width: 100%;
      overflow: hidden;
      margin-bottom: 48px;
    }
    a {
      display: flex;
      flex-direction: column-reverse;
      gap: 20px;

      &:hover {
        color: var(--accent-color);
        background-color: rgba(1, 183, 172, 0.05);
      }
    }
    figure {
      object-fit: cover;
      
    }
    img {
      height: auto;
      object-fit: cover;
      aspect-ratio: 16 / 9;
      transition: transform 0.3s ease;
    }
    a:hover img {
      transform: scale(1.04);
    }
    p {
      height: 112px;
      padding: 0 20px 20px;
    }
    img {
      width: 100%;
      height: auto;
    }
  }
}
@media (min-width: 1080px) {
  #noticias {

    ul {
      display: flex;
      gap: 24px;
      flex-direction: row;

      li {
        width: 40%;
        flex: 1 1 0;
        overflow: hidden;
      }
      p {
        height: 72px;
      }
    }
  }
}


/* Servicios __________ */
#servicios {
  max-width: 1000px;
  flex-direction: column;
  gap: 40px;
  margin-top: 160px;
  
  #servicios-lista {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
  }
  .info {
    display: flex;
    flex-direction: column;
    background-color: rgba(1, 183, 172, 0.05);

    p {
      margin-bottom: 24px;
    }
  }
  .info > * {
    flex: 1 1 0;
  }
  figure {
    display: none;
  }
  aside {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  h4 {
    position: relative;
    background-color: var(--blue-color);
    font-weight: 400;
    color: #fff;
    padding: 36px 0 36px 88px;

    &::before {
      position: absolute;
      content: '';
      width: 40px;
      top: 16px;
      left: 24px;
    }
  }
  article#consulta {
    h4::before {
      content: url(images/icon-color-consulta.svg);
    }
  }
  article#check-up {
    h4::before {
      content: url(images/icon-color-check-up.svg);
    }
  }
  article#sueroterapia {
    h4::before {
      content: url(images/icon-color-suero.svg);
    }
  }
  article#ozonoterapia {
    h4::before {
      content: url(images/icon-color-ozono.svg);
    }
  }
  article#celulas-madre {
    h4::before {
      content: url(images/icon-color-celulas.svg);
    }
  }
  .toggle-info {
    position: relative;
    width: 100%;
    transition: background-color 0.3s ease-in-out;

    &:hover,
    &:focus {
      outline: none;
      border: 0;
      background-color: rgba(1, 183, 172, 1);
    }

    &::after {
      position: absolute;
      content: url(images/icon-arrow-bco.svg);
      width: 24px;
      right: 28px;
    }
  }
  .info {
    display: none;
    border: 1px solid rgba(1, 183, 172, 0.4);
    grid-column: span 2;
    padding: 40px 40px;
  }
  .active {
    &::after {
      transform: rotate(180deg);
    }
  }
  .info {
    transition: display 0.3s ease-in-out;
  }
  .info.open {
    display: flex;
  }
  .bullet {
    position: relative;
    font-weight: 500;
    color: var(--accent-color);
    padding-left: 44px;
    margin-top: 12px;

    &::before {
      position: absolute;
      content: url(images/icon-bullet.svg);
      width: 36px;
      height: 36px;
      top: -5px;
      left: 0;
    }
  }
  dd {
    padding-left: 44px;
    margin: 8px 0 32px;
  }

  #consulta {
    .bullet {
      margin-bottom: 40px;
      font-weight: inherit;
      color: inherit;
    }
  }
}

@media (min-width: 768px) {
  #servicios {
    .info {
      flex-direction: row;
      gap: 0 40px;
    }
    article:nth-of-type(even) {
      .info {
        flex-direction: row-reverse;
      }
      .toggle-info {
        margin-left: auto;
      }
    }
    aside {
      gap: 0;
    }
    figure {
      display: block;
    }
  }
}
@media (min-width: 1080px) {
  #servicios {
    .toggle-info {
      width: calc(50% - 20px);
    }
  }
}


/* Sucursales __________ */
#sucursales {
  flex-direction: column;
  margin-top: 200px;

  h2 {
    align-self: center;
  }
  #sucursales-lista {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
  }
  .sucursal aside {
    margin-bottom: 40px;
    width: 84%;
  }
  .cita-button {
    margin-top: 20px;
  }
  .location-title {
    position: relative;
    color: var(--accent-color);
    padding: 16px 0 16px 32px;

    &::before {
      position: absolute;
      content: url(images/icon-location-pin.svg);
      width: 32px;
      top: 14px;
      left: -4px;
    }
  }
  img {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .sucursal aside {
    column-count: 2;
    column-gap: 40px;
  }
}

@media (min-width: 1080px) {
  #sucursales {
    #sucursales-lista {
      flex-direction: row;
      gap: 40px;
      margin-top: 40px;
    }
    .sucursal aside {
      flex: 1 1 0;
      padding: 0 60px;
      margin: 0 auto 40px;
      column-count: 1;
    }
  }
}


/* Carrusel __________ */
section#carrusel {
  width: 100%;
  max-width: 1400px;
  margin-top: 120px;

}
.glide {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}
.glide:hover {
  -webkit-box-shadow: 10px 10px 77px -40px rgba(1,183,172,1);
  -moz-box-shadow: 10px 10px 77px -40px rgba(1,183,172,1);
  box-shadow: 10px 10px 77px -40px rgba(1,183,172,1);
  cursor: ew-resize;
}
.glide .glide__slides {
  position: relative;
  display: flex;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}
.glide .glide__slide {
  flex: none;
  border-radius: 0.4em;
  color: #263238;
  background-color: #ccc;
  text-align: center;
  line-height: 100px;
  list-style-type: none;

}
.glide__arrows {
  display: none;
}
.glide__arrow {
  border: none;
  font-size: 4.8em;
  line-height: 0;
  cursor: pointer;
  padding: 0;
  background-color: transparent;
  color: var(--accent-color)
}
.glide__arrow:focus {
  outline: none;
}
.glide__arrow:active {
  transform: scale(0.88);
}

@media (min-width: 1080px) {
  .glide__arrows {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    padding: 0 1.4em;
    top: 50%;
    z-index: 5;
  }
}


/* Testimonios __________ */
#testimonios {
  flex-direction: column;
  margin-top: 120px;

  video {
    background-color: rgba(1, 183, 172, 0.1 );
    width: 100%;
  }
}
#testimonios-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: center;
}
.testimonio {
  transition: filter 0.3s ease-in-out;

  p {
    margin: 12px 0 24px;
  }

  &:hover {
    filter: brightness(1.4);
  }
  img {
    margin: 0 auto;
  }
}
.testimonio-vid {
  background-color: transparent;
  font-weight: 400;
  color: var(--accent-color);
  padding: 0;
  margin: 0;

}
.testimonio-text {
  background-color: var(--main-color);
  color: #fff;
  padding: 24px;
  grid-column: span 2;

  cite {
    font-weight: 600;
  }
}

@media (min-width: 768px) {
  #testimonios-list {
    gap: 40px;
  }
  .testimonio-text {
    grid-column: span 3;
    padding: 24px 60px;;
  }
}

@media (min-width: 1080px) {
  #testimonios-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .testimonio-text {
    grid-column: span 1;
    padding: 24px;
  }
}


/* Contacto __________ */
#contacto {
  flex-direction: column;
  margin-top: 120px;

  .section-description {
    margin-bottom: 40px;
  }
  form {
    border: 2px solid var(--accent-color);
    width: 100%;
    padding: 40px 20px 0;
    margin: 0 auto;

    p {
      width: fit-content;
      margin: 0 auto;
    }
    p:last-of-type {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
  }
  input {
    background-color: rgba(1, 183, 172, 0.1 );
    border: 1px solid var(--accent-color);
    padding: 12px 12px;
    color: #333;
    font-weight: 400;
    margin-bottom: 16px;
    width: 100%;
  }
  input[type="submit"] {
    width: fit-content;
    padding: 15px 30px;
    background-color: var(--blue-color);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
  }
  .cita-button {
    align-self: center;
    margin-top: 24px;
  }
}

@media (min-width: 768px) {
  form {
    width: 96%;
    max-width: 580px;
    padding: 48px 80px 60px;
  }
}


/* Footer __________ */
#footer {
  background-color: var(--main-color);
  padding: 80px 24px 20px;
  margin: 140px 0 auto;
  color: #fff;
  font-weight: 300;
  line-height: 1.8rem;
  
  > div {
    width: 94%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  a {
    color: #fff;
    font-weight: 300;
    text-decoration: underline;
  }
  .social-media {
    margin-top: 32px;
  }
}

#identity-footer {
  width: 100%;
  max-width: 420px;

  .logo {
    max-width: 200px;
    margin-bottom: 24px;
  }
}
#legales {
  display: flex;
  flex-direction: column;
}
#copyright {
  margin-top: 120px;
  color: var(--blue-color);
  font-size: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  #footer {

    > div {
      width: 100%;
      flex-direction: row;
      justify-content: space-around;
    }
  }
  #identity-footer {
    width: 30%;
  }
}

/* Pages __________ */
.site-main {
  width: 94%;
  max-width: 1200px;
  margin: 0 auto;
}
.entry-header {
  display: flex;
  flex-direction: column-reverse;
  text-align: center;
  margin-bottom: 40px;

  h1 {
    font-size: 1.4rem;
  }
}

#author-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 30%;
  margin: 0 auto 40px;
  text-align: center;

  figure {
    img {
      width: 90px;
      height: auto;
      margin: 0 auto;
      border-radius: 50%;
      overflow: hidden;
    } 
  }
}
.entry-content {
  width: 94%;
  max-width: 640px;
  margin: 0 auto;
  
  p, img {
    margin-bottom: 48px;
  }

}
.type-post {
  .entry-content {

    p:first-child::first-letter {
      initial-letter: 3;
      font-weight: 700;
      text-transform: uppercase;
      padding: 0 10px 0 0;
    }
  }
}
.posted-on a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 60%;
  margin: 0 auto;
  text-align: center;
}
.posted-on .updated {
  display: none;
}
.entry-footer {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 24px;
  margin-top: 100px;
}
#article-cta {
  width: 90%;
  background-color: var(--main-color);
  padding: 32px 24px;
  margin: 60px auto 0;
  font-weight: 500;
  text-align: center;
  color: #fff;
  
  p {
    margin-bottom: 24px;
  }
}
.post-thumbnail {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;

  img {
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 auto 40px;
  }
}
.nav-links {
  margin: 40px 0;

  .nav-previous, .nav-next {
    width: fit-content;
    background-color: rgba(1, 183, 172, 0.1 );
    padding: 24px;

    &:hover {
      background-color: rgba(1, 183, 172, 0.2 );
    }
  }
}

@media (min-width: 1080px) {
  .entry-header {

    h1 {
      font-size: 4rem;
    }
  }
  .entry-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    max-width: 640px;
    margin: 0 auto;
    margin-top: 100px;
  }
  #article-cta {
    width: 50%;
    
    p {
      margin-bottom: 24px;
    }
  }
} 

.page-title {
  font-weight: 300;
}
.page-header {
  margin-bottom: 80px;
}
#page {
  hr {
    border: 0;
    border-bottom: 1px solid var(--accent-color);
    margin-bottom: 80px;
  }
}
.archive {
  article {
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 40px;
    margin-bottom: 120px;
  }
}
.error-404 {
  flex-direction: column;
  width: 96%;
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}
.search-form {
  input {
    border: 1px solid var(--accent-color);
    padding: 8px 16px;
    background-color: rgba(1, 183, 172, 0.4 );
  }
  .search-submit {
    background-color: var(--context-color);
    font-weight: 500;
    color: #fff;
  }
}
