/* ===== ANIMACIONES Y CARRUSEL GALERIA ===== */

/* --- Animaciones de entrada al hacer scroll (Reveal) --- */
[data-animate] {
    opacity: 0;
    will-change: transform, opacity;
}

[data-animate].animate-in {
    opacity: 1;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-fill-mode: both;
}

[data-animate="fadeIn"] { animation-name: fadeIn; }
[data-animate="fadeInLeft"] { animation-name: fadeInLeft; }
[data-animate="fadeInRight"] { animation-name: fadeInRight; }
[data-animate="fadeInUp"] { animation-name: fadeInUp; }
[data-animate="zoomIn"] { animation-name: zoomIn; }
[data-animate="bounceIn"] { animation-name: bounceIn; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* --- Animacion del logo / title --- */
@keyframes pulseTitle {
    0% { transform: scale(1); text-shadow: 0 0 0 rgba(166,207,17,0); }
    50% { transform: scale(1.03); text-shadow: 0 0 20px rgba(166,207,17,0.6); }
    100% { transform: scale(1); text-shadow: 0 0 0 rgba(166,207,17,0); }
}
.animar-titulo {
    display: inline-block;
    animation: pulseTitle 3s ease-in-out infinite;
}

/* --- Efecto hover en imagenes del miembro (alquiler) --- */
.member-thumb {
    overflow: hidden;
    border-radius: 15px;
}
.member-thumb img {
    transition: transform 0.6s ease;
}
.member-thumb:hover img {
    transform: scale(1.1);
}

/* ===== CARRUSEL GALERIA ===== */
.galeria-carrusel {
    position: relative;
    width: 100vw;
    max-width: none;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    background: #10182e;
}

.galeria-track {
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.galeria-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galeria-slide img {
    width: 100%;
    height: 75vh;
    min-height: 400px;
    max-height: 750px;
    object-fit: cover;
    display: block;
}

.galeria-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(16,24,46,0.9));
    color: #fff;
    font-family: "Montserrat", sans-serif;
    text-align: center;
    padding: 40px 20px 20px 20px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}
.galeria-slide.active .galeria-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Flechas del carrusel */
.galeria-prev, .galeria-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(166,207,17,0.9);
    border: none;
    color: #10182e;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.galeria-prev:hover, .galeria-next:hover {
    background: #10182e;
    color: #a6cf11;
    transform: translateY(-50%) scale(1.1);
}
.galeria-prev { left: 15px; }
.galeria-next { right: 15px; }

/* Dots del carrusel */
.galeria-dots {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.galeria-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.galeria-dot.active {
    background: #a6cf11;
    transform: scale(1.3);
}

/* Responsive del carrusel */
@media (max-width: 768px) {
    .galeria-slide img { height: 55vh; min-height: 250px; max-height: 400px; }
    .galeria-prev, .galeria-next { width: 40px; height: 40px; font-size: 22px; }
    .galeria-dots { top: 12px; }
}

/* ===== BOTON WHATSAPP FLOTANTE ANIMADO ===== */
#whatsapp-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    left: auto;
    z-index: 9999;
    width: 68px;
    height: 68px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
    transition: all 0.4s ease;
}
#whatsapp-flotante.ghost-visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
#whatsapp-flotante:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.8);
}
#whatsapp-flotante .wsp-icono {
    font-size: 38px;
    color: #ffffff;
    line-height: 1;
}

