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

body {
    font-family: 'Inter', sans-serif;
    background: #f4f7fb;
    color: #1e293b;
    line-height: 1.5;
}

.header {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(145deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav a:hover {
    color: #2563eb;
}

.btn {
    background: #2563eb;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn:hover {
    background: #1d4ed8;
    transform: scale(1.02);
}

.hero {
    background: linear-gradient(120deg, #dbeafe, #ede9fe);
    padding: 3rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #334155;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-bar {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 60px;
    padding: 0.2rem;
    display: flex;
    box-shadow: 0 8px 16px -4px rgba(0,0,0,0.1);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 1rem 1.8rem;
    font-size: 1rem;
    border-radius: 60px;
    outline: none;
}

.search-bar button {
    background: #f97316;
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0.2rem;
}

.search-bar button:hover {
    background: #ea580c;
}

.filters-section {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.filters-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    background: white;
    padding: 1.2rem;
    border-radius: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
    align-items: flex-end;
}

.filter-item {
    flex: 1 1 160px;
}

.filter-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filter-item select, .filter-item input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    font-size: 0.9rem;
    background: #f8fafc;
    transition: border 0.2s;
}

.filter-item select:focus, .filter-item input:focus {
    border-color: #2563eb;
    outline: none;
}

.filter-actions {
    display: flex;
    gap: 0.4rem;
}

.filter-actions button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-actions button.clear {
    background: #e2e8f0;
    color: #334155;
}

.filter-actions button:hover {
    background: #1d4ed8;
}
.filter-actions button.clear:hover {
    background: #cbd5e1;
}

.gallery-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #f97316;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.8rem;
}

.photo-card {
    background: white;
    border-radius: 1.8rem;
    overflow: hidden;
    box-shadow: 0 8px 20px -6px rgba(0,0,0,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s;
    cursor: default;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
}

.photo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.photo-image {
    width: 100%;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    position: relative;
}

.photo-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1.2rem;
    transition: transform 0.3s;
}

.photo-card:hover .photo-image img {
    transform: scale(1.02);
}

/* Marca de agua visible y centrada */
.watermark::after {
    content: "📸 FOTOMARKET";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    border: 2px solid white;
    text-shadow: 2px 2px 4px black;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
    opacity: 0.9;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.photo-info {
    padding: 1.2rem 1rem 1rem;
}

.photo-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: #0f172a;
}

.photo-desc {
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.photo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.6rem;
}

.photo-meta i {
    margin-right: 0.2rem;
}

.photo-price {
    font-weight: 700;
    color: #2563eb;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.btn-add {
    width: 100%;
    background: #f97316;
    color: white;
    border: none;
    padding: 0.7rem;
    border-radius: 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add:hover {
    background: #ea580c;
}

.btn-add i {
    font-size: 1rem;
}

.cart-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1e293b;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 100;
    border: 2px solid #f97316;
}

.cart-float:hover {
    background: #0f172a;
    transform: scale(1.05);
}

.cart-float span {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f97316;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 100;
    border: 2px solid white;
}

.whatsapp-float:hover {
    background: #20b859;
    transform: scale(1.05);
}

.cart-panel {
    position: fixed;
    bottom: 7rem;
    right: 2rem;
    width: 320px;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.3);
    padding: 1.5rem;
    z-index: 99;
    display: none;
    border: 1px solid #e2e8f0;
}

.cart-panel.show {
    display: block;
}

.cart-panel h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.cart-item-name {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-weight: 600;
    color: #2563eb;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 1rem 0;
}

.btn-whatsapp-send {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-whatsapp-send:hover {
    background: #20b859;
}

.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 2rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(145deg, #94a3b8, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #64748b;
}

@media (max-width: 700px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    .search-bar {
        flex-direction: column;
        border-radius: 1.5rem;
    }
    .search-bar input {
        border-radius: 1.5rem 1.5rem 0 0;
    }
    .search-bar button {
        border-radius: 0 0 1.5rem 1.5rem;
        margin: 0;
    }
    .filters-grid {
        flex-direction: column;
    }
    .filter-actions {
        justify-content: flex-end;
    }
    .cart-panel {
        width: 280px;
        right: 1rem;
    }
    .whatsapp-float {
        left: 1rem;
    }
}