/********** Template CSS **********/
:root {
    --primary: #26aa0b;
    --light: #fff5f3;
    --dark: #0f6b12;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/* Evita scroll horizontal en todo el sitio */
html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}


/* Corrige filas de Bootstrap (row mete márgenes negativos) */
.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Corrige columnas que podrían desbordar */
.row > [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Imágenes responsivas siempre dentro de su contenedor */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Asegura que imágenes o contenido dentro de tarjetas no rompan el ancho */
.col img, .card img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Las tarjetas se comportan bien en móvil */
.row.g-0 > [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* En tablets (768px - 991px) */
@media (min-width: 739px) and (max-width: 955px) {
  .row.desktop-gutters > [class*="col-"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* En desktop (992px en adelante) */
@media (min-width: 990px) {
  .row.desktop-gutters > [class*="col-"] {
    padding-left: 6px !important;
    padding-right: 27px !important;
  }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.container-fluid.p-0.mb-5.position-relative {
  margin-bottom: 0 !important;
    font-family: 'Comic Neue', cursive;
}

.header-carousel {
    position: relative; 
    overflow: hidden;
}

/* Estilos Flip Cards */
.flip-cards-over-carousel {
    position: relative;
    margin: 2rem auto 3rem auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 95%;
    z-index: 1;
}

/* Tarjetas flotantes en desktop */
.tarjetas-flotantes {
  position: absolute;
  bottom: -68px;
  left: 50%;
  transform: translateX(-50%);
  width: 103%;
  z-index: 11;
}

/* En móviles/tablets desactivar hover */
@media (max-width: 991px) {
    .tarjetas-flotantes {
      position: static;
      transform: none;
      margin-top: 20px;
    }

    .flip-card-front {
      background-color: #2a7452; 
      border-radius: 41px;
      overflow: hidden;
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 15px;
      text-align: center;
      color: #aad3c0;
    }
}
/* Para que las columnas ocupen todo el ancho en móvil */
@media (max-width: 767px) {
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Hover SOLO en escritorio */
@media (min-width: 992px) {
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

/* Y forzar que se voltee solo con la clase que pones en JS */
.flip-card.show-back .flip-card-inner {
  transform: rotateY(180deg);
}

/* Botones móviles */
.flip-btn, .back-btn {
  margin-top: 10px;
  padding: 6px 12px;
  background-color: #ffffff;
  color: green;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.floating-cards .card {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Tarjetas circulares */
.flip-card {
    width: 200px;   /* ancho fijo */
    height:200px;  /* mismo que el ancho → círculo */
    perspective: 1000px;
    margin: auto;   /* opcional, centrado */
   
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 50%; /* asegura círculo al girar */
    z-index: 1; /* asegura que quede arriba de la figura */
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%; /* círculo */
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    text-align: center;
    overflow: hidden;
}

/* Frente */
.flip-card-front {
    background-color: #2a7452;
    color: #aad3c0;
}

/* Reverso */
.flip-card-back {
    background: #333;
    transform: rotateY(180deg);
    color: #fff;
}
@media (max-width: 768px) {
  .flip-card {
    width: 300px;
    height: 300px;
  }
}


.tarjeta-con-fondo {
  position: relative;
}

.tarjeta-con-fondo::before {
  content: "";
  position: absolute;
  top: -56px;   
  left: -39px;  
  width: 120%;  
  height: 156%;
  background: url('../img/mancha.png') no-repeat center;
 background-size: 310px 310px; 
  opacity: 0.4; 
  z-index: 0;
  pointer-events: none; 
}

.tarjeta-con-fondo .flip-card {
  position: relative;
  z-index: 1;
}

/* Ajuste para móvil */
@media (max-width: 768px) {
  .tarjeta-con-fondo::before {
    top: -85px;
    left: -105px;
    width: 155%;
    height: 155%;
    background-size: contain; /* que siempre se ajuste */
      opacity: 0.3;
  }
}

/* Extra pequeño */
@media (max-width: 416px) {
  .tarjeta-con-fondo::before {
    top: -74px;
    left: -84px;
    width: 155%;
    height: 152%;
    background-size: contain;
      opacity: 0.3;
  }
}
/* Título */
.flip-card-front .card-content h4 {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

@media (min-width: 992px) {
/* Imagen con borde curvo arriba */
.flip-card-front .card-image img {
  width: 100%;
  display: block;
  border-top-left-radius: 92% 74%;
  border-top-right-radius: s 35%;
  margin-top: 61px;
  margin-left: 38px;
}
}

/* Media Query para texto del carrusel */
@media (max-width: 480px) {
    .carousel-top-text {
        top: 48px;
    }
    .carousel-bottom-text {
        top: -200px;
    }
}
.flip-card-front .card-image img {
  width: 100%;
  display: block;
  border-top-left-radius: 63% 34%;
  border-top-right-radius: 20% -23%;
  margin-top:-9px;
  margin-left: 22px;
}



@media (max-width: 991px) {
    .ondulacion-inferior {
        width: 102%;
        line-height: 0;
    }
}
    
.ondulacion-inferior svg {
    display: block;
    width: 148%;
    height: 88px;
    position: relative;
    top:1px;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: 0.5s;
}

.btn.btn-primary {
    color: #ffffff;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}

/*** Heading ***/
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    /*font-family: 'Baloo 2', cursive;*/
    font-family: 'Fredoka', sans-serif;
    /*font-family: "Lobster Two", cursive;*/
    font-weight: 700;
}

h5,
h6,
.h5,
.h6 {
    font-weight: 600;
}

.font-secondary {
    font-family: "Lobster Two", cursive;
}

/* Contenedor del logo, este me ayuda a que el logo se mantenga en el mismo lugar aunque cambie el tono de la barra*/
.logo-wrapper {
  width: 229px;   /* ancho fijo según tu logo */
  height: 100px;   /* alto fijo */
  position: relative;
  overflow: hidden;
}

/* Logos en la misma posición */
.logo-wrapper .logo {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transition: opacity 0.4s ease;
}

/* Estado inicial */
.logo-white { opacity: 1; }
.logo-color { opacity: 0; }

/* Cuando el navbar se vuelve blanco */
.navbar.scrolled .logo-white { opacity: 0; }
.navbar.scrolled .logo-color { opacity: 1; }



/*** Navbar ***/
.navbar .navbar-nav .nav-link {
    padding: 33px 15px;
    color: var(--dark);
    font-weight: 500;
    outline: none;
}


.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar.sticky-top {
    top: -100px;
    transition: 0.5s;
    padding-top: -1.8rem; /* reduce espacio superior */
    padding-bottom: -2.6rem; /* reduce espacio inferior */
    min-height: 50px; /* ajusta según necesites */
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: 0.5s;
}

.navbar .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(-180deg);
}
/* Navbar transparente por defecto */
.navbar {
  background: transparent !important;
  transition: background 0.4s ease, padding 0.4s ease;
}

/* Navbar cuando se hace scroll */
.navbar.scrolled {
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Colores de los links según estado */
.navbar .nav-link,
.navbar-brand {
  color: #fff !important;
  transition: color 0.3s ease;
}

.navbar.scrolled .nav-link,
.navbar.scrolled .navbar-brand {
  color: #000 !important;
}
/* Blanco cuando NO hay .scrolled */
.navbar:not(.scrolled)   .navbar-toggler-icon { filter: invert(1) brightness(1.2); }

/* Normal cuando sí hay .scrolled */
.navbar.scrolled .navbar-toggler-icon { filter: none; }
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #eeeeee;
    }
}

@media (min-width: 992px){
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: calc(100% - 15px);
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: 0.5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: 0.5s;
        opacity: 1;
    }
    
}

.page-header {
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Estilos del modal */
#gifModal {
    /* Oculto por defecto */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    opacity: 1;
}

#gifModal.hide {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: transparent;
    max-width: 90%;
    width: 303px;
    padding: 10px;
    box-sizing: border-box;
    border: none; /* Quita el borde */
    outline: none; /* Quita el contorno al hacer foco */
}

/* Media Query /* Móviles (hasta 480px) */
@media (max-width: 480px) {
    .modal-content {
        width: 90%;
        max-width: 300px;
    }
}

/* Tabletas (481px a 1024px) */
@media (min-width: 481px) and (max-width: 1024px) {
    .modal-content {
        width: 80%;
        max-width: 400px;
    }
}

/* Media Query para pantallas grandes */
@media (min-width: 1024px) {
    .modal-content {
        width: 700px;
    }

    .modal-content img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}

.conocemas-btn {
    background-color: white; /* Fondo blanco */
    color: #157347; /* Texto verde */
    border: 2px solid #157347; /* Borde verde */
    padding: 5px 12px; /* Más compacto que antes */
    font-size: 0.85rem; /* Texto pequeño */
    display: inline-block; /* Se ajusta al contenido */
    border-radius: 20px; /* Bordes redondeados */
    max-width: 120px; /* Limita ancho máximo */
    text-align: center; /* Texto centrado */
    transition: all 0.3s ease; /* Animación suave */
    text-decoration: none; /* Quita subrayado */
}

.conocemas-btn:hover {
    background-color: #157347; /* Fondo verde al pasar cursor */
    color: white; /* Texto blanco al pasar cursor */
}

/*** Facility ***/
.facility-item .facility-icon {
    position: relative;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-item .facility-icon::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
    transition: 0.5s;
    z-index: 1;
}

.facility-item .facility-icon span {
    position: absolute;
    content: "";
    width: 15px;
    height: 30px;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.facility-item .facility-icon span:last-child {
    left: auto;
    right: 0;
}

.facility-item .facility-icon i {
    position: relative;
    z-index: 2;
}

.facility-item .facility-text {
    position: relative;
    min-height: 250px;
    padding: 30px;
    border-radius: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
}

.facility-item .facility-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
    transition: 0.5s;
    z-index: 1;
}

.facility-item .facility-text * {
    position: relative;
    z-index: 2;
}

.facility-item:hover .facility-icon::before,
.facility-item:hover .facility-text::before {
    background: transparent;
}

.facility-item * {
    transition: 0.5s;
}

.facility-item:hover * {
    color: #ffffff !important;
}

/*** About ***/
.about-img img {
    transition: 0.5s;
}

.about-img img:hover {
    background: var(--primary) !important;
}

/*** Classes ***/
.classes-item {
    transition: 0.5s;
}

.classes-item:hover {
    margin-top: -10px;
}

/*** Team ***/
.team-item .team-text {
    position: absolute;
    width: 250px;
    height: 250px;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #ffffff;
    border: 17px solid var(--light);
    border-radius: 250px;
    transition: 0.5s;
}

.team-item:hover .team-text {
    border-color: var(--primary);
}

/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}
.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--primary);
    border-radius: 45px;
    font-size: 20px;
    transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

/* Footer */

.footer {
    position: relative;
    background: url("../img/footer.jpeg") center center / cover no-repeat; /* banner */
    color: #fff;
    z-index: 1;
    font-size: 15px;
  line-height: 1.6;
    margin-top: 4px;
}

/* Overlay oscuro encima de la imagen */
.footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 54, 31, 0.76); /* negro con 60% opacidad */
    z-index: 0;
}

/* Todo el contenido debe estar arriba del overlay */
.footer .container,
.footer .copyright {
    position: relative;
    z-index: 1;
         
}


.footer h3 {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
}

.footer h3::after {
  content: "";
  width: 40px;
  height: 3px;
  background: #26aa0b;
  position: absolute;
  left: 0;
  bottom: -8px;
  border-radius: 2px;
}

.footer p,
.footer a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover {
  color: #fff;
  padding-left: 3px;
}

/* Botones enlaces rápidos */
.footer .btn-link {
  display: inline-block;
  padding: 10px 18px;
  margin: 6px 0;
  border: 2px solid #fff;
  border-radius: 25px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  background: transparent;
  z-index: 1; /* asegúrate de que el texto esté arriba */
}

/* Eliminamos pseudo-elemento que tapaba el texto */
.footer .btn-link::before {
    transform: rotate(45deg);
}

/* Hover: fondo verde, texto blanco y leve flotación */
.footer .btn-link:hover {
  color: #fff;                  /* texto blanco */
  background-color: #26aa0b;    /* fondo verde sólido */
  transform: translateY(-4px);  /* sube un poco */
  font-weight: 600;
  border-color: #26aa0b;        /* bordes del mismo color */
}


/* ===== BOTONES REDES SOCIALES ===== */
.footer .btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
  font-size: 18px;
  margin-right: 10px;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.footer .btn-social::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: #26aa0b;
  top: 100%;
  left: -50%;
  transform: rotate(45deg);
  transition: 0.4s;
  z-index: 0;
}

.footer .btn-social:hover::before {
  top: -30%;
}

.footer .btn-social i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease-in-out;
}

