/* ============================================================
   Adm Cloud — Análisis Dinámicos (tablas pivote)
   Componentes propios de la landing (reutiliza site.css)
   ============================================================ */

/* ---------- Hero: mockup de tabla dinámica ---------- */
.pivot-mock {
    background: rgba(16, 20, 58, .72);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(37, 170, 225, .08), 0 0 60px rgba(37, 170, 225, .12);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transform: rotateY(-6deg) rotateX(2deg);
    transition: transform .4s ease;
}
.pivot-mock:hover { transform: rotateY(0) rotateX(0); }

.pivot-titlebar {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .7rem 1rem;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.pivot-titlebar .p-title {
    margin-left: .6rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .6);
}
.pivot-titlebar .p-updated {
    margin-left: auto;
    font-size: .62rem;
    font-family: var(--mono);
    color: #28C840;
}

/* Campos arrastrables */
.pivot-fields {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.pivot-fields .field {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: .22rem .6rem;
    cursor: grab;
}
.pivot-fields .field::before {
    content: "⠿";
    color: rgba(255, 255, 255, .4);
    font-size: .7rem;
    line-height: 1;
}
.pivot-fields .field.on {
    color: var(--deep);
    background: var(--cyan);
    border-color: var(--cyan);
}
.pivot-fields .field.on::before { color: rgba(10, 13, 43, .5); }

/* Rejilla pivote */
.pivot-grid {
    padding: .6rem 1rem 1rem;
    font-size: .74rem;
}
.pivot-axis {
    display: flex;
    gap: .5rem;
    align-items: center;
    padding: .1rem 0 .6rem;
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
}
.pivot-axis b { color: var(--cyan); font-weight: 700; }

.pgrid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr) 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    overflow: hidden;
}
.pgrid > span {
    background: rgba(16, 20, 58, .6);
    padding: .5rem .55rem;
    color: rgba(255, 255, 255, .82);
    font-family: var(--mono);
    text-align: right;
    white-space: nowrap;
}
.pgrid > span.rh { text-align: left; color: rgba(255, 255, 255, .7); font-family: var(--font); font-weight: 500; }
.pgrid > span.ch {
    background: rgba(37, 170, 225, .12);
    color: var(--cyan);
    font-weight: 700;
    text-align: right;
    font-family: var(--font);
    letter-spacing: .02em;
}
.pgrid > span.ch.corner { background: rgba(255, 255, 255, .04); }
.pgrid > span.tot { background: rgba(254, 205, 8, .08); color: var(--yellow); font-weight: 700; }
.pgrid > span.rh.tot { color: var(--yellow); font-family: var(--font); font-weight: 700; }
.pgrid > span.grand { background: rgba(254, 205, 8, .14); color: #fff; font-weight: 800; }

.pivot-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .1rem 1rem 1.1rem;
}
.pivot-actions .exp-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    padding: .3rem .7rem;
}
.pivot-actions .exp-btn svg { color: var(--cyan); }
.pivot-actions .exp-formats {
    font-size: .62rem;
    font-family: var(--mono);
    color: rgba(255, 255, 255, .45);
}

/* ---------- Cómo funciona: zonas de arrastre ---------- */
.zones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.4rem;
}
.zone {
    background: #fff;
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.zone:hover { border-color: rgba(37, 170, 225, .6); box-shadow: var(--shadow); transform: translateY(-4px); }
.zone .zone-ico {
    width: 46px; height: 46px;
    margin: 0 auto .8rem;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(37, 170, 225, .12);
    color: var(--cyan);
}
.zone h4 { font-size: 1rem; margin-bottom: .35rem; }
.zone p { font-size: .85rem; color: var(--muted); margin-bottom: .9rem; }
.zone .zone-chips { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.zone .zone-chips span {
    font-size: .7rem;
    font-weight: 600;
    color: var(--blue);
    background: rgba(40, 54, 141, .08);
    border-radius: 999px;
    padding: .22rem .65rem;
}
.zone.data .zone-ico { background: rgba(254, 205, 8, .16); color: #B78E00; }
.zone.data .zone-chips span { color: #8a6d00; background: rgba(254, 205, 8, .16); }

.zone-note {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    font-size: .92rem;
    color: var(--muted);
}
.zone-note strong { color: var(--blue); }

/* ---------- Catálogo: chips de análisis dentro de cap-card ---------- */
.an-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.an-tags span {
    font-size: .68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 7px;
    padding: .16rem .5rem;
}

/* ---------- Formatos de exportación ---------- */
.fmt-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 2.4rem;
}
.fmt-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1.2rem .8rem;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.fmt-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(37, 170, 225, .5); }
.fmt-card .fmt-ico {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: rgba(40, 54, 141, .08);
    color: var(--blue);
}
.fmt-card span { font-size: .8rem; font-weight: 600; color: var(--ink); }
.fmt-card small { font-size: .68rem; color: var(--muted); }

/* ---------- Disponibilidad / plan ---------- */
.plan-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, rgba(40, 54, 141, .06), rgba(37, 170, 225, .06));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.6rem 2rem;
}
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--deep);
    background: linear-gradient(120deg, var(--yellow), #ffd94a);
    border-radius: 999px;
    padding: .45rem 1.1rem;
    margin-bottom: 1.2rem;
}
.plan-card h3 { font-size: 1.5rem; margin-bottom: .8rem; }
.plan-card p { color: var(--muted); font-size: .95rem; max-width: 34rem; margin: 0 auto 1rem; }
.plan-card .plan-note {
    font-size: .82rem;
    color: var(--muted);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .9rem 1.1rem;
    margin: 1.4rem auto 0;
    max-width: 34rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .fmt-grid { grid-template-columns: repeat(3, 1fr); }
    .zones { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .pivot-mock { transform: none; }
    .fmt-grid { grid-template-columns: repeat(2, 1fr); }
    .pgrid { grid-template-columns: 1.4fr repeat(2, 1fr) 1fr; }
    .pgrid > span.col-hide { display: none; }
}
