/* Forzar tamaño grande del logo en el navbar */
.nav-logo img {
    height: 90px !important;
    max-height: 110px !important;
    width: auto !important;
}

@media (min-width: 768px) {
    .nav-logo img {
        margin-left: 32px;
        margin-right: 32px;
    }
}

/* ==================== FIXES ADICIONALES ==================== */

/* Asegurar que los botones flotantes no se superpongan */
.chatbot-container,
.whatsapp-float {
    transition: all 0.3s ease;
}

/* Mejorar espaciado en hero */
.hero {
    margin-top: 100px;
    padding: 120px 30px 80px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .container {
    max-width: 900px;
}

/* Mejorar legibilidad de texto */
.hero h1 {
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero p {
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Mejorar botones del hero */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Espaciado consistente en secciones */
.section {
    padding: 70px 30px;
}

.section-title {
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-subtitle {
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Mejorar cards de servicios */
.service-box,
.feature-item {
    transition: all 0.3s ease;
}

.service-box:hover,
.feature-item:hover {
    transform: translateY(-8px);
}

/* Footer responsive */
.footer {
    padding: 60px 30px 30px;
}

.footer-grid {
    margin-bottom: 40px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mejorar menú móvil */
@media (max-width: 1023px) {
    .nav-menu {
        background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    }

    .nav-link {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .login-button {
        margin-top: 20px;
        width: 80%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }
}

/* Ajustes para tablets */
@media (max-width: 767px) {
    .hero {
        margin-top: 80px;
        padding: 100px 20px 70px;
        min-height: 450px;
    }

    .section {
        padding: 50px 20px;
    }

    .section-title {
        font-size: 2em;
    }
}

/* Ajustes para móviles */
@media (max-width: 479px) {
    .hero {
        margin-top: 70px;
        padding: 80px 15px 60px;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.7em;
    }
}

/* Mejorar scroll suave */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Evitar desbordamiento horizontal */
body {
    overflow-x: hidden;
    position: relative;
}

/* Mejorar imágenes responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Sobrescribir para el logo: mantener grande */
.nav-logo img {
    height: 90px !important;
    max-height: 110px !important;
    width: auto !important;
}

/* Mejor espaciado en listas */
ul,
ol {
    margin: 0;
    padding: 0;
}

/* Links con mejor hover */
a {
    transition: all 0.3s ease;
}

/* Prevenir zoom en inputs iOS */
@supports (-webkit-touch-callout: none) {

    input,
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Mejorar rendimiento de animaciones */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}