.footer .btn-social:hover i {
  transform: rotate(360deg) scale(1.2);
  color: #fff;
}


.footer .footer-menu a {
  margin: 0 10px;
  font-size: 14px;
}

.footer .footer-menu a:hover {
  color: #26aa0b;
}

/* ==== Footer Layout en columnas ==== */
.footer .container .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
  gap: 30px;
    margin-top: 2px;
}

/* Copyright siempre abajo, centrado */
.footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px 0;
  font-size: 14px;
  color: #bbb;
  text-align: center;     /* centra el texto */
  display: block;         /* fuerza a ocupar toda la fila */
  width: 300%;            /* ocupa el ancho completo */
  margin-top: -56px;       /* separa del contenido */
  grid-column: 1 / -1;    /* ocupa todo el ancho en grid */
}



/* ==== Responsive ==== */
@media (max-width: 768px) {
  .footer .container .row {
    grid-template-columns: 1fr; /* en móvil: 1 columna */
    text-align: center;
  }

  .footer h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Centrado de redes sociales en móvil */
@media (max-width: 768px) {
  .footer .d-flex {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
    .footer .copyright {
  width: 100%;            /* ocupa el ancho completo */
          margin-top: 45px; 
}
    .footer .col img {
  position: relative; /* evita absolute */
  display: block;
  margin-top: 72px;
  margin-left: 5px;
  margin-right: 143px;
  border-radius: 10px;
}
}

.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    /* Distancia desde abajo */
    left: 20px;
    /* Distancia desde la derecha */
    z-index: 9999;
    /* Asegura que el icono esté por encima de otros elementos */
    transition: transform 0.3s ease-in-out;
}

.whatsapp-icon:hover {
    transform: scale(1.1);
    /* Cambia el tamaño del icono al pasar el cursor sobre él */
}

.block-img-video-1-wrap .block-img-video-1 {
    position: relative;
    margin-top: -10rem;
}

@media (max-width: 991.98px) {
    .block-img-video-1-wrap .block-img-video-1 {
        margin-top: -6rem;
    }
}

.block-img-video-1 > a {
    display: block;
    position: relative;
    cursor: pointer;
}

.block-img-video-1 > a .icon {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-block;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background: #fff;
    -webkit-transition: 0.3s all ease-in-out;
    -o-transition: 0.3s all ease-in-out;
    transition: 0.3s all ease-in-out;
}

.block-img-video-1 > a .icon > span {
    position: absolute;
    top: 50%;
    font-size: 0.8rem;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    color: #000;
}

.block-img-video-1 > a:hover .icon {
    background: #fff;
    width: 90px;
    height: 90px;
}

/* Agregamos estilos para el enlace que ocupará todo el espacio */
.full-link {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1;
}

/* Aseguramos que el ícono sea clickeable en toda su área */
.icon {
    display: inline-block;
    /* Agrega aquí el tamaño deseado para el ícono, por ejemplo, width: 50px; height: 50px; */
    /* También puedes ajustar otros estilos del ícono si es necesario */
    opacity: 0.5;
    /* Ajusta el valor de la opacidad según desees (0.0 a 1.0) */
}

/* Color inicial del borde */
.btn-primary {
    border-color: #2bff00;
}

/* Color del borde cuando se hace clic */
.btn-primary.clicked {
    border-color: #00ff0d;
}

.sidebar-box {
    margin-bottom: 30px;
    padding: 25px;
    font-size: 15px;
    width: 100%;
    background: #fff;
}

.sidebar-box *:last-child {
    margin-bottom: 0;
}

.sidebar-box h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
}

