* {
    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: 30vh;
    padding: 20px;
}
nav{
    height: 100%;
    width: 100%;
}

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

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

.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'); }
.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 {
    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;
    top: 0; left: 0;
    width: 100vw; 
    height: 100vh;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.gallery-images.active{
    display: flex;
}
.gallery-images .container-fluid {
    max-width: 1000px;
    width: 100%;
    height: auto;
}
.gallery-images .row {
    width: 100%;
    height: 400px;
}
#gallery_cover {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 1rem;
}
#gallery_cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
#gallery_images {
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
}
#gallery_images img {
    width: 100%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex: 1 1 0;
    min-height: 0;
    max-height: 200px;
}
#gallery_detail {
    margin-top: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

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;
  }
}
.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%;
}

#galleryCarousel {
    width: 600px;
    height: 400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    background: #222;
}

#galleryCarousel .carousel-inner {
    width: 100%;
    height: 100%;
}

#galleryCarousel .carousel-item {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

#galleryCarousel .carousel-item.active {
    display: flex !important;
}

#galleryCarousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    display: block;
}

#gallery_detail {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    word-break: break-word;
    border-radius: 0 0 25px 25px;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
}

#gallery_detail span {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

#galleryCarousel .carousel-item {
    position: relative;
    display: none;
    transition: none;
}

#galleryCarousel .carousel-item.active {
    display: flex !important;
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}

.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);
  }
  

/* Galería emergente responsiva */
.gallery-images .container-fluid {
  max-width: 1000px;
  width: 100%;
  height: auto;
  padding: 0;
}

#galleryCarousel {
  width: 600px;
  height: 400px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  background: #222;
}

@media (max-width: 900px) {
  #galleryCarousel {
    width: 90vw;
    height: 45vw;
    min-height: 220px;
    min-width: 220px;
    max-width: 98vw;
    max-height: 60vw;
  }
}

@media (max-width: 600px) {
  #galleryCarousel {
    width: 98vw;
    height: 60vw;
    min-height: 180px;
    min-width: 180px;
    max-width: 100vw;
    max-height: 70vw;
  }
  .gallery-images .container-fluid {
    padding: 0 2vw;
  }
  #gallery_detail {
    font-size: 1rem;
    padding: 0.5rem 0.2rem;
  }
}

#galleryCarousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
  display: block;
}
  
@media (max-width: 600px) {
  #event_name {
    font-size: 1.3rem !important;
    word-break: break-word;
    white-space: normal;
    line-height: 1.2;
    max-width: 90vw;
    display: block;
  }
  #event_place {
    font-size: 1.2rem !important;
    word-break: break-word;
    white-space: normal;
    max-width: 70vw;
    display: inline-block;
    vertical-align: middle;
  }
  #event_date {
    font-size: 1.2rem !important;
    word-break: break-word;
    white-space: normal;
    max-width: 70vw;
    display: inline-block;
    vertical-align: middle;
  }
  .container-events .contenido {
    width: 100% !important;
    min-width: 0;
    max-width: 100vw;
  }
}

