/* 

1. Add your custom Css styles below
2. Place the this code in your template: 

 <link href="css/custom.css" rel="stylesheet">

*/

.heading-text.heading-section h2:before 
{
    background-color: #4FBAD3;
}

@media (max-width: 576px) {
.video-overlay-brand
{
    font-size: 0.8rem !important;
    top: 8px !important;
    right: 8px !important;
}

.video-overlay-description 
{
    font-size: 0.7rem !important;
    bottom: 8px !important;
    right: 8px !important;
}

}

.text-box.hover-effect:hover {
    background-color: #09B9CD !important;
    color: white !important;
}

       
.heading-text.heading-section h2:before {
    background-color: #4FBAD3;
}

@media (max-width: 576px) {
    .video-overlay-brand

{
    font-size: 0.8rem !important;
    top: 8px !important;
    right: 8px !important;
}

.video-overlay-description {
    font-size: 0.7rem !important;
    bottom: 8px !important;
    right: 8px !important;
}

/* Estilos para el botón en móviles */
.btn-enviar-mobile {
    width: 100% !important;
    padding: 18px 20px !important;
    font-size: 1.1rem !important;
    margin-top: 20px !important;
    border-radius: 12px !important;
    height: auto !important; /* Cambiar de 0px a auto */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* Estilos para el formulario en móviles */
.form-mobile .col-md-6 {
    margin-bottom: 15px !important;
}

.card-body-mobile {
    padding: 30px 20px !important;
}

.form-control-mobile {
    padding: 18px !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
}

}

.text-box.hover-effect:hover {
    background-color: #09B9CD !important;
    color: white !important;
}

/* Personalizar botón outline - mantener siempre transparente */
.btn-outline {
    border: 2px solid #09B9CD !important;
    background-color: transparent !important;
    color: #09B9CD !important;
    outline: none !important;
}

.btn-outline:focus {
    border-color: #09B9CD !important;
    background-color: transparent !important;
    color: #09B9CD !important;
    box-shadow: 0 0 0 3px rgba(9, 185, 205, 0.3) !important;
}

.btn-outline:hover {
    border-color: #09B9CD !important;
    background-color: transparent !important;
    color: #09B9CD !important;
}

.btn-outline:active {
    border-color: #09B9CD !important;
    background-color: transparent !important;
    color: #09B9CD !important;
}

/* Mantener el pseudo-elemento :before con el color correcto */
button.btn.btn-icon-holder.btn-outline:before,
.btn:not(.close):not(.mfp-close).btn-icon-holder.btn-outline:before,
a.btn:not([href]):not([tabindex]).btn-icon-holder.btn-outline:before {
    border-left-color: #09B9CD !important;
    background-color: #09B9CD !important;
}

/* Asegurar que no haya cambios en hover/active para el pseudo-elemento */
button.btn.btn-icon-holder.btn-outline:hover:before,
button.btn.btn-icon-holder.btn-outline:active:before,
button.btn.btn-icon-holder.btn-outline:focus:before {
    background-color: #09B9CD !important;
    border-color: #09B9CD !important;
}

@media (max-width: 576px) {
    /* Adaptación móvil para imagen centrada */
    .mobile-centered-image {
        padding: 10px !important;
        margin: 20px 0 !important;
        justify-content: center !important;
    }

    .mobile-centered-image img {
        max-width: 90% !important;
        height: auto !important;
        width: auto !important;
        min-height: 280px !important;
        object-fit: contain !important;
    }
}

/* Estilos mejorados para el botón LEER MAS */
.item-link-mejorado {
    display: inline-flex !important;
    align-items: center !important;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #09B9CD, #0aa8bb) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(9, 185, 205, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 15px !important;
}

.item-link-mejorado:before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: left 0.5s !important;
}

.item-link-mejorado:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(9, 185, 205, 0.4) !important;
    background: linear-gradient(135deg, #0aa8bb, #09B9CD) !important;
}

.item-link-mejorado:hover:before {
    left: 100% !important;
}

.item-link-mejorado:after {
    content: '\f061' !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    margin-left: 8px !important;
    font-size: 11px !important;
    transition: transform 0.3s ease !important;
}

.item-link-mejorado:hover:after {
    transform: translateX(3px) !important;
}

.item-link-mejorado:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 15px rgba(9, 185, 205, 0.3) !important;
}

/* Versión responsive para móviles */
@media (max-width: 768px) {
    .item-link-mejorado

{
    padding: 10px 20px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
}

}