.block-21 .blog-img {
    display: block;
    height: 80px;
    width: 80px;
}

.block-21 .text {
    width: calc(100% - 100px);
}

.block-21 .text .heading {
    font-size: 16px;
    font-weight: 400;
}

.block-21 .text .heading a {
    color: #000000;
}

.block-21 .text .heading a:hover,
.block-21 .text .heading a:active,
.block-21 .text .heading a:focus {
    color: #268819;
}

.block-21 .text .meta > div {
    display: inline-block;
    font-size: 12px;
    margin-right: 5px;
}

.block-21 .text .meta > div a {
    color: gray;
}

.blog-img,
.user-img {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.tagcloud a {
    text-transform: uppercase;
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 7px;
    margin-right: 4px;
    border-radius: 4px;
    color: #000000;
    border: 1px solid #ccc;
    font-size: 11px;
}
.tagcloud a:hover {
    border: 11px solid #000;
}
/* Fondo semitransparente para menú hamburguesa */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(0, 0, 0, 0.73); /* negro con opacidad */
    padding: 1rem;
    border-radius: 0 0 15px 15px; /* opcional, bordes redondeados */
  }

  .navbar-collapse .nav-link {
    color: #fff !important; /* aseguramos que los links sean legibles */
  }
}
/* Fondo transparente SOLO cuando navbar NO tiene .scrolled */
@media (max-width: 991px) {
  .navbar:not(.scrolled) .navbar-collapse {
    background: rgba(0, 0, 0, 0.6); /* Fondo negro translúcido */
    padding: 1rem;
    border-radius: 0 0 15px 15px;
  }

  /* Links visibles sobre carrusel */
  .navbar:not(.scrolled) .navbar-collapse .nav-link {
    color: #fff !important;
  }

  /* Cuando hago scroll → quito fondo */
  .navbar.scrolled .navbar-collapse {
    background: transparent !important;
  }

  .navbar.scrolled .navbar-collapse .nav-link {
    color: #000 !important; /* negro porque navbar ya es blanco */
  }
}

