* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f9fafb;
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(to right, #ec4899, #fbbf24, #06b6d4);
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    position: relative;
    width: 64px;
    height: 64px;
}

.logo-spin {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid transparent;
    background: linear-gradient(to right, #ec4899, #fbbf24, #3b82f6, #06b6d4);
    animation: spin 3s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.logo-inner {
    position: absolute;
    inset: 4px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.header-text {
    color: white;
}

.header-title {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.025em;
}

.header-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
}

.menu-button {
    display: none;
    background: rgba(0,0,0,0.2);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

/* Navigation */
.nav {
    background: linear-gradient(to right, #0891b2, #2563eb);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.nav-list li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    border-radius: 0.25rem;
}

.nav-list li a:hover {
    color: #fde047;
    background: rgba(255,255,255,0.1);
}

.nav-list li a.active {
    color: #fde047;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
}

/* Sistema de Páginas */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

/* PÁGINA DE INICIO - HERO SECTION */
.hero-section {
    position: relative;
    height: calc(100vh - 150px);
    min-height: 500px;
    background-image: url('fondo-inicio.jpg'); /* AQUÍ VA TU IMAGEN */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 2rem;
    color: #fbbf24;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-text {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-button {
    background: linear-gradient(to right, #ec4899, #fbbf24);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Banner */
.banner {
    background: linear-gradient(to right, #fce7f3, #fefce8, #cffafe);
    padding: 3rem 1rem;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.banner-title {
    font-size: 2.25rem;
    font-weight: bold;
    background: linear-gradient(to right, #db2777, #0891b2, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-subtitle {
    font-size: 1.125rem;
    color: #374151;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Main Content */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: bold;
    background: linear-gradient(to right, #db2777, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

/* Search */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid #67e8f9;
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
}

.search-input:focus {
    border-color: #f472b6;
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #06b6d4;
}

/* Category Select */
.category-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #67e8f9;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    background: white;
    outline: none;
    margin-bottom: 1rem;
    cursor: pointer;
}

.category-select:focus {
    border-color: #f472b6;
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.1);
}

/* Product Count */
.product-count {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image-container {
    position: relative;
    background: #f9fafb;
    padding: 1rem;
}

.product-image {
    width: 100%;
    height: 192px;
    object-fit: contain;
}

.offer-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #dc2626;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-info {
    padding: 1rem;
}

.product-code {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.product-name {
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.75rem;
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-prices {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.price-label {
    color: #6b7280;
}

.price-value {
    font-weight: bold;
    color: #0891b2;
}

.offer-button {
    display: block;
    margin-top: 1rem;
    background: linear-gradient(to right, #ec4899, #fbbf24);
    color: white;
    text-align: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.offer-button:hover {
    background: linear-gradient(to right, #db2777, #f59e0b);
}

/* TABLA DE LISTA COMPLETA */
.lista-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-download-pdf {
    background: linear-gradient(to right, #dc2626, #f59e0b);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-download-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.tabla-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.tabla-precios {
    width: 100%;
    border-collapse: collapse;
}

.tabla-precios thead {
    background: linear-gradient(to right, #fce7f3, #cffafe);
}

.tabla-precios th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 2px solid #06b6d4;
}

.tabla-precios tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
}

.tabla-precios tbody tr:hover {
    background: #f9fafb;
}

.tabla-precios td {
    padding: 0.875rem 1rem;
    color: #374151;
}

.tabla-precios td:first-child {
    font-weight: 600;
    color: #0891b2;
}

.tabla-precios td:nth-child(4),
.tabla-precios td:nth-child(5),
.tabla-precios td:nth-child(6) {
    font-weight: 600;
    color: #059669;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    font-size: 1.25rem;
    color: #6b7280;
}

/* Footer */
.footer {
    background: linear-gradient(to right, #1f2937, #111827);
    color: white;
    margin-top: 4rem;
    padding: 2rem 1rem;
    text-align: center;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #f9a8d4, #fde047, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.875rem;
}

.footer-contact {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* About Content */
.about-content {
    background: white;
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-button {
        display: block;
    }

    .nav.hidden {
        display: none;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-title {
        font-size: 1.25rem;
    }

    .banner-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .lista-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .btn-download-pdf {
        width: 100%;
        justify-content: center;
    }

    .tabla-container {
        overflow-x: scroll;
    }

    .about-content {
        padding: 1.5rem;
    }
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}