

@font-face {
    font-family: 'Brittany Signature';
    src: url('../fonts/BrittanySignatureRegular.eot');
    src: url('../fonts/BrittanySignatureRegular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/BrittanySignatureRegular.woff2') format('woff2'),
        url('../fonts/BrittanySignatureRegular.woff') format('woff'),
        url('../fonts/BrittanySignatureRegular.ttf') format('truetype'),
        url('../fonts/BrittanySignatureRegular.svg#BrittanySignatureRegular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.alto_minimo{
    min-height: 100vh;
}

.titulo-especial span{
    color:#00ffa2 !important;
    font-family: 'Brittany Signature';
    font-size: 100%;
}
.bg-top{
    background-position: top center;
}
/* ============================================
   RESET Y ESTILOS BASE
   ============================================ */
.fixed_menu{
    position: fixed;
    z-index: 1;
    width: 100%;
    background: #fff;

}
/* Asegurar que todos los elementos sean visibles durante animaciones */
.mpc-counter *,
.mpc-owl-carousel * {
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ============================================
   CARRUSEL OWL
   ============================================ */

/* Contenedor principal */
.mpc-owl-carousel {
    position: relative;
    margin: 40px 0;
    padding: 10px 0;
}

/* Items individuales */
.mpc-carousel-item {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    margin: 0 10px;
    height: 100%;
}

/* Contenedor de imagen */
.mpc-image-container {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.mpc-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Contenido del item */
.mpc-item-content {
    width: 100%;
    margin-top: 15px;
}

.mpc-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.mpc-item-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.mpc-view-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #50e7fc;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.mpc-view-button:hover {
    background: #005a87;
}

/* Navegación */
.mpc-owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}

.mpc-owl-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mpc-owl-carousel .owl-nav button:hover {
    background: #50e7fc;
    color: white;
    border-color: #50e7fc;
}

.mpc-owl-carousel .owl-nav .owl-prev {
    left: -25px;
}

.mpc-owl-carousel .owl-nav .owl-next {
    right: -25px;
}

/* Indicadores (dots) */
.mpc-owl-carousel .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.mpc-owl-carousel .owl-dots button {
    width: 15px;
    height: 15px;
    margin: 0 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    transition: all 0.3s ease;
}

.mpc-owl-carousel .owl-dots button.active,
.mpc-owl-carousel .owl-dots button:hover {
    background: #50e7fc;
}

/* ============================================
   CONTADORES ANIMADOS
   ============================================ */

/* Contenedor principal de contadores */
.mpc-counters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 60px 0;
    overflow: visible !important;
}

/* Contador individual */
.mpc-counter {
    text-align: center;
    padding: 30px 0;
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    background: #fff;
    position: relative;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mpc-counter:hover {
    transform: translateY(-8px);
}

/* Icono */
.mpc-counter-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #50e7fc;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mpc-counter:hover .mpc-counter-icon {
    transform: scale(1.1);
}

/* Número - ESTILOS CRÍTICOS PARA ESTABILIDAD */
.mpc-counter-number {
    font-size: 64px;
    font-weight: 800;
    color: #fc674c; /* Color inicial será sobrescrito por JS */
    margin: 20px 0;
    line-height: 1;
    min-height: 80px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    transition: color 0.5s ease !important; /* Solo transición de color */
    opacity: 1 !important;
    visibility: visible !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: color;
}

/* Estados de animación del número */
.mpc-counter.mpc-animating .mpc-counter-number {
    /* Durante animación - color será controlado por JS */
    opacity: 1 !important;
    visibility: visible !important;
}

.mpc-counter.mpc-animated-complete .mpc-counter-number {
    /* Después de animación - color final */
    opacity: 1 !important;
    visibility: visible !important;
}

/* Título del contador */
.mpc-counter-title {
    font-size: 18px;
    color: #fc674c;
    margin-top: 15px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.3px;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Barra decorativa inferior */
.mpc-counter::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #fc674c, #00ffa2);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px 2px 0 0;
}

.mpc-counter.mpc-animating::after {
    width: 100%;
}

/* Estados específicos para contadores */
.mpc-counter.mpc-ready {
    /* Estado inicial - visible */
}

.mpc-counter.mpc-animating {
    /* Durante animación - siempre visible */
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2;
}

