/* =====================================================
   PILARES U·E·E — PAGE STYLES
   ===================================================== */

@keyframes plSpin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@keyframes plPulse {

    0%,
    100% {
        opacity: .6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes plFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes plFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes plDash {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes plGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 2px rgba(122, 193, 67, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 8px rgba(122, 193, 67, 0.8));
    }
}

@keyframes plCardEntry {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

.pl-pulse {
    animation: plPulse 2.5s ease infinite;
}

.pl-float {
    animation: plFloat 3s ease-in-out infinite;
}

.pl-float-delayed-1 {
    animation: plFloat 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.pl-float-delayed-2 {
    animation: plFloat 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll reveal — shared utility */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero fade-up shared class */
.fade-up-qs {
    animation: plFadeUp 0.7s ease both;
}

.text-green {
    color: #7AC143;
}

/* ── HERO ── */
.pl-hero {
    position: relative;
    min-height: 58vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.pl-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0d1f12 0%, #142a1a 40%, #1a3320 70%, #0e2218 100%);
    z-index: 0;
}

.pl-hero__dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(122, 193, 67, 0.15) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.6;
}

.pl-hero__helix {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.18;
    animation: plSpin 60s linear infinite;
}

.pl-hero__color-bar {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 6px;
    background: linear-gradient(90deg, #7AC143, #E73A30, #F5A623);
    z-index: 2;
}

.pl-hero__content {
    position: relative;
    z-index: 3;
    padding-top: 110px;
    padding-bottom: 64px;
    width: 100%;
}

.pl-hero__title {
    font-weight: 900;
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1.08;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
}

.pl-hero__desc {
    color: rgba(255, 255, 255, 0.62);
    font-size: 15px;
    line-height: 1.75;
    max-width: 500px;
    margin-bottom: 40px;
}

.pl-hero__tabs {
    display: flex;
    gap: 12px;
}

.pl-hero__tab {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
}

.pl-hero__tab:hover {
    background: rgba(255, 255, 255, 0.14);
}

.pl-hero__tab--green:hover {
    border-color: #7AC143;
    background: rgba(122, 193, 67, 0.13);
}

.pl-hero__tab--red:hover {
    border-color: #E73A30;
    background: rgba(231, 58, 48, 0.13);
}

.pl-hero__tab--amber:hover {
    border-color: #F5A623;
    background: rgba(245, 166, 35, 0.13);
}

.pl-hero__tab-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.pl-hero__tab-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

/* ── BADGE ── */
.pl-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #7AC143;
    margin-bottom: 8px;
}

/* ── TRIPLE HELIX VIZ ── */
.pl-helix-viz {
    background: linear-gradient(180deg, #f4f5f7, #eef0ee);
    padding: 0 0 72px;
}

/* ensure first section below hero has visible top padding */
.pl-helix-viz+section,
.pl-helix-viz {
    padding-top: 0;
}

.pl-helix-viz__header {
    text-align: center;
    padding: 60px 0 40px;
}

.pl-helix-viz__title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.pl-helix-viz__subtitle {
    font-size: 14px;
    color: #58595B;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.pl-helix-viz__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.pl-helix-viz__diagram {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.pl-helix-svg {
    width: 100%;
    height: auto;
    max-width: 420px;
    max-height: 420px;
    display: block;
    overflow: visible;
}

/* SVG specific animations */
.pl-helix-svg .node {
    transition: all 0.2s ease;
    cursor: pointer;
    opacity: 0.85;
    transform-box: fill-box;
}

.pl-helix-svg .node.is-hovered,
.pl-helix-svg .node:hover {
    opacity: 1;
    filter: brightness(1.1);
}

.pl-helix-svg .connector {
    stroke-dasharray: 4 4;
    stroke-dashoffset: 80;
    animation: plDash 3s linear infinite;
}

.pl-helix-svg circle:not(.node circle):not(.center-pulse circle) {
    animation: plPulse 4s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

.pl-helix-svg .center-pulse {
    transform-origin: center;
    animation: pulse 2.5s ease infinite, plGlow 2.5s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.pl-helix-viz__cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pl-helix-card {
    background: #ffffff !important;
    border-radius: 16px;
    border-left: 4px solid var(--node-color);
    padding: 18px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1.5px solid rgba(0, 0, 0, 0.05);
    border-right: 1.5px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateX(30px);
}

.pl-helix-card.revealed {
    opacity: 1 !important;
    transform: translateX(0) !important;
    animation: plCardEntry 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.pl-helix-card.is-hovered,
.pl-helix-card:hover {
    background: #ffffff !important;
    border-color: var(--node-color) !important;
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
    z-index: 10;
}

.pl-helix-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pl-helix-card__label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.pl-helix-card__badges {
    display: flex;
    gap: 5px;
}

.pl-helix-card__badges span {
    font-size: 9.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.pl-helix-card__roles {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.pl-helix-card__roles span {
    font-size: 11.5px;
    color: #58595B;
    font-weight: 500;
}

.pl-helix-card--center {
    background: linear-gradient(135deg, #0d1f12, #142a1a);
    border: 1px solid rgba(122, 193, 67, 0.25);
    border-left: 4px solid #7AC143;
    display: flex;
    align-items: center;
    gap: 14px;
}

.pl-helix-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(122, 193, 67, 0.2);
    border: 1.5px solid rgba(122, 193, 67, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.pl-helix-card__center-title {
    font-size: 13px;
    font-weight: 800;
    color: #7AC143;
    margin-bottom: 4px;
}

.pl-helix-card__center-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

/* ── PILAR SECTIONS ── */
.pl-pilar {
    padding: 80px 0;
}

.pl-pilar--light {
    background: #f4f5f7;
}

.pl-pilar--red {
    background: linear-gradient(180deg, #fdf4f3 0%, #faecea 100%);
}

.pl-pilar--amber {
    background: linear-gradient(180deg, #f9f6ef 0%, #f4f1e8 100%);
}

.pl-pilar__badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.pl-pilar__badge-line {
    display: block;
    height: 2px;
    width: 32px;
    border-radius: 1px;
}

.pl-pilar__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.pl-pilar__grid--flip {
    direction: rtl;
}

.pl-pilar__grid--flip>* {
    direction: ltr;
}

.pl-pilar__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.pl-pilar__icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pl-pilar__tagline {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 3px;
}

.pl-pilar__label {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.05;
    text-transform: uppercase;
    margin: 0;
}

.pl-pilar__subtitle {
    font-size: 15px;
    font-weight: 500;
    color: #58595B;
    margin-bottom: 18px;
    font-style: italic;
}

.pl-pilar__desc {
    font-size: 14.5px;
    color: rgba(26, 26, 26, 0.8);
    line-height: 1.85;
    margin-bottom: 28px;
}

.pl-pilar__roles {
    margin-bottom: 28px;
}

.pl-pilar__roles-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}

.pl-pilar__role {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.pl-pilar__role-num {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 10px;
    font-weight: 800;
}

.pl-pilar__role>span:last-child {
    font-size: 13.5px;
    color: rgba(26, 26, 26, 0.8);
    line-height: 1.6;
}

/* Bento */
.pl-pilar__bento {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pl-pilar__photo {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 220px;
    flex-shrink: 0;
}

.pl-pilar__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pl-pilar__photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--pilar-color, #7AC143) 0%, transparent 55%);
    opacity: 0.8;
}

.pl-pilar__photo-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.pl-pilar__photo-text span {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.pl-pilar__photo-text strong {
    font-size: 16px;
    color: #fff;
    font-weight: 800;
    line-height: 1.3;
}

.pl-pilar__beneficios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pl-pilar__beneficio {
    border: 1px solid;
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.pl-pilar__beneficio-dot {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.pl-pilar__beneficio>span:last-child {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
}

/* ── SINERGIAS ── */
.pl-sinergias {
    background: #f4f5f7;
    padding: 60px 0 80px;
}

.pl-sinergias__header {
    text-align: center;
    padding-bottom: 36px;
}

.pl-sinergias__title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.pl-sinergias__subtitle {
    font-size: 14px;
    color: #58595B;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

.pl-sinergias__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pl-sinergia-card {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-top: 3px solid var(--sin-color, #7AC143);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pl-sinergia-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.pl-sinergia-card__pair {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pl-sinergia-card__pair span:not(.pl-sinergia-card__plus) {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid;
}

.pl-sinergia-card__plus {
    color: #aaa;
    font-size: 12px;
}

.pl-sinergia-card__title {
    font-size: 14.5px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.pl-sinergia-card__desc {
    font-size: 13px;
    color: #58595B;
    line-height: 1.65;
    margin-bottom: 14px;
}

.pl-sinergia-card__tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* ── CTA ── */
.pl-cta {
    background: #eef0ee;
    padding: 0 0 80px;
}

.pl-cta__box {
    background: linear-gradient(135deg, #0d1f12 0%, #142a1a 60%, #1a3320 100%);
    border-radius: 24px;
    padding: 56px 64px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.18);
}

.pl-cta__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(122, 193, 67, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
}

.pl-cta__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7AC143, #E73A30, #F5A623);
    pointer-events: none;
}

.pl-cta__content {
    position: relative;
    z-index: 2;
}

.pl-cta__badge {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #7AC143;
    margin-bottom: 12px;
}

.pl-cta__title {
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.pl-cta__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 460px;
    margin: 0 0 24px;
}

.pl-cta__legend {
    display: flex;
    gap: 20px;
}

.pl-cta__legend>div {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
}

.pl-cta__legend span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
}

.pl-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .pl-hero__helix {
        display: none;
    }

    .pl-hero__tabs {
        flex-direction: column;
    }

    .pl-helix-viz__grid {
        grid-template-columns: 1fr;
    }

    .pl-helix-viz__diagram {
        max-width: 320px;
        margin: 0 auto;
    }

    .pl-pilar__grid,
    .pl-pilar__grid--flip {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .pl-sinergias__grid {
        grid-template-columns: 1fr 1fr;
    }

    .pl-cta__box {
        grid-template-columns: 1fr;
        padding: 40px 28px;
        text-align: center;
    }

    .pl-cta__actions {
        align-items: center;
    }

    .pl-cta__legend {
        justify-content: center;
    }

    .pl-cta__desc {
        margin: 0 auto 24px;
    }
}

@media (max-width: 600px) {
    .pl-sinergias__grid {
        grid-template-columns: 1fr;
    }

    .pl-pilar__beneficios {
        grid-template-columns: 1fr;
    }
}