/* DevingData / Home Inicio — rediseño (mariposa fija sin cambios) */

.dv-page {
    --dv-navy: #06152d;
    --dv-blue: #0b7ebd;
    --dv-cyan: #7dd3fc;
    --dv-text: #1e293b;
    --dv-muted: #64748b;
    --dv-border: rgba(15, 23, 42, .08);
    --dv-radius: 16px;
    --dv-shadow: 0 16px 48px rgba(2, 38, 76, .08);
}

/* —— Mariposa: NO MODIFICAR —— */
.dev-visual.img-fixed-butterfly {
    position: fixed;
    bottom: 0;
    left: 10%;
    height: 80vh;
    width: auto;
    max-width: min(420px, 38vw);
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 28px 60px rgba(0, 0, 0, .28));
    animation: devFloat 8s ease-in-out infinite;
}

@keyframes devFloat {
    0%, 100% { margin-bottom: 0; }
    50% { margin-bottom: 18px; }
}

@media (min-width: 992px) {
    .dv-page .dv-shift > .container {
        padding-left: clamp(380px, 40vw, 540px);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .dv-page .dv-shift > .container {
        padding-left: clamp(320px, 36vw, 420px);
    }
}

.dv-page .dv-layer-back {
    position: relative;
    z-index: 0;
}

.dv-page .dv-layer-front {
    position: relative;
    z-index: 1;
}

/* —— Tipografía & utilidades —— */
.dv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dv-blue);
    margin-bottom: .75rem;
}

.dv-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dv-cyan);
    box-shadow: 0 0 8px var(--dv-cyan);
}

.dv-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--dv-navy);
    line-height: 1.15;
    margin-bottom: .75rem;
    text-wrap: balance;
}

.dv-title--light { color: #fff; }

.dv-lead {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 1.7;
    color: var(--dv-muted);
    margin: 0;
    max-width: 52ch;
}

.dv-lead--light { color: rgba(238, 244, 250, .82); }

.dv-section-head {
    margin-bottom: 2rem;
}

.dv-section-head--end {
    text-align: right;
    margin-left: auto;
    max-width: 640px;
}

.dv-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.5rem;
    border-radius: 12px;
    background: var(--dv-navy);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.dv-btn-primary:hover {
    background: #082a52;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
    color: #fff !important;
}

.dv-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(11, 126, 189, .35);
    background: #fff;
    color: var(--dv-blue) !important;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.dv-btn-ghost:hover {
    background: rgba(11, 126, 189, .06);
    border-color: var(--dv-blue);
    color: var(--dv-blue) !important;
}

.dv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: flex-end;
}

/* —— Hero —— */
.dv-hero {
    padding: 7rem 0 3rem;
    background:
        radial-gradient(ellipse 60% 45% at 85% 20%, rgba(11, 126, 189, .08), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    overflow: visible;
}

.dv-hero__inner {
    text-align: right;
    margin-left: auto;
    max-width: 560px;
}

.dv-hero__logo {
    height: 56px;
    width: auto;
    margin-bottom: 1rem;
}

.dv-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--dv-navy);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.dv-hero h1 span {
    background: linear-gradient(120deg, #063f8f, #0b7ebd 50%, #24c8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
    margin: 1.5rem 0;
}

.dv-tag {
    padding: .4rem .85rem;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--dv-blue);
    background: rgba(11, 126, 189, .07);
    border: 1px solid rgba(11, 126, 189, .15);
}

/* —— Métricas —— */
.dv-metrics {
    padding: 0;
    margin-top: -1px;
}

.dv-metrics__bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: linear-gradient(135deg, #06152d, #0b3c78);
    border-radius: var(--dv-radius);
    overflow: hidden;
    box-shadow: var(--dv-shadow);
}

.dv-metric {
    padding: 1.75rem 1.25rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.dv-metric:last-child { border-right: none; }

.dv-metric strong {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 900;
    background: linear-gradient(120deg, #7dd3fc, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: .35rem;
}

.dv-metric span {
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
    line-height: 1.4;
}

/* —— Servicios (bento) —— */
.dv-services {
    padding: 4.5rem 0;
}

.dv-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.dv-bento__card {
    background: #fff;
    border: 1px solid var(--dv-border);
    border-radius: var(--dv-radius);
    padding: 1.5rem;
    box-shadow: var(--dv-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    height: 100%;
}

.dv-bento__card:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 126, 189, .2);
    box-shadow: 0 22px 50px rgba(11, 60, 120, .12);
}

.dv-bento__card--wide {
    grid-column: span 2;
}

.dv-bento__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(11, 126, 189, .1);
    color: var(--dv-blue);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.dv-bento__card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dv-navy);
    margin-bottom: .5rem;
}

.dv-bento__card p {
    font-size: .9rem;
    color: var(--dv-muted);
    line-height: 1.55;
    margin: 0;
}

/* —— Proceso —— */
.dv-process {
    padding: 4rem 0;
    background: #f8fafc;
}

.dv-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .75rem;
    position: relative;
}

.dv-timeline::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(11, 126, 189, .25), transparent);
    z-index: 0;
}

.dv-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1rem .5rem;
}

.dv-step__num {
    width: 56px;
    height: 56px;
    margin: 0 auto .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(11, 126, 189, .2);
    font-size: 1rem;
    font-weight: 900;
    color: var(--dv-blue);
    box-shadow: 0 8px 20px rgba(11, 126, 189, .1);
}

.dv-step strong {
    display: block;
    font-size: .9rem;
    color: var(--dv-navy);
    margin-bottom: .35rem;
}

