
/*-----------------------------------*\
  #style.css
\*-----------------------------------*/

/**
 * copyright 2023 datybi
 */





/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors
   */
    --medium-spring-blue: rgb(167, 213, 242);
   --medium-spring-beige: rgb(242, 227, 213);
   --medium-spring-pink: rgb(242, 155, 203);
  --oxford-blue: rgb(31,83,115,0.8);
  --oxford-blue-active: rgb(31,83,115);
  --black: hsl(0, 0%, 0%);
  --white: hsl(0, 0%, 100%);
  --marron: rgb(166, 116, 104);
  --yellow: rgb(255, 233, 0);


  /**
   * typography
   */

  --ff-roboto: "Roboto", sans-serif;

  --fs-1: 3rem;
  --fs-2: 50px;
  --fs-3: 2rem;
  --fs-4: 24px;
  --fs-5: 1.5rem;
  --fs-6: 1.4rem;

  --fw-500: 500;
  --fw-700: 700;

  /**
   * spacing
   */

  --section-padding: 100px;

  /**
   * shadow
   */

  --shadow-1: 0 0 10px hsla(0, 0%, 0%, 0.1);
  --shadow-2: 0 5px 10px hsla(0, 0%, 100%, 0.2);
  --shadow-3: 0 0 24px hsla(341, 100%, 60%, 0.3);

  /**
   * border radius
   */

  --radius-circle: 50%;
  --radius-pill: 200px;
  --radius-6: 6px;

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);

}





/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li { list-style: none; padding: 4px; }

img,
span,
button,
ion-icon { display: block;}

a {
  color: inherit;
  text-decoration: none;
}

img { height: auto; }

.img-cover:hover{
 filter: grayscale(100%);
 -webkit-transform:scale(1.05);transform:scale(1.05);
}


ion-icon { pointer-events: none; }

address { font-style: normal; }

html {
  font-family: var(--ff-roboto);
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--oxford-blue);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1.5;
  overflow-x: hidden;
};

 


body.active { overflow-y: hidden; }

:focus-visible { outline-offset: 4px; }

::-webkit-scrollbar { width: 10px; }

::-webkit-scrollbar-track { background-color: hsl(0, 0%, 98%); }

::-webkit-scrollbar-thumb { background-color: hsl(0, 0%, 80%); }

::-webkit-scrollbar-thumb:hover { background-color: hsl(0, 0%, 70%); }





/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container { padding-inline: 15px;}

.section { padding-block: var(--section-padding); }

.has-bg-image {
  
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.h1,
.h2,
.h3,
.h4 { line-height: 1.4; }

.h1 { font-size: var(--fs-2); }
.h2{font-size: 40px;}



.h4 { font-size: var(--fs-3); }

.btn {
  font-size: var(--fs-6);
  font-weight: var(--fw-700);
  text-transform: uppercase;
  max-width: max-content;
  border: 2px solid var(--white);
  padding: 18px 25px;
  border-radius: var(--radius-pill);
  transition: var(--transition-1);
}


strong {
  position: relative;

  after {
    content: '';
    position: absolute;
    bottom: -0.125rem;
    left: -0.5rem;
    right: -0.5rem;
    height: 0.75rem;
    z-index: -1;
    background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/664131/underline.svg');
    background-repeat: no-repeat;
    background-size: cover;
  }
}

.btn-primary:is(:hover, :focus) { box-shadow: var(--shadow-2); }

.w-100 { width: 100%; }

.text { font-size: var(--fs-3); }

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--light-gray);
  overflow: hidden;
}

.section-text { margin-block: 15px 35px; }

.grid-list {
  display: grid;
  gap: 30px;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-2);
}


/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header .btn { display: none; }

.header {
  background-color: var(--oxford-blue);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-block: 12px;
  box-shadow: var(--shadow-1);
  z-index: 4;
}

.header.active {
  background-color: var(--oxford-blue-active);
  position: fixed;
  animation: slideInTop 1s ease forwards;
}

@keyframes slideInTop {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-toggle-btn {
  color: #F2E3D5;
  font-size: 35px;
}

.nav-toggle-btn.active .menu,
.nav-toggle-btn .close { display: none; }

.nav-toggle-btn .menu,
.nav-toggle-btn.active .close { display: block; }

.navbar {
  position: absolute;
  top: 74px;
  left: -350px;
  width: 100%;
  max-width: 350px;
  height: 100vh;
  background-color: var(--oxford-blue);
  padding: 20px;
  transition: 0.25s var(--cubic-out);
  visibility: hidden;
}

.navbar.active {
  visibility: visible;
  transform: translateX(350px);
  transition-duration: 0.5s;
}

.navbar-item:not(:last-child) { border-block-end: 1px solid var(--black_20); }

.navbar-link {
  padding-block: 10px;
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus) { color:var(--medium-spring-pink); font-weight: bold;}

.datybi{
  text-decoration-line: underline;
}



/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero { padding-block-start: calc(var(--section-padding) + 75px); }

.hero .container {
  display: grid;
  gap: 20px;
}



.hero .counter {
  -webkit-text-stroke-width: 0.4px;
  -webkit-text-stroke-color:var(--prussian-blue);
  color: var(--medium-spring-blue);
  font-size: var(--fs-2);
  font-weight: bold;
  animation-name: miAnimacion;
  animation-duration: 2s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}

@keyframes miAnimacion {
  from {color: var(--medium-spring-blue);}
  to {color: var(--medium-spring-pink)}
  }

.hero-list { margin-block: 8px 20px; }

.hero-list-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-4);
  padding-inline-start: 20px;
  padding-block: 8px;
}

