/* =========================
   RESPONSIVE HEADER / FOOTER
========================= */

@media (max-width: 980px) {
  .top-strip {
    justify-content: center;
    gap: 18px;
    padding: 0 5%;
    font-size: 12px;
  }
  .link-web{
    display: none;
  }

  .navbar {
    height: 64px;
    padding: 0 5%;
  }

  .brand {
    width: 135px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    background: #fff;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 5% 22px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
    z-index: 1200;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu > a,
  .dropdown-btn {
    width: 100%;
    height: auto;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
  }

  .nav-cta {
    width: 100%;
    margin-top: 14px;
    text-align: center;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-panel {
    position: static;
    width: 100%;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }

  .dropdown.open .dropdown-panel {
    display: block;
  }

  .dropdown:hover .dropdown-panel {
    transform: none;
  }

  .dropdown-panel::before {
    display: none;
  }

  .catalog-menu {
    max-height: none;
    overflow: visible;
  }

  .catalog-title {
    padding: 12px 0;
  }

  .catalog-items {
    display: none;
  }

  .catalog-group.open .catalog-items {
    display: block;
  }

  .catalog-group:hover .catalog-items {
    display: none;
  }

  .catalog-group.open:hover .catalog-items {
    display: block;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 42px 5%;
  }

  .brand-footer {
    max-width: 220px;
  }

  .footer-accordion-btn {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: 0;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 0;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .footer-accordion-content {
    display: none;
    padding: 8px 0 12px;
  }

  .footer-accordion.open .footer-accordion-content {
    display: block;
  }
}

@media (max-width: 560px) {
  .top-strip {
    height: auto;
    min-height: 34px;
    flex-direction: column;
    gap: 4px;
    padding: 7px 5%;
  }

  .navbar {
    height: 62px;
  }

  .brand {
    width: 125px;
  }

  .nav-menu {
    top: 96px;
  }

  .site-footer {
    padding: 36px 5%;
  }
}

/* =====================================================
   RESPONSIVE SOLO HERO HOME
===================================================== */

@media (max-width: 640px) {
  .home-hero {
    height: auto !important;
    min-height: 540px !important;
    overflow: hidden;
  }

  .home-hero-swiper,
  .home-hero-swiper .swiper-wrapper,
  .home-hero-swiper .swiper-slide {
    height: auto !important;
    min-height: 540px !important;
  }

  .hero-slide {
    min-height: 540px !important;
    height: auto !important;
    padding: 60px 0 76px !important;
    align-items: center !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  .hero-slide-overlay {
    background: linear-gradient(
      180deg,
      rgba(2, 12, 32, 0.94) 0%,
      rgba(2, 12, 32, 0.88) 54%,
      rgba(2, 12, 32, 0.74) 100%
    ) !important;
  }

  .hero-slide::before {
    opacity: 0.35;
  }

  .hero-slide-content {
    width: 90%;
    margin: 0 auto;
  }

  .home-eyebrow,
  .home-kicker {
    padding-top: 0 !important;
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
  }

  .home-eyebrow::before,
  .home-kicker::before {
    width: 24px;
  }

  .hero-slide-content h1,
  .hero-slide-content h2 {
    font-size: 38px !important;
    line-height: 1.02 !important;
    letter-spacing: -1.2px !important;
    max-width: 100% !important;
    margin: 16px 0 !important;
  }

  .hero-slide-content p {
    font-size: 15.5px !important;
    line-height: 1.55 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .home-actions {
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 26px !important;
  }

  .home-btn {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0 18px !important;
  }

  .hero-benefits {
    display: none !important;
  }

  .home-hero .swiper-button-next,
  .home-hero .swiper-button-prev {
    display: none !important;
  }

  .home-hero .swiper-pagination {
    bottom: 18px !important;
  }
}

/* =====================================================
   RESPONSIVE HOME - TRUST CARDS
===================================================== */

@media (max-width: 640px) {
  .home-trust {
    padding: 22px 0 !important;
  }

  .trust-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .trust-item {
    min-height: auto !important;
    padding: 18px 20px !important;
    align-items: center !important;
    gap: 14px !important;
  }

  .trust-icon {
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
  }

  .trust-item strong {
    font-size: 17px !important;
    margin-bottom: 4px !important;
  }

  .trust-item span {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
}

/* =====================================================
   RESPONSIVE HOME - CATEGORÍAS
===================================================== */

@media (max-width: 640px) {
  .home-categories {
    padding: 56px 0 !important;
  }

  .category-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .category-card {
    min-height: auto !important;
    padding: 24px !important;
  }

  .category-card-icon {
    width: 56px !important;
    height: 56px !important;
    margin-bottom: 16px !important;
  }

  .category-card h3 {
    font-size: 22px !important;
    margin-bottom: 10px !important;
  }

  .category-card p {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  .category-card a {
    margin-top: 16px !important;
    display: inline-flex !important;
  }
}

/* =====================================================
   RESPONSIVE HOME - INDUSTRIAS
===================================================== */

@media (max-width: 640px) {
  .industry-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .industry-card {
    min-height: 180px !important;
    padding: 24px !important;
    border-radius: 18px !important;
  }

  .industry-card::before {
    width: 100px !important;
    height: 100px !important;
    right: -30px !important;
    top: -30px !important;
  }

  .industry-card h3 {
    font-size: 24px !important;
    margin-bottom: 12px !important;
  }

  .industry-card p {
    font-size: 15px !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
  }
}

/* =====================================================
   RESPONSIVE HOME - PRODUCTOS DESTACADOS
===================================================== */

@media (max-width: 640px) {
  .featured-products {
    padding: 56px 0 !important;
  }

  .products-swiper {
    padding: 8px 0 46px !important;
  }

  .product-card-home {
    min-height: auto !important;
    padding: 22px !important;
    border-radius: 18px !important;
  }

  .product-card-home img {
    height: 135px !important;
    margin: 4px auto 20px !important;
  }

  .product-code {
    font-size: 11px !important;
    margin-bottom: 10px !important;
  }

  .product-badge {
    font-size: 11px !important;
    margin-bottom: 10px !important;
  }

  .product-card-home h3 {
    font-size: 22px !important;
    line-height: 1.15 !important;
  }

  .product-card-home p {
    font-size: 14.5px !important;
    line-height: 1.55 !important;
    margin-bottom: 18px !important;
  }

  .product-card-home a {
    width: 100% !important;
    min-height: 44px !important;
  }

  .products-pagination {
    bottom: 6px !important;
  }
}

/* =====================================================
   RESPONSIVE HOME - POR QUÉ PLOTTERS.EC
===================================================== */

@media (max-width: 640px) {
  .why-layout {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .why-copy {
    max-width: 100% !important;
  }

  .why-copy h2 {
    font-size: 36px !important;
    line-height: 1.05 !important;
    letter-spacing: -1.2px !important;
  }

  .why-copy p {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .why-list {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .why-list div {
    padding: 22px !important;
    border-radius: 18px !important;
  }

  .why-list strong {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  .why-list span {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }
}

/* =====================================================
   RESPONSIVE HOME - CTA FINAL
===================================================== */

@media (max-width: 640px) {
  .home-cta {
    padding: 56px 0 !important;
    text-align: center !important;
  }

  .home-cta h2 {
    font-size: 42px !important;
    line-height: 1.05 !important;
    max-width: 520px !important;
    margin: 0 auto 18px !important;
  }

  .home-cta p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
  }

  .home-cta-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 24px !important;
  }

  .home-cta-actions .home-btn,
  .home-cta-actions a {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* =========================
   FOOTER ACORDEÓN MÓVIL
========================= */

@media (max-width: 980px) {
  .footer-accordion-btn {
    display: flex;
  }

  .footer-accordion-content {
    display: none;
  }

  .footer-accordion.open .footer-accordion-content {
    display: block;
  }
}

/* =====================================================
   RESPONSIVE PRODUCT - HERO
===================================================== */

@media (max-width: 640px) {
  .product-breadcrumb {
    width: 80% !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    font-size: 12px !important;
    padding: 15px 0 7px !important;
  }

  .product-hero-section {
    width: 90% !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    min-height: auto !important;
    padding: 28px 0 42px !important;
  }

  .product-gallery {
    order: 1 !important;
  }

  .product-hero-info {
    order: 2 !important;
  }

  .product-hero-image {
    padding: 20px !important;
    border-radius: 16px !important;
  }

  .product-thumbs {
    justify-content: center !important;
    gap: 10px !important;
  }

  .thumb-btn {
    width: 76px !important;
    height: 58px !important;
  }

  .product-category {
    font-size: 11px !important;
    margin-bottom: 10px !important;
  }

  .product-hero-info h1 {
    font-size: 38px !important;
    line-height: 1 !important;
    letter-spacing: -1.5px !important;
    margin-bottom: 16px !important;
  }

  .product-subtitle {
    font-size: 16px !important;
    line-height: 1.55 !important;
    margin-bottom: 22px !important;
  }

  .product-benefits {
    gap: 11px !important;
    margin-bottom: 26px !important;
  }

  .product-benefits li {
    font-size: 14.5px !important;
    line-height: 1.45 !important;
  }

  .product-actions {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .product-actions .btn-primary,
  .product-actions .btn-secondary {
    width: 100% !important;
  }
}

/* =====================================================
   RESPONSIVE PRODUCT - BENEFICIOS RÁPIDOS
===================================================== */

@media (max-width: 640px) {
  .product-highlights {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 24px 5% !important;
  }

  .product-highlights article {
    min-width: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 18px !important;
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
  }

  .feature-icon {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
  }

  .feature-icon i {
    font-size: 18px !important;
  }

  .product-highlights h3 {
    font-size: 16px !important;
    margin-bottom: 6px !important;
  }

  .product-highlights p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}

/* =====================================================
   RESPONSIVE PRODUCT - TABS AJUSTE FINO
===================================================== */

@media (max-width: 640px) {
  .product-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    row-gap: 12px !important;
    margin-bottom: 34px !important;
    padding-bottom: 20px !important;
  }

  .product-tabs button {
    width: 100% !important;
    min-height: 42px !important;
    padding: 8px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  .product-content-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .product-description h2 {
    font-size: 34px !important;
    line-height: 1.08 !important;
    letter-spacing: -1px !important;
  }

  .product-description p {
    font-size: 15.5px !important;
    line-height: 1.6 !important;
  }

  .product-info-card {
    width: 100% !important;
    padding: 22px !important;
    border-radius: 16px !important;
  }

  .product-info-card h3 {
    font-size: 22px !important;
    line-height: 1.15 !important;
  }

  .product-info-card ul {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  .check-list {
    gap: 14px !important;
  }

  .check-list li {
    font-size: 15px !important;
    line-height: 1.35 !important;
  }
}

/* =====================================================
   RESPONSIVE PRODUCT - CONTENIDO TABS
===================================================== */

@media (max-width: 640px) {
  .product-content-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
  }

  .product-description {
    width: 100% !important;
  }

  .product-description h2 {
    font-size: 36px !important;
    line-height: 1.08 !important;
    margin-bottom: 18px !important;
  }

  .product-description p {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  .product-detail-image {
    width: 100% !important;
  }

  .product-detail-image img {
    width: 100% !important;
    border-radius: 16px !important;
  }

  .product-info-card {
    width: 100% !important;
    margin: 0 !important;
  }

  .product-info-card ul,
  .check-list {
    padding-left: 18px !important;
  }

  .product-info-card li,
  .check-list li {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  .btn-primary.small {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* =====================================================
   RESPONSIVE PRODUCT - FAQ
===================================================== */

@media (max-width: 640px) {
  .faq-section {
    width: 90% !important;
    padding: 36px 0 54px !important;
  }

  .section-heading {
    margin-bottom: 28px !important;
  }

  .section-heading h2 {
    font-size: 34px !important;
    line-height: 1.08 !important;
    letter-spacing: -1px !important;
  }

  .faq-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .faq-card {
    padding: 22px !important;
    border-radius: 16px !important;
  }

  .faq-card h3 {
    font-size: 19px !important;
    line-height: 1.3 !important;
  }

  .faq-card p {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
}

/* =====================================================
   RESPONSIVE PRODUCT - RELACIONADOS
===================================================== */
@media (max-width: 640px) {
  .related-products-section {
    width: 90% !important;
    margin: 0 auto 50px !important;
  }

  .related-products-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  .related-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow: hidden !important;
    border-radius: 18px !important;
  }

  .related-card img {
    width: 100% !important;
    height: 190px !important;
    object-fit: cover;
    object-position: center;
    background: var(--soft) !important;
    flex-shrink: 0 !important;
  }

  .related-card div {
    padding: 22px !important;
  }

  .related-card span {
    font-size: 11px !important;
    margin-bottom: 8px !important;
  }

  .related-card h3 {
    font-size: 24px !important;
    line-height: 1.1 !important;
    margin-bottom: 10px !important;
  }

  .related-card p {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
  }

  .related-card a {
    font-size: 15px !important;
    font-weight: 900 !important;
  }
}
