
/* =========================================================
   CHAITAS · VISITA LG CHEM 2026
   CSS AISLADO: todas las reglas viven bajo #lgchem-event
   para no interferir con el header/footer originales.
   ========================================================= */

#lgchem-event,
#lgchem-event * {
    box-sizing: border-box;
}

#lgchem-event {
    --lg-green: #087a40;
    --lg-green-dark: #064b2b;
    --lg-green-soft: #edf6f0;
    --lg-ink: #173528;
    --lg-muted: #66776e;
    --lg-line: #dce8e0;
    --lg-white: #ffffff;
    --lg-shadow: 0 24px 60px rgba(17, 61, 40, .13);
    --lg-shadow-soft: 0 12px 34px rgba(17, 61, 40, .09);

    width: 100%;
    clear: both;
    float: none;
    position: relative;
    overflow: hidden;
    background: #fff;
    color: var(--lg-ink);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

#lgchem-event img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

#lgchem-event a {
    text-decoration: none;
}

#lgchem-event .lgc-wrap {
    width: min(1170px, calc(100% - 44px));
    margin: 0 auto;
    float: none;
}

#lgchem-event .lgc-section {
    padding: 92px 0;
    position: relative;
}

#lgchem-event .lgc-soft {
    background: linear-gradient(180deg, #f6faf7 0%, #eef6f1 100%);
}

#lgchem-event .lgc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--lg-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 14px;
}

#lgchem-event .lgc-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

#lgchem-event h1,
#lgchem-event h2,
#lgchem-event h3,
#lgchem-event p {
    text-transform: none;
    letter-spacing: normal;
}

#lgchem-event .lgc-head {
    max-width: 780px;
    margin: 0 0 42px;
}

#lgchem-event .lgc-head h2 {
    margin: 0 0 15px;
    color: var(--lg-ink);
    font-size: clamp(30px, 3.3vw, 46px);
    line-height: 1.12;
    font-weight: 700;
}

#lgchem-event .lgc-head p {
    margin: 0;
    color: var(--lg-muted);
    font-size: 17px;
}

/* HERO */
#lgchem-event .lgc-hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    isolation: isolate;
    background: #052d1c;
}

#lgchem-event .lgc-hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

#lgchem-event .lgc-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    transition: transform 8s ease;
}

#lgchem-event .lgc-hero.is-ready .lgc-hero-media img {
    transform: scale(1.08);
}

#lgchem-event .lgc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 78% 26%, rgba(29, 175, 90, .18), transparent 30%),
        linear-gradient(90deg, rgba(4, 42, 25, .96) 0%, rgba(4, 42, 25, .82) 46%, rgba(4, 42, 25, .28) 100%);
}

#lgchem-event .lgc-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(310px, .65fr);
    gap: 56px;
    align-items: center;
    padding: 85px 0;
}

#lgchem-event .lgc-hero-copy {
    color: #fff;
    max-width: 760px;
}

#lgchem-event .lgc-hero-copy .lgc-eyebrow {
    color: #9de2b7;
}

#lgchem-event .lgc-hero-copy h1 {
    color: #fff;
    margin: 0 0 22px;
    font-size: clamp(42px, 5.2vw, 70px);
    line-height: 1.02;
    font-weight: 700;
}

#lgchem-event .lgc-hero-copy p {
    color: rgba(255,255,255,.89);
    margin: 0;
    max-width: 700px;
    font-size: 19px;
}

#lgchem-event .lgc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

#lgchem-event .lgc-tag {
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

#lgchem-event .lgc-hero-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255,255,255,.95);
    box-shadow: 0 30px 80px rgba(0,0,0,.32);
    transform: translateY(0);
    transition: transform .35s ease, box-shadow .35s ease;
}

#lgchem-event .lgc-hero-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 38px 90px rgba(0,0,0,.40);
}

#lgchem-event .lgc-hero-card img {
    width: 100%;
    height: 290px;
    object-fit: cover;
}

#lgchem-event .lgc-hero-card-body {
    padding: 24px 25px;
}

#lgchem-event .lgc-hero-card small {
    color: var(--lg-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

#lgchem-event .lgc-hero-card h3 {
    color: var(--lg-ink);
    margin: 8px 0 7px;
    font-size: 22px;
    line-height: 1.2;
}

#lgchem-event .lgc-hero-card p {
    color: var(--lg-muted);
    font-size: 14px;
    margin: 0;
}

/* STATS */
#lgchem-event .lgc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

