* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #fafaf8;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo img {
    height: 80px;
    width: auto;
    filter: brightness(1.1);
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.main-nav a:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.7) 0%, rgba(26, 26, 26, 0.7) 100%), 
                url('/assets/images/fondo.png') center/cover no-repeat;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Categories Filter */
.categories-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0;
}

.category-btn {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background-color: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.category-btn:hover {
    border-color: #d97706;
    color: #d97706;
    background-color: #fff8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

.category-btn:hover i {
    transform: scale(1.2);
}

.category-btn.active {
    background-color: #d97706;
    color: white;
    border-color: #d97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
    transform: translateY(-2px);
}

.category-section {
    margin-bottom: 60px;
}

.category-section h3 {
    font-size: 28px;
    color: #d97706;
    margin-bottom: 30px;
    font-weight: 600;
    border-bottom: 3px solid #d97706;
    padding-bottom: 10px;
    display: inline-block;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f0f0f0;
    color: #d97706;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.product-category i {
    font-size: 14px;
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.3;
}

.login-link {
    background-color: #d97706 !important;
    color: white !important;
    padding: 10px 18px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.login-link:hover {
    background-color: #b85e0a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3) !important;
}

/* Sección de Productos */
.products {
    padding: 80px 0;
}

.products h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1a1a1a;
    font-weight: 700;
}

.category {
    margin-bottom: 60px;
}

.category h3 {
    font-size: 28px;
    color: #d97706;
    margin-bottom: 30px;
    font-weight: 600;
    border-bottom: 3px solid #d97706;
    padding-bottom: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.product-image-gallery {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    overflow: hidden;
}

.product-image-gallery .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.btn-view-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(217, 119, 6, 0.9);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

.btn-view-image:hover {
    background: rgba(217, 119, 6, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

.image-thumbnails {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: rgba(0,0,0,0.05);
    overflow-x: auto;
    justify-content: center;
    flex-wrap: wrap;
}

.image-thumbnails .thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.image-thumbnails .thumbnail:hover {
    border-color: #d97706;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.product-card h4 {
    font-size: 20px;
    margin: 20px 20px 10px;
    color: #1a1a1a;
    font-weight: 600;
}

.product-card .price {
    font-size: 24px;
    color: #d97706;
    font-weight: 700;
    margin: 0 20px 10px;
}

.product-card .description {
    font-size: 14px;
    color: #666;
    margin: 0 20px 10px;
    line-height: 1.5;
}

.product-specs {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 13px;
}

.product-specs tr {
    border-bottom: 1px solid #f0f0f0;
}

.product-specs tr:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #333;
    padding: 8px 20px 8px 20px;
    width: 40%;
    background-color: #f8f9fa;
}

.spec-value {
    color: #666;
    padding: 8px 20px;
    width: 60%;
}

.product-card .inventory {
    font-size: 13px;
    color: #999;
    margin: 0 20px 20px;
}

.btn-contact {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    background-color: #d97706;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background-color: #b85e0a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1a1a1a;
    font-weight: 700;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-info {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-info:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(217, 119, 6, 0.2);
    border-color: #d97706;
}

.contact-info h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #d97706;
    font-weight: 700;
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 12px;
    color: #555;
    line-height: 1.8;
}

.contact-info strong {
    color: #333;
    font-weight: 600;
}

.contact-info a {
    color: #d97706;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-info a:hover {
    color: #b85e0a;
    transform: scale(1.05);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.location-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-left: 5px solid #d97706;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(217, 119, 6, 0.25);
    border-left-width: 8px;
}

.location-card h3 {
    font-size: 22px;
    margin-bottom: 18px;
    color: #1a1a1a;
    font-weight: 700;
}

.location-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.9;
    margin-bottom: 12px;
}

.location-card strong {
    color: #333;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.location-card a {
    color: #d97706;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.location-card a:hover {
    color: #b85e0a;
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: white;
    padding: 60px 0 30px;
    border-top: 3px solid #d97706;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #d97706;
    font-weight: 700;
    font-size: 18px;
}

.footer-section h3 {
    font-size: 24px;
}

.footer-section p {
    margin-bottom: 10px;
    color: #ccc;
    line-height: 1.8;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
    color: #ccc;
    line-height: 1.8;
    font-size: 14px;
}

.footer-section a {
    color: #d97706;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-section a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-section strong {
    color: #fff;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Admin Styles */
.admin-header {
    background: linear-gradient(135deg, #d97706 0%, #b85e0a 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.admin-nav a:hover {
    background-color: rgba(255,255,255,0.2);
}

.admin-main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid #f0f0f0;
}

.stat-card h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-number {
    font-size: 36px;
    color: #d97706;
    font-weight: 700;
}

.admin-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.admin-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 600;
}

.products-table table,
.orders-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.products-table th,
.products-table td,
.orders-table th,
.orders-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.products-table th,
.orders-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #1a1a1a;
}

.btn-small {
    background-color: #d97706;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: #b85e0a;
    transform: translateY(-1px);
}

/* Login Form */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 20px;
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.btn-primary {
    width: 100%;
    background-color: #d97706;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #b85e0a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.error {
    background-color: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.login-help {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #d97706;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #b85e0a;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .main-header {
        padding: 12px 0;
    }
    
    .main-header .container {
        flex-wrap: wrap;
        position: relative;
    }
    
    .logo {
        flex: 1;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 15px;
        background: rgba(0,0,0,0.95);
        border-radius: 8px;
        padding: 10px 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        width: 100%;
        padding: 12px 20px;
        border-radius: 0;
        text-align: left;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 50px 0;
    }
    
    .hero h2 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 16px;
        padding: 0 10px;
    }
    
    /* Categories Filter Mobile */
    .categories-filter {
        gap: 8px;
        padding: 15px 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-btn {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Products Mobile */
    .products {
        padding: 40px 0;
    }
    
    .products h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .category-section h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-image-gallery {
        height: 250px;
    }
    
    .image-thumbnails {
        padding: 6px;
        gap: 4px;
    }
    
    .image-thumbnails .thumbnail {
        width: 45px;
        height: 45px;
    }
    
    /* Product Info Mobile */
    .product-card h4 {
        font-size: 18px;
        margin: 15px 15px 8px;
    }
    
    .product-card .price {
        font-size: 22px;
        margin: 0 15px 8px;
    }
    
    .product-card .description {
        font-size: 13px;
        margin: 0 15px 8px;
    }
    
    .spec-label,
    .spec-value {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .product-card .inventory {
        margin: 0 15px 15px;
    }
    
    .btn-contact {
        width: calc(100% - 30px);
        margin: 0 15px 15px;
        padding: 12px;
        font-size: 15px;
    }
    
    /* Product Actions Mobile */
    .product-actions {
        padding: 0 15px 15px;
    }
    
    .quantity-selector {
        justify-content: center;
    }
    
    .btn-add-cart {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }
    
    /* Contact Mobile */
    .contact {
        padding: 50px 0;
    }
    
    .contact h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .contact-info {
        padding: 25px 20px;
    }
    
    .contact-info h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .contact-info p {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .location-card {
        padding: 25px 20px;
    }
    
    .location-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .location-card p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Footer Mobile */
    .main-footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .footer-section p,
    .footer-section ul li {
        font-size: 14px;
    }
    
    .footer-section ul {
        text-align: center;
    }
    
    /* Admin Mobile */
    .admin-header .container {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .admin-nav {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    
    .btn-view-site,
    .btn-logout {
        flex: 1;
        text-align: center;
        padding: 10px;
        font-size: 13px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        font-size: 13px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px;
    }
    
    /* Forms Mobile */
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    /* User Menu Mobile */
    .user-dropdown {
        right: auto;
        left: 0;
        min-width: 160px;
    }
    
    .cart-text {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile */
    .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .products h2,
    .contact h2 {
        font-size: 24px;
    }
    
    .category-section h3 {
        font-size: 20px;
    }
    
    .category-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .product-image-gallery {
        height: 220px;
    }
    
    .product-card h4 {
        font-size: 16px;
    }
    
    .product-card .price {
        font-size: 20px;
    }
    
    .product-specs {
        font-size: 12px;
    }
    
    .spec-label,
    .spec-value {
        padding: 6px 10px;
    }
    
    .btn-contact,
    .btn-add-cart {
        font-size: 14px;
        padding: 10px;
    }
    
    /* Contact Extra Small Mobile */
    .contact h2 {
        font-size: 24px;
    }
    
    .contact-grid {
        gap: 15px;
    }
    
    .contact-info {
        padding: 20px 15px;
    }
    
    .contact-info h3 {
        font-size: 16px;
    }
    
    .contact-info p {
        font-size: 14px;
    }
    
    .locations-grid {
        gap: 15px;
    }
    
    .location-card {
        padding: 20px 15px;
    }
    
    .location-card h3 {
        font-size: 16px;
    }
    
    .location-card p {
        font-size: 13px;
    }
    
    .contact-info p {
        font-size: 14px;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 16px;
    }
    
    .footer-section p {
        font-size: 13px;
    }
    
    .login-form {
        padding: 25px 15px;
    }
    
    .login-form h2 {
        font-size: 24px;
    }
    
    .form-group input {
        padding: 10px;
        font-size: 14px;
    }
    
    .btn-primary {
        padding: 12px;
        font-size: 15px;
    }
    
    /* Admin Mobile Extra Small */
    .admin-logo h1 {
        font-size: 18px;
    }
    
    .admin-logo img {
        width: 35px;
        height: 35px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-card h3 {
        font-size: 12px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    .admin-table {
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 6px;
    }
    
    .product-image-small {
        width: 40px;
        height: 40px;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image-gallery {
        height: 180px;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .hero h2 {
        font-size: 40px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .btn-contact,
    .btn-add-cart,
    .btn-primary,
    .category-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .main-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .qty-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .image-thumbnails .thumbnail {
        min-width: 50px;
        min-height: 50px;
    }
}

/* Estilos para el header actualizado */
.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.main-nav a:hover {
    color: #d97706;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Menú de usuario */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-greeting {
    color: white;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.user-greeting:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.user-dropdown a:hover {
    background-color: #f8f9fa;
    color: #d97706;
}

/* Carrito */
.cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.cart-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #d97706;
}

.cart-icon {
    width: 18px;
    height: 18px;
    position: relative;
}

.cart-icon::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 2px;
    top: 2px;
}

.cart-icon::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    bottom: -2px;
    left: 3px;
    box-shadow: 6px 0 0 currentColor;
}

.cart-text {
    font-weight: 500;
}

.cart-count {
    background-color: #d97706;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    top: -2px;
    right: -2px;
}

/* Estilos para productos con carrito */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #f5f5f5;
    border-color: #d97706;
}

.qty-input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.qty-input:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.btn-add-cart {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-add-cart i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-add-cart:hover:not(:disabled) {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.btn-add-cart:hover:not(:disabled) i {
    transform: scale(1.15);
}

.btn-add-cart:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        gap: 15px;
    }
    
    .cart-text {
        display: none;
    }
    
    .user-greeting {
        font-size: 14px;
    }
    
    .product-actions {
        align-items: center;
    }
    
    .quantity-selector {
        width: 100%;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .main-nav {
        gap: 10px;
    }
    
    .main-nav a {
        padding: 6px 8px;
        font-size: 14px;
    }
    
    .user-greeting {
        padding: 6px 8px;
    }
}