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

:root {
    --gray-100: #f3f4f6;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --white: #f9f9f9;
    --black: #0A0A0A;
    --blue: #316bbc;

    --fs-0: 4.00rem;
    --fs-1: 3.75rem;
    --fs-2: 2.75rem;
    --fs-3: 2.375rem;
    --fs-4: 2rem;
    --fs-5: 1.5rem;
    --fs-6: 1.25rem;
    --fs-7: 1.125rem;
    --fs-8: 0.95rem;

    --page-w: 1200px;
    --pad-x: 40px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
}

img { max-width: 100%; display: block; }

/* Image placeholders — remove the class and use <img> / background-image when ready */
.placeholder {
    background: var(--gray-300);
    background-image: linear-gradient(135deg, var(--gray-300), var(--gray-400));
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    width: 100%;
    min-height: 650px;
    overflow: hidden;
    color: #fff;
}
.hero-background { position: absolute; inset: 0; z-index: 0; }
.hero-background img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.header { position: absolute; top: 0; left: 0; width: 100%; z-index: 10; }
.nav-container {
    max-width: var(--page-w);
    margin: 0 auto;
    padding: 25px var(--pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { width: 150px; height: auto; }

.nav-links { display: flex; gap: 12px; }
.nav-btn {
    background: var(--black);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 10px 28px;
    transition: background .2s;
}
.nav-btn:hover, .nav-btn:focus-visible { background: var(--gray-600); }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--page-w);
    min-height: 650px;
    margin: 0 auto;
    padding: 0 var(--pad-x);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.hero-content h2 { font-size: var(--fs-1); font-weight: 300; line-height: 1.1; }
.hero-content h1 { font-size: var(--fs-0); font-weight: 400; line-height: 1.1; }
.hero-content p  { font-size: var(--fs-7); margin-top: 8px; }
.hero-content h3 { font-size: var(--fs-3); font-weight: 300; margin-top: 40px; }

/* ---------- Shared section styles ---------- */
.content-main {
    max-width: var(--page-w);
    margin: 0 auto;
    padding: 100px var(--pad-x);
    display: grid;
    gap: 24px 48px;
}
.content-main h1 { font-size: var(--fs-2); font-weight: 400; line-height: 1.15; }
.subtitle { font-size: var(--fs-8); }
.content-main p { font-size: var(--fs-8); }

/* ---------- Filtro de Cocina ---------- */
.kitchen {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "copy media";
    align-items: start;
}
.kitchen-copy {
    grid-area: copy;
    display: grid;
    gap: 12px;
    align-content: start;
}
.kitchen-title .subtitle { margin-top: 8px; }
.kitchen-text {
    display: grid;
    gap: 16px;
    padding-left: 32px;
    max-width: 352px;
}
.kitchen-media { grid-area: media; display: grid; }
.ph-kitchen-scene {
    width: 85%;
    aspect-ratio: 16 / 10;
    margin-left: auto;
    object-fit: cover;
}
.ph-kitchen-product {
    position: relative;
    z-index: 1;
    width: 75%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    margin-left: 5%;
    margin-top: -90px;
}

/* ---------- Punto de Entrada ---------- */
.entry {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "media copy";
    align-items: start;
}
.entry-copy {
    grid-area: copy;
    display: grid;
    gap: 12px;
    align-content: start;
}
.entry-title .subtitle { margin-top: 8px; }
.entry-text {
    display: grid;
    gap: 16px;
    padding-right: 32px;
    max-width: 352px;
}
.entry-media { grid-area: media; display: grid; }
.ph-entry-scene {
    width: 85%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.ph-entry-product {
    position: relative;
    z-index: 1;
    width: 75%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    margin-left: auto;
    margin-top: -90px;
}

/* ---------- Filtro de Lecho ---------- */
.sandfilter {
    grid-template-columns: 1.3fr 1fr;
    grid-template-areas:
        "text tank"
        "list tank";
    align-items: start;
}
.sand-text { grid-area: text; max-width: 340px; }
.sand-text p { margin-top: 20px; }
.ph-sand-tank { grid-area: tank; aspect-ratio: 3 / 4; object-fit: cover; }

.media-list {
    grid-area: list;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-self: end;
}
.media-list li { display: grid; gap: 8px; text-align: center; }
.ph-media { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-list span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .02em; color: var(--gray-600); }

/* ---------- CTA ---------- */
.cta-bottom { position: relative; min-height: 560px; overflow: hidden; color: black; display: flex; }
.cta-background { position: absolute; inset: 0; z-index: 0; }
.cta-background img { width: 100%; height: 100%; object-fit: cover; object-position: 15% 10%; }
.cta-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--page-w);
    margin: 0 auto;
    padding: 80px var(--pad-x);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 12px;
}
.cta-content h1 { font-size: var(--fs-1); font-weight: 400; line-height: 1.1; }
.cta-content p { font-size: var(--fs-8); }
.cta-lead { max-width: 420px; }
.cta-date { margin-bottom: 16px; }

.button {
    display: inline-block;
    margin-top: 8px;
    background: var(--black);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 12px 32px;
    transition: background .2s;
}
.button:hover, .button:focus-visible { background: var(--gray-600); }

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
    :root { --pad-x: 20px; --fs-0: 3rem; --fs-1: 2.5rem; --fs-2: 2.1rem; --fs-3: 1.5rem; }
    .nav-container { flex-direction: column; gap: 16px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .content-main { padding: 60px var(--pad-x); }

    .kitchen { grid-template-columns: 1fr; grid-template-areas: "copy" "media"; }
    .kitchen-text { padding: 0; max-width: none; }
    .entry { grid-template-columns: 1fr; grid-template-areas: "copy" "media"; }
    .entry-text { padding: 0; max-width: none; }
    .ph-entry-product { margin-top: -60px; }
    .sandfilter { grid-template-columns: 1fr; grid-template-areas: "text" "list" "tank"; }
}