#lgchem-event .lgc-stat {
    min-height: 155px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--lg-line);
    border-radius: 18px;
    box-shadow: var(--lg-shadow-soft);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

#lgchem-event .lgc-stat:hover {
    transform: translateY(-6px);
    border-color: rgba(8,122,64,.35);
    box-shadow: var(--lg-shadow);
}

#lgchem-event .lgc-stat strong {
    display: block;
    color: var(--lg-green);
    font-size: 28px;
    line-height: 1;
    margin-bottom: 12px;
}

#lgchem-event .lgc-stat span {
    color: var(--lg-muted);
    font-size: 14px;
}

/* GALLERY */
#lgchem-event .lgc-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 245px;
    gap: 18px;
}

#lgchem-event .lgc-gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #dfe9e2;
    box-shadow: var(--lg-shadow-soft);
    cursor: zoom-in;
    transform: translateZ(0);
}

#lgchem-event .lgc-gallery-card:nth-child(1) {
    grid-column: span 7;
    grid-row: span 2;
}

#lgchem-event .lgc-gallery-card:nth-child(2),
#lgchem-event .lgc-gallery-card:nth-child(3) {
    grid-column: span 5;
}

#lgchem-event .lgc-gallery-card:nth-child(4),
#lgchem-event .lgc-gallery-card:nth-child(5) {
    grid-column: span 6;
}

#lgchem-event .lgc-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}

#lgchem-event .lgc-gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(3,31,18,.76) 100%);
    opacity: .58;
    transition: opacity .35s ease;
}

#lgchem-event .lgc-gallery-card::before {
    content: "";
    position: absolute;
    top: -120%;
    left: -45%;
    width: 42%;
    height: 300%;
    z-index: 2;
    transform: rotate(20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
    transition: left .7s ease;
}

#lgchem-event .lgc-gallery-card:hover::before {
    left: 125%;
}

#lgchem-event .lgc-gallery-card:hover img {
    transform: scale(1.075);
    filter: saturate(1.06) contrast(1.03);
}

#lgchem-event .lgc-gallery-card:hover::after {
    opacity: .82;
}

#lgchem-event .lgc-gallery-caption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 17px;
    z-index: 3;
    color: #fff;
    transform: translateY(6px);
    transition: transform .35s ease;
}

#lgchem-event .lgc-gallery-card:hover .lgc-gallery-caption {
    transform: translateY(0);
}

#lgchem-event .lgc-gallery-caption strong {
    display: block;
    font-size: 16px;
    line-height: 1.25;
}

#lgchem-event .lgc-gallery-caption span {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.78);
    font-size: 12px;
}

/* DARK STORY SECTION */
#lgchem-event .lgc-dark {
    background:
        radial-gradient(circle at 80% 15%, rgba(40,167,91,.18), transparent 30%),
        linear-gradient(135deg, #062b1b 0%, #0b3e28 100%);
    color: #fff;
}

#lgchem-event .lgc-story-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(360px,.85fr);
    gap: 56px;
    align-items: center;
}

#lgchem-event .lgc-story-copy .lgc-eyebrow {
    color: #9de2b7;
}

#lgchem-event .lgc-story-copy h2 {
    color: #fff;
    margin: 0 0 18px;
    font-size: clamp(32px, 3.7vw, 50px);
    line-height: 1.08;
}

#lgchem-event .lgc-story-copy p {
    color: rgba(255,255,255,.82);
    font-size: 17px;
    margin: 0;
}

#lgchem-event .lgc-list {
    list-style: none;
    margin: 27px 0 0;
    padding: 0;
}

#lgchem-event .lgc-list li {
    position: relative;
    padding: 13px 0 13px 32px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.88);
}

#lgchem-event .lgc-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #8fe0ae;
    font-weight: 700;
}

#lgchem-event .lgc-story-photo {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.30);
}

#lgchem-event .lgc-story-photo img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    transition: transform .7s ease;
}

#lgchem-event .lgc-story-photo:hover img {
    transform: scale(1.045);
}

#lgchem-event .lgc-story-photo::after {
    content: "LG CHEM · 2026";
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 8px 12px;
    background: rgba(4,43,27,.80);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

/* PEOPLE */
#lgchem-event .lgc-people {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

#lgchem-event .lgc-person {
    position: relative;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--lg-line);
    border-radius: 18px;
    box-shadow: var(--lg-shadow-soft);
    overflow: hidden;
}

#lgchem-event .lgc-person::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--lg-green);
}