/* onda expansiva alrededor del boton */
#whatsapp-flotante .wsp-onda,
#whatsapp-flotante .wsp-onda2 {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    z-index: -1;
    animation: wspOnda 2.4s ease-out infinite;
}
#whatsapp-flotante .wsp-onda2 {
    animation-delay: 1.2s;
}
@keyframes wspOnda {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* brinquito del icono */
@keyframes wspBrinco {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
#whatsapp-flotante .wsp-icono {
    animation: wspBrinco 1.6s ease-in-out infinite;
}

/* burbuja de texto al lado del boton */
#whatsapp-flotante .wsp-etiqueta {
    position: absolute;
    right: 78px;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    background: #10182e;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 30px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
#whatsapp-flotante:hover .wsp-etiqueta {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

@media (max-width: 768px) {
    #whatsapp-flotante { width: 58px; height: 58px; bottom: 18px; right: 18px; }
    #whatsapp-flotante .fa-whatsapp { font-size: 32px; }
}

/* ===== MENU DINAMICO ===== */
.templatemo-top-menu .navbar-nav > li > a {
    position: relative;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 10px 12px;
    text-transform: uppercase;
    background: transparent;
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

.templatemo-top-menu .navbar-nav > li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    border-radius: 3px;
    background: #a6cf11;
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

.templatemo-top-menu .navbar-nav > li > a:hover,
.templatemo-top-menu .navbar-nav > li > a:focus {
    color: #a6cf11;
    background: transparent;
    transform: translateY(-3px);
    text-shadow: 0 0 12px rgba(166, 207, 17, 0.5);
}

.templatemo-top-menu .navbar-nav > li > a:hover::after {
    width: 100%;
}

.templatemo-top-menu .navbar-nav > li > a i {
    display: inline-block;
    font-size: 15px;
    transition: transform 0.4s ease, color 0.4s ease;
}

.templatemo-top-menu .navbar-nav > li > a:hover i {
    transform: scale(1.4) rotate(-8deg);
    color: #a6cf11;
}

/* pulso del subrayado del item activo */
@keyframes subrayadoLatido {
    0%, 100% { box-shadow: 0 0 0 rgba(166, 207, 17, 0); }
    50% { box-shadow: 0 0 12px rgba(166, 207, 17, 0.85); }
}

.templatemo-top-menu .navbar-nav > li.active > a,
.templatemo-top-menu .navbar-nav > li.active > a:hover,
.templatemo-top-menu .navbar-nav > li.active > a:focus {
    color: #a6cf11;
    background: transparent;
}

.templatemo-top-menu .navbar-nav > li.active > a::after {
    width: 100%;
    animation: subrayadoLatido 2.2s ease-in-out infinite;
}

/* ===== BARRA TOP ICONOS DESTACADOS ===== */
.templatemo-top-bar .subheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.templatemo-top-bar .top-group-left {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}
.templatemo-top-bar .top-group-left .top-item {
    margin: 6px 8px 6px 0;
}
.templatemo-top-bar .top-group-left .top-item:last-child {
    margin-right: 0;
}
.templatemo-top-bar .top-item {
    display: inline-flex;
    align-items: center;
    margin: 6px 4px;
    padding: 8px 16px;
    background: #ffffff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #10182e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.templatemo-top-bar .top-item:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}
.templatemo-top-bar .icono-top {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 17px;
    background: #a6cf11;
    color: #10182e;
    box-shadow: inset 0 0 0 2px rgba(16, 24, 46, 0.15);
    animation: iconoLatido 2.4s ease-in-out infinite;
}
.templatemo-top-bar .icono-top.oscuro {
    background: #10182e;
    color: #a6cf11;
}
@keyframes iconoLatido {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 24, 46, 0.25); }
    50% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(16, 24, 46, 0.08); }
}
.templatemo-top-bar .sep-top {
    color: #a6cf11;
    font-weight: 700;
}
.templatemo-top-bar .top-direccion {
    max-width: 62%;
    font-size: 13px;
    line-height: 1.3;
    flex-shrink: 1;
}
@media (max-width: 1199px) and (min-width: 992px) {
    .templatemo-top-bar .top-direccion { max-width: 50%; font-size: 12.5px; }
}
@media (max-width: 767px) {
    .templatemo-top-bar .top-item { margin: 4px 2px; font-size: 12px; padding: 6px 10px; }
    .templatemo-top-bar .icono-top { width: 30px; height: 30px; min-width: 30px; font-size: 14px; margin-right: 7px; }
    .templatemo-top-bar .top-direccion { max-width: 100%; }
}

[data-animate].anim-fin { animation: none; }

/* --- Cursor de la maquina de escribir --- */
.cursor-escribir::after {
    content: "|";
    margin-left: 2px;
    color: #a6cf11;
    font-weight: 700;
    animation: parpadeoCursor 0.8s steps(1) infinite;
}
@keyframes parpadeoCursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* --- Efecto hover sobre el bloque de Mision / Vision --- */
.caja-mv {
    transition: transform 0.4s ease, box-shadow 0.4s ease, outline-color 0.4s ease;
    will-change: transform;
}
.caja-mv img {
    transition: transform 0.4s ease;
}
.caja-mv:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 18px 40px rgba(166, 207, 17, 0.4) !important;
    outline: 3px solid #a6cf11;
    outline-offset: -3px;
}
.caja-mv:hover img {
    transform: scale(1.2) rotate(8deg);
}
.caja-mv:hover .templatemo-service-item-header {
    color: #02983b;
}
.caja-mv:hover .templatemo-service-item p {
    color: #10182e;
}