/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 52%, #e5e7eb 100%);
    color: #111827;
    font-family: Arial, sans-serif;
}

/* CONTENEDOR GENERAL */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Navegación principal */
.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #dce4ee;
}

.header .container {
    width: min(96%, 1420px);
}

.nav, .site-brand, .menu {
    display: flex;
    align-items: center;
}

.nav {
    justify-content: space-between;
    gap: 16px;
    padding-block: 10px;
}

.site-brand, .menu a {
    color: #172a45;
    text-decoration: none;
    font-weight: 700;
}

.site-brand {
    flex: none;
    gap: 8px;
}

.site-brand img {
    object-fit: contain;
}

.menu {
    flex-wrap: wrap;
    gap: 2px;
}

.menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 9px;
    border-radius: 8px;
    font-size: .875rem;
}

.menu a:hover, .menu a[aria-current="page"] {
    background: #eaf2ff;
    color: #1748a3;
}

.menu a[href="biocell.html"] {
    color: #1748a3;
}

:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

section[id] {
    scroll-margin-top: 88px;
}

@media (max-width: 1080px) {
    .header { position: static; }
    .nav { display: block; }
    .site-brand { width: fit-content; margin-bottom: 8px; }
    .menu a { padding-inline: 8px; }
    section[id] { scroll-margin-top: 16px; }
}

/* TITULOS */
h2 {
    margin-bottom: 20px;
    color: #3b82f6;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.05rem;
    line-height: 1.25;
}

p {
    line-height: 1.65;
}

/* LISTAS */
ul li {
    margin: 10px 0;
    font-size: 1.1rem;
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    height: 100vh;

    background:
        radial-gradient(circle at center, rgba(226,232,240,0.78), rgba(241,245,249,0.34) 36%, transparent 62%),
        linear-gradient(180deg, #f8fafc 0%, #edf2f7 55%, #e2e8f0 100%);

    display: flex;
    align-items: center;
    justify-content: center;
}

/* EFECTO PROFUNDIDAD */
.hero::before {
    content: "";
    position: absolute;

    width: 760px;
    height: 760px;

    background: radial-gradient(circle, rgba(203,213,225,0.72), rgba(226,232,240,0.46) 42%, transparent 72%);
    filter: blur(110px);

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 0;
}

/* EFECTO EXTRA */
.hero::after {
    content: "";
    position: absolute;

    width: 980px;
    height: 980px;

    background: radial-gradient(circle, rgba(148,163,184,0.16), rgba(226,232,240,0.22) 38%, transparent 72%);

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    filter: blur(120px);
    z-index: 0;
}

/* LOGO */
.hero-logo {
    width: min(320px, 72vw);
    margin-bottom: 26px;
    border-radius: 28px;
    padding: 18px;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.82) 0%, rgba(241,245,249,0.58) 46%, rgba(203,213,225,0.22) 72%, rgba(203,213,225,0) 100%);
    box-shadow:
        0 32px 90px rgba(100,116,139,0.32),
        0 0 120px rgba(148,163,184,0.3);
    opacity: 0.98;
}

