/* Estilos del sitio publico, extraidos de app/Views/marketing/page.php (antes en <style> en linea). */
:root {
    --marketing-max: 1120px;
    --marketing-copy: #5a6578;
    --marketing-surface: rgba(255, 255, 255, 0.82);
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(11, 110, 79, 0.09), transparent 28%),
        linear-gradient(180deg, #f6f8fc 0%, #ffffff 30%, #f2f5fb 100%);
    color: var(--cs-gray-900);
}

a:hover { text-decoration: none; }

.shell {
    width: min(100%, var(--marketing-max));
    margin: 0 auto;
    padding-left: clamp(1.15rem, 3vw, 2rem);
    padding-right: clamp(1.15rem, 3vw, 2rem);
}

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 0.9rem 0;
    background: #F6F8FC;
    border-bottom: 1px solid rgba(28, 36, 56, 0.06);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand img {
    height: 54px;
    width: auto;
}

.footer-logo img {
    height: 58px;
    width: auto;
}

.header-actions,
.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero {
    position: relative;
    padding: clamp(1.5rem, 3.4vw, 2.6rem) 0 3rem;
}

.hero-panel {
    position: relative;
    z-index: 1;
}

.hero-panel > .eyebrow,
.hero-panel > h1,
.hero-panel > p,
.hero-panel > .hero-actions,
.hero-panel > .hero-microproof {
    max-width: 34rem;
}

.hero-bleed-media {
    position: absolute;
    top: 0;
    bottom: 8%;
    right: 0;
    width: 43%;
    z-index: 0;
}

.hero-bleed-frame {
    width: 100%;
    height: 100%;
    border-radius: 0 0 0 28px;
    overflow: hidden;
    box-shadow: -40px 40px 100px rgba(17, 25, 43, 0.2);
}

.hero-bleed-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
}

.hero-bleed-chip {
    position: absolute;
    left: -9%;
    bottom: -8%;
    width: 58%;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(28, 36, 56, 0.08);
    box-shadow: 0 22px 54px rgba(17, 25, 43, 0.16);
    padding: 1rem 1.15rem;
    z-index: 2;
}

.hero-bleed-chip strong {
    display: block;
    font-size: 1.7rem;
    letter-spacing: -0.03em;
    color: var(--cs-gray-900);
}

.hero-bleed-chip span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--marketing-copy);
}

.hero-microproof {
    display: flex;
    flex-wrap: wrap;
    gap: 1.3rem;
    margin-top: 1.6rem;
}

.hero-microproof span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.86rem;
    color: var(--cs-gray-700);
    font-weight: 600;
}

.hero-microproof i {
    color: var(--cs-blue);
    font-size: 0.88rem;
}

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(11, 110, 79, 0.08);
    color: var(--cs-blue);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 1rem 0 0.9rem;
    font-size: clamp(2.5rem, 6vw, 4.4rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    max-width: 10ch;
}

.hero p,
.section-head p,
.stack-card p,
.faq-item p,
.aside-card p,
.related-card p {
    color: var(--marketing-copy);
    line-height: 1.68;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.fit-list,
.problem-list {
    display: grid;
    gap: 0.8rem;
    padding: 0;
    margin: 1.2rem 0 0;
    list-style: none;
}

.fit-list li,
.problem-list li {
    padding: 0.95rem 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(28, 36, 56, 0.06);
}

.section {
    padding: 0 0 4rem;
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.section-head h2 {
    margin: 0.8rem 0 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.stack-grid,
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.solutions-rail {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.solutions-rail-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.2rem 0.1rem 0.9rem;
    flex: 1 1 auto;
    scrollbar-width: thin;
}

.solutions-rail-track::-webkit-scrollbar {
    height: 7px;
}

.solutions-rail-track::-webkit-scrollbar-thumb {
    background: rgba(28, 36, 56, 0.16);
    border-radius: 999px;
}

.solutions-rail-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    border: 1px solid rgba(28, 36, 56, 0.12);
    background: #fff;
    color: var(--cs-navy);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(17, 25, 43, 0.08);
    transition: background 0.15s ease, color 0.15s ease;
}

.solutions-rail-nav:hover {
    background: var(--cs-blue);
    color: #fff;
}

.seo-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 0 0 300px;
    scroll-snap-align: start;
    padding: 1.45rem 1.35rem;
    border-radius: 26px;
    background: var(--marketing-surface);
    border: 1px solid rgba(28, 36, 56, 0.08);
    box-shadow: 0 18px 44px rgba(17, 25, 43, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    color: inherit;
    text-decoration: none;
}

.seo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 110, 79, 0.22);
}

