/*!
 * anderp.app — aerp-extend.css
 * Capa de extensión sobre app.css (Tailwind compilado).
 *
 * Mismo enfoque que andwms.com/assets/css/app-extend.css pero:
 *   - Prefijo .aerp- (no .awms-) para coexistir con andwms sin chocar
 *   - Sin duotone (anderp no usa fotos en sus páginas, deliberado)
 *   - Sin editorial quote ni stats teatrales (no aplican para ERP)
 *   - Sin hero halo (anderp no usa hero con foto)
 *
 * Componentes incluidos:
 *   - Tokens: --aerp-ink-deepest, --aerp-magenta-bright, glows
 *   - .aerp-hero-display, .aerp-section-display (escala dramática)
 *   - .aerp-dark-anchor (sección oscura con resplandores)
 *   - .aerp-card-ghost-number (numerales gigantes ghosted en cards)
 *   - .aerp-method-list (pasos numerados, variante light y dark)
 *   - .aerp-cta-dark + .aerp-cta-dark-split (CTAs oscuros de cierre)
 *   - .btn-ghost-light (botón secundario sobre fondo oscuro)
 *
 * Versión 1 · Mayo 2026
 */

/* ============================================================
   TOKENS NUEVOS
   ============================================================ */
:root {
    --aerp-ink-deepest: #0A0A0A;
    --aerp-magenta-bright: #E91E8A;
    --aerp-magenta-glow:      rgba(184, 23, 120, 0.22);
    --aerp-magenta-glow-soft: rgba(184, 23, 120, 0.12);
    --aerp-magenta-tint:      #FDF2F7;
}

/* ============================================================
   UTILITIES faltantes en app.css
   app.css tenía mb-3 y mb-4 pero no mb-2/6/8 ni pt-section.
   Aquí completamos esa escala mínima para soportar la v2.
   ============================================================ */
.mb-2 { margin-bottom: 8px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.pt-section { padding-top: 64px; }

/* ============================================================
   HEADLINES con escala dramática
   ============================================================ */
.aerp-hero-display {
    font-family: 'Inter', sans-serif;
    font-size: clamp(40px, 8vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 700;
    text-wrap: balance;
    color: #1A1A1A;
}

.aerp-section-display {
    font-family: 'Inter', sans-serif;
    font-size: clamp(32px, 5.5vw, 64px);
    line-height: 1.0;
    letter-spacing: -0.03em;
    font-weight: 700;
    text-wrap: balance;
    color: #1A1A1A;
}

/* ============================================================
   DARK ANCHOR
   ============================================================ */
.aerp-dark-anchor {
    position: relative;
    overflow: hidden;
    background: var(--aerp-ink-deepest);
    color: #FFFFFF;
    padding-top: clamp(64px, 10vw, 120px);
    padding-bottom: clamp(64px, 10vw, 120px);
}

.aerp-dark-anchor::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, var(--aerp-magenta-glow) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.aerp-dark-anchor::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, var(--aerp-magenta-glow-soft) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.aerp-dark-anchor > .container-page {
    position: relative;
    z-index: 1;
}

.aerp-dark-anchor .aerp-section-display,
.aerp-dark-anchor h1,
.aerp-dark-anchor h2,
.aerp-dark-anchor h3 {
    color: #FFFFFF;
}

.aerp-dark-anchor p {
    color: rgba(255, 255, 255, 0.78);
}

.aerp-dark-anchor .eyebrow {
    background-color: rgba(233, 30, 138, 0.15);
    color: var(--aerp-magenta-bright);
}

.aerp-pivot-bright {
    color: var(--aerp-magenta-bright);
}

/* ============================================================
   GHOST NUMBER en tarjetas
   ============================================================ */
.aerp-card-with-ghost {
    position: relative;
    overflow: hidden;
}

.aerp-card-ghost-number {
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 44px;
    line-height: 1;
    color: #EBE7DE;
    letter-spacing: -0.03em;
    user-select: none;
    pointer-events: none;
}

/* ============================================================
   METHOD LIST — pasos numerados en dark anchor
   ============================================================ */
.aerp-method-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 880px;
}

.aerp-method-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    align-items: start;
}

@media (min-width: 768px) {
    .aerp-method-step {
        grid-template-columns: 100px 1fr;
        gap: 40px;
        padding: 32px 0;
    }
}

.aerp-method-step-last {
    border-bottom: none;
}

.aerp-method-step-num {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--aerp-magenta-bright);
}

.aerp-method-step-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 2.5vw, 26px);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.aerp-method-step-desc {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    max-width: 62ch;
}

/* ============================================================
   CTA FINAL DARK
   ============================================================ */
.aerp-cta-dark {
    position: relative;
    overflow: hidden;
    background: var(--aerp-ink-deepest);
    color: #FFFFFF;
    border-radius: 12px;
    padding: clamp(48px, 7vw, 80px) clamp(24px, 4vw, 48px);
    text-align: center;
}

.aerp-cta-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top right, var(--aerp-magenta-glow) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, var(--aerp-magenta-glow-soft) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.aerp-cta-dark > * {
    position: relative;
    z-index: 1;
}

.aerp-cta-dark .amp {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(56px, 9vw, 96px);
    line-height: 1;
    color: var(--aerp-magenta-bright);
    display: block;
    margin-bottom: 12px;
}

.aerp-cta-dark h2 {
    color: #FFFFFF;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 20px;
    text-wrap: balance;
}

.aerp-cta-dark p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 60ch;
    margin: 0 auto 28px auto;
}

/* CTA dark con layout split (texto izq + botones der) */
.aerp-cta-dark-split {
    position: relative;
    overflow: hidden;
    background: var(--aerp-ink-deepest);
    color: #FFFFFF;
    border-radius: 12px;
    padding: clamp(40px, 6vw, 64px) clamp(28px, 4vw, 48px);
}

.aerp-cta-dark-split::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top right, var(--aerp-magenta-glow) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, var(--aerp-magenta-glow-soft) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.aerp-cta-dark-split > .aerp-cta-dark-split-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}

@media (min-width: 1024px) {
    .aerp-cta-dark-split > .aerp-cta-dark-split-inner {
        grid-template-columns: 1.6fr 1fr;
        gap: 48px;
    }
}

.aerp-cta-dark-split .eyebrow {
    background-color: rgba(233, 30, 138, 0.15);
    color: var(--aerp-magenta-bright);
}

.aerp-cta-dark-split h2 {
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin-bottom: 16px;
    text-wrap: balance;
}

.aerp-cta-dark-split p {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0;
}

/* ============================================================
   BTN GHOST LIGHT — botón secundario sobre fondos oscuros
   ============================================================ */
.btn-ghost-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    background: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-ghost-light:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
    .btn-ghost-light { padding: 0.75rem 1.25rem; }
}