.sales-hero {
    padding-top: 120px;
    background:
        radial-gradient(circle at top left, rgba(59,130,246,0.12), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #edf2f7 100%);
}

.sales-hero .container {
    max-width: 980px;
}

.sales-hero h1 {
    max-width: 820px;
    margin-bottom: 18px;
    color: #111827;
    font-size: 2.25rem;
    line-height: 1.1;
}

.sales-hero p {
    max-width: 760px;
    color: #4b5563;
    font-size: 1.08rem;
}

.checkout-hero {
    padding-bottom: 56px;
}

/* CONTENIDO HERO */
.overlay {
    position: relative;
    z-index: 2;

    text-align: center;

    background:
        radial-gradient(circle at center 34%, rgba(226,232,240,0.72), rgba(255,255,255,0.55) 46%, rgba(241,245,249,0.44) 100%);
    padding: 60px 56px;

    border: 1px solid rgba(203,213,225,0.5);
    border-radius: 26px;

    backdrop-filter: blur(15px);

    box-shadow:
        0 36px 100px rgba(100,116,139,0.24),
        inset 0 1px 0 rgba(255,255,255,0.78);
}

/* SECCIONES */
.section {
    padding: 80px 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: 34px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.dark {
    background: #f8fafc;
}

/* GRID */
.grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.marketplace {
    background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    display: flex;
    min-height: 430px;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148,163,184,0.28);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(15,23,42,0.08);
}

.product-card h3 {
    font-size: 1.08rem;
}

.product-card p {
    color: #4b5563;
}

.status {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 18px;
    padding: 7px 10px;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status.active {
    color: #14532d;
    background: #dcfce7;
    border-color: #bbf7d0;
}

.features {
    padding-left: 18px;
    color: #374151;
}

.features li {
    margin: 8px 0;
    font-size: 0.98rem;
}

.license-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.license-flow div {
    padding: 18px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(148,163,184,0.22);
    border-radius: 8px;
}

.license-flow strong,
.license-flow span {
    display: block;
}

.license-flow strong {
    margin-bottom: 8px;
    color: #1d4ed8;
}

.license-flow span {
    color: #4b5563;
    line-height: 1.45;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.checkout-panel,
.checkout-summary {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(148,163,184,0.28);
    border-radius: 12px;
    box-shadow: 0 22px 54px rgba(15,23,42,0.1);
    padding: 28px;
}

.checkout-panel label {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    color: #374151;
    font-size: 0.92rem;
    font-weight: 700;
}

.checkout-panel input,
.checkout-panel select,
.checkout-panel textarea {
    width: 100%;
    color: #111827;
    background: #f8fafc;
    border: 1px solid rgba(148,163,184,0.45);
    border-radius: 10px;
    font: inherit;
    font-weight: 400;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.checkout-panel input:focus,
.checkout-panel select:focus,
.checkout-panel textarea:focus {
    background: #ffffff;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96,165,250,0.18);
}

.checkout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.checkout-actions .btn {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.payment-steps {
    display: grid;
    gap: 12px;
    margin-top: 10px;
    list-style: none;
}

.payment-steps li {
    margin: 0;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid rgba(148,163,184,0.24);
    border-radius: 10px;
}

.payment-steps strong,
.payment-steps span {
    display: block;
}

.payment-steps strong {
    margin-bottom: 6px;
    color: #1d4ed8;
    font-size: 0.95rem;
}

.payment-steps span {
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.45;
}

.payment-note {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    padding: 16px;
    color: #374151;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
}

.payment-note strong {
    color: #1d4ed8;
}

.hardware-section {
    background: linear-gradient(180deg, #eef2f7 0%, #ffffff 100%);
}

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hardware-category {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    min-height: 210px;
    padding: 24px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(148,163,184,0.28);
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(15,23,42,0.09);
}

.hardware-category h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.hardware-category p {
    color: #4b5563;
    font-size: 0.95rem;
}

.hardware-category .btn {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0;
}

.hardware-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow:
        0 10px 24px rgba(37,99,235,0.13),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

.hardware-category.add-more {
    background:
        radial-gradient(circle at top left, rgba(219,234,254,0.55), transparent 46%),
        rgba(255,255,255,0.9);
}

/* CARDS */
.card {
    background: rgba(255, 255, 255, 0.78);
    padding: 25px;
    border: 1px solid rgba(148,163,184,0.22);
    border-radius: 8px;

    backdrop-filter: blur(10px);

    flex: 1 1 250px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15,23,42,0.08);
}

.card h3 {
    font-size: 1.04rem;
}

/* BOTÓN */
.btn {
    display: inline-block;
    margin-top: 20px;
    background: #1f6feb;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(31,111,235,0.18);
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}

.btn:hover {
    background: #3b82f6;
    box-shadow: 0 18px 34px rgba(59,130,246,0.22);
    transform: translateY(-2px);
}

.btn.secondary {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.btn.secondary:hover {
    color: white;
    background: #2563eb;
}

.contact-section p + p {
    margin-top: 10px;
    color: #4b5563;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    background: #e5e7eb;
    color: #374151;
}

@media (max-width: 860px) {
    .hero {
        height: auto;
        min-height: 760px;
        padding: 120px 0 70px;
    }

    .overlay {
        width: 90%;
        padding: 34px 22px;
    }

    .hero-logo {
        width: min(250px, 76vw);
    }

    .product-grid,
    .hardware-grid,
    .license-flow,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-height: auto;
    }
}

@media (max-width: 430px) {
    .overlay {
        padding: 30px 18px;
    }
}

/* Acceso discreto a Cilio, al inicio de la cabecera */
.cilio-shortcut { display: inline-flex; width: 36px; height: 36px; flex: 0 0 36px; align-items: center; justify-content: center; margin-right: 12px; color: #64748b; border: 1px solid transparent; border-radius: 50%; text-decoration: none; transition: color .2s, background .2s; }
.cilio-shortcut:hover { color: #1d4ed8; background: #eaf1fb; }
.cilio-shortcut:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
@media (pointer: coarse) { .cilio-shortcut { width: 44px; height: 44px; flex-basis: 44px; } }

.checkout-panel fieldset { border: 0; min-width: 0; }
.checkout-actions .btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.checkout-summary p + p { margin-top: 8px; }