/* En móviles y tablets, ajustamos la altura */
@media (max-width: 768px) {
  .mySwiper {
    height: 67vh; /* más pequeño en móvil */
      margin-top: -4px; /* súbelo, ajusta este valor según tu navbar */
}

  }

@media (max-width: 480px) {
  .mySwiper {
    height: 68vh; /* aún más pequeño en celular chico */
       /* súbelo, ajusta este valor según tu navbar */
  }
}

/* Contenedor del carrusel */
.mySwiper {
  position: relative;
  z-index: 1;
  height: 72vh; /* alto fijo en desktop/tablets */
  max-height: 800px;
  overflow: hidden; /* para que el overlay no se salga */
}

/* Cada slide */
.mySwiper .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Imagen de fondo */
.mySwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  position: relative;
}

/* Overlay oscuro SOLO sobre la imagen */
.mySwiper .swiper-slide::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45); /* ajusta la intensidad */
  z-index: 2; /* encima de la imagen, pero debajo del texto */
  pointer-events: none;
}

/* Texto encima del overlay */
.overlay-text {
  position: absolute;
  top: 51%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 87%;
  text-align: center;
  color: #fff !important; /* fuerza color blanco */
  z-index: 3; /* encima de overlay y navbar si es necesario */
  opacity: 1 !important; /* asegurar que no se vea transparente */
}

