@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;
}

html,
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100%;
}

main {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 80px var(--g) 80px;
    overflow: visible;
}

/* ── 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);
    overflow: visible;
    position: relative;
}

/* ══════════════════════════════════════
   TARJETAS BASE
══════════════════════════════════════ */
.ng-hero,
.ng-card,
.ng-banner {
    position: relative;
    border-radius: var(--r);
    background: #111;
    cursor: pointer;
    transform: translateZ(0);
    overflow: visible;
}

.ng-clip {
    position: absolute;
    inset: 0;
    border-radius: var(--r);
    overflow: hidden;
    z-index: 1;
}

.ng-card {
    box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
    transition: box-shadow .38s ease;
}

.ng-card:hover {
    box-shadow: 0 16px 44px rgba(0, 0, 0, .2);
}

/* 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 {
    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);
}

.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;
}

/* ══════════════════════════════════════
   VIDEO DE FONDO
══════════════════════════════════════ */
.ng-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scale(1);
    transition: transform .7s cubic-bezier(.25, .46, .45, .94);
}

/* ══════════════════════════════════════
   OVERLAYS
══════════════════════════════════════ */
.ng-ov {
    position: absolute;
    inset: 0;
    z-index: 2;
    /* Degradado de DERECHA a izquierda: oscuro a la derecha donde está el texto */
    background: linear-gradient(to left,
            rgba(0, 0, 0, .85) 0%,
            rgba(0, 0, 0, .4) 45%,
            rgba(0, 0, 0, .05) 100%);
}

.ng-ov--l {
    background: linear-gradient(to right,
            rgba(0, 0, 0, .88) 0%,
            rgba(0, 0, 0, .42) 45%,
            rgba(0, 0, 0, 0) 100%);
}

/* ══════════════════════════════════════
   IMAGEN FLOTANTE — izquierda, sale de la tarjeta
══════════════════════════════════════ */
.ng-img-wrap {
    position: absolute;
    left: -14%;
    bottom: -4%;
    width: 54%;
    height: 118%;
    z-index: 10;
    pointer-events: none;
    transition: transform .55s cubic-bezier(.25, .46, .45, .94);
    animation: productEntry 1s cubic-bezier(.34, 1.4, .64, 1) both;
    animation-delay: .15s;
}

/* Banner: imagen a la derecha */
.ng-img-wrap--right {
    left: auto;
    right: -14%;
}

@keyframes productEntry {
    from {
        opacity: 0;
        transform: translateY(60px) scale(.8) rotate(-4deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.ng-producto-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter:
        drop-shadow(-16px 28px 36px rgba(0, 0, 0, .8)) drop-shadow(0 6px 14px rgba(0, 0, 0, .55));
}

.ng-img-glow {
    position: absolute;
    bottom: 2%;
    left: 5%;
    width: 90%;
    height: 28%;
    background: radial-gradient(ellipse at 50% 100%,
            rgba(80, 180, 60, .28) 0%,
            transparent 70%);
    filter: blur(22px);
    pointer-events: none;
    animation: glowPulse 3.5s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    from {
        opacity: .5;
        transform: scaleX(1);
    }

    to {
        opacity: 1;
        transform: scaleX(1.12);
    }
}

/* ══════════════════════════════════════
   CONTENIDO TEXTUAL
══════════════════════════════════════ */
.ng-cnt {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 32px 36px;
    z-index: 5;
    color: #fff;
    animation: fadeUp .6s ease both;
    animation-delay: .25s;
}

/* TEXTO A LA DERECHA — ocupa solo la mitad derecha */
.ng-cnt--r {
    left: auto;
    top: 0;
    bottom: 0;
    right: 0;
    width: 58%;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Banner: texto a la izquierda (ya existía) */
.ng-cnt--l {
    top: 0;
    bottom: 0;
    right: auto;
    width: 55%;
    padding-left: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: none;
    opacity: 1;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tag */
.ng-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--green-lt);
    margin-bottom: 10px;
}

/* Títulos */
.ng-t {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.14;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
    margin-bottom: 8px;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.ng-t--xl {
    font-size: clamp(2.6rem, 5.8vw, 4.6rem);
}

.ng-t--lg {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.ng-t--md {
    font-size: clamp(1.25rem, 2.1vw, 2rem);
}

/* Subtítulo */
.ng-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .82);
    margin-bottom: 10px;
    line-height: 1.45;
    max-width: 420px;
}

.ng-sub--sm {
    font-size: .9rem;
}

/* Precio */
.ng-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 20px;
    letter-spacing: .5px;
}

/* Botón */
.ng-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 12px 28px;
    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, .4);
    color: #fff;
    text-decoration: none;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .22s, color .22s;
    margin-top: 4px;
    align-self: flex-start;
    /* no estira el botón todo el ancho */
}

.ng-btn::after {
    content: ' ›';
    font-size: 1.1rem;
}

.ng-btn:hover {
    background: #fff;
    color: var(--green);
}

.ng-btn--sm {
    padding: 9px 20px;
    font-size: .84rem;
}

/* ══════════════════════════════════════
   MAPA
══════════════════════════════════════ */
.ng-map-section {
    width: 100%;
    max-width: 1380px;
    margin: 40px auto calc(var(--g) * 2);
    padding: 0 var(--g);
}

.ng-map-container {
    width: 100%;
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: 0 4px 36px rgba(0, 0, 0, .12);
}

.ng-map-container iframe {
    width: 100%;
    display: block;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
    .ng-g3 {
        grid-template-columns: 1fr 1fr;
    }

    .ng-gasym {
        grid-template-columns: 1fr;
    }

    .ng-gasym-main {
        min-height: 320px;
    }

    .ng-img-wrap {
        width: 50%;
    }

    .ng-cnt--r {
        width: 60%;
    }
}

@media (max-width: 640px) {
    main {
        padding-top: 60px;
    }

    .ng-g2,
    .ng-g3 {
        grid-template-columns: 1fr;
    }

    .ng-hero {
        height: 60vh;
    }

    .ng-hero--md {
        height: 48vh;
    }

    .ng-banner {
        height: 60vh;
    }

    .ng-card--tall {
        height: 54vh;
    }

    .ng-card--medium {
        height: 44vh;
    }

    .ng-img-wrap, .ng-img-wrap--right {
        width: 55%;
        height: 110%;
        left: auto;
        right: -6%;
        transform-origin: bottom right;
    }

    /* En móvil el texto ocupa el lado izquierdo */
    .ng-cnt--r, .ng-cnt--l {
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: 72%;
        padding: 22px 24px 28px;
        justify-content: flex-end;
        align-items: flex-start;
        text-align: left;
    }

    .ng-ov, .ng-ov--l {
        background: linear-gradient(to right,
                rgba(0, 0, 0, .9) 0%,
                rgba(0, 0, 0, .6) 55%,
                rgba(0, 0, 0, 0) 100%);
    }
}

@media (prefers-reduced-motion: reduce) {

    .ng-img-wrap,
    .ng-img-glow,
    .ng-video-bg {
        animation: none;
        transition: none;
    }
}