* {
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.container {
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

@media (max-width: 575px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}



@media (max-width: 991px) {
    .top-bar {
        padding: 10px 0;
        font-size: 12px;
    }
    
    .top-bar .row {
        flex-direction: column;
        gap: 5px;
    }
    
    .top-bar .col-md-6 {
        text-align: center !important;
        width: 100%;
    }
    
    .top-bar .info-left,
    .top-bar .social-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .top-bar .separator {
        display: none;
    }
    
    .top-bar a i {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .top-bar {
        font-size: 10px;
        padding: 6px 0;
    }
    
    .top-bar .info-left {
        gap: 5px;
    }
    
    .top-bar .social-right a {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}


@media (max-width: 1199px) {
    .logo-img {
        max-height: 65px;
    }
    
    .secondary-logo {
        height: 45px;
    }
}

@media (max-width: 991px) {
    .navbar-main {
        padding: 10px 0;
    }
    
    .navbar-main .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .navbar-brand {
        margin-bottom: 0;
    }
    
    .logo-img {
        max-height: 55px;
    }
    
    .secondary-logo {
        height: 35px;
    }
    
    .navbar-toggler {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .navbar-collapse {
        width: 100%;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 14px;
        font-size: 0.8rem;
        margin: 0;
        text-align: center;
        width: 100%;
        border-radius: 8px;
    }
    
    .navbar-nav .nav-link:after {
        display: none;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255,82,3,0.08);
    }
    
    /* Dropdown en móvil */
    .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        border: none;
        box-shadow: none;
        padding: 5px 0;
        background: #f8f9fa;
        border-radius: 8px;
        margin-top: 5px;
        text-align: center;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item {
        padding: 8px 15px;
        font-size: 0.78rem;
        text-align: center;
    }
    
    .navbar-nav .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }

    .navbar-collapse .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    
    .navbar-collapse .d-flex .btn {
        width: 100%;
        text-align: center;
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .secondary-logo {
        margin-left: 0 !important;
        margin-top: 0;
        height: 30px;
    }
}

@media (max-width: 575px) {
    .logo-img {
        max-height: 40px;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .navbar-toggler {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .navbar-collapse .d-flex .btn {
        font-size: 0.7rem;
        padding: 8px 16px;
    }
    
    .secondary-logo {
        height: 25px;
    }
}

.navbar-main.scrolled {
    padding: 6px 0;
}

.navbar-main.scrolled .logo-img {
    max-height: 45px;
}

@media (max-width: 575px) {
    .navbar-main.scrolled .logo-img {
        max-height: 35px;
    }
}


@media (max-width: 1199px) {
    .swiper-slide {
        height: 75vh;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 991px) {
    .swiper-slide {
        height: 65vh;
        min-height: 400px;
    }
    
    .hero-content {
        max-width: 90%;
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 18px;
    }
    
    .hero-buttons {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .hero-buttons .btn {
        padding: 10px 22px !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 767px) {
    .swiper-slide {
        height: 55vh;
        min-height: 320px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 10px 20px !important;
        font-size: 0.8rem !important;
    }
    
    .hero-buttons .me-3 {
        margin-right: 0 !important;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 18px !important;
    }
    
    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 575px) {
    .swiper-slide {
        height: 50vh;
        min-height: 280px;
    }
    
    .hero-content h1 {
        font-size: 1.4rem;
    }
    
    .hero-content p {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }
    
    .hero-buttons .btn {
        font-size: 0.7rem !important;
        padding: 8px 16px !important;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .swiper-slide {
        height: 85vh;
        min-height: 300px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .hero-buttons .btn {
        padding: 6px 14px !important;
        font-size: 0.7rem !important;
    }
}



@media (max-width: 991px) {
    .py-5 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .section-title {
        margin-bottom: 35px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title .subtitle {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .py-5 {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    
    .section-title {
        margin-bottom: 25px;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .section-title .subtitle {
        font-size: 11px;
        letter-spacing: 1px;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    .d-flex.align-items-center.mt-4 {
        flex-direction: column;
        text-align: center;
    }
    
    .d-flex.align-items-center.mt-4 .ms-3 {
        margin-left: 0 !important;
        margin-top: 10px;
    }
    
    .btn-primary-custom {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
}

@media (max-width: 575px) {
    .section-title h2 {
        font-size: 1.3rem;
    }
    
    .section-title .subtitle {
        font-size: 10px;
    }
}


@media (max-width: 991px) {
    .service-img {
        height: 200px;
    }
    
    .service-body {
        padding: 20px;
    }
    
    .service-body h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .service-card {
        margin-bottom: 20px;
    }
    
    .service-img {
        height: 180px;
    }
    
    .service-body {
        padding: 15px;
    }
    
    .service-body h4 {
        font-size: 1rem;
    }
    
    .service-body p {
        font-size: 0.85rem;
    }
    
    .service-body .btn {
        padding: 8px 20px;
        font-size: 0.75rem;
    }
}

@media (max-width: 575px) {
    .service-img {
        height: 160px;
    }
    
    .service-body h4 {
        font-size: 0.9rem;
    }
    
    .service-body p {
        font-size: 0.75rem;
    }
}


@media (max-width: 991px) {
    .gallery-section {
        padding: 50px 0;
    }
    
    .gallery-item img {
        height: 220px;
    }
}

@media (max-width: 767px) {
    .gallery-section {
        padding: 30px 0;
    }
    
    .gallery-filter {
        margin-bottom: 20px;
    }
    
    .filter-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
        margin: 3px;
    }
    
    .gallery-item {
        margin-bottom: 15px;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .gallery-overlay i {
        font-size: 28px;
    }
}

@media (max-width: 575px) {
    .gallery-item img {
        height: 150px;
    }
    
    .filter-btn {
        padding: 4px 10px;
        font-size: 0.65rem;
    }
}



@media (max-width: 991px) {
    .client-logos {
        padding: 40px 0;
    }
    
    .client-item img {
        max-height: 50px;
    }
}

@media (max-width: 767px) {
    .client-logos {
        padding: 30px 0;
    }
    
    .client-item {
        padding: 10px;
    }
    
    .client-item img {
        max-height: 40px;
    }
}

@media (max-width: 575px) {
    .client-item img {
        max-height: 30px;
    }
}

@media (max-width: 767px) {
    .video-section .py-5 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .video-section h2 {
        font-size: 1.6rem !important;
    }
    
    .video-section p {
        font-size: 0.9rem;
    }
    
    .video-section .btn {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
}

@media (max-width: 575px) {
    .video-section h2 {
        font-size: 1.3rem !important;
    }
    
    .video-section p {
        font-size: 0.8rem;
    }
}


@media (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 15px;
        left: 15px;
    }
}

@media (max-width: 575px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 10px;
        left: 10px;
    }
}


@media (max-width: 991px) {
    footer {
        padding: 40px 0 20px;
    }
    
    footer h5 {
        margin-bottom: 15px;
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    footer {
        padding: 30px 0 15px;
        text-align: center;
    }
    
    footer h5 {
        margin-bottom: 12px;
        font-size: 1rem;
    }
    
    footer p {
        font-size: 0.85rem;
    }
    
    footer .list-unstyled {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

@media (max-width: 575px) {
    footer p {
        font-size: 0.75rem;
    }
    
    footer h5 {
        font-size: 0.9rem;
    }
    
    footer .list-unstyled li a {
        font-size: 0.8rem;
    }
}