/* Títulos principales */
.overlay-text h1{
    animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 0.5s; /* ajusta cuando empieza */
  font-family: 'Fredoka', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.1;
  color: #fff;
}

.overlay-text p {
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 1s; /* un poquito después del h1 */
}

/* Ondulación aún más arriba */
.ondulacion-inferior {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 3; /* lo más alto */
}

/* Texto responsivo tablet */
@media (max-width: 992px) {
  .overlay-text h1 { font-size: 3.2rem; }
  .overlay-text p { font-size: 1.1rem; }
.overlay-text {
  position: absolute;
  top: 66%;
  left: 50%;
    }
}

/* Texto responsivo móvil */
@media (max-width: 576px) {
  .overlay-text h1 { font-size: 2.8rem; }
  .overlay-text p { font-size: 1rem; }
    .overlay-text {
  position: absolute;
  top: 66%;
  left: 50%;
    }
}

/* Animación de fade-in desde su lugar */
@keyframes fadeIn {
  from {
    opacity: 0; /* completamente transparente */
  }
  to {
    opacity: 1; /* completamente visible */
  }
}

.overlay-text h1,
.overlay-text p {
  opacity: 0; /* start invisible */
}


/* seciòn de mosaico */
/* SECCIÓN ABOUT */
.about-collage {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Imagen grande doble tamaño */
  grid-template-rows: repeat(2, 2fr);
  gap: 10px;
  position: relative;
  margin-bottom: -31px; /* espacio extra entre collage y texto */
  margin-right: 18px;
  
}



.img-large {
  grid-row: 1 / span 2; /* Ocupa dos filas */
  overflow: hidden;
  border-radius: 10px;
}

.img-small-top,
.img-small-bottom {
  overflow: hidden;
  border-radius: 10px;
}

.img-large img,
.img-small-top img,
.img-small-bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease; /* para hover suave */
}

/* Efecto hover */
.about-collage img:hover {
  transform: scale(1.05);
}