#lgchem-event .lgc-person small {
    color: var(--lg-green);
    font-weight: 700;
    letter-spacing: 1.4px;
}

#lgchem-event .lgc-person h3 {
    margin: 7px 0 4px;
    color: var(--lg-ink);
    font-size: 21px;
}

#lgchem-event .lgc-person p {
    margin: 0;
    color: var(--lg-muted);
    font-size: 14px;
}

/* FINAL */
#lgchem-event .lgc-final {
    max-width: 840px;
    text-align: center;
    margin: 0 auto;
}

#lgchem-event .lgc-final .lgc-eyebrow {
    justify-content: center;
}

#lgchem-event .lgc-final h2 {
    margin: 0 0 16px;
    color: var(--lg-ink);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
}

#lgchem-event .lgc-final p {
    margin: 0 auto;
    max-width: 720px;
    color: var(--lg-muted);
    font-size: 17px;
}

/* REVEAL */
#lgchem-event .lgc-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}

#lgchem-event .lgc-reveal.lgc-visible {
    opacity: 1;
    transform: translateY(0);
}

#lgchem-event .lgc-delay-1 { transition-delay: .08s; }
#lgchem-event .lgc-delay-2 { transition-delay: .16s; }
#lgchem-event .lgc-delay-3 { transition-delay: .24s; }

/* LIGHTBOX */
#lgc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(8px);
}

#lgc-lightbox.is-open {
    display: flex;
}

#lgc-lightbox .lgc-lightbox-inner {
    position: relative;
    width: min(1180px, 96vw);
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lgc-lightbox img {
    max-width: 100%;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 28px 90px rgba(0,0,0,.45);
}

#lgc-lightbox button {
    position: absolute;
    border: 0;
    cursor: pointer;
    background: rgba(255,255,255,.14);
    color: #fff;
    backdrop-filter: blur(8px);
    transition: background .2s ease, transform .2s ease;
}

#lgc-lightbox button:hover {
    background: rgba(255,255,255,.24);
    transform: scale(1.05);
}

#lgc-lightbox .lgc-lightbox-close {
    top: -4px;
    right: -4px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 24px;
    z-index: 2;
}

#lgc-lightbox .lgc-lightbox-prev,
#lgc-lightbox .lgc-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 62px;
    border-radius: 12px;
    font-size: 26px;
}

#lgc-lightbox .lgc-lightbox-prev:hover,
#lgc-lightbox .lgc-lightbox-next:hover {
    transform: translateY(-50%) scale(1.04);
}

#lgc-lightbox .lgc-lightbox-prev { left: 10px; }
#lgc-lightbox .lgc-lightbox-next { right: 10px; }

/* Legacy-theme isolation fixes */
body .boxed_wrapper {
    overflow: visible;
}

#lgchem-event {
    margin-top: 0 !important;
}

#lgchem-event .row::before,
#lgchem-event .row::after {
    display: none;
}

/* Responsive */
@media (max-width: 991px) {
    #lgchem-event .lgc-hero-grid,
    #lgchem-event .lgc-story-grid {
        grid-template-columns: 1fr;
    }

    #lgchem-event .lgc-hero {
        min-height: auto;
    }

    #lgchem-event .lgc-hero-card {
        max-width: 620px;
    }

    #lgchem-event .lgc-stats,
    #lgchem-event .lgc-people {
        grid-template-columns: 1fr;
    }

    #lgchem-event .lgc-gallery {
        grid-template-columns: repeat(2,1fr);
        grid-auto-rows: 250px;
    }

    #lgchem-event .lgc-gallery-card:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    #lgchem-event .lgc-gallery-card:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    #lgchem-event .lgc-wrap {
        width: min(100% - 28px, 1170px);
    }

    #lgchem-event .lgc-section {
        padding: 62px 0;
    }

    #lgchem-event .lgc-hero-grid {
        padding: 58px 0;
        gap: 30px;
    }

    #lgchem-event .lgc-hero-copy p {
        font-size: 16px;
    }

    #lgchem-event .lgc-hero-card img {
        height: 230px;
    }

    #lgchem-event .lgc-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 235px;
    }

    #lgchem-event .lgc-gallery-card:first-child {
        grid-column: auto;
    }

    #lgchem-event .lgc-story-photo img {
        height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #lgchem-event *,
    #lgchem-event *::before,
    #lgchem-event *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    #lgchem-event .lgc-reveal {
        opacity: 1;
        transform: none;
    }
}