.hero-list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: var(--radius-circle);
}

.hero-list-item.yellow::before { background-color: var(--orange-peel); }

.hero-list-item.green::before { background-color: var(--malachite); }

.hero-list-item.red::before { background-color: var(--red-orange-creyola); }

.hero-banner .w-100 { animation: rotate 20s linear infinite; }

@keyframes rotate {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

iframe{
  margin-top: 15px;
}




/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.ivideo{
    width: 300px;
    height:315px;
}

.about .container {
  place-items: center;
  display: grid;
  gap: 30px;
}

/* .estres{
  background-image: url(/assets/images/fondo.png);
  background-repeat: no-repeat;
  background-size: cover;
}


.ansiedad{
  background-image: url(/assets/images/fondo_ansiedad.png);
  background-repeat: no-repeat;
  background-size: cover;
} */

.about-subtitle {
background-color: var(--oxford-blue);
  font-weight: bold;
  font-size: 30px;
  color: var(--medium-spring-beige);
}

.about .section-text { margin-block: 8px 15px; }

.about-list { margin-block-start: 30px; }

.about-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding-block: 15px;
}

.about .item-img {
  flex-shrink: 0;
  border-radius: var(--radius-circle);
}

.about .item-title { margin-block-end: 5px; }

.item-text-dual{
  font-size: var(--fs-3);
  display: flex;
  align-items: center;
  gap: 5px;
  padding-block: 2px;
}




/*-----------------------------------*\
  #SERVICE
\*-----------------------------------*/

.service { text-align: center; }

.service-list {
  display: grid;
  gap: 10px;
}

.service-card {
  background-color: var(--oxford-blue_50);
  padding: 20px;
  border-radius: var(--radius-6);
  transition: var(--transition-1);
}

.service-card .card-banner {
  max-width: max-content;
  margin-inline: auto;
  border-radius: var(--radius-circle);
}

.service-card .card-banner img { width: 95px; }

.service-card .card-title { margin-block: 20px 5px; }

.service-card :is(.card-title, .card-text) { transition: var(--transition-1); }

.service-card:hover {
  background-color: var(--white);
  transform: translateY(-5px);
}

.service-card:hover .card-title { color: var(--black); }

.service-card:hover .card-text { color: var(--dim-gray); }



.service-text{
  margin: 20px 0;

}

.service-list { margin-block: 8px 20px; }

.service-list-item {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: var(--fs-3);
  padding-inline-start: 20px;
  padding-block: 8px;
  text-align: left;
}

.service-list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top:50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: var(--radius-circle);
 
}

.service-list-item.yellow::before { background-color: var(--yellow); }

.service-banner .w-100 { animation: rotate 20s linear infinite; }

@keyframes rotate {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}




/*-----------------------------------*\
  #BLOG
\*-----------------------------------*/

.blog {
  background-image: url(/assets/images/hero-bg2.png);background-repeat: no-repeat;
  background-position: center;
  background-size: cover; }

.blog :is(.section-title, .section-text) { text-align: center; }

.blog-card :is(.card-content, .card-footer) {
  background-color: var(--oxford-blue-active);
  padding: 20px;
}

.card-content{
  border: 2px solid var(--oxford-blue-active), ;
}
.blog-card .card-title { transition: var(--transition-1); font-size: 20px; }
.card-title .wrapper{
  display: flex;
  align-items: center;
  gap: 5px;
  padding-block: 2px;
  font-size: 20px;
  font-weight: bold;
  color: var(--medium-spring-pink);
}

.blog-card .card-title:is(:hover, :focus)

.blog-card .card-meta { margin-block: 15px; }

.blog-card .card-meta .wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-block: 2px;
  font-size: 20px;
  color: var(--medium-spring-pink);
}

.card-text{
  font-size: 18px;
  border-block-start: 1px solid #F2E3D5;
  border-block-end: 1px solid #F2E3D5;
}
/* .blog-card .card-footer { border-block-start: 1px solid var(--medium-spring-pink); } */

.btn-link { font-weight: var(--fw-700); }