/* Para tabletas y móviles, mantener la forma del collage pero reducir tamaño */
@media (max-width: 1024px) { /* tabletas */
  .about-collage {
    gap: 8px;
  }

  .img-large,
  .img-small-top,
  .img-small-bottom {
    height: auto;
      margin-top: 1px;
  }
}

@media (max-width: 768px) { /* móviles */
  .about-collage {
    gap: -26px;
  }

  .img-large,
  .img-small-top,
  .img-small-bottom {
    height: auto;
  }

  .col-lg-6.ps-lg-5 {
    padding-left: 0;
    margin-top: 45px;
    
  }
}

/* Separar texto del collage solo en desktop */
@media (min-width: 992px) {
  .col-lg-6.ps-lg-5 {
    padding-left: 13px; /* ajusta según el espacio que quieras */
  }
}

#inscribete {
  position: relative;  
}


#floating-image {
  opacity: 0;
  position: fixed;
  bottom: 27px;
  right: 58px;
  width: 205px;
  height: auto;
  transition: opacity 0.8s ease; /* fade suave */
  z-index: 3;
}

/* Entrada con rebote */
#floating-image.show {
  opacity: 1;
  animation: enterBounce 0.8s ease forwards;
}

/* Movimiento flotante */
#floating-image.float {
  animation: floatY 3s ease-in-out infinite alternate;
  opacity: 1;
}

/* Fade out */
#floating-image.hide {
  opacity: 0;
}

/* --- Animaciones --- */
@keyframes enterBounce {
  0%   { transform: translateY(50px) scale(0.9); opacity: 0; }
  60%  { transform: translateY(-10px) scale(1.1); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes floatY {
  from { transform: translateY(0); }
  to   { transform: translateY(-15px); }
}


/* movi ya bien */
@media (max-width: 991px) {
    #floating-image {
   position: relative;
    bottom: auto;
    right: auto;
      left: 101px;
    margin: -66px auto 0; 
    display: block;
    transform: translateX(0) translateY(0); 
    width: 186px;
        top: 49px;
        z-index: 0;
  }

}


.postit {
  position: relative;
  width: 100%;
  min-height: 444px;       /* tamaño del postit */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: justify;
  font-family: 'Comic Sans MS', cursive, sans-serif; /* opcional */
  color: #333;
}

/* SOLO el fondo con rotación */
.postit-bg {
  background-image: url("../img/postic.png"); /* tu imagen */
  background-size: contain;  
  background-repeat: no-repeat; 
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-1deg); /* inclinación */
  z-index: 0;
}

/* Estilo base (desktop) */
.postit-content {
  position: relative;
  z-index: 2;
  padding: 66px 78px 68px;
  text-align: justify;
    font-family: 'Fredoka', sans-serif;
}

.postit p {
  font-size: 18px; /* o el tamaño que quieras */
  line-height: 1;
  word-wrap: break-word;
}

.postit .autor {
  display: flex;
  align-items: center;
  gap: 6px;
}

.postit .autor img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.postit h3 {
  font-size: 15px;
  margin: 0;
}

.postit span {
  font-size: 12px;
  color: #444;
}

/* Tablet (≤991px) */
@media (max-width: 991px) {
  .postit {
    min-height: 391px;
       top: 20px;
  }

  .postit-content {
    padding: 12px 146px 11px;
    max-width: 92%;
      top: -5px;
  }

  .postit p {
    font-size: 15px;
    text-align: justify;
  }

  .postit .autor img {
    width: 60px;
    height: 60px;
  }

  .postit h3 {
    font-size: 18px;
  }

  .postit span {
    font-size: 13px;
  }
}

/* Móvil (≤576px) */
@media (max-width: 414px) {
  .postit {
    min-height: 266px;
      margin-bottom: 54px;
    }

  .postit-content {
    padding: 27px 63px 9px;
      max-width: 100%; /* evita que se encime con imágenes */
  }

  .postit p {
    font-size: 15px;
    text-align: justify;
      margin-left: 12px;
  }

  .postit .autor img {
    width: 50px;
    height: 50px;
      margin-left: 44px;
  }

  .postit h3 {
    font-size: 12px;
  }

  .postit span {
    font-size: 9px;
  }
}

.testimonial-carousel .owl-item {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.testimonial-carousel .owl-item.center .postit {
  transform: scale(1.1); /* más grande la central */
  z-index: 5;
}

.testimonial-carousel .owl-item:not(.center) .postit {
  transform: scale(0.9); /* más pequeñas las laterales */
  opacity: 0.7;          /* opcional: menos visibles */
}

