/* NESAGAVIRIA - Parque pagina */
/* ==========================
   PÁGINA PARQUE MEMORIAL
   ========================== */

.pm-page {
    background-color: var(--color-off-white);
}

/* HERO PRINCIPAL */

.pm-hero-section {
    padding: 4.5rem 0 3.5rem;
    background: linear-gradient(135deg, #f5fbf7 0%, #ffffff 40%, #e8f5ee 100%);
}

.pm-hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .pm-hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    }
}

.pm-hero-media {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.pm-hero-image-wrapper {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
    position: relative;
}

.pm-hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 55%);
    pointer-events: none;
}

.pm-hero-image-wrapper img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.pm-hero-caption {
    font-size: 0.95rem;
    color: #374151;
}

.pm-hero-location {
    font-size: 0.9rem;
    color: #047857;
    font-weight: 500;
}

.pm-hero-content h2 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    margin-bottom: 0.9rem;
    color: #022c22;
}

.pm-hero-content p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.pm-hero-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem 0;
    display: grid;
    gap: 0.4rem;
    color: #374151;
    font-size: 0.95rem;
}

.pm-hero-highlights li::before {
    content: '✓';
    color: #059669;
    font-weight: 600;
    display: inline-block;
    width: 1.2rem;
}

.pm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

@media (max-width: 768px) {
    .pm-hero-section {
        padding: 3.2rem 0 2.5rem;
    }

    .pm-hero-grid {
        grid-template-columns: 1fr;
    }
}

/* SECCIÓN INFOGRAFÍAS (ubicación + destinos finales) */

.pm-infographic-section {
    position: relative;
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 55% at 0% 0%, rgba(0, 196, 138, 0.16), transparent 55%),
        radial-gradient(ellipse 75% 50% at 100% 100%, rgba(96, 187, 149, 0.14), transparent 50%),
        linear-gradient(165deg, #eef9f3 0%, #ffffff 42%, #f0f7f4 100%);
}

.pm-infographic-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url(../../images/sinbolos.png?v=20260209);
    background-repeat: repeat;
    background-size: clamp(180px, 22vw, 280px) auto;
    opacity: 0.045;
    pointer-events: none;
}

.pm-infographic-section__glow {
    position: absolute;
    top: 12%;
    right: -8%;
    width: min(420px, 55vw);
    height: min(420px, 55vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 169, 122, 0.2) 0%, transparent 68%);
    pointer-events: none;
    filter: blur(2px);
}

.pm-infographic-section__inner {
    position: relative;
    z-index: 1;
}

.pm-infographic-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.75rem;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 169, 122, 0.18);
    box-shadow:
        0 4px 24px rgba(0, 138, 102, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.pm-infographic-header h2 {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    margin-bottom: 0.85rem;
    line-height: 1.25;
    background: linear-gradient(125deg, #022c22 0%, var(--color-primary-dark) 45%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pm-infographic-intro {
    color: #4b5563;
    line-height: 1.75;
    margin: 0;
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
}

.pm-infographic-list {
    display: grid;
    gap: clamp(1.75rem, 4vw, 2.5rem);
}

.pm-infographic-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(0, 169, 122, 0.14);
    box-shadow:
        0 4px 6px rgba(0, 74, 56, 0.04),
        0 18px 48px rgba(0, 74, 56, 0.1);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;
}

.pm-infographic-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        145deg,
        rgba(0, 196, 138, 0.45) 0%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(0, 138, 102, 0.35) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.pm-infographic-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 8px 12px rgba(0, 74, 56, 0.06),
        0 28px 56px rgba(0, 138, 102, 0.16);
}

.pm-infographic-card__figure {
    margin: 0;
    padding: 1.15rem 1.15rem 0.5rem;
    background:
        radial-gradient(ellipse 90% 80% at 20% 0%, rgba(0, 196, 138, 0.12), transparent 55%),
        linear-gradient(180deg, #f3fbf7 0%, #ffffff 100%);
}

.pm-infographic-card--destinos .pm-infographic-card__figure {
    background:
        radial-gradient(ellipse 90% 80% at 80% 0%, rgba(96, 187, 149, 0.14), transparent 55%),
        linear-gradient(180deg, #f5fcf9 0%, #ffffff 100%);
}

.pm-infographic-card__figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: contain;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
    transition: transform 0.4s ease;
}

.pm-infographic-card:hover .pm-infographic-card__figure img {
    transform: scale(1.015);
}

.pm-infographic-card__body {
    padding: 1.25rem 1.5rem 1.65rem;
}

.pm-infographic-card__body h3 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    color: var(--color-primary-dark);
    margin-bottom: 0.7rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid rgba(0, 169, 122, 0.15);
}

.pm-infographic-card--ubicacion .pm-infographic-card__body h3::before {
    content: '';
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    box-shadow: 0 0 0 4px rgba(0, 169, 122, 0.2);
}

.pm-infographic-card--destinos .pm-infographic-card__body h3::before {
    content: '';
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary-dark));
    box-shadow: 0 0 0 4px rgba(96, 187, 149, 0.25);
}

