@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Poppins:wght@300;400;500;600;700&display=swap');

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

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

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

/* Header */
header {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2d2d2d 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
}

.header-logo:hover {
    opacity: 0.95;
    transform: translateX(2px);
}

.header-logo:hover h1 {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.header-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-logo:hover .header-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.header-icon svg {
    width: 28px;
    height: 28px;
    color: white;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.header-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

header h1 {
    font-size: 1.95em;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.1;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    font-variation-settings: "wght" 600;
}

.header-tagline {
    font-size: 0.65em;
    font-weight: 400;
    opacity: 0.85;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: -2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.btn-header {
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95em;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-header-secondary {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-header-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.btn-header-primary {
    color: #1a1a1a;
    background: white;
    border: 1px solid transparent;
}

.btn-header-primary:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.subtitle {
    font-size: 1em;
    opacity: 0.85;
    font-weight: 400;
    margin: 5px 0 0 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estadísticas */
.estadisticas {
    display: flex;
    justify-content: space-around;
    margin: 60px 0;
    gap: 25px;
    flex-wrap: wrap;
}

.estadistica {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e5e5e5;
    flex: 1;
    min-width: 180px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.6s ease both;
}

.estadistica::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.estadistica:hover::before {
    left: 100%;
}

.estadistica:nth-child(1) { animation-delay: 0.1s; }
.estadistica:nth-child(2) { animation-delay: 0.2s; }
.estadistica:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.estadistica:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #d4d4d4;
}

.icono-estadistica {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.icono-estadistica svg {
    width: 100%;
    height: 100%;
}

.estadistica.disponible .icono-estadistica {
    color: #000000;
}

.estadistica.reservado .icono-estadistica {
    color: #000000;
}

.estadistica.vendido .icono-estadistica {
    color: #737373;
}

.estadistica .numero {
    display: block;
    font-size: 3.5em;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, currentColor, currentColor);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.estadistica.disponible .numero {
    color: #000000;
}

.estadistica.reservado .numero {
    color: #000000;
}

.estadistica.vendido .numero {
    color: #737373;
}

.estadistica .label {
    display: block;
    color: #737373;
    font-size: 0.95em;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Filtros */
.filtros {
    display: flex;
    gap: 12px;
    margin-bottom: 50px;
    justify-content: center;
    flex-wrap: wrap;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.filtro-btn {
    padding: 12px 28px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95em;
    font-weight: 500;
    color: #64748b;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filtro-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.filtro-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.filtro-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filtro-btn:hover {
    border-color: #000000;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filtro-btn.active {
    background: #000000;
    color: white;
    border-color: #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.filtro-btn.active::before {
    display: none;
}

/* Productos */
.productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.producto {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    animation: fadeInScale 0.5s ease both;
    position: relative;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.producto:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #d4d4d4;
}

.producto-imagen {
    width: 100%;
    height: 450px;
    background: 
        linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%),
        url('https://images.unsplash.com/photo-1556229010-6c3f2c9ca5f8?w=400&h=400&fit=crop&q=80') center/cover;
    background-size: cover, cover;
    background-blend-mode: overlay;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.producto-imagen .sin-imagen {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.producto-imagen img {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
}

.producto-imagen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.producto:hover .producto-imagen::after {
    opacity: 1;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.producto:hover .producto-imagen img {
    transform: scale(1.1);
}

.sin-imagen {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sin-imagen svg {
    width: 56px;
    height: 56px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.producto:hover .sin-imagen svg {
    opacity: 0.5;
}

.producto-info {
    padding: 25px;
}

.producto-info h3 {
    margin-bottom: 12px;
    color: #1e293b;
    font-size: 1.3em;
    font-weight: 700;
    line-height: 1.3;
}

.descripcion {
    color: #64748b;
    font-size: 0.95em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.producto-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

.precio {
    font-size: 1.5em;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.precio svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    flex-shrink: 0;
}

.estado {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.estado svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.estado-disponible {
    background: #000000;
    color: white;
}

.estado-reservado {
    background: #525252;
    color: white;
}

.estado-vendido {
    background: #d4d4d4;
    color: #000000;
}

.sin-productos {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
    font-size: 1.2em;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    grid-column: 1 / -1;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.sin-productos::before {
    content: '';
    width: 120px;
    height: 120px;
    background: url('data:image/svg+xml,<svg viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="1.5" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.3;
}

/* Footer */
footer {
    background: #fafafa;
    color: #737373;
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid #e5e5e5;
}

footer p {
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 300;
}

/* Ocultar productos según filtro */
.producto.oculto {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }
    
    .header-content {
        position: relative;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header-logo {
        flex: 1;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    .header-tagline {
        font-size: 0.6em;
    }
    
    .header-icon {
        width: 40px;
        height: 40px;
    }
    
    .header-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .header-actions {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2d2d2d 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 20px 20px;
        gap: 15px;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .header-actions.active {
        right: 0;
    }
    
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 999;
    }
    
    .menu-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
    
    .btn-header {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 1em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .productos {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .estadisticas {
        flex-direction: column;
    }
    
    .estadistica {
        min-width: 100%;
    }
    
    .estadistica .numero {
        font-size: 3em;
    }
    
    .filtros {
        padding: 12px;
    }
    
    .filtro-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}