@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&family=Playfair+Display:wght@400;500;600&display=swap');

:root {
    --r: 18px;
    --g: 14px;
    --green: #2d6a2f;
    --green-lt: #d4edda;
    --gold: #f0c040;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    -webkit-font-smoothing: antialiased;
}

main {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 14px var(--g) 80px;
    overflow-x: hidden;
}

/* ── Loading ──────────────────────────── */
.ng-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 60vh;
    color: #86868b;
    font-size: .9rem;
}

.ng-spinner {
    display: block;
    width: 30px;
    height: 30px;
    border: 3px solid #d2d2d7;
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Secciones wrapper ────────────────── */
.ng-s {
    margin-bottom: var(--g);
}

/* ══════════════════════════════════════
   TARJETAS BASE
══════════════════════════════════════ */
.ng-hero,
.ng-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--r);
    background: #111;
    cursor: pointer;
}

/* Hover sutil en tarjetas pequeñas */
.ng-card {
    box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
    transition: transform .38s cubic-bezier(.25, .46, .45, .94),
        box-shadow .38s ease;
}

.ng-card:hover {
    transform: translateY(-5px) scale(1.008);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .16);
}

/* Alturas */
.ng-hero {
    height: 76vh;
    min-height: 480px;
    box-shadow: 0 4px 36px rgba(0, 0, 0, .14);
}

.ng-hero--md {
    height: 56vh;
    min-height: 360px;
}

.ng-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--r);
    background: #111;
    cursor: pointer;
    height: 52vh;
    min-height: 320px;
    box-shadow: 0 4px 36px rgba(0, 0, 0, .12);
}

.ng-card--tall {
    height: 58vh;
    min-height: 380px;
}

.ng-card--medium {
    height: 44vh;
    min-height: 280px;
}

.ng-card--half {
    height: calc(50% - var(--g)/2);
    min-height: 200px;
}

/* ══════════════════════════════════════
   GRIDS
══════════════════════════════════════ */
.ng-g2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--g);
}

.ng-g3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--g);
}

/* Asimétrico: tarjeta grande izq + columna de 2 der */
.ng-gasym {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: var(--g);
    align-items: stretch;
}

.ng-gasym-main {
    height: 100%;
    min-height: 420px;
}

.ng-gasym-stack {
    display: flex;
    flex-direction: column;
    gap: var(--g);
}

.ng-gasym-stack .ng-card--half {
    flex: 1;
    min-height: 180px;
    height: auto;
}

/* ══════════════════════════════════════
   CAPAS MEDIA
══════════════════════════════════════ */
.ng-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ng-fondo {
    z-index: 1;
    transition: transform .65s ease;
}

.ng-card:hover .ng-fondo,
.ng-hero:hover .ng-fondo,
.ng-banner:hover .ng-fondo {
    transform: scale(1.05);
}

.ng-producto-img {
    z-index: 2;
    object-fit: cover;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .4));
    transition: transform .5s ease;
}

.ng-contain {
    object-fit: contain;
    padding: 8% 30% 32% 8%;
}

.ng-card:hover .ng-producto-img,
.ng-hero:hover .ng-producto-img,
.ng-banner:hover .ng-producto-img {
    transform: scale(1.05) translateY(-4px);
}

/* ── Degradados overlay ───────────────── */
.ng-ov {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .82) 0%,
            rgba(0, 0, 0, .22) 48%,
            rgba(0, 0, 0, 0) 100%);
}

/* Banner: degradado desde la izquierda */
.ng-ov--l {
    background: linear-gradient(to right,
            rgba(0, 0, 0, .85) 0%,
            rgba(0, 0, 0, .45) 45%,
            rgba(0, 0, 0, 0) 100%);
}

/* ══════════════════════════════════════
   CONTENIDO TEXTUAL
══════════════════════════════════════ */
.ng-cnt {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 26px 28px;
    z-index: 4;
    color: #fff;
    animation: fadeUp .55s ease both;
}

/* Centrado (heroes) */
.ng-cnt--c {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Izquierda explícito (banner) */
.ng-cnt--l {
    top: 0;
    bottom: 0;
    right: auto;
    width: 52%;
    padding-left: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: none;
    opacity: 1;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tag / categoría */
.ng-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.8px;
    color: var(--green-lt);
    margin-bottom: 8px;
}

/* Títulos */
.ng-t {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    line-height: 1.18;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
    margin-bottom: 6px;
}

.ng-t--xl {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
}

.ng-t--lg {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.ng-t {
    font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.ng-t--md {
    font-size: clamp(1rem, 1.8vw, 1.4rem);
}

/* Subtítulo */
.ng-sub {
    font-size: .95rem;
    color: rgba(255, 255, 255, .78);
    margin-bottom: 10px;
    line-height: 1.4;
    max-width: 480px;
}

.ng-sub--sm {
    font-size: .82rem;
}

.ng-cnt--c .ng-sub {
    text-align: center;
}

/* Precio */
.ng-price {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 18px;
}

/* Botón pill */
.ng-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 22px;
    border-radius: 980px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(14px) saturate(1.6);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, .38);
    color: #fff;
    text-decoration: none;
    font-family: inherit;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .22s, color .22s;
    margin-top: 4px;
}

.ng-btn::after {
    content: ' ›';
    font-size: 1rem;
}

.ng-btn:hover {
    background: #fff;
    color: var(--green);
}

.ng-btn--sm {
    padding: 7px 16px;
    font-size: .78rem;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
    .ng-g3 {
        grid-template-columns: 1fr 1fr;
    }

    .ng-gasym {
        grid-template-columns: 1fr;
    }

    .ng-gasym-main {
        min-height: 320px;
    }
}

@media (max-width: 640px) {

    .ng-g2,
    .ng-g3 {
        grid-template-columns: 1fr;
    }

    .ng-hero {
        height: 58vh;
    }

    .ng-hero--md {
        height: 46vh;
    }

    .ng-banner {
        height: 56vh;
    }

    .ng-card--tall {
        height: 50vh;
    }

    .ng-card--medium {
        height: 40vh;
    }

    .ng-cnt--l {
        top: auto;
        bottom: 0;
        width: 100%;
        padding: 20px 22px 24px;
        justify-content: flex-end;
    }

    .ng-ov--l {
        background: linear-gradient(to top,
                rgba(0, 0, 0, .82) 0%,
                rgba(0, 0, 0, .22) 55%,
                rgba(0, 0, 0, 0) 100%);
    }

    .ng-t--xl {
        font-size: 1.8rem;
    }
}