/* ═══ MÉTODO / PILARES ═══ */
.pillar-block {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, .035) 0%, rgba(255, 255, 255, .015) 100%);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 1.5rem;
    padding: 2rem;
    overflow: hidden;
    transition: all .4s cubic-bezier(.25, .46, .45, .94)
}

.pillar-block:hover {
    border-color: rgba(212, 160, 23, .25);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -20px rgba(212, 160, 23, .15)
}

.pillar-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(212, 160, 23, .08), transparent 40%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none
}

.pillar-block:hover::before {
    opacity: 1
}

.pillar-number {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4a017;
    margin-bottom: 1rem
}

.pillar-number-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a017, #f5c842);
    color: #0a0a0a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 900
}

.pillar-icon-frame {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(212, 160, 23, .15), rgba(212, 160, 23, .05));
    border: 1px solid rgba(212, 160, 23, .2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem
}

.pillar-icon-frame svg {
    width: 28px;
    height: 28px;
    color: #f5c842
}

.pillar-block h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: .75rem;
    letter-spacing: -.01em
}

.pillar-block p.pillar-desc {
    color: #86868b;
    font-size: .95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem
}

.pillar-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .6rem
}

.pillar-bullets li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    font-size: .875rem;
    color: #b8b8bf;
    line-height: 1.5
}

.pillar-bullets li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin-top: 8px;
    border-radius: 50%;
    background: #d4a017;
    box-shadow: 0 0 8px rgba(212, 160, 23, .6)
}

.pillar-timeline {
    margin-top: 1.5rem;
    padding: .85rem 1rem;
    border-radius: .75rem;
    background: rgba(212, 160, 23, .06);
    border: 1px dashed rgba(212, 160, 23, .25);
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .8rem;
    color: #e8d28a
}

.pillar-timeline strong {
    color: #f5c842;
    font-weight: 700
}

.metodo-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    background: rgba(212, 160, 23, .08);
    border: 1px solid rgba(212, 160, 23, .2);
    color: #f5c842;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem
}

.metodo-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f5c842;
    box-shadow: 0 0 10px #f5c842
}

/* ═══ CASOS DE USO ═══ */
.casos-stage {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: stretch
}

@media(max-width:900px) {
    .casos-stage {
        grid-template-columns: 1fr
    }
}

.casos-rubro-list {
    display: flex;
    flex-direction: column;
    gap: .75rem
}

.rubro-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .06);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: #f5f5f7;
    transition: all .3s;
    width: 100%
}

.rubro-btn:hover {
    border-color: rgba(212, 160, 23, .25);
    background: rgba(212, 160, 23, .03);
    transform: translateX(4px)
}

.rubro-btn[aria-selected="true"] {
    border-color: rgba(212, 160, 23, .45);
    background: linear-gradient(135deg, rgba(212, 160, 23, .1), rgba(212, 160, 23, .02));
    box-shadow: 0 0 0 1px rgba(212, 160, 23, .3), 0 10px 30px -10px rgba(212, 160, 23, .2)
}

.rubro-btn[aria-selected="true"]::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 12%;
    bottom: 12%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #d4a017, #f5c842)
}

.rubro-icon {
    width: 48px;
    height: 48px;
    border-radius: .75rem;
    background: rgba(212, 160, 23, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    transition: all .3s
}

.rubro-btn[aria-selected="true"] .rubro-icon {
    background: linear-gradient(135deg, rgba(212, 160, 23, .3), rgba(245, 200, 66, .2));
    box-shadow: 0 0 20px rgba(212, 160, 23, .3)
}

.rubro-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 2px;
    display: block
}

.rubro-sub {
    font-size: .8rem;
    color: #86868b;
    display: block
}

.rubro-arrow {
    margin-left: auto;
    width: 20px;
    height: 20px;
    color: #86868b;
    transition: transform .3s, color .3s;
    flex-shrink: 0
}

.rubro-btn[aria-selected="true"] .rubro-arrow {
    color: #d4a017;
    transform: translateX(4px)
}

.caso-detail {
    position: relative;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    padding: 2rem;
    overflow: hidden;
    min-height: 480px
}

.caso-detail::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 160, 23, .1) 0%, transparent 70%);
    pointer-events: none
}

.caso-panel {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s, transform .4s;
    display: none
}

.caso-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0)
}

.caso-panel-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.caso-emoji {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    border-radius: .875rem;
    background: rgba(212, 160, 23, .1);
    display: flex;
    align-items: center;
    justify-content: center
}

.caso-panel h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 4px
}

.caso-panel .caso-tag {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #d4a017
}

.caso-outcome {
    font-size: 1rem;
    color: #b8b8bf;
    line-height: 1.65;
    margin-bottom: 1.5rem
}

.caso-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-bottom: 1.5rem
}

.caso-stat {
    padding: .85rem;
    border-radius: .75rem;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .05);
    text-align: center
}

.caso-stat-num {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #f5c842;
    line-height: 1.2
}

.caso-stat-label {
    font-size: .7rem;
    color: #86868b;
    margin-top: 4px;
    line-height: 1.3;
    display: block
}

.caso-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap
}

.caso-action-btn {
    flex: 1;
    min-width: 150px;
    padding: .85rem 1.1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
    transition: all .3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    text-decoration: none;
    display: inline-block
}

.caso-action-primary {
    background: linear-gradient(135deg, #d4a017, #f5c842);
    color: #0a0a0a
}

.caso-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 160, 23, .35)
}

.caso-action-ghost {
    background: transparent;
    color: #f5f5f7;
    border: 1px solid rgba(255, 255, 255, .15)
}

.caso-action-ghost:hover {
    border-color: rgba(212, 160, 23, .4);
    color: #f5c842
}