.seo-card-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.seo-card strong {
    display: block;
    font-size: 1.05rem;
    color: var(--cs-gray-900);
}

.seo-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(11, 110, 79, 0.12), rgba(242, 169, 59, 0.12));
    color: var(--cs-navy);
    font-size: 1rem;
    flex: 0 0 auto;
}

.seo-card p {
    margin: 0;
    color: var(--marketing-copy);
    line-height: 1.6;
    font-size: 0.92rem;
}

.seo-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    color: var(--cs-blue);
    font-weight: 700;
}

.stack-card,
.related-card,
.aside-card,
.faq-item {
    position: relative;
    padding: 1.35rem 1.25rem;
    border-radius: 26px;
    background: var(--marketing-surface);
    border: 1px solid rgba(28, 36, 56, 0.08);
    box-shadow: 0 18px 48px rgba(17, 25, 43, 0.06);
}

.stack-card.is-soon {
    background: transparent;
    border-style: dashed;
    box-shadow: none;
}

.stack-card-badge {
    display: inline-flex;
    margin-bottom: 0.6rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(11, 110, 79, 0.08);
    color: var(--cs-blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stack-card h3,
.related-card strong,
.aside-card h3,
.faq-item strong {
    display: block;
    margin: 0 0 0.45rem;
    color: var(--cs-gray-900);
    font-size: 1.08rem;
}

.stack-card-media {
    margin: -0.2rem -0.1rem 0.85rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(28, 36, 56, 0.08);
    box-shadow: 0 10px 24px rgba(17, 25, 43, 0.08);
    aspect-ratio: 16 / 9;
    background: #e5e7eb;
}

.stack-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.fit-list li strong,
.problem-list li strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--cs-gray-900);
}

.faq-grid {
    display: grid;
    gap: 1rem;
}

.feature-bento {
    display: grid;
    gap: 1rem;
}

.feature-primary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.75rem;
    padding: 1.9rem 2rem;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(11, 110, 79, 0.09), rgba(11, 110, 79, 0.02));
    border: 1px solid rgba(11, 110, 79, 0.16);
}

.feature-primary-badge {
    display: inline-flex;
    margin-bottom: 0.7rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(11, 110, 79, 0.12);
    color: var(--cs-blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.feature-primary h3 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    letter-spacing: -0.02em;
    color: var(--cs-gray-900);
}

.feature-primary p {
    margin: 0;
    max-width: 46ch;
    color: var(--marketing-copy);
    font-size: 1rem;
    line-height: 1.6;
}

.feature-primary-media {
    width: 220px;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(28, 36, 56, 0.08);
    box-shadow: 0 18px 44px rgba(17, 25, 43, 0.12);
    flex-shrink: 0;
}

.feature-primary-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-rest {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    grid-auto-flow: row dense;
}

.feature-rest .stack-card {
    grid-column: span 2;
}

.feature-rest .stack-card:first-child {
    grid-column: span 4;
}

.feature-rest--even .stack-card:first-child {
    grid-column: span 2;
}

@media (min-width: 981px) {
    .feature-rest--pair-end .stack-card:nth-last-child(-n+2) {
        grid-column: span 3;
    }
}

.faq-accordion {
    max-width: 720px;
    display: grid;
}

.faq-accordion-item {
    border-bottom: 1px solid rgba(28, 36, 56, 0.1);
}

.faq-accordion-item:first-child {
    border-top: 1px solid rgba(28, 36, 56, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.1rem 0.1rem;
    background: none;
    border: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--cs-gray-900);
}

.faq-question i {
    flex-shrink: 0;
    color: var(--cs-blue);
    transition: transform 0.2s ease;
}

.faq-accordion-item.is-open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-answer p {
    margin: 0 0 1.1rem;
    color: var(--marketing-copy);
    font-size: 0.94rem;
    line-height: 1.6;
}

.faq-accordion-item.is-open .faq-answer {
    max-height: 16rem;
}

.cta-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.6rem;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(11, 110, 79, 0.2), transparent 34%),
        linear-gradient(135deg, #152038 0%, #1c2742 100%);
    box-shadow: 0 28px 64px rgba(17, 25, 43, 0.18);
}