/* Estilos responsive para la sección de blog */
@media (max-width: 768px) {
    .blog-mobile-responsive.post-3-columns

{
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.post-item-mobile {
    width: 100% !important;
    margin-bottom: 20px !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.post-item-mobile .post-item-wrap {
    padding: 0 !important;
}

.post-item-mobile .post-image {
    width: 100% !important;
    height: 200px !important;
    overflow: hidden !important;
}

.post-item-mobile .post-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.post-item-mobile .post-item-description {
    padding: 20px !important;
}

.post-item-mobile .post-item-description h2 {
    font-size: 1.2rem !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
    color: #333 !important;
}

.post-item-mobile .post-item-description p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: #666 !important;
    margin-bottom: 20px !important;
}

/* Ajustes específicos para el botón en móvil */
.post-item-mobile .item-link-mejorado {
    padding: 14px 28px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Título de sección responsive */
#section4 .heading-text h2 {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
    padding: 0 20px !important;
}

/* Espaciado de sección en móvil */
#section4 {
    padding: 40px 0 !important;
}

#section4 .container {
    padding: 0 15px !important;
}

}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .blog-mobile-responsive.post-3-columns

{
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

.post-item-mobile {
    width: calc(50% - 10px) !important;
    margin-bottom: 20px !important;
}

.post-item-mobile:nth-child(3) {
    width: 100% !important;
    max-width: 50% !important;
    margin: 0 auto !important;
}

}

.referencias-content {
    max-width: 100%;
    margin: 0 auto;
}

.reference-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
    line-height: 1.6;
}

.reference-number {
    color: #4FBAD3;
    font-weight: bold;
    font-size: 1rem;
    margin-right: 15px;
    min-width: 20px;
    flex-shrink: 0;
}

.reference-item p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    text-align: justify;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .referencias-content

{
    padding: 0 10px;
}

.reference-item {
    margin-bottom: 25px;
    flex-direction: row;
    align-items: flex-start;
}

.reference-number {
    font-size: 0.9rem;
    margin-right: 10px;
    min-width: 18px;
}

.reference-item p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Título responsive */
.heading-text h2 {
    font-size: 1.8rem !important;
    text-align: center !important;
}

/* Espaciado de sección en móvil */
section {
    padding: 40px 0 !important;
}

}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .reference-item p

{
    font-size: 0.92rem;
}

}

/* ===================================================================
   FOOTER MYOFIX - ESTILOS RESPONSIVE COMPLETOS
   =================================================================== */

/* Estilos base del footer */
.footer-myofix .social-icons a:hover {
    transform: scale(1.1) !important;
}

.footer-myofix .footer-nav-list li a:hover {
    color: #4FBAD3 !important;
}

/* Estilos generales para elementos del footer */
.footer-logo-section {
    text-align: left;
}

.footer-description {
    max-width: 350px;
}

.footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
}

.footer-nav-list li {
    margin-bottom: 8px;
}

.footer-nav-list li a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

/* Footer responsive - Tablet (991px y menos) */
@media (max-width: 991px) {
    .footer-logo-section {
        text-align: center !important;
        margin-bottom: 40px !important;
        width: 100% !important;
    }
    
    .footer-nav-section {
        width: 100% !important;
    }
    
    .footer-myofix .myofix-logo h2,
    .footer-myofix .myofix-logo p {
        text-align: center !important;
    }
    
    .footer-description {
        text-align: center !important;
        margin: 0 auto !important;
        max-width: none !important;
    }
}

/* Footer responsive - Mobile (768px y menos) */
@media (max-width: 768px) {
    .footer-myofix .footer-content {
        padding: 40px 0 20px 0 !important;
    }
    
    .footer-myofix .myofix-logo h2 {
        font-size: 2rem !important;
    }
    
    .footer-myofix .widget-title {
        font-size: 1rem !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }
    
    .footer-social {
        gap: 12px !important;
        justify-content: center !important;
    }
    
    .footer-social img {
        width: 28px !important;
        height: 28px !important;
    }
    
    .footer-nav-list {
        text-align: center !important;
    }
    
    .footer-nav-list li {
        margin-bottom: 6px !important;
    }
    
    .footer-nav-list li a {
        font-size: 0.85rem !important;
    }
    
    .footer-main-row > div {
        margin-bottom: 30px !important;
        text-align: center !important;
    }
    
    .footer-home-col,
    .footer-contact-col {
        width: 100% !important;
        margin-bottom: 25px !important;
        text-align: center !important;
    }
    
    .footer-myofix .widget {
        text-align: center !important;
    }
    
    .footer-description {
        text-align: center !important;
        margin: 0 auto !important;
    }
}