.pm-infographic-card__body > p {
    color: #4b5563;
    line-height: 1.72;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.pm-infographic-card__list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    color: #374151;
    font-size: 0.92rem;
}

.pm-infographic-card__list li {
    padding: 0.45rem 0.65rem 0.45rem 0.5rem;
    border-radius: 10px;
    background: rgba(232, 245, 240, 0.65);
    border-left: 3px solid var(--color-primary);
}

.pm-infographic-card__list li::before {
    content: '✓';
    color: var(--color-primary);
    font-weight: 700;
    display: inline-block;
    width: 1.15rem;
    font-size: 0.8rem;
}

.pm-infographic-card__list--cols {
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

.pm-infographic-card__list--cols li {
    border-left-color: var(--color-secondary-dark);
    background: rgba(232, 245, 240, 0.5);
}

@media (min-width: 600px) {
    .pm-infographic-card__list--cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pm-infographic-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    text-decoration: none;
    border-radius: 999px;
    border: 2px solid rgba(0, 169, 122, 0.45);
    background: rgba(255, 255, 255, 0.9);
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.pm-infographic-card__link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-color: transparent;
    transform: translateY(-1px);
}

@media (min-width: 992px) {
    .pm-infographic-card {
        display: grid;
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
        align-items: center;
    }

    .pm-infographic-card__figure {
        padding: 1.35rem 1.25rem 1.35rem 1.35rem;
    }

    .pm-infographic-card__body {
        padding: 1.5rem 1.75rem 1.5rem 0.75rem;
    }
}

@media (max-width: 991px) {
    .pm-infographic-section {
        padding: 2.5rem 0 3rem;
    }

    .pm-infographic-card:hover {
        transform: translateY(-3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pm-infographic-card,
    .pm-infographic-card__figure img,
    .pm-infographic-card__link {
        transition: none;
    }

    .pm-infographic-card:hover,
    .pm-infographic-card:hover .pm-infographic-card__figure img {
        transform: none;
    }
}

/* SECCIÓN VIDEO */

.pm-video-section {
    padding: 3rem 0 3.5rem;
    background-color: #ffffff;
}

.pm-video-inner {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .pm-video-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    }
}

.pm-video-text h3 {
    font-size: 1.6rem;
    color: #064e3b;
    margin-bottom: 0.7rem;
}

.pm-video-text p {
    color: #4b5563;
    line-height: 1.7;
}

.pm-video-frame {
    width: 100%;
}

.pm-video-aspect {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
}

.pm-video-aspect iframe,
.pm-video-aspect video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* SECCIÓN PRODUCTOS / SERVICIOS DEL PARQUE */

.pm-products-section {
    padding: 3.5rem 0 3.5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.pm-section-title {
    font-size: 1.7rem;
    text-align: center;
    color: #065f46;
    margin-bottom: 0.4rem;
}

.pm-section-subtitle {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.4rem;
    color: #4b5563;
    font-size: 0.97rem;
}

.pm-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.7rem;
}

.pm-product-card {
    position: relative;
    min-height: 260px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateY(0);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.pm-product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(5, 46, 22, 0.9), rgba(16, 185, 129, 0.5));
    mix-blend-mode: multiply;
}

.pm-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.3);
}

