@media screen and (max-width: 1750px) {
    .coffe {
        display: none;
    }
}

@media screen and (max-width: 1530px) {
    #right-home-panel {
        width: 25rem;
    }
}

@media screen and (max-width: 1420px) {
        #right-home-panel {
        width: 20rem;
    }
}

@media screen and (max-width: 1350px) {
    #right-home-panel {
        display: none;
    }
}

@media screen and (max-width: 1199px) {
    .sections-title {
        margin: 5rem 0 3rem 10rem;
        font-size: 24px;
    }
    
    .welcome {
        margin: 12rem 8rem;
        margin-top: 13rem;
    }
    
    .welcome h1 {
        font-size: 48px;
    }
    
    .welcome h2 {
        font-size: 24px;
    }
    
    .welcome button {
        width: 30rem;
    }
    
    .coffe {
        margin: auto 24rem;
        top: 11rem;
    }
    
    .coffe img {
        width: 22rem;
        height: 30rem;
    }
}

@media screen and (max-width: 1023px) {
    .sections-title {
        margin: 4rem 0 3rem 6rem;
        font-size: 22px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
        gap: 1.5rem;
        padding: 0 2rem 1rem 2rem;
    }
    
    .locations-container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 2rem;
    }
    
    .searcher {
        border-right: none;
        border-bottom: 2px solid var(--gray-medium);
        padding-bottom: 2rem;
    }
    
    .form-container {
        width: 32rem;
        height: auto;
        padding-bottom: 2rem;
    }
    
    #contact .form-container {
        width: 90%;
        max-width: 32rem;
        height: auto;
        padding: 2rem;
    }
}

@media screen and (max-width: 900px) {
    #right-home-panel {
        display: none;
    }
    
    .coffe {
        display: none;
    }
    
    .welcome {
        margin: 8rem auto;
        margin-top: 12rem;
        text-align: center;
        width: 90%;
        max-width: 600px;
    }
    
    .welcome button {
        width: 100%;
        max-width: 25rem;
    }
    
    #home {
        height: 80vh;
        justify-content: center;
        align-items: center;
    }
}

@media screen and (max-width: 768px) {
    nav {
        padding: 1rem;
        position: relative;
    }
    
    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding-top: 2rem;
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        padding: 1rem 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    .nav-right {
        flex-direction: column;
        gap: 1rem;
        padding-right: 0;
        margin-left: 0;
        width: 100%;
    }
    
    .nav-right li {
        width: 80%;
    }
    
    .nav-right button {
        width: 100%;
    }
    
    .hamburger {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary-color);
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    .hamburger.active {
        color: var(--accent-dark);
    }
    
    .mobile-logo-container {
        display: flex;
        align-items: center;
    }
    
    @media screen and (min-width: 769px) {
        .hamburger,
        .mobile-logo {
            display: none;
        }
        
        .mobile-logo-container {
            display: none;
        }
    }
    
    @media screen and (min-width: 769px) {
        .hamburger {
            display: none;
        }
    }
    
    .sections-title {
        margin: 4rem 0 2rem 2rem;
        font-size: 20px;
    }
    
    .welcome h1 {
        font-size: 36px;
    }
    
    .welcome h2 {
        font-size: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
        padding: 0 1rem 1rem 1rem;
    }
    
    .modal {
        width: 95%;
        max-width: none;
    }
    
    .form-container {
        width: 28rem;
    }
    
    #contact .form-container {
        width: 95%;
        max-width: 28rem;
    }
    
    .form-inputs {
        width: 80%;
    }
}

