﻿/* ============================================================
   RESPONSIVE.CSS ÔÇö Media Queries
   ============================================================ */

/* === XX-Large (ÔëÑ1400px) === */
@media (max-width: 1400px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

/* === X-Large (ÔëÑ1200px) === */
@media (max-width: 1199.98px) {
  .section {
    padding: 80px 0;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-stats {
    gap: 25px;
  }
}

/* === Large (ÔëÑ992px) === */
@media (max-width: 991.98px) {
  .section {
    padding: 70px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-stats {
    gap: 20px;
  }
  .stat-number {
    font-size: 1.6rem;
  }
  .about-experience-badge {
    width: 90px;
    height: 90px;
    right: -10px;
    bottom: -10px;
  }
  .badge-number {
    font-size: 1.4rem;
  }
  .service-category-card {
    padding: 22px;
  }
  .brands-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
  .equipment-benefits {
    padding: 30px 20px;
  }
  .contact-form-wrapper {
    padding: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* === Medium (ÔëÑ768px) === */
@media (max-width: 767.98px) {
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .section-text {
    font-size: 0.95rem;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-right: 0 !important;
  }
  .hero-stats {
    justify-content: center;
    gap: 30px;
  }
  .about-experience-badge {
    width: 80px;
    height: 80px;
    right: -8px;
    bottom: -8px;
  }
  .badge-number {
    font-size: 1.2rem;
  }
  .badge-text {
    font-size: 0.6rem;
  }
  .service-list {
    gap: 12px;
  }
  .service-item {
    padding: 10px;
  }
  .product-filters {
    gap: 8px;
  }
  .filter-btn {
    padding: 8px 18px;
    font-size: 0.8rem;
  }
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .brand-item {
    padding: 0;
    height: 70px;
  }
  .brand-item span {
    font-size: 0.75rem;
  }
  .benefit-item {
    padding: 14px;
  }
  .benefit-item i {
    font-size: 1.3rem;
  }
  .story-image img {
    height: 180px;
  }
  .gallery-item img {
    height: 200px;
  }
  .contact-form-wrapper {
    padding: 20px;
  }
  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 24px;
    bottom: 18px;
    right: 18px;
  }
}

/* === Small (ÔëÑ576px) === */
@media (max-width: 575.98px) {
  #mainNav .navbar-brand img {
    max-height: 35px;
    width: auto;
  }
  .section {
    padding: 50px 0;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-badge {
    font-size: 0.75rem;
  }
  .hero-stats {
    gap: 20px;
  }
  .stat-number {
    font-size: 1.4rem;
  }
  .stat-label {
    font-size: 0.7rem;
  }
  .product-image {
    height: 170px;
  }
  .product-image img {
    height: 110px;
  }
  .equipment-card {
    padding: 22px;
  }
  .equipment-icon {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }
  .equipment-title {
    font-size: 1rem;
  }
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-title {
    text-align: center;
  }
  .footer-links {
    text-align: center;
  }
  .footer-contact {
    text-align: center;
  }
  .footer-contact li {
    justify-content: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-desc {
    text-align: center;
  }
  .footer-section {
    text-align: center;
  }
}

/* === Extra small devices === */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.4rem;
  }
  .hero-stats {
    gap: 14px;
  }
  .stat-number {
    font-size: 1.2rem;
  }
  .stat-label {
    font-size: 0.65rem;
  }
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-image {
    height: 150px;
  }
}

/* === Mobile (max-width: 768px) — Hero, Brands, Floating buttons === */
@media (max-width: 768px) {

  /* === HERO: flexbox reorder + spacing below navbar === */
  .hero-content .row {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
    padding-top: 90px;
  }
  .hero-content .col-lg-7 {
    display: contents;
  }
  .hero-content .hero-badge { order: 1; }
  .hero-content .hero-title { order: 2; }
  .hero-content .hero-subtitle { order: 4; }
  .hero-content .hero-stats { order: 5; }
  .hero-content .hero-buttons { order: 6; }

  /* ---- 1. Badge: 60% desktop size, centered ---- */
  .hero-badge {
    display: inline-block;
    font-size: 0.51rem !important;
    transform: none;
    margin-top: 0;
    margin-bottom: 12px;
    padding: 4px 12px;
    align-self: center;
    visibility: visible;
    opacity: 1 !important;
  }

  /* ---- 2. Title: 70% desktop size, max 4 lines ---- */
  .hero-title {
    font-size: 1.4rem !important;
    line-height: 1.05;
    margin-bottom: 24px;
    max-width: 95%;
    margin-inline: auto;
  }

  /* ---- 3. Carousel: centered, 70% width ---- */
  .hero-carousel-col {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
  }
  .hero-icon-display {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-icon-carousel {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .hero-carousel-inner {
    width: 70%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1;
  }
  .carousel-item-content img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
  }
  .carousel-item-content i {
    font-size: 3.5rem;
  }

  /* ---- Kill compositor layer that expands document scrollWidth ---- */
  .hero-carousel-slide {
    will-change: auto;
  }

  /* ---- Arrows: align with carousel image center (576-768px) ---- */
  .carousel-arrow {
    top: 326px;
  }

  /* ---- 4. Subtitle: +10% size ---- */
  .hero-subtitle {
    max-width: 90%;
    margin-inline: auto;
    text-align: center;
    font-size: 0.935rem !important;
  }

  /* ---- 5. Stats: -10% size ---- */
  .hero-stats {
    gap: 0;
    justify-content: space-between;
    margin-top: 12px !important;
  }
  .stat-item {
    width: 33.33%;
  }
  .stat-number {
    font-size: 1.44rem !important;
  }
  .stat-label {
    font-size: 0.648rem !important;
  }

  /* ---- 6. Buttons: -20% size ---- */
  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
  }
  .hero-buttons .btn {
    padding: 0.36rem 0.72rem;
    width: 90%;
    font-size: 1rem !important;
  }

  /* ---- Floating buttons: z-index high for Android ---- */
  .whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 24px;
    left: auto;
    transform: none;
    z-index: 99999 !important;
  }
  .cart-float-btn {
    position: fixed;
    bottom: 90px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 20px;
    left: auto;
    z-index: 99999 !important;
  }

  /* ---- Disable AOS on mobile ---- */
  [data-aos],
  .aos-init,
  .aos-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  /* ---- Overflow safety: video bg + carousel children ---- */
  .section-video-bg {
    max-width: 100%;
    overflow: hidden;
  }
  .hero-carousel-slide,
  .carousel-item-content,
  .carousel-item-content img {
    max-width: 100%;
  }

  /* === BRANDS: 3 columns === */
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* === Hero carousel + mobile centering === */
@media (max-width: 991.98px) {
  .hero-carousel-col {
    justify-content: center;
  }
  .hero-icon-display {
    margin-bottom: 20px;
    text-align: center;
    justify-content: center;
  }
  .hero-icon-carousel {
    margin: 0 auto;
  }
  .hero-carousel-inner {
    width: 220px;
    height: 220px;
  }
  .carousel-item-content i {
    font-size: 4.5rem;
  }
  .carousel-item-content img {
    max-width: 180px;
    max-height: 180px;
  }
  .carousel-arrow {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
  .carousel-prev { left: 24px; }
  .carousel-next { right: 24px; }
  .hero-badge,
  .hero-title,
  .hero-subtitle,
  .hero-buttons,
  .hero-stats {
    text-align: center;
  }
  .hero-title {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-right: 0 !important;
  }

  /* ---- Kill Bootstrap gutter overflow (only excessive gutters) ---- */
  .row.g-5,
  .row.g-5.align-items-center {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .container,
  .container-fluid {
    overflow-x: hidden;
  }

  /* ---- Fix video bg positioning on mobile ---- */
  .section-video-bg {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    overflow: hidden !important;
  }

  /* ---- Constrain particles to viewport ---- */
  .particle {
    max-width: 100vw !important;
    max-height: 100vh !important;
  }

  /* ---- Float buttons: 15px higher ---- */
  .whatsapp-float {
    bottom: 35px !important;
  }
  .cart-float-btn {
    bottom: 105px !important;
  }

  /* ---- Hamburger: smaller on mobile ---- */
  .navbar-toggler {
    width: 44px !important;
    height: 44px !important;
    padding: 0.4rem !important;
  }
  .navbar-toggler-icon {
    width: 26px !important;
    height: 26px !important;
  }

  /* ---- Menu: Servicios display block like others ---- */
  #mainNav .nav-item .dropdown-trigger {
    display: block !important;
    padding: 8px 14px !important;
  }

  /* ---- Hide carousel arrows on mobile ---- */
  .carousel-prev,
  .carousel-next {
    display: none !important;
  }

  /* ---- Scroll indicator: 20% smaller, at Hero bottom ---- */
  .hero-scroll-indicator {
    bottom: 10px;
  }
  .scroll-text {
    font-size: 0.6rem;
  }
  .mouse {
    width: 31px;
    height: 50px;
    border-width: 2px;
  }
  .wheel {
    width: 5px;
    height: 10px;
    top: 10px;
  }
}

@media (max-width: 575.98px) {
  .hero-carousel-col {
    justify-content: center;
  }
  .hero-icon-carousel {
    margin: 0 auto;
  }
  .hero-carousel-inner {
    width: 160px;
    height: 160px;
  }
  .carousel-item-content i {
    font-size: 3.2rem;
  }
  .carousel-item-content img {
    max-width: 130px;
    max-height: 130px;
  }
  .carousel-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
    top: 246px;
  }
  .carousel-prev { left: 16px; }
  .carousel-next { right: 16px; }
  #mainNav .nav-link {
    text-align: center;
  }
}