/* Línea que sigue el cursor por el contorno de la tarjeta */
.pm-card-line-wrapper {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pm-product-card:hover .pm-card-line-wrapper {
    opacity: 1;
}

.pm-card-line {
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #7dd4b0, #00a97a, #008a66);
    box-shadow: 0 0 12px rgba(0, 169, 122, 0.5);
}

.pm-card-line--top,
.pm-card-line--bottom {
    height: 4px;
    width: 260px;
}

.pm-card-line--left,
.pm-card-line--right {
    width: 4px;
    height: 260px;
}

.pm-card-line--top {
    background: linear-gradient(90deg, #7dd4b0, #00a97a, #008a66);
}

.pm-card-line--bottom {
    background: linear-gradient(90deg, #7dd4b0, #00a97a, #008a66);
}

.pm-card-line--left,
.pm-card-line--right {
    background: linear-gradient(180deg, #7dd4b0, #00a97a, #008a66);
}

/* L en esquinas con curvatura redondeada (simétrica con la tarjeta) */
.pm-card-line-corner {
    position: absolute;
    display: none;
    width: 100px;
    height: 100px;
    box-shadow: 0 0 12px rgba(0, 169, 122, 0.4);
}

.pm-card-line-corner--tr {
    top: 0;
    right: 0;
    border-top: 4px solid #00a97a;
    border-right: 4px solid #008a66;
    border-top-right-radius: 20px;
}

.pm-card-line-corner--tl {
    top: 0;
    left: 0;
    border-top: 4px solid #00a97a;
    border-left: 4px solid #008a66;
    border-top-left-radius: 20px;
}

.pm-card-line-corner--br {
    bottom: 0;
    right: 0;
    border-bottom: 4px solid #008a66;
    border-right: 4px solid #00a97a;
    border-bottom-right-radius: 20px;
}

.pm-card-line-corner--bl {
    bottom: 0;
    left: 0;
    border-bottom: 4px solid #008a66;
    border-left: 4px solid #00a97a;
    border-bottom-left-radius: 20px;
}

.pm-product-overlay {
    position: relative;
    z-index: 1;
    padding: 1.8rem 1.6rem 1.6rem;
    color: #ecfdf5;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    height: 100%;
}

.pm-product-overlay h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.pm-product-overlay p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.pm-product-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.pm-product-overlay ul li::before {
    content: '•';
    display: inline-block;
    width: 1rem;
    color: #a7f3d0;
}

.pm-product-cta {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
    color: #bbf7d0;
    text-decoration: none;
    background-color: rgba(6, 78, 59, 0.3);
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.pm-product-cta:hover {
    background-color: #bbf7d0;
    color: #064e3b;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
    transform: translateY(-2px);
}

/* Fondos específicos: ajusta a tus imágenes disponibles */
.pm-product-card--lotes {
    background-image: url('../../images/parque.jpeg');
}

.pm-product-card--cenizarios {
    background-image: url('../../images/cenizario y osarios.jpg');
}

.pm-product-card--cremacion {
    background-image: url('../../images/memoria.jpg');
}

.pm-product-card--servicios {
    background-image: url('../../images/Soluciones.jpeg');
}

/* GALERÍA LIGERA + MARQUEE INFINITO */

.pm-gallery-section {
    padding: 3rem 0 3.5rem;
    background-color: #ffffff;
}

.pm-gallery-marquee {
    position: relative;
    margin-top: 1.75rem;
    --pm-gallery-fade: 72px;
}

.pm-gallery-marquee__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--pm-gallery-fade);
    z-index: 2;
    pointer-events: none;
}

.pm-gallery-marquee__fade--left {
    left: 0;
    background: linear-gradient(90deg, #fff 0%, transparent 100%);
}

.pm-gallery-marquee__fade--right {
    right: 0;
    background: linear-gradient(270deg, #fff 0%, transparent 100%);
}

.pm-gallery-marquee__viewport {
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    /* mask opcional; los fades laterales funcionan en todos los navegadores */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}

.pm-gallery-marquee__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: -webkit-max-content;
    width: max-content;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Motor JS (Brave, Safari, etc.): sin @keyframes CSS */
.pm-gallery-marquee--js .pm-gallery-marquee__track {
    -webkit-animation: none !important;
    animation: none !important;
}

.pm-gallery-marquee__set {
    display: flex;
    flex: 0 0 auto;
    flex-shrink: 0;
    align-items: stretch;
    gap: 1rem;
    padding: 0.25rem 0;
}

.pm-gallery-card {
    position: relative;
    flex: 0 0 auto;
    width: min(340px, 100%);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.pm-gallery-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.pm-gallery-card__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.85rem 1rem;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.85));
}

.pm-gallery-card__title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #f8fafc;
    margin: 0;
    line-height: 1.35;
}

@-webkit-keyframes pm-gallery-marquee-x {
    from {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    to {
        -webkit-transform: translate3d(var(--pm-marquee-shift), 0, 0);
        transform: translate3d(var(--pm-marquee-shift), 0, 0);
    }
}

@keyframes pm-gallery-marquee-x {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(var(--pm-marquee-shift), 0, 0);
    }
}

/* Sin animación CSS: desplazamiento horizontal manual (respaldo) */
.pm-gallery-marquee--static .pm-gallery-marquee__viewport {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    mask-image: none;
    -webkit-mask-image: none;
}

.pm-gallery-marquee--static .pm-gallery-marquee__track {
    -webkit-animation: none;
    animation: none;
    width: max-content;
}

.pm-gallery-marquee--static .pm-gallery-card {
    scroll-snap-align: start;
}

@media (prefers-reduced-motion: reduce) {
    .pm-gallery-marquee__fade {
        display: none;
    }

    .pm-gallery-marquee__viewport {
        overflow-x: auto;
        mask-image: none;
        -webkit-mask-image: none;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .pm-gallery-marquee__track {
        -webkit-animation: none;
        animation: none;
        flex-wrap: nowrap;
        width: max-content;
        justify-content: flex-start;
    }

    .pm-gallery-marquee__set {
        flex-shrink: 0;
    }

    .pm-gallery-card {
        scroll-snap-align: start;
    }
}

.pm-gallery-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 1.2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.pm-gallery-strip::-webkit-scrollbar {
    height: 6px;
}

.pm-gallery-strip::-webkit-scrollbar-track {
    background: #e5e7eb;
}

.pm-gallery-strip::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 999px;
}

.pm-gallery-item {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
    min-height: 200px;
}

.pm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CTA FINAL ESPECÍFICA DE LA PÁGINA */

.pm-cta--page {
    margin-top: 0;
}

.pm-cta-inner {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

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