    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background: linear-gradient(135deg, #6c9a66, #197856);
        min-height: 100vh;
        padding-top: 120px;
    }

        a {
    text-decoration: none;
    color: inherit;
    }

    ul {
    list-style: none;
    }

    /* Header */
    header {
    height: 150px;
    background-color: #54854e;
    color: white;
    padding: 1rem;
    text-align: center;
    border-bottom: 4px solid #197856;
    text-shadow: rgb(51, 51, 51, 0.10) 2px 2px 2px;
    }

    /* Navbar */
    .nav-bar {
    text-shadow: #333 2px 2px 2px;
    background: #000000;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.18) 50%, rgba(237, 221, 83, 0) 100%);    color: #fff;
    padding: 1rem 2rem;
    position: fixed; /* Fija la barra para que esté siempre visible */
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease, transform 0.4s ease;
    will-change: transform;
    }
    /* Oculta la navbar cuando se baja */
    .nav-bar.hide-on-scroll {
    transform: translateY(-100%);
    }

    .nav-bar ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    }

    .nav-bar ul li a {
    color: #fff;
    font-weight: bold;
    transition: color 0.3s ease;
    }

    .nav-bar ul li a:hover {
    color: #f4a261;
    }
    /* Header de la tienda */
    .store-header {
        text-align: center;
        margin: 2rem 0 3rem 0;
        padding: 0 2rem;
    }

    .store-header h1 {
        font-size: 3rem;
        color: #d4ee3d;
        margin-bottom: 1rem;
        text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.8);
        background-clip: text;
    }

    .store-header p {
        font-size: 1.2rem;
        color: #ffffff;
        max-width: 600px;
        margin: 0 auto;
    }
    #whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #ffffff;
    padding: 4px;
    transition: box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
    #whatsapp-float:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    background: #46b46d;
}
    #whatsapp-float img {
    display: block;
}

    /* Categorías */
    .categories {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 3rem;
        flex-wrap: wrap;
        padding: 0 2rem;
    }

    .category-btn {
        padding: 0.8rem 2rem;
        background: linear-gradient(135deg, #54854e, #197856);
        color: white;
        border: none;
        border-radius: 50px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(84, 133, 78, 0.3);
    }

    .category-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(84, 133, 78, 0.4);
    }

    /* Grid de productos mejorado */
    .store {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .card {
        background: rgb(255, 255, 255);
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transition: all 0.4s ease;
        position: relative;
        cursor: pointer;
    }

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    }

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(135deg, #54854e, #197856);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .card:hover::before {
        opacity: 1;
    }

    .card-image {
        position: relative;
        overflow: hidden;
        height: 250px;
    }

    .card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all 0.4s ease;
        border-bottom: 4px solid #197856;
    }

    .card:hover img {
        transform: scale(1.1);
    }

    .card-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(84, 133, 78, 0.8), rgba(25, 120, 86, 0.8));
        opacity: 0;
        transition: opacity 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card:hover .card-overlay {
        opacity: 1;
    }

    .view-btn {
        background: white;
        color: #54854e;
        border: none;
        padding: 1rem 2rem;
        border-radius: 25px;
        font-weight: 600;
        cursor: pointer;
        transform: translateY(20px);
        transition: transform 0.3s ease;
    }

    .card:hover .view-btn {
        transform: translateY(0);
    }

    .card-content {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.2rem;
        font-weight: 700;
        color: #333;
        margin-bottom: 0.5rem;
    }

    .card-description {
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .card-price {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .price {
        font-size: 1.4rem;
        font-weight: bold;
        color: #54854e;
    }

    .old-price {
        text-decoration: line-through;
        color: #999;
        font-size: 1rem;
        margin-right: 0.5rem;
    }

    .add-to-cart {
        background: linear-gradient(135deg, #54854e, #197856);
        color: white;
        border: none;
        padding: 0.6rem 1.2rem;
        border-radius: 20px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }

    .add-to-cart:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(84, 133, 78, 0.3);
    }

    /* Badge de descuento */
    .discount-badge {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: #e74c3c;
        color: white;
        padding: 0.3rem 0.8rem;
        border-radius: 15px;
        font-size: 0.8rem;
        font-weight: 600;
        z-index: 2;
    }

    /* Footer mejorado */
    .footer {
        background: linear-gradient(135deg, #2e7d32, #1b5e20);
        color: #f1f1f1;
        font-family: 'Poppins', sans-serif;
        padding: 40px 20px;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
        margin-top: 4rem;
    }

    .footer-content {
        max-width: 1200px;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer h2 {
        font-size: 24px;
        margin-bottom: 20px;
        color: #c8e6c9;
        letter-spacing: 1px;
    }

    .contact-info {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
        margin-bottom: 30px;
    }

    .contact-item {
        min-width: 200px;
    }

    .contact-item p {
        margin: 5px 0;
        font-size: 16px;
    }

    .contact-item strong {
        font-weight: 600;
        color: #a5d6a7;
    }

    .motto h2 {
        font-size: 20px;
        font-weight: 600;
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.1);
        padding: 10px 20px;
        border-radius: 8px;
        margin-bottom: 20px;
        letter-spacing: 2px;
    }

    .footer .copyright {
        font-size: 14px;
        color: #cfd8dc;
        margin-top: 10px;
    }

    .location-access {
        margin-top: 10px;
    }

    .location-button {
        display: inline-block;
        background-color: #66bb6a;
        color: #fff;
        padding: 10px 18px;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 600;
        transition: background-color 0.3s ease, transform 0.2s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .location-button:hover {
        background-color: #81c784;
        transform: scale(1.05);
    }
    .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    }

    .hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
    }

    .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
    opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    }

@media (max-width: 1366px) and (max-height: 1024px) {
        .nav-bar {
        justify-content: space-between !important;
        align-items: center !important;
        padding: 1rem 2rem !important;
        gap: 0 !important;
        }
        .hamburger {
        display: flex;
        order: 1;
        }
        .nav-bar ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-image:url(../img/liceof.png) ;
        background-color: rgba(0,0,0,0.85);
        backdrop-filter: blur(15px);
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        background-size: cover;
        background-position: center;
        gap: 2rem !important;
        transition: left 0.3s ease;
        z-index: 1001;
        order: 1;
        flex: none !important;
        margin: 0;
        padding: 0;
        }
        .nav-bar ul.active {

        left: 0;
        }
        .nav-bar ul li {
        width: 100%;
        text-align: center;
        }
        .nav-bar ul li a {
        font-size: 1.5rem;
        padding: 1rem;
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
        display: block;
        width: 100%;
        color: white !important;
        }
        .nav-bar ul li a:hover {
        color: #f4a261 !important;
        border-bottom-color: #f4a261;
        background: rgba(244, 162, 97, 0.1);
        }
        .nav-bar div:last-child {
        display: none !important;
        }
    }