/* Footer responsive - Mobile pequeño (576px y menos) */
@media (max-width: 576px) {
    .footer-myofix .footer-content {
        padding: 30px 0 15px 0 !important;
    }
    
    .footer-myofix .myofix-logo h2 {
        font-size: 1.8rem !important;
    }
    
    .footer-myofix .myofix-logo p {
        font-size: 0.85rem !important;
    }
    
    .footer-social {
        gap: 10px !important;
        justify-content: center !important;
    }
    
    
    .footer-myofix .widget-title {
        font-size: 0.95rem !important;
        margin-bottom: 12px !important;
    }
    
    .footer-nav-list li a {
        font-size: 0.8rem !important;
    }
    
    .footer-home-col,
    .footer-contact-col {
        margin-bottom: 20px !important;
    }
    
    .footer-myofix .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .footer-description {
        font-size: 0.9rem !important;
    }
}

/* Footer responsive - Mobile muy pequeño (480px y menos) */
@media (max-width: 480px) {
    .footer-myofix .myofix-logo h2 {
        font-size: 1.6rem !important;
    }
    
    .footer-myofix .myofix-logo p {
        font-size: 0.8rem !important;
        margin-bottom: 15px !important;
    }
    
    .footer-myofix .widget-title {
        font-size: 0.9rem !important;
        margin-bottom: 10px !important;
    }
    
    .footer-nav-list li {
        margin-bottom: 4px !important;
    }
    
    .footer-nav-list li a {
        font-size: 0.75rem !important;
    }
    
    
    .footer-description {
        font-size: 0.85rem !important;
    }
}

/* Estilos para compatibilidad con el footer anterior */
#footer .social-icons a:hover {
    transform: scale(1.1);
}

#footer .list li a:hover {
    color: #4FBAD3 !important;
}

/* Layout mejorado del footer */
#footer .row.align-items-start {    
    gap: 20px;
}

/* Footer responsive - Tablet */
@media (max-width: 991px) {
    #footer .col-lg-5 {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 40px !important;
    }

    #footer .col-lg-7 {
        width: 100% !important;
    }

    #footer .myofix-logo h2,
    #footer .myofix-logo p {
        text-align: center !important;
    }
}

/* Footer responsive - Mobile */
@media (max-width: 768px) {
    #footer .footer-content {
        padding: 40px 0 20px 0 !important;
    }

    #footer .myofix-logo h2 {
        font-size: 2rem !important;
    }

    #footer .widget-title {
        font-size: 1rem !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }

    #footer .social-icons {
        gap: 12px !important;
        flex-wrap: wrap;
        justify-content: center !important;
    }

    #footer .list {
        text-align: center !important;
    }

    #footer .list li {
        margin-bottom: 6px !important;
    }

    #footer .list li a {
        font-size: 0.85rem !important;
    }

    /* En móvil, hacer que las secciones se vean mejor */
    #footer .row > div[class*="col-"] {
        margin-bottom: 30px !important;
        text-align: center !important;
    }

    /* Reorganizar columnas en móvil */
    #footer .col-md-6 {
        width: 100% !important;
        margin-bottom: 25px !important;
    }

    /* Centrar todo el contenido en móvil */
    #footer .widget {
        text-align: center !important;
    }

    /* Ajustar descripción del logo */
    #footer .myofix-logo p {
        max-width: none !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 576px) {
    /* Mobile muy pequeño */
    #footer .footer-content {
        padding: 30px 0 15px 0 !important;
    }

    #footer .myofix-logo h2 {
        font-size: 1.8rem !important;
    }

    #footer .myofix-logo p {
        font-size: 0.85rem !important;
    }

    #footer .social-icons {
        gap: 10px !important;
        justify-content: center !important;
    }

    #footer .widget-title {
        font-size: 0.95rem !important;
        margin-bottom: 12px !important;
    }

    #footer .list li a {
        font-size: 0.8rem !important;
    }

    #footer .col-md-6 {
        margin-bottom: 20px !important;
    }

    /* Espaciado entre secciones */
    #footer .row > div:not(:last-child) {
        margin-bottom: 25px !important;
    }

    /* Reducir padding del container en móvil muy pequeño */
    #footer .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Estilos adicionales para mejorar la experiencia móvil */
@media (max-width: 480px) {
    #footer .myofix-logo h2 {
        font-size: 1.6rem !important;
    }

    #footer .myofix-logo p {
        font-size: 0.8rem !important;
        margin-bottom: 15px !important;
    }

    #footer .widget-title {
        font-size: 0.9rem !important;
        margin-bottom: 10px !important;
    }

    #footer .list li {
        margin-bottom: 4px !important;
    }

    #footer .list li a {
        font-size: 0.75rem !important;
    }

}

/* ===================================================================
   ANIMACIONES PARA ICONOS DE CONTACTO
   =================================================================== */

/* Animación de Hover - Escalar */
.contacto-icono {
    transition: all 0.3s ease;
    transform: scale(1);
}

.contacto-icono:hover {
    transform: scale(1.1);
    color: #4FBAD3;
}