.dv-step p {
    font-size: 12px;
    color: var(--dv-muted);
    margin: 0;
    line-height: 1.45;
}

/* —— Stack —— */
.dv-stack {
    padding: 3.5rem 0;
}

.dv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
}

.dv-chip {
    padding: .55rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--dv-border);
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}

/* —— About / SEO —— */
.dv-about {
    padding: 3rem 0;
}

.dv-about__panel {
    background: linear-gradient(135deg, #06152d 0%, #082a52 100%);
    border-radius: 20px;
    padding: 2.5rem;
    color: #eef4fa;
    box-shadow: var(--dv-shadow);
}

.dv-about__panel h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
}

.dv-about__panel p {
    color: rgba(238, 244, 250, .8);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.dv-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem 1.5rem;
}

.dv-checklist li {
    font-size: 14px;
    color: rgba(238, 244, 250, .85);
    padding: .35rem 0;
}

.dv-checklist li::before {
    content: "✓ ";
    color: var(--dv-cyan);
    font-weight: 700;
}

/* —— Clientes —— */
.dv-clients {
    padding: 3rem 0;
    background: #fff;
}

.dv-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.dv-logos img {
    max-height: 42px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .75;
    transition: filter .25s ease, opacity .25s ease;
}

.dv-logos img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* —— Portfolio (slick) —— */
.dv-portfolio {
    padding: 3rem 0 2rem;
}

.dv-portfolio.portfolio {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow: visible;
}

.dv-portfolio.portfolio::before {
    display: none;
}

.dv-portfolio .card-portfolio {
    border: 1px solid var(--dv-border);
    border-radius: var(--dv-radius);
    box-shadow: var(--dv-shadow);
    overflow: hidden;
    margin: 0 .5rem;
}

.dv-portfolio .portfolio-container {
    padding: 1.25rem !important;
}

.dv-portfolio .img-portfolio {
    border-radius: 12px;
}

.dv-portfolio .info-portfolio a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dv-navy);
    color: #fff !important;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.dv-portfolio .info-portfolio a:hover {
    background: var(--dv-blue);
    transform: scale(1.08);
}

.dv-portfolio .title-project-index {
    font-weight: 800;
    color: var(--dv-navy);
}

/* —— Apps tiendas —— */
.dv-stores {
    padding: 3.5rem 0;
    background: linear-gradient(180deg, #f8fafc, #fff);
}

.dv-store-btns {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.dv-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    color: #fff !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.dv-store-btn:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .15);
}

.dv-store-btn i { font-size: 26px; }

.dv-store-btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.dv-store-btn small {
    font-size: 10px;
    font-weight: 600;
    opacity: .85;
    text-transform: uppercase;
}

.dv-store-btn--apple { background: linear-gradient(135deg, #1d1d1f, #3a3a3c); }
.dv-store-btn--google { background: linear-gradient(135deg, #1a73e8, #34a853); }

.dv-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .6rem;
}

.dv-app-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--dv-border);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.dv-app-tile:hover {
    border-color: rgba(11, 126, 189, .25);
    box-shadow: 0 8px 20px rgba(11, 60, 120, .08);
}

.dv-app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.dv-app-meta strong {
    display: block;
    font-size: 13px;
    color: var(--dv-navy);
}

.dv-app-meta small {
    font-size: 11px;
    color: var(--dv-muted);
}

.dv-apps-foot {
    font-size: 14px;
    margin: 0;
}

.dv-apps-foot a {
    color: var(--dv-blue);
    font-weight: 700;
    text-decoration: none;
}

/* —— FAQ —— */
.dv-faq {
    padding: 3rem 0;
    background: #fff;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .dv-faq__list {
        max-width: 680px;
        margin-left: auto;
    }
}

.dv-faq .accordion-item {
    border: 1px solid var(--dv-border) !important;
    border-radius: 12px !important;
    margin-bottom: .65rem;
    overflow: hidden;
    box-shadow: none !important;
}

.dv-faq .accordion-button {
    font-weight: 600;
    font-size: 15px;
    color: var(--dv-navy) !important;
    background: #fff !important;
    box-shadow: none !important;
    border: none !important;
}

.dv-faq .accordion-button:not(.collapsed) {
    color: var(--dv-blue) !important;
    background: rgba(11, 126, 189, .04) !important;
}

.dv-faq .accordion-body {
    font-size: 14px;
    line-height: 1.65;
    color: var(--dv-muted);
}

/* —— CTA final —— */
.dv-cta {
    padding: 2.5rem 0 4rem;
    background: #fff;
    text-align: center;
}

@media (min-width: 992px) {
    .dv-cta {
        text-align: right;
    }
}

/* —— Responsive —— */
@media (max-width: 991px) {
    .dev-visual.img-fixed-butterfly { display: none; }

    .dv-hero__inner,
    .dv-section-head--end {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .dv-actions,
    .dv-tags {
        justify-content: center;
    }

    .dv-metrics__bar {
        grid-template-columns: 1fr;
    }

    .dv-metric {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .dv-metric:last-child { border-bottom: none; }

    .dv-bento {
        grid-template-columns: 1fr;
    }

    .dv-bento__card--wide {
        grid-column: span 1;
    }

    .dv-timeline {
        grid-template-columns: 1fr 1fr;
    }

    .dv-timeline::before { display: none; }

    .dv-checklist {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dev-visual.img-fixed-butterfly { animation: none; }
    .dv-bento__card:hover { transform: none; }
}
