/* Funcionalidades: tarjetas de producto con datos ilustrativos, sin dependencias. */
#funciones { position: relative; overflow: hidden; padding-block: 100px 64px; background: radial-gradient(ellipse at 88% 14%, #ff005810, transparent 48%), #090a0e; }
#funciones::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#ff005805 1px, transparent 1px), linear-gradient(90deg, #ff005805 1px, transparent 1px); background-size: 90px 90px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
#funciones::after { content: ''; position: absolute; left: -14%; bottom: 40px; width: 50%; height: 150px; border-top: 1px solid #ff005860; border-radius: 50%; transform: rotate(-13deg); box-shadow: 0 -14px 0 -13px #ff00584d, 0 -35px 0 -34px #ff005826; pointer-events: none; }
#funciones .container { position: relative; z-index: 1; width: min(1560px, calc(100% - 96px)); }
#funciones .features-layout { display: grid; grid-template-columns: .9fr 2.1fr; align-items: start; gap: 34px 42px; }
#funciones .section-heading { padding-top: 58px; }
#funciones .section-heading .eyebrow { font-size: 11px; letter-spacing: 3px; color: #e1dce6; }
#funciones h2 { font-size: clamp(38px, 3.4vw, 58px); font-weight: 800; line-height: 1.05; letter-spacing: -.05em; }
#funciones .section-heading > p:not(.eyebrow) { max-width: 420px; margin-top: 24px; font-size: 16px; line-height: 1.7; color: #cecad3; }
#funciones .section-heading .button { border-radius: 100px; margin-top: 28px; color: #fff; font-size: 14px; gap: 22px; }
.feature-benefits { list-style: none; padding: 0; margin: 27px 0 0; display: grid; gap: 15px; font-size: 13px; color: #e4dfe7; }
.feature-benefits i { margin-right: 9px; color: var(--apliton-primary); font-size: 20px; vertical-align: middle; }
#funciones .feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; min-width: 0; }
#funciones .feature-card { position: relative; display: block; width: 100%; height: auto; min-height: 166px; padding: 20px; text-align: left; color: #f4f1f7; border: 1px solid #ffffff1e; border-radius: 16px; background: linear-gradient(135deg, #21121b65, #101015 65%); box-shadow: inset 0 1px #ffffff03; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
#funciones .feature-card:hover { transform: translateY(-3px); border-color: #ff005877; box-shadow: 0 12px 30px #0004, 0 0 25px #ff00580b; }
#funciones .feature-card:focus-visible { outline: 2px solid var(--apliton-primary); outline-offset: 4px; }
#funciones .feature-card.is-selected { border-color: #ff005873; box-shadow: inset 0 -1px #ff005830, 0 0 20px #ff005808; }
#funciones .feature-sales, #funciones .feature-stock, #funciones .feature-billing, #funciones .feature-commerce { grid-column: span 2; }
#funciones .feature-sales, #funciones .feature-stock { min-height: 290px; }
#funciones .feature-billing, #funciones .feature-commerce { min-height: 198px; }
.feature-card-header { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.feature-icon { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; color: var(--apliton-primary); border-radius: 13px; background: linear-gradient(135deg, #ff00582c, #ff005809); font-size: 26px; }
.feature-icon i { transition: transform .25s; }
#funciones .feature-card:hover .feature-icon i { transform: translateY(-2px); }
.feature-card-header > span:nth-child(2) { min-width: 0; }
#funciones .feature-card .feature-name { display: block; max-width: none; margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.feature-subtitle { display: block; color: #bfb8c5; font-size: 11px; line-height: 1.5; margin-top: 4px; }
.feature-open { color: #d5cbd9; font-size: 10px; margin-left: auto; flex-shrink: 0; align-self: start; }
.feature-preview { display: block; margin-top: 26px; position: relative; }
.preview-label, .preview-footnote { display: block; font-size: 11px; color: #ccc4d1; line-height: 1.5; }
.preview-value { display: block; font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -.7px; margin: 5px 0; }
.preview-trend { display: inline-block; color: #00e887; font-size: 13px; font-weight: 700; margin-top: 8px; }
.preview-trend small { color: #a8a1af; font-size: 8px; font-weight: 400; margin-left: 5px; }
.preview-period { position: absolute; top: -13px; right: 0; padding: 8px 11px; border: 1px solid #ffffff10; border-radius: 100px; font-size: 9px; background: #ffffff07; }
.preview-period i { margin-left: 5px; }
.sales-bars { display: flex; gap: 10px; align-items: end; height: 105px; margin-top: -42px; padding-top: 0; }
.sales-bars > span { position: relative; z-index: 1; flex: 1; min-width: 0; height: var(--bar-height); background: linear-gradient(#ff5791, var(--apliton-primary) 45%, #8d0037); border-radius: 2px 2px 0 0; transform-origin: bottom; }
.sales-months { display: flex; justify-content: space-between; font-size: 8px; color: #98919f; margin-top: 7px; }
.stock-legend { display: grid; gap: 12px; margin-top: 22px; font-size: 11px; }
.stock-legend i { color: #00df83; margin-right: 6px; }
.stock-legend > span:nth-child(2) i { color: var(--apliton-primary); }
.stock-legend > span:nth-child(3) i { color: #ff5722; }
.preview-value .preview-trend { vertical-align: middle; margin: 0 0 0 5px; font-size: 12px; letter-spacing: 0; }
.stock-cubes { position: absolute; width: 150px; height: 145px; right: -7px; bottom: -3px; opacity: .8; }
.stock-cubes > span { position: absolute; width: 76px; height: 94px; background: linear-gradient(150deg, #fa8db4, #46192f 47%, #17131d 75%); clip-path: polygon(50% 0, 100% 23%, 100% 77%, 50% 100%, 0 77%, 0 23%); }
.stock-cubes > span::before { content: ''; position: absolute; inset: 0; background: #ffffff22; clip-path: polygon(50% 0, 100% 23%, 50% 47%, 0 23%); }
.stock-cubes > span::after { content: ''; position: absolute; inset: 0; background: #0003; clip-path: polygon(50% 47%, 100% 23%, 100% 77%, 50% 100%); }
.stock-cubes > span:nth-child(1) { left: 0; bottom: 0; }
.stock-cubes > span:nth-child(2) { right: 0; bottom: 0; }
.stock-cubes > span:nth-child(3) { left: 36px; top: 0; }
.stock-alert { display: flex; gap: 9px; align-items: center; position: absolute; right: -3px; bottom: 40px; z-index: 2; padding: 11px; border: 1px solid #ffffff20; border-radius: 10px; background: #211620ee; font-size: 10px; box-shadow: 0 12px 20px #0004; }
.stock-alert > i:first-child { color: var(--apliton-primary); font-size: 20px; }
.stock-alert small { display: block; color: #bab0c0; margin-top: 3px; font-size: 8px; }
.feature-billing .feature-preview { margin-top: 24px; }
.invoice-paper { position: absolute; width: 128px; height: 175px; right: 18px; top: -55px; padding: 14px; color: #24202b; background: #f6f2f7; border: 8px solid #39323f; border-radius: 16px; transform: rotate(14deg); box-shadow: 0 0 1px 1px #baacb9, 0 0 30px #ff00580c; }
.invoice-paper > b { font-size: 14px; }
.invoice-status { display: block; width: max-content; margin: 12px 0 12px auto; font-size: 8px; padding: 4px 7px; border-radius: 100px; background: var(--apliton-primary); color: #fff; }
.invoice-lines { display: block; height: 90px; background: repeating-linear-gradient(0deg, transparent 0 10px, #dcd5df 11px 15px); }
.commerce-channels { display: flex; justify-content: space-between; gap: 9px; padding-top: 2px; }
.commerce-channels > span { flex: 1; min-width: 0; text-align: center; }
.commerce-channels > span > b { display: grid; place-items: center; width: 47px; height: 47px; margin: 0 auto 8px; border: 1px solid #ffffff26; border-radius: 12px; background-color: #17171e; font-size: 22px; }
.commerce-channels .channel-mark.nube { color: #55ccff; }
.commerce-channels .channel-mark.shopify { color: #89c95d; }
.commerce-channels .channel-mark.mercado, .commerce-channels .channel-mark.shopify { position: relative; background-image: none; color: transparent; }
.commerce-channels .channel-mark.mercado::before, .commerce-channels .channel-mark.shopify::before { content: ''; position: absolute; width: 40px; height: 30px; background: url('../../images/integraciones.png') no-repeat -1px -1px / 365px 73px; }
.commerce-channels .channel-mark.shopify::before { width: 30px; background-position: -203px -56px; background-size: 460px 92px; }
.commerce-channels .woo-name > b { width: 40px; height: 27px; background-position: -278px -51px; background-size: 400px 81px; }
.commerce-channels small { display: block; color: #bdb4c5; font-size: 8px; white-space: nowrap; }
#funciones .feature-clients, #funciones .feature-purchases, #funciones .feature-reports, #funciones .feature-cash { padding: 17px; }
#funciones .feature-clients .feature-name, #funciones .feature-purchases .feature-name, #funciones .feature-reports .feature-name, #funciones .feature-cash .feature-name { font-size: 12px; }
#funciones .feature-clients .feature-icon, #funciones .feature-purchases .feature-icon, #funciones .feature-reports .feature-icon, #funciones .feature-cash .feature-icon { width: 34px; height: 34px; font-size: 22px; border-radius: 10px; }
#funciones .feature-clients .feature-subtitle, #funciones .feature-purchases .feature-subtitle, #funciones .feature-reports .feature-subtitle, #funciones .feature-cash .feature-subtitle { font-size: 9px; }
#funciones .feature-clients .feature-card-header, #funciones .feature-purchases .feature-card-header, #funciones .feature-reports .feature-card-header, #funciones .feature-cash .feature-card-header { gap: 8px; }
#funciones .feature-cash .preview-value { font-size: clamp(18px, 1.6vw, 27px); }
.feature-reports .feature-preview { display: flex; gap: 16px; align-items: end; }
.reports-mini { display: flex; gap: 5px; align-items: end; height: 45px; }
.reports-mini > span { display: block; width: 11px; height: 25%; background: linear-gradient(#ff538d, var(--apliton-primary)); border-radius: 2px 2px 0 0; }
.reports-mini > span:nth-child(2) { height: 50%; } .reports-mini > span:nth-child(3) { height: 75%; } .reports-mini > span:nth-child(4) { height: 100%; }
.feature-reports .preview-trend small { display: block; margin: 6px 0 0; }
.feature-example-note { grid-column: 1 / -1; margin: 0; text-align: right; font-size: 8px; color: #88808f; }
#funciones .feature-library { grid-column: 1 / -1; border-top: 1px solid #ffffff12; padding-top: 16px; }
.feature-library > summary { width: max-content; max-width: 100%; color: #c4bacb; cursor: pointer; font-size: 12px; list-style: none; }
.feature-library > summary::-webkit-details-marker { display: none; }
.feature-library > summary i { margin-left: 10px; color: var(--apliton-primary); }
#funciones .feature-detail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin: 18px 0; padding: 22px; border-radius: 12px; background: #ffffff04; }
.feature-extra { display: flex; flex-wrap: wrap; gap: 10px; }
.feature-extra > button { padding: 12px 15px; border: 1px solid #ffffff20; border-radius: 8px; background: #17131b; color: #e3dce8; font-size: 11px; }
.feature-extra > button i { margin-right: 7px; color: var(--apliton-primary); }
.feature-extra > button:hover, .feature-extra > button.is-selected { border-color: var(--apliton-primary); }
.motion-ready .feature-grid.is-visible .sales-bars > span { animation: premium-bar-enter .8s .35s both; }
@keyframes premium-bar-enter { from { transform: scaleY(.05); } to { transform: scaleY(1); } }
@media (max-width: 1280px) {
    #funciones .features-layout { grid-template-columns: .85fr 2.15fr; gap: 28px; }
    #funciones .feature-clients, #funciones .feature-purchases, #funciones .feature-reports, #funciones .feature-cash { grid-column: span 2; }
    .stock-cubes { width: 130px; opacity: .55; }
    .stock-alert { right: -7px; padding: 9px; }
    .invoice-paper { right: 0; width: 110px; }
    .sales-bars { gap: 7px; }
}
@media (max-width: 1100px) {
    #funciones { padding-block: 64px; }
    #funciones .features-layout { grid-template-columns: 1fr; }
    #funciones .section-heading { padding-top: 0; }
    #funciones .section-heading > p:not(.eyebrow) { max-width: 650px; font-size: 15px; }
    #funciones .feature-sales .feature-name, #funciones .feature-stock .feature-name, #funciones .feature-billing .feature-name, #funciones .feature-commerce .feature-name { font-size: 17px; }
    .invoice-paper { right: 22px; width: 128px; }
}
@media (max-width: 700px) {
    #funciones .container { width: calc(100% - 40px); }
    #funciones .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    #funciones .feature-card { padding: 18px; }
    #funciones .feature-sales, #funciones .feature-stock, #funciones .feature-billing, #funciones .feature-commerce { grid-column: span 2; }
    #funciones .feature-clients, #funciones .feature-purchases, #funciones .feature-reports, #funciones .feature-cash { grid-column: span 1; padding: 13px; }
    #funciones .feature-sales .feature-name, #funciones .feature-stock .feature-name, #funciones .feature-billing .feature-name, #funciones .feature-commerce .feature-name { font-size: 15px; }
    .feature-subtitle { font-size: 10px; }
    .feature-open { font-size: 8px; }
    .preview-period { font-size: 8px; top: -7px; }
    .preview-value { font-size: 28px; }
    .sales-bars { gap: 7px; }
    .sales-months { font-size: 7px; }
    .invoice-paper { right: 14px; }
    .feature-billing .preview-label, .feature-billing .preview-footnote { max-width: calc(100% - 135px); }
    .feature-reports .feature-preview { gap: 8px; }
    .reports-mini { gap: 4px; } .reports-mini > span { width: 8px; }
    .preview-trend { font-size: 11px; }
    #funciones .feature-cash .preview-value { font-size: 18px; }
    #funciones .feature-clients .feature-icon, #funciones .feature-purchases .feature-icon, #funciones .feature-reports .feature-icon, #funciones .feature-cash .feature-icon { width: 29px; height: 31px; font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .motion-ready .feature-grid.is-visible .sales-bars > span { animation: none; } }

/* Tarjetas exclusivamente visuales: sin controles ni estados de selección. */
#funciones .feature-card, #funciones .feature-static-cta { cursor: default; }
#funciones .feature-static-cta { pointer-events: none; }
#funciones .feature-card:hover, #funciones .feature-card:active { transform: none; border-color: #ffffff1e; box-shadow: inset 0 1px #ffffff03; }
#funciones .feature-card:hover .feature-icon i { transform: none; }