button{
    margin: 12px;
    padding: 5px 10px;
    text-align: left;
    font-size: 18px;
    letter-spacing: 1px;
    text-decoration: none;
    color: #F2E3D5;
    background: transparent;
    cursor: pointer;
    transition: ease-out 0.5s;
    border: 2px solid #F2E3D5 ;
    border-radius: 10px;
  
  }
  
  button:hover {
    border: 2px solid white;
    color: white;
    text-shadow: 1px 1px 2px var(--oxford-blue-active);
    box-shadow: inset 0 -100px 0 0 var(--medium-spring-pink);
  }
  
  button:active {
    transform: scale(0.9);
  }



/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer-top {
  display: grid;
  gap: 60px;
  grid-template-columns: 1fr;
}

.footer-list-title,
.footer-text { margin-block-end: 15px; }

.contact-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.contact-item:not(:last-child) { margin-block-end: 15px; }

.contact-title {
  font-size: var(--fs-5);
  font-weight: var(--fw-700);
}
.footer-list{
  display: grid;
}


.footer-list-item {
  display: flex;
  align-items: center;
  margin-block-start: 15px;
  word-break: break-all;
}
.footer-list:not(.social-list) ion-icon { font-size: 14px; }

.footer-bottom {
  padding-block: 35px;
  text-align: center;
  border-block-start: 1px solid var(--cultured_20);
}






/*-----------------------------------*\
  #BACK TO TOP
\*-----------------------------------*/

.back-top-btn {
  position: fixed;
  bottom: 10px;
  right: 20px;
  background-color: var(--medium-spring-pink);
  font-size: 18px;
  padding: 12px;
  border-radius: var(--radius-circle);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-1);
  z-index: 4;
}

.back-top-btn.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-10px);
}





/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for large than 575px screen
 */

@media (min-width: 743px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-2: 3.6rem;
    --fs-3: 2.4rem;

  }



  /**
   * REUSED STYLE
   */

  .container {

    max-width: 540px;
    width: 100%;
    margin-inline: auto;
  }

  .h2 { font-size: 50px; }

  .h4 { --fs-4: 24px; }

  .text,.service-list-item, .item-text text{ font-size: var(--fs-3); }
  .item-text text { font-size: var(--fs-3); }
 

.card-text{
    font-size: 20px;
}


.ivideo{
    width: 560px !important;
    height:315px;
}

  /**
   * HERO
   */

  .hero-list { max-width: 275px; }



  /**
   * SAFETY, FOOTER
   */

  .safety-list,
  .footer-top { grid-template-columns: 1fr; display:grid; gap: 0;}

}




@media (min-width: 550px) {
  .item-text-dual{
    font-size: var(--fs-3);
  }
}


/**
 * responsive for large than 768px screen
 */

@media (min-width: 768px) {

  /**
   * REUSED STYLE
   */

  .container { max-width: 720px; }

  .grid-list { grid-template-columns: 1fr 1fr; }



  /**
   * HERO
   */

  .hero .container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }



  /**
   * ABOUT
   */

  .about-banner { max-width: max-content; }



  /**
   * SERVICE
   */

  .service-list { grid-template-columns: 1fr; }

}

/**
 * responsive for large than 992px screen
 */

@media (min-width: 992px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-2: 6rem;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 960px; }

  .grid-list { grid-template-columns: 1fr 1fr; }

  .section-text {
    max-width: 70ch;
    margin-inline: auto;
  }



  /**
   * HEADER
   */

  .nav-toggle-btn { display: none; }

  .header {
    background-color: var(--oxford-blue);
    box-shadow: none;
    padding-block: 20px;
  }

  .header.active {
    background-color: var(--oxford-blue-active);
    box-shadow: var(--shadow-1);
  }

  .navbar,
  .navbar.active {
    all: unset;
    display:block;
  }

  .navbar-list {
    font-size: 18px;
    display: flex;
    gap: 29px;
  }

  .navbar-item:not(:last-child) { border: none; }

  .header .btn {
    display: block;
    padding-inline: 40px;
  }

  .header .btn:is(:hover, :focus) { box-shadow: var(--shadow-3); }



  /**
   * ABOUT
   */

  .about .container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .about-banner.order-1 { order: 1; }



  /**
   * SERVICE
   */

  .service-card {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
    padding: 30px;
  }

  .service-card .card-banner { flex-shrink: 0; }

  .service-card .card-title { margin-block: 0 10px; }



  /**
   * SAFETY
   */

  .safety-list { grid-template-columns: repeat(3, 1fr); }



  /**
   * FOOTER
   */

  /* .footer-top { grid-template-columns: 1fr 0.5fr 0.5fr 0.75fr; } */

}





/**
 * responsive for large than 1200px screen
 */

@media (min-width: 1200px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 3.6rem;

  }




  /**
   * REUSED STYLE
   */

  .container { max-width: 1200px; }

  .section-text {
    max-width: 75ch;
    margin-block-end: 60px;
  }

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



  /**
   * HEADER
   */

  .navbar { margin-inline: auto 40px; }



  /**
   * HERO
   */

  .hero .counter { font-size: 60px;}
  .hero .hero-title {font-size: 50px;}



  /**
   * SAFETY
   */

  .safety .section-text { margin-block-end: 80px; }

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

}