/* Mobile Navigation */
@media (max-width: 991px) {
.nav-bar {
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 2rem !important;
    gap: 0 !important;
}

.hamburger {
    display: flex;
    order: 1;
}

.nav-bar a[href="index.html"] {
    order: 2;
    margin-right: 0 !important;
}

.nav-bar a[href="index.html"] img {
    width: 60px !important;
    height: 65px !important;
}

.nav-bar ul {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-image: url(../img/fondo1.png);
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(15px);
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    gap: 2rem !important;
    transition: left 0.3s ease;
    z-index: 1001;
    order: 1;
    flex: none !important;
    margin: 0;
    padding: 0;
}

.nav-bar ul.active {
    left: 0;
}

.nav-bar ul li {
    width: 100%;
    text-align: center;
}

.nav-bar ul li a {
    font-size: 1.5rem;
    padding: 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    color: white !important;
}

.nav-bar ul li a:hover {
    color: #f4a261 !important;
    border-bottom-color: #f4a261;
    background: rgba(244, 162, 97, 0.1);
}

.nav-bar div:last-child {
    display: none !important;
}
.carousel-btn {
    display: none;
}
.carousel{
    height: 100px;
}
}

    /* Responsive */
    @media (max-width: 768px) {
        .store-header h1 {
        font-size: 2rem;
        }
        
        .store {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
        }
        
        .nav-bar {
        padding: 1rem;
        }
        
        .nav-bar ul {
        gap: 1rem;
        }
    }
    .category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    }

    .category-badge.escuela {
    background: #3498db;
    }

    .category-badge.colegio {
    background: #e74c3c;
    }
    /* Responsivo para tablets (768px - 1024px) */
    @media (max-width: 1024px) {
    .store-header h1 {
    font-size: 2.5rem;
    }

    .store-header p {
    font-size: 1.1rem;
    padding: 0 1rem;
    }

    .store {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem;
    max-width: 1200px;
    }

    .categories {
    padding: 0 1.5rem;
    gap: 0.8rem;
    }

    .category-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    }
    }

    /* Responsivo para móviles grandes (481px - 767px) */
    @media (max-width: 767px) {
    body {
    padding-top: 100px;
    }

    .store-header {
    margin: 1.5rem 0 2rem 0;
    padding: 0 1rem;
    }

    .store-header h1 {
    font-size: 2rem;
    }

    .store-header p {
    font-size: 1rem;
    line-height: 1.5;
    }

    .categories {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
    justify-content: center;
    }

    .category-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    min-width: auto;
    }

    .store {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    padding: 0 1rem;
    }

    .card {
    border-radius: 15px;
    }

    .card-image {
    height: 220px;
    }

    .card-content {
    padding: 1.2rem;
    }

    .card-title {
    font-size: 1.1rem;
    }

    .card-description {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    }

    .price {
    font-size: 1.2rem;
    }

    .add-to-cart {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    }
    }

    /* Responsivo para móviles pequeños (320px - 480px) */
    @media (max-width: 480px) {
    body {
    padding-top: 90px;
    }

    .store-header {
    margin: 1rem 0 1.5rem 0;
    padding: 0 0.8rem;
    }

    .store-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    }

    .store-header p {
    font-size: 0.95rem;
    line-height: 1.4;
    }

    .categories {
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    padding: 0 0.8rem;
    }

    .category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 25px;
    }

    .store {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.8rem;
    }

    .card {
    max-width: 100%;
    border-radius: 12px;
    }

    .card-image {
    height: 200px;
    }

    .card-content {
    padding: 1rem;
    }

    .card-title {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    }

    .card-description {
    font-size: 0.8rem;
    margin-bottom: 0.7rem;
    line-height: 1.3;
    }

    .card-price {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    }

    .price {
    font-size: 1.1rem;
    text-align: center;
    }

    .add-to-cart {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    width: 100%;
    border-radius: 15px;
    }

    .discount-badge, .category-badge {
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    top: 0.8rem;
    right: 0.8rem;
    }

    .category-badge {
    left: 0.8rem;
    }
    }

    /* Responsivo para pantallas muy pequeñas (menos de 320px) */
    @media (max-width: 319px) {
    .store-header h1 {
    font-size: 1.6rem;
    }

    .store-header p {
    font-size: 0.9rem;
    }

    .categories {
    flex-direction: column;
    align-items: center;
    }

    .category-btn {
    width: 90%;
    max-width: 200px;
    text-align: center;
    }

    .card-image {
    height: 180px;
    }

    .card-content {
    padding: 0.8rem;
    }

    .card-title {
    font-size: 0.95rem;
    }

    .card-description {
    font-size: 0.75rem;
    }
    }

    /* Footer responsivo */
    @media (max-width: 768px) {
    .footer {
    padding: 30px 15px;
    }

    .footer h2 {
    font-size: 20px;
    margin-bottom: 15px;
    }

    .contact-info {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    }

    .contact-item {
    min-width: auto;
    }

    .contact-item p {
    font-size: 14px;
    }

    .motto h2 {
    font-size: 18px;
    padding: 8px 15px;
    }

    .location-button {
    padding: 8px 15px;
    font-size: 14px;
    }
    }

    @media (max-width: 480px) {
    .footer {
    padding: 25px 10px;
    }

    .footer h2 {
    font-size: 18px;
    }

    .contact-info {
    gap: 15px;
    }

    .contact-item p {
    font-size: 13px;
    }

    .motto h2 {
    font-size: 16px;
    letter-spacing: 1px;
    padding: 6px 12px;
    }

    .footer .copyright {
    font-size: 12px;
    }
    }

    /* Mejoras adicionales para la interacción táctil */
    @media (max-width: 768px) {
    .card:hover {
    transform: none;
    }

    .card:active {
    transform: scale(0.98);
    }

    .category-btn:active {
    transform: scale(0.95);
    }

    .add-to-cart:active {
    transform: scale(0.95);
    }

    .view-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    }
    }

    /* Optimización para pantallas táctiles */
    @media (hover: none) and (pointer: coarse) {
    .card-overlay {
    opacity: 1;
    background: rgba(84, 133, 78, 0.1);
    }

    .view-btn {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(0);
    }

    .card img {
    transform: none;
    }
    }