.mpc-counter.mpc-animated-complete {
    /* Animación completada - siempre visible */
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1;
}

/* Variaciones para números */
.mpc-counter-number.with-decimals {
    font-size: 52px;
}

.mpc-counter-number.large-number {
    font-size: 44px;
}

.mpc-counter-number .decimal-part {
    font-size: 0.7em;
    opacity: 0.8;
}

/* Prevenir efectos no deseados en hover */
.mpc-counter-number:hover {
    transform: none !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px - 1200px) */
@media (max-width: 1200px) {
    /* Carrusel */
    .mpc-owl-carousel .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .mpc-owl-carousel .owl-nav .owl-prev {
        left: -15px;
    }
    
    .mpc-owl-carousel .owl-nav .owl-next {
        right: -15px;
    }
    
    /* Contadores */
    .mpc-counters {
        gap: 30px;
    }
    
    .mpc-counter {
        min-width: 200px;
        max-width: 240px;
    }
    
    .mpc-counter-number {
        font-size: 56px;
    }
}

/* Móvil grande (480px - 768px) */
@media (max-width: 768px) {
    /* Carrusel */
    .mpc-owl-carousel .owl-nav {
        display: none;
    }
    
    .mpc-owl-carousel {
        margin: 20px 0;
    }
    
    .mpc-carousel-item {
        padding: 15px;
    }
    
    .mpc-image-container {
        height: 180px;
    }
    
    /* Contadores */
    .mpc-counters {
        gap: 20px;
    }
    
    .mpc-counter {
        min-width: calc(50% - 20px);
        max-width: calc(50% - 20px);
        padding: 25px 20px;
    }
    
    .mpc-counter-number {
        font-size: 48px;
        min-height: 65px;
    }
    
    .mpc-counter-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
}

/* Móvil pequeño (hasta 480px) */
@media (max-width: 480px) {
    /* Carrusel */
    .mpc-carousel-item {
        padding: 12px;
    }
    
    .mpc-image-container {
        height: 150px;
    }
    
    /* Contadores */
    .mpc-counters {
        gap: 15px;
    }
    
    .mpc-counter {
        min-width: 100%;
        max-width: 100%;
        margin: 0 15px;
        padding: 25px 15px;
    }
    
    .mpc-counter-number {
        font-size: 42px;
    }
}

/* ============================================
   ESTILOS ESPECIALES PARA EDITOR
   ============================================ */

body.block-editor-page .mpc-counter,
body.wp-admin .mpc-counter,
body.block-editor-page .mpc-owl-carousel,
body.wp-admin .mpc-owl-carousel {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ============================================
   ANIMACIONES SEGURAS
   ============================================ */

@keyframes mpc-fade-in {
    from {
        opacity: 1;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mpc-counter.mpc-animating {
    animation: mpc-fade-in 0.5s ease forwards;
}

/* ============================================
   FALLBACKS Y SEGURIDAD
   ============================================ */

/* Si el JavaScript falla, mostrar números directamente */
.mpc-counter-number:empty::before {
    content: '0';
    display: inline;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Asegurar que prefijos y sufijos sean visibles 
.mpc-counter-number[data-prefix]::before {
    content: attr(data-prefix);
    display: inline;
    margin-right: 2px;
}

.mpc-counter-number[data-suffix]::after {
    content: attr(data-suffix);
    display: inline;
    margin-left: 2px;
}

/* ============================================
   COMPATIBILIDAD Y OPTIMIZACIÓN
   ============================================ */

/* Optimización de rendering */
.mpc-counter,
.mpc-counter-number {
    contain: layout style;
    will-change: transform;
}

/* Prevenir flash de contenido no estilizado */
.mpc-counters {
    contain: layout;
}

/* Suprimir transiciones durante la carga */
.is-loading .mpc-counter,
.is-loading .mpc-counter-number {
    transition: none !important;
}

/* ============================================
   DEBUG (descomentar si es necesario)
   ============================================ */
/*
.mpc-counter.mpc-animating {
    outline: 2px solid orange;
    background: rgba(255, 165, 0, 0.05);
}

.mpc-counter.mpc-animated-complete {
    outline: 2px solid green;
    background: rgba(0, 128, 0, 0.05);
}

.mpc-counter.mpc-ready {
    outline: 1px dashed #ccc;
}
*/