:root {
    --bg: #3AAFA9;
    --bg-darker: #2b7a78;
    --card: rgba(255, 255, 255, 0.12);
    --card-solid: rgba(255, 255, 255, 0.18); 
    --card-solid-hover: rgba(255, 255, 255, 0.25);
    --ink: #FEFFFF;
    --ink-dark: #17252A;
    --mute: #DEF2F1;
    --line: rgba(254, 255, 255, 0.25);
    
    --accent: #17252A;
    --accent-glow: rgba(23, 37, 42, 0.35);
    --whatsapp-green: #25D366;
    
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(23, 37, 42, 0.2) 0%, transparent 50%);
    background-attachment: scroll; 
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 768px) {
    body {
        background-attachment: fixed; 
    }
}

a {
    color: inherit;
    text-decoration: none;
}

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

header {
    background: rgba(43, 122, 120, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    color: var(--ink);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: .12em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 60;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

nav {
    display: flex;
    gap: 16px;
}

nav a {
    color: var(--mute);
    font-weight: 600;
    font-size: .95rem;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

nav a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.12);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ink-dark);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    min-height: 50px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    touch-action: manipulation;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--accent-glow);
    background: #0f171a;
}

.btn-whatsapp {
    background: var(--whatsapp-green);
    color: #ffffff;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
}

section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.sub {
    color: var(--mute);
    font-size: 1.05rem;
    margin: 0;
}

.catalogue-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.filter-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px;
    background: rgba(23, 37, 42, 0.2);
    border-radius: 999px;
    border: 1px solid var(--line);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    background: transparent;
    border: none;
    color: var(--mute);
    padding: 10px 20px;
    min-height: 44px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.filter-pill:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
}

.filter-pill.active {
    background: var(--ink-dark);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

@media (min-width: 640px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 24px;
    }
}

.card {
    background: var(--card-solid);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-sm);
    will-change: transform; 
}

.card:hover {
    transform: translateY(-6px);
    background: var(--card-solid-hover);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.4);
}

.ph {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    background: rgba(23, 37, 42, 0.2);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.card:hover .ph {
    transform: scale(1.02);
}

.card h3 {
    margin: 4px 0 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

.card small {
    color: var(--mute);
    font-size: 0.85rem;
}

.row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin-top: auto;
    padding-top: 16px;
}

@media (min-width: 480px) {
    .row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.price {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--ink);
}

.ord {
    font-size: .88rem;
    color: #ffffff;
    font-weight: 700;
    padding: 10px 18px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ink-dark);
    width: 100%;
    transition: all 0.2s ease;
}

@media (min-width: 480px) {
    .ord {
        width: auto;
    }
}

.ord:hover {
    background: #0f171a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.custom-card {
    background: rgba(23, 37, 42, 0.2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
}

@media (min-width: 768px) {
    .custom-card {
        padding: 56px;
    }
}

#customForm, .review-form {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ink);
}

input, textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px; 
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.12);
    color: var(--ink);
    font-family: inherit;
    transition: all 0.2s ease;
}

input::placeholder, textarea::placeholder {
    color: rgba(254, 255, 255, 0.6);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--ink);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input[type="file"] {
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--ink);
}

.note {
    font-size: 0.88rem;
    color: var(--mute);
    margin: 0;
}

.rev-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
}

@media (min-width: 860px) {
    .rev-layout {
        grid-template-columns: 1fr 1.2fr;
    }
}

.review-form {
    background: var(--card-solid);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.review-form h3 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
}

.stars {
    display: flex;
    gap: 8px;
}

.stars button {
    background: none;
    border: 0;
    font-size: 2.2rem;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.3);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, color 0.15s ease;
    touch-action: manipulation;
}

.stars button:hover {
    transform: scale(1.15);
    color: #fcd34d;
}

.stars button.on, .s {
    color: #fbbf24;
}

.avg-card {
    background: rgba(23, 37, 42, 0.25);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--ink);
}

.rv {
    background: var(--card-solid);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.rv .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rv p {
    margin: 10px 0 0;
    color: var(--mute);
}

.meta {
    color: rgba(254, 255, 255, 0.7);
    font-size: .85rem;
    margin-top: 4px;
}

.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(23, 37, 42, 0.94);
    backdrop-filter: blur(12px);
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.image-modal.open {
    display: flex;
}

.image-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
}

.image-modal img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.image-modal p {
    color: var(--ink);
    margin-top: 16px;
    font-weight: 700;
    font-size: 1.2rem;
}

.image-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: var(--ink);
    font-size: 2.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(43, 122, 120, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
    }

    nav.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }
}