/* Image-backed 3D cards inspired by Kavi Katiyar's 21st.dev example. */
#precios .pricing-grid,
#bots-ia .ai-pricing-grid {
    gap: 28px;
    align-items: stretch;
}

#precios .price-card,
#bots-ia .ai-price-card {
    --card-x: 0deg;
    --card-y: 0deg;
    --card-depth: 0px;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    padding: 38px 30px 30px;
    border: 1px solid #ffffff38;
    border-radius: 24px;
    background: #102b37;
    color: #fff;
    overflow: visible;
    transform-style: preserve-3d;
    transform: perspective(1100px) rotateX(var(--card-x)) rotateY(var(--card-y));
    transition:
        transform 220ms ease-out,
        box-shadow 220ms ease-out;
    box-shadow:
        0 18px 38px #071c2926,
        inset 0 0 0 8px #ffffff06;
}

#precios .price-card::before,
#bots-ia .ai-price-card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 18px;
    background-image:
        linear-gradient(180deg, #071a29a8, #071a29ed 47%, #071a29f5), var(--card-image);
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: -1;
}

#precios .price-card:nth-child(1) {
    --card-image: url('images/services/landing-pages.webp');
}
#precios .price-card:nth-child(2) {
    --card-image: url('images/services/desarrollo-web.webp');
}
#precios .price-card:nth-child(3) {
    --card-image: url('images/services/ecommerce.webp');
}
#bots-ia .ai-price-card:nth-child(1) {
    --card-image: url('images/services/sistemas-web.webp');
}
#bots-ia .ai-price-card:nth-child(2) {
    --card-image: url('images/services/portales-clientes.webp');
}
#bots-ia .ai-price-card:nth-child(3) {
    --card-image: url('images/services/desarrollo-personalizado.webp');
}

#precios .price-card > *,
#bots-ia .ai-price-card > * {
    transform: translateZ(var(--card-depth));
    transition: transform 220ms ease-out;
}

#precios .price-card h3,
#precios .price-card .current-price strong,
#precios .price-card .current-price small,
#precios .price-card .price > span,
#bots-ia .ai-price-card h3 {
    color: #fff;
}
#precios .price-card .price-header p,
#precios .price-card .features li,
#precios .price-card .price-with-tax {
    color: #d9e6ed;
}
#precios .price-card .plan-level {
    color: #a7def0;
}
#precios .price-card .price {
    border-color: #ffffff24;
}
#precios .price-card.featured,
#bots-ia .ai-price-card-featured {
    border-color: #8bd8ee;
    box-shadow:
        0 20px 48px #071c2938,
        inset 0 0 0 8px #a1e2ff0c;
}
#precios .popular-badge,
#bots-ia .ai-popular-badge {
    border-radius: 20px;
    background: #b8e5f3;
    color: #103746;
    border: 1px solid #ddf6ff;
}

#precios .price-card .btn-plan,
#bots-ia .ai-price-card .ai-plan-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: auto;
    padding: 15px 18px;
    border-radius: 12px;
    border: 1px solid #ffffff42;
    background: #ffffff13;
    color: #fff;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px #ffffff12;
}
#precios .btn-plan::after,
#bots-ia .ai-plan-button::after {
    content: none;
}
#precios .price-card .btn-plan:hover,
#bots-ia .ai-price-card .ai-plan-button:hover {
    background: #ffffff28;
}
#precios .btn-plan:focus-visible,
#bots-ia .ai-plan-button:focus-visible {
    outline: 3px solid #91ddf5;
    outline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    #precios .price-card:hover,
    #bots-ia .ai-price-card:hover {
        --card-depth: 24px;
        box-shadow: 0 30px 55px #071c2945;
        z-index: 2;
    }
    #precios .price-card:hover .price,
    #bots-ia .ai-price-card:hover .ai-price-block {
        transform: translateZ(38px);
    }
}

@media (max-width: 1000px) and (min-width: 781px) {
    #precios .price-card,
    #bots-ia .ai-price-card {
        padding: 34px 20px 24px;
    }
    #precios .pricing-grid,
    #bots-ia .ai-pricing-grid {
        gap: 18px;
    }
}
@media (prefers-reduced-motion: reduce) {
    #precios .price-card,
    #bots-ia .ai-price-card,
    #precios .price-card > *,
    #bots-ia .ai-price-card > * {
        transform: none;
        transition: none;
    }
}

#precios .price-card .price-with-tax strong {
    color: #f0f8fc;
}
