* {
    box-sizing: border-box;
}


@font-face {
    font-family: 'TituloFont';
    src: url('public/assets/fonts/title.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'BodyFont';
    src: url('public/assets/fonts/body.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root{
    --color1: #f4ece4;
    --color2: #aea9a0;
    --color3: #19b0df;
    --color4: #042c3c;
    --radius: 25px;
}
html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}
body{
    background-color: white;
    height: 100vh;
    width: 100vw;
    padding: 0;
    margin: 0;
}

p{
    font-family: 'BodyFont', Arial, sans-serif;
}

header{
    min-height: 15vh;
    padding: 20px;
}
nav{
    height: 100%;
    width: 100%;
}

main{
    min-height: 85vh;
}
footer{
    min-height: 25vh;
    background-color: var(--color4);
}
section{
    min-height: 90vh;
}

h1, h2, h3, .titulo, .h2-title , .title{
    font-family: 'TituloFont', Arial, sans-serif;
}

.section-home-margin{
  margin-top: 150px;
  margin-bottom: 150px;
}

.section-home-one, .section-services, .section-home-two, .section-home-three {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: white;
}
.section-home-one { background-image: url('public/assets/images/banners/INICIO.png'); display: flex; }
.section-home-one p{
    text-align: justify;
}
.section-services { background-image: url('public/assets/images/banners/SERVICIOS.jpg'); min-height: auto;}
.section-home-two { background-image: url('public/assets/images/banners/BANNER FRASE.jpg'); min-height: 70vh; }
.section-home-three { background-image: url('public/assets/images/banners/BANNER NEWSLETTER.jpg'); min-height: 70vh; }

.article-cds, .article-mision-vision {
    width: 100%;
    text-align: justify;
}
.article-mision-vision{
    background-color: var(--color1);
    padding: 40px;
}

.circle{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color3);
}

.article-service{
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100%;
    text-align: center;
}

.article-service img, .section-bio img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
    display: block;
}
.article-service img {
    height: 250px;
}
.article-service h3{
    font-size: 1.7rem;
    font-weight: bold;
    margin-top: 50px;
}

.article-service .btn{
    color: black;
    background-color: white;
    border-radius: 15px;
    width: fit-content;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
}

.article-service .container-p{
    height: 120px;
    margin-top: 40px;
}

.article-service .container-p p{
    font-size: 0.9rem;
}

.section-bio p{
    text-align: justify;
    font-size: 0.9rem;
    line-height: 1.3;
}

.section-bio {
  padding-top: 150px;
  padding-bottom: 150px;
  background-color: var(--color1) !important;
}

.section-bio .b-rounded{
    background-color: white;
    border-radius: 20px;
    width: fit-content;
}

.h2-title{
    color: var(--color3);
    font-size: 1rem;
}

.ul-sections-cds{
    width: 90%;
    height: 150px;
}
.ul-sections{
    width: 80%;
    border-bottom: 2px solid rgba(0, 0, 0, 0.5);
}

.i-icon, footer .i-icon, .section-home-three .i-icon {
    border-radius: 50%;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
}
.i-icon {
    color: var(--color2);
    border: 2px solid var(--color2);
}
footer .i-icon {
    color: var(--color3);
    border: 2px solid var(--color3);
}
.section-home-three .i-icon {
    color: white;
    border: 2px solid white;
}

.btn-arrow{
    background-color: var(--color1);
    border: none;
    border-radius: 50%;
    height: 50px;
    width: 50px;
}

.container-img{
    color: white;
    height: 500px;
    border-radius: var(--radius);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.gallery-images {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.gallery-images.active {
  display: flex;
}

#galleryCarousel {
  width: 90vw;
  max-width: 800px;
  border-radius: 1rem;
  overflow: hidden;
}

#galleryCarousel img {
  max-height: 80vh;
  object-fit: contain;
  width: 100%;
}

#gallery_detail {
  max-width: 800px;
  font-size: 1.2rem;
  line-height: 1.6;
}

#gallery_carousel_inner {
  max-width: 100%;
}

#gallery_carousel_inner .carousel-item {
  height: 500px; 
}

#gallery_carousel_inner .carousel-item img {
  width: 100%;           
  height: 500px;         
  object-fit: cover;     
  border-radius: 25px; 
  margin: auto;
  display: block;
}

a{
    color: black;
}
footer a, footer h2, footer p{
    color: white;
}

.sections{
    min-height: 30vh;
}

.container-events {
    position: relative;
    height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
}

.bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('public/assets/images/C1.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0 , 0, 0.1) 10%,
        rgba(25, 176, 223, 1) 65%
    );
    z-index: 2;
}

.contenido {
    position: relative;
    z-index: 3;
}

.sections .videos{
    height: 300px;
}