.cta-band h2 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #fff;
}

.cta-band p,
.footer {
    color: rgba(255, 255, 255, 0.74);
}

.cta-band .ios-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.16);
}

.related-card a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.65rem;
    color: var(--cs-blue);
    font-weight: 700;
}

.footer {
    margin-top: 4rem;
    padding: 2rem 0 2.6rem;
    background: var(--cs-navy);
}

.footer-links a,
.footer span {
    color: rgba(255,255,255,0.74);
}

@media (max-width: 980px) {
    .section-head,
    .two-col,
    .cta-band {
        grid-template-columns: 1fr;
    }

    .hero {
        display: flex;
        flex-direction: column;
    }

    .hero-panel {
        order: 1;
    }

    .hero-panel > .eyebrow,
    .hero-panel > h1,
    .hero-panel > p,
    .hero-panel > .hero-actions,
    .hero-panel > .hero-microproof {
        max-width: none;
    }

    .hero-bleed-media {
        order: 2;
        position: static;
        width: 100%;
        height: 320px;
        margin-top: 2rem;
    }

    .hero-bleed-frame {
        border-radius: 22px;
    }

    .hero-bleed-chip {
        width: 58%;
        left: 1rem;
        bottom: -1.3rem;
    }

    .stack-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .feature-primary {
        grid-template-columns: 1fr;
    }

    .feature-primary-media {
        width: 100%;
        order: -1;
    }

    .feature-rest {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-rest .stack-card:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 560px) {
    .feature-rest {
        grid-template-columns: 1fr;
    }

    .feature-rest .stack-card:first-child,
    .feature-rest--even .stack-card:first-child {
        grid-column: span 1;
    }
}

@media (max-width: 720px) {
    .header-actions a:not(.ios-btn) {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .ios-btn {
        width: 100%;
        justify-content: center;
    }

    .header-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

:root { --pro-bg:#f5f7fb; --pro-bg-soft:#eef2f8; --pro-surface:#ffffff; --pro-line:#d9e1ee; --pro-ink:#0f172a; --pro-copy:#475569; --pro-shadow:0 14px 36px rgba(15,23,42,.08); --pro-radius:20px; }
body {font-family:'Manrope',sans-serif !important; background:linear-gradient(180deg,var(--pro-bg) 0%,#fff 40%,var(--pro-bg-soft) 100%) !important; color:var(--pro-ink) !important;}
.shell{width:min(100%,1240px)!important;}
.header{background:#FFFFFF!important;border-bottom:1px solid var(--pro-line)!important;}
.hero{padding:1.1rem 0 2.7rem!important;}
.stack-card,.related-card,.aside-card,.faq-item{background:var(--pro-surface)!important;border:1px solid var(--pro-line)!important;box-shadow:var(--pro-shadow)!important;border-radius:var(--pro-radius)!important;}
.hero-microproof i{color:#095A41!important;}
.eyebrow,.section-label{background:#e8f5f0!important;color:#095A41!important;border:1px solid #bfe0d2!important;}
.hero h1,.section-head h2{color:var(--pro-ink)!important;}
.hero p,.section-head p,.stack-card p,.faq-item p,.aside-card p,.related-card p{color:var(--pro-copy)!important;}
.stack-card h3,.faq-item strong,.aside-card h3,.related-card strong{color:var(--pro-ink)!important;}
.problem-list li,.fit-list li{background:#fff!important;border:1px solid var(--pro-line)!important;border-radius:14px!important;}
.cta-band{background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%)!important;border:1px solid rgba(255,255,255,.08)!important;}
.footer{background:#0b1220!important;border-top:1px solid rgba(255,255,255,.08)!important;}
.footer-links a,.footer span{color:rgba(255,255,255,.82)!important;}
@media (max-width:760px){ .brand img{height:42px!important;} .header-actions{width:100%;justify-content:flex-end;gap:.45rem;} .header-actions>a:first-child{display:none!important;} .header-actions .ios-btn{font-size:12px!important;padding:.62rem .9rem!important;} .hero{padding-top:.65rem!important;} .hero-bleed-media{height:260px!important;} .hero-bleed-frame{border-radius:18px!important;} .hero h1{font-size:clamp(1.95rem,11vw,3rem)!important;line-height:.96!important;} .hero p{font-size:.95rem!important;line-height:1.58!important;} .section{padding-bottom:3.1rem!important;} .problem-list,.fit-list,.faq-grid,.stack-grid,.related-grid{gap:.65rem!important;} .cta-band{padding:1.1rem!important;border-radius:18px!important;} .solutions-rail-nav{display:none!important;} .seo-card{flex-basis:82vw!important;} }
@media (max-width:560px){ .header-inner{flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;} .brand{flex-shrink:0!important;min-width:0!important;} .header-actions{width:auto!important;} .header-actions a:not(.ios-btn-primary){display:none!important;} .header-actions .ios-btn-primary{font-size:12px!important;padding:.55rem .75rem!important;} }

/* Paginas por funcion: pasos y captura real del sistema */
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.step-item { display: flex; flex-direction: column; gap: 0.85rem; padding: 1.25rem 1.2rem 1.3rem; background: var(--pro-surface); border: 1px solid var(--pro-line); border-radius: var(--pro-radius); box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 999px; background: #095A41; color: #FFFFFF; font-weight: 800; font-size: 1rem; }
.step-item h3 { margin: 0 0 0.35rem; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--pro-ink); }
.step-item p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--pro-copy); }
.product-shot { max-width: 1040px; margin: 0 auto; }
.product-shot-frame { overflow: hidden; border: 1px solid var(--pro-line); border-radius: 22px; background: #F4F5F1; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12); }
.product-shot-frame img { display: block; width: 100%; height: auto; }
.product-shot figcaption { margin-top: 0.8rem; font-size: 0.9rem; line-height: 1.5; text-align: center; color: var(--pro-copy); }
@media (max-width: 720px) {
    .step-item { flex-direction: row; align-items: flex-start; padding: 1rem; }
    .step-num { flex: 0 0 2.2rem; width: 2.2rem; height: 2.2rem; }
    .product-shot-frame { border-radius: 16px; }
}
.section-head > .ios-btn { justify-self: start; }
@media (min-width: 981px) {
    /* Funcion principal sin imagen: titulo y texto lado a lado en vez de media tarjeta vacia. */
    .feature-primary--text { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
    .feature-primary--text h3 { margin-bottom: 0; }
    .feature-primary--text > p { max-width: 60ch; font-size: 1.05rem; }
    /* Tres tarjetas en una fila, no dos y una suelta. */
    .stack-grid:has(> :nth-child(3):last-child),
    .related-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    /* El chip del hero se ancla a la imagen (antes al hero completo y tapaba la siguiente seccion). */
    .hero-bleed-media { position: relative; margin-bottom: 1.5rem; }
}
