/* Fixes para Livewire y cursor */

/* Variables de color para compatibilidad */
:root {
    --color-primary: var(--accent-color, #E67E22);
}

/* Asegurar que el cursor esté en la posición correcta */
.mouse-cursor {
    pointer-events: none !important;
    z-index: 99999 !important;
}

.cursor-outer {
    position: fixed !important;
    top: -25px;
    left: -25px;
    width: 50px;
    height: 50px;
}

.cursor-inner {
    position: fixed !important;
    top: -3px;
    left: -3px;
    width: 6px;
    height: 6px;
}

/* Fix para el cursor con texto */
.cursor-inner.cursor-text-active {
    width: auto !important;
    height: auto !important;
    padding: 8px 12px;
    border-radius: 30px;
    background-color: var(--color-primary);
    color: white;
    font-size: 14px;
    font-weight: 500;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

/* Asegurar que las animaciones WOW funcionen */
.wow {
    visibility: hidden;
}

.wow.animated {
    visibility: visible;
}

/* Fix para video popup cursor */
.popup-video {
    position: relative;
    cursor: none;
}

[data-cursor] {
    cursor: none;
}

/* Mejoras para las animaciones de scroll */
.animated {
    opacity: 1 !important;
}


/* Fix para Swiper en Livewire */
.swiper-initialized {
    opacity: 1 !important;
}

/* Asegurar z-index correcto para elementos */
.mouse-cursor.cursor-outer {
    mix-blend-mode: difference;
}

/* Fix para el preloader */
.preloader {
    z-index: 100000;
}

/* Animaciones suaves para Livewire */
[wire\:loading] {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

[wire\:loading].opacity-100 {
    opacity: 1 !important;
}

/* Fix para paginación en blog */
.page-blog [wire\:loading] {
    opacity: 1;
}

.page-blog .post-item {
    transition: opacity 0.3s ease;
}

.page-blog [wire\:loading] .post-item {
    opacity: 0.5;
}

/* Mantener contenido visible durante navegación */
[wire\:navigate] {
    min-height: 100vh;
}

/* Fix para paginación personalizada */
.pagination span.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Asegurar que los elementos de paginación no se expandan */
.page-pagination ul {
    display: flex;
    list-style: none;
}

.page-pagination ul li {
    display: inline-block;
}

/* Estilo para la página activa */
.page-pagination ul li.active span {
    background: var(--accent-color) !important;
    color: var(--white-color) !important;
}

/* Fix para botones con flechas */
.btn-default.btn-highlighted {
    display: inline-flex !important;
    align-items: center;
    gap: 15px;
}

.btn-default.btn-highlighted::after {
    margin-left: 0 !important;
}

.hero-service-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
}

/* Fix para botones de pricing */
.pricing-btn .btn-default {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Fix para CTA buttons */
.cta-btn .btn-default.btn-highlighted {
    display: inline-flex !important;
    align-items: center;
    gap: 15px;
}

/* Fix para project buttons */
.our-project-btn .btn-default {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
}

/* Fix para cualquier botón con flecha */
.btn-default[class*="btn"] {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
}

/* Asegurar que los sliders funcionen */
.swiper-wrapper {
    transition-timing-function: linear !important;
}

.testimonial-slider .swiper-wrapper,
.services-slider .swiper-wrapper {
    align-items: stretch;
}

/* Services slider improvements */
.services-slider {
    overflow: hidden;
}

/* Fix scroll to top spacing */
.scroll-top {
    position: fixed;
    right: 30px;
    bottom: 100px;
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top i {
    color: white;
    font-size: 20px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.whatsapp-float i {
    color: white;
    font-size: 32px;
}

@media only screen and (max-width: 767px) {
    .whatsapp-float {
        right: 20px;
        bottom: 90px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-float i {
        font-size: 28px;
    }
}

/* Fix testimonial slider cursor and selection */
.testimonial-slider .swiper-wrapper {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.testimonial-slider .swiper-wrapper:active {
    cursor: grabbing;
}

.testimonial-slider .swiper-slide {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Override cursor text for testimonials */
.testimonial-slider[data-cursor="DRAG"]::after {
    content: "Mover";
}

/* Botones sin flecha */
.btn-no-arrow {
    margin-right: 0 !important;
}
.btn-no-arrow::before {
    display: none !important;
}

/* Botón WhatsApp verde */
.btn-whatsapp {
    background: #1E7145 !important;
}
.btn-whatsapp:hover {
    background: #155d38 !important;
}
.btn-whatsapp::after {
    background: #155d38 !important;
}

/* Testimonial hover effects */
.testimonial-content:hover .read-more-text {
    text-decoration: underline;
}

.testimonial-content:hover {
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

/* Modal animations */
.modal-overlay {
    animation: fadeIn 0.3s ease-out;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-overlay[x-show="true"] {
    display: flex !important;
}

.modal-content {
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 0 auto !important;
    transform-origin: center center !important;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content button:hover {
    color: #333 !important;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 15px !important;
    }
    .modal-content {
        max-width: 100% !important;
        max-height: 90vh !important;
    }
}

/* Fix para team images sin link - bordes redondeados */
.team-image figure {
    border-radius: 24px;
    overflow: hidden;
}

.team-image figure img {
    transition: all 0.4s ease-in-out;
}

.team-item:hover .team-image figure img {
    filter: brightness(60%);
    transform: scale(1.1);
}

/* Reducir alto del navbar */
.navbar {
    padding: 10px 0;
}