@media screen and (max-width: 767px) {
    nav {
        padding: 2rem;
    }
    
    nav ul {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .logo {
        width: 5rem;
        height: 5rem;
        margin: auto;
    }

    .logo:hover {
        box-shadow: none;
    }

    nav ul li a.logo {
        background-color: transparent;
    }
    
    .sections-title {
        margin: 6rem 0 2rem 4rem;
        font-size: 18px;
    }
    
    .welcome {
        margin: 6rem 2rem;
        margin-top: 10rem;
    }
    
    .welcome h1 {
        font-size: 28px;
    }
    
    .welcome h2 {
        font-size: 18px;
    }
    
    .welcome button {
        width: 100%;
        max-width: 20rem;
        padding: 1rem;
    }
    
    #home {
        height: 85vh;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
        gap: 1rem;
        padding: 0 0.5rem 1rem 0.5rem;
    }
    
    .product-container {
        padding: 0.8rem;
    }
    
    .product-container h3 {
        padding: 0.5rem 0 0.2rem 0.5rem;
        font-size: 14px;
    }
    
    .product-container p {
        padding: 0 0 0.5rem 0.5rem;
        font-size: 12px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .locations-container {
        padding: 1rem;
        height: 80vh;
    }
    
    .searcher .form-inputs {
        padding: 0 1rem;
        width: 100%;
    }
    
    .search-result {
        padding: 0 1rem;
        width: 100%;
    }
    
    .form-container {
        width: 80%;
        padding: 4rem;
        height: auto;
        padding-bottom: 2rem;
    }
    
    #contact {
        height: auto;
        padding-bottom: 4rem;
    }
    
    #contact .form-container {
        margin-top: 2rem;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }
    
    .form-inputs {
        width: 100%;
    }
    
    .form-inputs input,
    .form-inputs textarea,
    .form-inputs select {
        margin: 15px auto;
        padding: 0.7rem 0.3rem;
    }
    
    .form-inputs button {
        margin: 2rem auto 1.5rem 0;
    }
    
    .buttons-container {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media screen and (max-width: 479px) {
    nav {
        padding: 0.6rem;
    }
    
    nav ul {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .logo {
        width: 2rem;
        height: 2rem;
    }
    
    .sections-title {
        margin: 2rem 0 1.5rem 0.5rem;
        font-size: 16px;
        text-align: center;
    }
    
    .welcome {
        margin: 4rem 1rem;
        margin-top: 8rem;
    }
    
    .welcome h1 {
        font-size: 24px;
        margin-bottom: 1rem;
    }
    
    .welcome h2 {
        font-size: 16px;
    }
    
    .welcome button {
        width: 100%;
        max-width: 18rem;
        font-size: 12px;
        padding: 0.8rem;
    }
    
    #home {
        height: 60vh;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .product-container {
        padding: 0.6rem;
    }
    
    .modal {
        width: 98%;
        margin: 0 1%;
    }
    
    .modal-header h1 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 0.8rem;
    }
    
    .modal-description {
        font-size: 14px;
    }
    
    .locations-container {
        width: 100%;
        padding: 0.5rem;
        margin: 0;
    }
    
    .searcher .form-inputs {
        padding: 0 0.5rem;
    }
    
    .search-result {
        padding: 0 0.5rem;
    }
    
    #zipcode {
        font-size: 14px;
    }
    
    .form-container {
        width: 18rem;
        min-height: auto;
    }
    
    #contact .form-container {
        width: 98%;
        max-width: 18rem;
        padding: 1rem;
    }
    
    .form-inputs {
        width: 90%;
    }
    
    .form-inputs input,
    .form-inputs textarea,
    .form-inputs select {
        font-size: 14px;
        padding: 0.6rem 0.3rem;
    }
    
    .form-inputs button {
        font-size: 14px;
        padding: 1rem;
    }
    
    .custom-alert {
        min-width: 15rem;
        font-size: 14px;
        padding: 0.8rem;
    }
}

@media screen and (max-width: 360px) {
    .welcome h1 {
        font-size: 22px;
    }
    
    .welcome h2 {
        font-size: 14px;
    }
    
    .sections-title {
        font-size: 14px;
    }
    
    .form-container {
        width: 16rem;
    }
    
    #contact .form-container {
        max-width: 16rem;
    }
}

@media screen and (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }
    
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        display: none;
    }
    
    .nav-overlay.active {
        display: block;
    }

    .hamburger {
        transition: transform 0.3s ease;
    }
    
    .hamburger.active {
        transform: translateY(-50%) rotate(90deg);
    }
    
    nav ul li a {
        display: block;
        width: 100%;
        padding: 1rem;
        font-size: 16px;
        transition: background-color 0.2s ease;
    }
    
    .nav-right li a button {
        font-size: 14px;
        padding: 0.8rem 1.5rem;
    }
}

/* ===== FOOTER RESPONSIVE ===== */
.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-flex div {
  min-width: 180px;
}

.footer-flex h3 {
  font-size: 16px;
  margin-bottom: 0.8rem;
  color: var(--gray-medium);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

/* Tablet */
@media screen and (max-width: 1023px) {
  .footer-flex {
    justify-content: flex-start;
    gap: 3rem;
  }

  .footer-container {
    text-align: left;
  }
}

/* Móvil */
@media screen and (max-width: 768px) {
  .footer-flex {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-flex div {
    min-width: 100%;
  }

  .footer-socials {
    justify-content: center;
    font-size: 1.3rem;
    margin-top: 1rem;
  }

  .footer-container {
    text-align: center;
  }
}