/* Animación de Bounce (rebote) */
.contacto-icono-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Animación de Pulso */
.contacto-icono-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animación de Rotación */
.contacto-icono-rotate {
    transition: transform 0.3s ease;
}

.contacto-icono-rotate:hover {
    transform: rotate(15deg);
}

/* Animación de Shake (temblor) */
.contacto-icono-shake:hover {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Animación de Glow (resplandor) */
.contacto-icono-glow {
    transition: all 0.3s ease;
}

.contacto-icono-glow:hover {
    box-shadow: 0 0 20px #4FBAD3;
    transform: scale(1.1);
}

/* Animación de Flip */
.contacto-icono-flip {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.contacto-icono-flip:hover {
    transform: rotateY(180deg);
}

/* Animación de entrada desde arriba */
.contacto-entrada-arriba {
    animation: slideInFromTop 1s ease-out;
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de entrada desde la izquierda */
.contacto-entrada-izquierda {
    animation: slideInFromLeft 1s ease-out;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animación de Fade In */
.contacto-fade-in {
    animation: fadeIn 2s ease-in;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Animación con delay para múltiples elementos */
.contacto-icono-1 { animation-delay: 0.1s; }
.contacto-icono-2 { animation-delay: 0.2s; }
.contacto-icono-3 { animation-delay: 0.3s; }
.contacto-icono-4 { animation-delay: 0.4s; }
.contacto-icono-5 { animation-delay: 0.5s; }

/* Responsive - reducir animaciones en móviles */
@media (max-width: 768px) {
    .contacto-icono {
        transition: all 0.2s ease;
    }
    
    .contacto-icono:hover {
        transform: scale(1.05);
    }
}

/* ===================================================================
   ANIMACIONES AVANZADAS SOLO CON CSS
   =================================================================== */

/* Animación de loading/cargando */
.loading-animation {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animación de typewriter (máquina de escribir) */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #4FBAD3;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #4FBAD3; }
}

/* Animación de float (flotante) */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Animación de morph (transformación) */
.morph-animation {
    animation: morph 2s infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 50%; }
    50% { border-radius: 10%; }
}

/* Animación de gradiente de fondo */
.gradient-animation {
    background: linear-gradient(-45deg, #4FBAD3, #3A9BC1, #4FBAD3, #3A9BC1);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animación de texto brillante */
.text-glow {
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 10px #4FBAD3; }
    to { text-shadow: 0 0 20px #4FBAD3, 0 0 30px #4FBAD3; }
}

/* Footer MyoFix Styles */
#footer .social-icons a:hover {
    transform: scale(1.1);
}

#footer .widget ul li a:hover {
    color: #4FBAD3 !important;
}

/* Responsive Footer */
@media (max-width: 991px) {
    #footer .myofix-logo {
        text-align: center;
        margin-bottom: 40px;
    }
    
    #footer .widget {
        text-align: center;
    }
    
    #footer .social-icons ul {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    #footer .myofix-logo h2 {
        font-size: 2rem !important;
    }
    
    #footer .footer-content {
        padding: 40px 0 20px 0 !important;
    }
    
    
    #footer .widget h4,
    #footer .widget h5 {
        font-size: 1rem !important;
        margin-bottom: 15px !important;
    }
    
    #footer .widget ul li a {
        font-size: 0.85rem !important;
    }
}


/* Color por defecto */
#mainMenu nav > ul > li > a,
#mainMenu nav > ul > li > span {
  color: black;
  transition: color .2s ease;
}

/* Anula el color cuando el hover es del LI (o estados similares) */
#mainMenu nav > ul > li:hover > a:not(:hover),
#mainMenu nav > ul > li.hover-active > a:not(:hover),
#mainMenu nav > ul > li.current > a:not(:hover),
#mainMenu nav > ul > li:focus > a:not(:hover),
#mainMenu nav > ul > li:hover > span,
#mainMenu nav > ul > li.hover-active > span,
#mainMenu nav > ul > li.current > span,
#mainMenu nav > ul > li:focus > span {
  color: #45b7d1 !important;   /* usa !important si tu hoja se carga antes que style.css */
}

/* Cambia el color SOLO cuando el mouse está sobre el <a> */
#mainMenu nav > ul > li > a:hover,
#mainMenu nav > ul > li > a:focus {
  color: white;
}

#wa-widget-send-button {
            margin: 0 0 50px 0 !important;
            padding-left: 15px;
            padding-right: 15px;
            position: fixed !important;
            z-index: 16000160 !important;
            bottom: 0 !important;
            text-align: center !important;
            height: 50px;
            min-width: 50px;
            border-radius: 25px;
            visibility: visible;
            transition: none !important;
            background-color: #2878d0;
            box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
            right: 50px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