/* ═══ AI FLOTANTE ═══ */
.ai-flotante-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden
}

.ai-flotante-stage {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center
}

@media(max-width:900px) {
    .ai-flotante-stage {
        grid-template-columns: 1fr;
        gap: 2rem
    }
}

.ai-explainer-col {
    position: sticky;
    top: 120px;
    align-self: start
}

.ai-step {
    opacity: .35;
    transition: opacity .5s, transform .5s;
    padding: 1.25rem 1.5rem;
    border-left: 2px solid rgba(255, 255, 255, .08);
    margin-bottom: 1rem;
    transform: translateX(-4px)
}

.ai-step.active {
    opacity: 1;
    border-left-color: #d4a017;
    transform: translateX(0)
}

.ai-step-num {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #d4a017;
    text-transform: uppercase;
    margin-bottom: .5rem;
    display: block
}

.ai-step h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .35rem
}

.ai-step p {
    color: #86868b;
    font-size: .9rem;
    line-height: 1.55
}

.ai-chat-floater {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04), 0 0 60px -20px rgba(212, 160, 23, .3);
    overflow: hidden;
    animation: aiFloat 6s ease-in-out infinite
}

@keyframes aiFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-.5deg)
    }

    50% {
        transform: translateY(-10px) rotate(.5deg)
    }
}

.ai-chat-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1rem;
    background: linear-gradient(180deg, rgba(37, 211, 102, .08), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, .05)
}

.ai-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a017, #f5c842);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #0a0a0a;
    font-size: .95rem;
    position: relative
}

.ai-chat-avatar::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #25d366;
    border: 2px solid #111
}

.ai-chat-head-info {
    flex: 1
}

.ai-chat-head-info .name {
    font-weight: 700;
    font-size: .9rem;
    display: block;
    line-height: 1.2
}

.ai-chat-head-info .status {
    color: #25d366;
    font-size: .72rem;
    font-weight: 500
}

.ai-chat-wa-icon {
    width: 20px;
    height: 20px;
    color: #25d366;
    opacity: .7
}

.ai-chat-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    min-height: 360px;
    background: radial-gradient(circle at 10% 20%, rgba(212, 160, 23, .04), transparent 40%), #0d0d0d
}

.ai-bubble {
    max-width: 82%;
    padding: .65rem .9rem;
    border-radius: 1rem;
    font-size: .86rem;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(6px);
    animation: bubbleIn .4s forwards
}

.ai-bubble.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #2a2a2a, #1f1f1f);
    color: #f5f5f7;
    border-bottom-right-radius: .25rem
}

.ai-bubble.bot {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(212, 160, 23, .18), rgba(212, 160, 23, .08));
    color: #f5f5f7;
    border: 1px solid rgba(212, 160, 23, .2);
    border-bottom-left-radius: .25rem
}

.ai-bubble .time {
    display: block;
    font-size: .65rem;
    color: #86868b;
    margin-top: 4px;
    text-align: right
}

.ai-bubble.typing {
    padding: .8rem 1rem;
    display: inline-flex;
    gap: 4px
}

.ai-bubble.typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4a017;
    animation: typingDot 1.2s infinite
}

.ai-bubble.typing span:nth-child(2) {
    animation-delay: .15s
}

.ai-bubble.typing span:nth-child(3) {
    animation-delay: .3s
}

@keyframes typingDot {

    0%,
    60%,
    100% {
        opacity: .3;
        transform: translateY(0)
    }

    30% {
        opacity: 1;
        transform: translateY(-3px)
    }
}

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

.ai-crm-float {
    position: absolute;
    top: 15%;
    right: -14%;
    width: 200px;
    padding: .85rem;
    border-radius: .875rem;
    background: linear-gradient(180deg, #1a1a1a, #121212);
    border: 1px solid rgba(212, 160, 23, .2);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, .6);
    animation: aiFloat 7s ease-in-out infinite reverse;
    z-index: 2
}

.ai-crm-float .label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #d4a017;
    margin-bottom: .4rem
}

.ai-crm-float .line {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: #b8b8bf;
    padding: 3px 0
}

.ai-crm-float .line strong {
    color: #f5c842;
    font-weight: 600
}

.ai-calendar-float {
    position: absolute;
    bottom: 10%;
    left: -12%;
    width: 180px;
    padding: .85rem;
    border-radius: .875rem;
    background: linear-gradient(180deg, #1a1a1a, #121212);
    border: 1px solid rgba(37, 211, 102, .25);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, .6);
    animation: aiFloat 8s ease-in-out infinite;
    z-index: 2
}

.ai-calendar-float .label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #25d366;
    margin-bottom: .4rem;
    display: flex;
    align-items: center;
    gap: .3rem
}

.ai-calendar-float .line {
    font-size: .75rem;
    color: #b8b8bf;
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: .4rem
}

.ai-calendar-float .line::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #25d366
}

@media(max-width:900px) {
    .ai-crm-float {
        top: 2%;
        right: 0;
        width: 160px;
        transform: scale(.85);
        transform-origin: top right
    }

    .ai-calendar-float {
        bottom: 2%;
        left: 0;
        width: 150px;
        transform: scale(.85);
        transform-origin: bottom left
    }
}

.section-label-v2 {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #d4a017;
    margin-bottom: 1.25rem
}

.section-label-v2::before {
    content: '';
    width: 24px;
    height: 1px;
    background: #d4a017
}

/* ─── Casos de Uso: botones izquierda se estiran al alto del panel derecho ─── */
.casos-stage {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    min-height: 480px;
}

@media (max-width: 900px) {
    .casos-stage {
        grid-template-columns: 1fr;
    }
}

.casos-rubro-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-self: stretch;
}

.casos-rubro-list .rubro-btn {
    flex: 1;
}