iframe {
    height: 100%;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.section-home-two h3{
    font-size: 3rem;
}
.section-home-two h2{
    font-size: 5rem;
}

.blog p, .inicio p, .section-bio p {
    font-size: 1.1rem !important;
    text-align: justify;
    line-height: 1.3;
}

@media (max-width: 767.98px) {
  header h1 {
    font-size: 1.5rem !important;
  }
  .i-icon {
    font-size: 1.2rem !important;
  }
  .container-home-one {
    text-align: center;
    padding: 2rem 0;
  }
  .section-home-one h2 {
    font-size: 1.5rem;
  }

  .section-home-margin {
      margin-top: 60px;
      margin-bottom: 60px;
    }
    .section-bio{
      padding-top: 60px !important;
      padding-bottom: 60px !important;
    }
    .article-mision-vision{
      margin-top:  60px;
    }

    .subtitle{
      font-size: 1.4rem !important;
    }

    .subtitle-size{
      font-size: 1.2rem !important;
    }

    .container-home-one,
    .article-cds,
    .article-mision-vision,
    .section-bio,
    .section-services,
    .h2-title-margin,
    .section-blog p,
    .section-blog h2,
    .section-blog .title,
    .section-blog img,
    .section-home-three .three,
    .section-blog-list h2,
    .container.section-home-margin {
      padding-left: 1rem !important;
      padding-right: 1rem !important;
    }

    #galeria, #eventos, .videos_responsive{
      padding-left: 2rem !important;
      padding-right: 2rem !important;
    }

    #blogs, #recent_blog{
      padding-right: 1rem !important;
      padding-left: 1rem !important;
    }

    .section-blog-list a{
      margin-left: 1rem !important;
      margin-right: 1rem !important;
    }

    .article-cds p,.article-mision-vision p, .section-bio p, p {
      font-size: 0.9rem !important;
    }
    .circle-responsive{
      font-size: 2rem !important;
    }
    footer{
      padding-top: 60px;
      padding-bottom: 60px;
    }
    .blog-recent-responsive{
      display: flex;
      justify-content: center;
      flex-direction: column;
      align-items: center;
    }

    .blog-recent-responsive a{
      width: 100%;
    }

    .section-home-two .one{
      font-size: 1.5rem !important;
    }
    .section-home-two .two{
      font-size: 2rem !important;
    }

    .section-home-two {
      min-height: 45vh;
    }

    .section-home-three button{
      width: 100%;
    }
    .container-img {
      height: 200px !important;
      min-height: 150px !important;
      max-height: 250px !important;
      width: 100% !important;
    }
    .container-img > div {
      padding: 0.5rem !important;
    }

    .container-events .contenido {
      width: 100% !important;
    }
}
.nav-link {
  color: #222 !important;
  font-family: 'BodyFont', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
}
.nav-link.active, .nav-link:focus, .nav-link:hover {
  color: var(--color3) !important;
}

.container-img {
    aspect-ratio: 1/1;
    height: auto !important;
    min-height: 250px;
    max-width: 100%;
}


.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 60px;
    text-decoration: none;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: breathe 2s ease-in-out infinite;
  }
  
  .whatsapp-btn i {
    color: #fff;
    font-size: 24px;
    animation: beat 2s ease-in-out infinite;
    text-decoration: none;
  }
  
  @keyframes breathe {
    0% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
      box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
  }
  
  @keyframes beat {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
  }

.blog-title-ellipsis, .blog-title-ellipsis {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    text-overflow: ellipsis;
    white-space: normal !important;
    min-height: 2.8em;
    max-height: 2.8em;
    font-size: 1.3rem ;
    line-height: 1.4em;
}

@keyframes fadeInUpSoft {
    0% {
      opacity: 0;
      transform: translateY(12px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes fadeInLeftSoft {
    0% {
      opacity: 0;
      transform: translateX(-24px);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }
  @keyframes fadeInRightSoft {
    0% {
      opacity: 0;
      transform: translateX(24px);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }
  .fade-in-up {
    opacity: 0;
    transition: opacity 0.9s;
  }
  .fade-in-up.visible {
    animation: fadeInUpSoft 1.8s cubic-bezier(0.23, 1, 0.32, 1) both;
    opacity: 1;
  }
  .fade-in-left {
    opacity: 0;
    transition: opacity 0.9s;
  }
  .fade-in-left.visible {
    animation: fadeInLeftSoft 1.8s cubic-bezier(0.23, 1, 0.32, 1) both;
    opacity: 1;
  }
  .fade-in-right {
    opacity: 0;
    transition: opacity 0.9s;
  }
  .fade-in-right.visible {
    animation: fadeInRightSoft 1.8s cubic-bezier(0.23, 1, 0.32, 1) both;
    opacity: 1;
  }
  .fade-in-up:hover {
    filter: brightness(1.1);
  }
  
.custom-navbar-toggler {
    top: 1rem;
    right: 1rem;
    z-index: 2001;
    background: none;
    border: none;
    outline: none;
    padding: 0.5rem;
    display: block;
}
.custom-navbar-toggler-icon {
    display: block;
    width: 2rem;
    height: 2rem;
    background: url('data:image/svg+xml;utf8,<svg viewBox=\'0 0 30 30\' xmlns=\'http://www.w3.org/2000/svg\'><path stroke=\'rgba(0,0,0,0.7)\' stroke-width=\'2\' stroke-linecap=\'round\' stroke-miterlimit=\'10\' d=\'M4 7h22M4 15h22M4 23h22\'/></svg>') center/contain no-repeat;
}
.custom-offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 90vw;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 16px rgba(0,0,0,0.2);
    z-index: 2002;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    padding: 2rem;
    flex-direction: column;
}
.custom-offcanvas.open {
    transform: translateX(0);
}
.custom-offcanvas-header {
    display: flex;
    justify-content: flex-end;
}
.custom-btn-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}
.custom-offcanvas-body {
    flex: 1;
    overflow-y: auto;
}
.custom-offcanvas-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}
.custom-offcanvas-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.custom-offcanvas.open ~ .custom-offcanvas-backdrop {
    opacity: 1;
    pointer-events: all;
}
@media (min-width: 768px) {
    .custom-navbar-toggler, .custom-offcanvas, .custom-offcanvas-backdrop {
        display: none !important;
    }
}

