/* Mejoras de responsividad y estilos de botones */

/* Cambiar font-weight de todos los botones a normal */
.btn,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-outline-secondary,
.btn-social,
.btn-modern,
.btn-service-modern,
button[type="submit"],
input[type="submit"],
.navbar-toggler,
.language-btn,
.cookie-consent-buttons .btn {
    font-weight: 400 !important;
}

/* Asegurar que todos los elementos de navegación no tengan font-weight bold */
.nav-link,
.navbar-brand,
.navbar-toggler {
    font-weight: 400 !important;
}

/* Asegurar que el viewport funcione correctamente */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Estilos para el footer moderno */
.footer {
    position: relative;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(95, 177, 52, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(95, 177, 52, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.footer-link:hover {
    color: #5FB134 !important;
    transform: translateX(5px);
}

.social-link:hover {
    background: #5FB134 !important;
    border-color: #5FB134 !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(95, 177, 52, 0.3);
}

.important-link:hover {
    color: #4a8f2a !important;
}

.bottom-link:hover {
    color: #5FB134 !important;
}

.footer-heading {
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #5FB134;
    border-radius: 1px;
}

.contact-item {
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.footer-brand img {
    transition: filter 0.3s ease;
}

.footer-brand:hover img {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(80deg) !important;
}

/* Mejoras de responsividad general */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .elegant-title {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 991.98px) {
    .elegant-title {
        font-size: 2rem !important;
    }

    .masthead-heading {
        font-size: 2.5rem !important;
    }

    .contact-container {
        padding: 2rem !important;
    }

    .form-wrapper {
        padding: 2rem !important;
    }

    .navbar-collapse {
        background: rgba(0, 0, 0, 0.9) !important;
        margin-top: 1rem !important;
        padding: 1rem !important;
        border-radius: 8px !important;
    }

    /* Footer responsive */
    .footer {
        padding: 3rem 0 2rem !important;
    }

    .footer-heading {
        margin-top: 1rem !important;
    }

    .footer-bottom-links {
        justify-content: center !important;
        margin-top: 1rem !important;
    }

    .copyright-text {
        text-align: center !important;
    }
}

@media (max-width: 767.98px) {
    .elegant-title {
        font-size: 1.8rem !important;
        padding-left: 1rem !important;
    }

    .masthead-heading {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        padding: 0 1rem !important;
    }

    .masthead-subheading {
        font-size: 1.1rem !important;
        padding: 0 1rem !important;
    }

    .service-highlights {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 0 1rem !important;
    }

    .service-highlight {
        width: 100% !important;
        text-align: center !important;
        padding: 0.75rem !important;
    }

    .contact-container {
        padding: 1.5rem !important;
        margin: 1rem 0 !important;
    }

    .contact-info-wrapper,
    .form-wrapper {
        padding: 1.5rem !important;
    }

    .contact-title,
    .form-title {
        font-size: 1.5rem !important;
    }

    .navbar-brand img {
        max-width: 150px !important;
    }

    .language-selector {
        margin-left: 0.5rem !important;
        padding: 4px !important;
    }

    .language-btn {
        padding: 4px 8px !important;
        font-size: 0.8rem !important;
    }

    /* Mejorar navegación móvil */
    .navbar-nav {
        text-align: center !important;
    }

    .navbar-nav .nav-item {
        margin: 0.5rem 0 !important;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 5px !important;
        transition: background-color 0.3s ease !important;
    }

    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }

    /* Footer móvil */
    .footer {
        padding: 2rem 0 1.5rem !important;
    }

    .footer-brand img {
        max-width: 140px !important;
    }

    .footer-description {
        font-size: 0.9rem !important;
    }

    .contact-item {
        font-size: 0.9rem !important;
    }

    .important-links {
        text-align: center !important;
    }

    .footer-bottom-links {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: center !important;
    }
}

@media (max-width: 575.98px) {
    .elegant-title {
        font-size: 1.5rem !important;
        padding-left: 0.5rem !important;
    }

    .masthead-heading {
        font-size: 1.8rem !important;
        padding: 0 0.5rem !important;
    }

    .masthead-subheading {
        font-size: 1rem !important;
        padding: 0 0.5rem !important;
    }

    .contact-container {
        padding: 1rem !important;
        margin: 0.5rem 0 !important;
    }

    .contact-info-wrapper,
    .form-wrapper {
        padding: 1rem !important;
    }

    .contact-title,
    .form-title {
        font-size: 1.3rem !important;
    }

    .navbar-brand img {
        max-width: 120px !important;
    }

    .language-selector {
        margin-left: 0.25rem !important;
        padding: 2px !important;
    }

    .language-btn {
        padding: 3px 6px !important;
        font-size: 0.75rem !important;
    }

    .btn {
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
    }

    .service-highlights {
        padding: 0 0.5rem !important;
    }

    .service-highlight {
        padding: 0.5rem !important;
        font-size: 0.9rem !important;
    }

    /* Footer muy pequeño */
    .footer {
        padding: 1.5rem 0 1rem !important;
    }

    .footer-brand img {
        max-width: 120px !important;
    }

    .footer-description {
        font-size: 0.85rem !important;
    }

    .contact-item {
        font-size: 0.85rem !important;
    }

    .copyright-text {
        font-size: 0.8rem !important;
    }

    .bottom-link {
        font-size: 0.8rem !important;
    }
}

/* Mejoras específicas para el formulario */
@media (max-width: 767.98px) {

    .modern-form .input-container input,
    .modern-form .input-container select,
    .modern-form .input-container textarea {
        font-size: 16px !important;
        /* Evita zoom en iOS */
    }

    .modern-form .form-group {
        margin-bottom: 1rem !important;
    }

    .captcha-container {
        padding: 0.75rem !important;
    }

    .modern-form .btn-primary {
        width: 100% !important;
        margin-top: 1rem !important;
    }
}

/* Mejoras para el header */
@media (max-width: 767.98px) {
    .masthead {
        padding: 6rem 0 4rem !important;
    }

    .service-highlights {
        margin-top: 2rem !important;
    }

    #particles-js {
        height: 100vh !important;
    }
}

/* Mejoras para las secciones */
@media (max-width: 767.98px) {
    .page-section {
        padding: 3rem 0 !important;
    }

    .about-card,
    .service-card {
        margin-bottom: 2rem !important;
        padding: 1.5rem !important;
    }

    .full-width-section {
        padding: 2rem 0 !important;
    }
}

/* Mejoras para el mapa */
@media (max-width: 767.98px) {
    .map-placeholder {
        padding: 1.5rem !important;
    }

    .map-placeholder i {
        font-size: 2rem !important;
    }

    .map-placeholder p {
        font-size: 0.85rem !important;
    }

    .map-link {
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
    }
}

/* Mejoras para el popup de cookies */
@media (max-width: 767.98px) {
    .cookie-consent-content {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }

    .cookie-consent-text {
        text-align: center !important;
        font-size: 0.9rem !important;
    }

    .cookie-consent-buttons {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .cookie-consent-buttons .btn {
        min-width: 120px !important;
        margin: 0.25rem !important;
        font-size: 0.85rem !important;
    }
}

/* Mejoras para imágenes responsivas */
@media (max-width: 767.98px) {
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    .client-logo {
        max-width: 120px !important;
        height: auto !important;
    }

    .partner-logo {
        max-width: 150px !important;
        height: auto !important;
    }
}

/* Mejoras para el scroll suave */
@media (max-width: 767.98px) {
    html {
        scroll-behavior: smooth !important;
    }

    .navbar-nav .nav-link {
        transition: all 0.3s ease !important;
    }
}

/* Mejoras para el contenedor principal */
@media (max-width: 767.98px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .row {
        margin-left: -7.5px !important;
        margin-right: -7.5px !important;
    }

    .col,
    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9,
    .col-10,
    .col-11,
    .col-12 {
        padding-left: 7.5px !important;
        padding-right: 7.5px !important;
    }
}

/* Mejoras adicionales para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {

    .btn,
    .nav-link,
    .language-btn {
        min-height: 44px !important;
        min-width: 44px !important;
    }

    .btn {
        padding: 0.75rem 1.5rem !important;
    }
}

/* Mejoras para pantallas muy pequeñas */
@media (max-width: 375px) {
    .masthead-heading {
        font-size: 1.6rem !important;
    }

    .masthead-subheading {
        font-size: 0.9rem !important;
    }

    .service-highlight {
        font-size: 0.8rem !important;
        padding: 0.4rem !important;
    }

    .contact-container {
        padding: 0.75rem !important;
    }

    .contact-info-wrapper,
    .form-wrapper {
        padding: 0.75rem !important;
    }
}

/* Mejoras para pantallas muy grandes */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px !important;
    }

    .masthead-heading {
        font-size: 3.5rem !important;
    }

    .elegant-title {
        font-size: 3rem !important;
    }
}