/* ============================================================
   MAQUIMOL Colombia - Responsive Styles
   Media Queries: 1200px / 992px / 768px / 576px
   ============================================================ */

/* --------------------------------------------
   1. LARGE DESKTOP (max-width: 1200px)
   -------------------------------------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------
   2. DESKTOP / TABLET LANDSCAPE (max-width: 992px)
   -------------------------------------------- */
@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 50vh;
  }

  .hero-sm {
    min-height: 30vh;
  }

  .section {
    padding: 48px 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-item.featured {
    grid-column: span 1;
    grid-row: span 1;
  }

  .process-steps.has-lines .process-step:not(:last-child)::after {
    display: none;
  }
}

/* --------------------------------------------
   3. TABLET PORTRAIT (max-width: 768px)
   -------------------------------------------- */
@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }


  h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  h3 { font-size: clamp(1.1rem, 4vw, 1.4rem); }

  .hero {
    min-height: 45vh;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .section {
    padding: 40px 0;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer {
    padding: 40px 0 0;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner {
    padding: 40px 0;
  }

  .back-to-top {
    bottom: 70px;
    right: 15px;
    width: 40px;
    height: 40px;
  }

  .whatsapp-float {
    bottom: 15px;
    left: 15px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-float .fab.fa-whatsapp {
    font-size: 24px;
  }
}

/* --------------------------------------------
   4. MOBILE (max-width: 576px)
   -------------------------------------------- */
@media (max-width: 576px) {
  .container {
    max-width: 100%;
    padding: 0 16px;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  h2 { font-size: clamp(1.2rem, 5vw, 1.5rem); }
  h3 { font-size: clamp(1rem, 4vw, 1.25rem); }

  body {
    font-size: 15px;
  }

  .hero {
    min-height: 40vh;
  }

  .hero-content h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .section {
    padding: 32px 0;
  }

  .section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .section-subtitle {
    font-size: 0.92rem;
    margin-bottom: 24px;
  }

  .btn {
    padding: 10px 22px;
    font-size: 0.88rem;
  }

  .btn-lg {
    padding: 12px 28px;
    font-size: 1rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    padding: 24px 20px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .contact-form-wrapper {
    padding: 20px;
  }

  .faq-question {
    padding: 14px 18px;
    font-size: 0.92rem;
  }

  .faq-answer-inner {
    padding: 0 18px 14px;
    font-size: 0.88rem;
  }

  .portfolio-filters {
    gap: 6px;
  }

  .portfolio-filter {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  .cta-banner {
    padding: 32px 0;
  }

  .cta-banner h2 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .cta-banner p {
    font-size: 0.92rem;
  }

  .top-bar-info span:not(:first-child) {
    display: none;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 8px;
  }
}

/* --------------------------------------------
   5. SMALL MOBILE (max-width: 400px)
   -------------------------------------------- */
@media (max-width: 400px) {
  .container {
    padding: 0 12px;
  }

  .hero {
    min-height: 35vh;
  }

  .hero-content .btn {
    display: flex;
    width: 100%;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .partner-item {
    padding: 12px;
  }

  .partner-item img {
    max-height: 40px;
  }

  .whatsapp-float {
    width: 44px;
    height: 44px;
    bottom: 12px;
    left: 12px;
  }

  .whatsapp-float .fab.fa-whatsapp {
    font-size: 22px;
  }

  .back-to-top {
    width: 36px;
    height: 36px;
    bottom: 65px;
    right: 12px;
  }

  .back-to-top svg {
    width: 16px;
    height: 16px;
  }
}

/* --------------------------------------------
   6. PRINT STYLES
   -------------------------------------------- */
@media print {
  .main-header,
  .top-bar,
  .site-footer,
  .whatsapp-float,
  .back-to-top,
  .hamburger {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .hero-overlay {
    display: none;
  }

  .hero-content h1,
  .hero-content p {
    color: var(--text);
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000 !important;
    text-decoration: underline;
  }

  .container {
    max-width: 100%;
  }

  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
}
