/* Tokens base de marca en tokens.css (carga previa via <link>).
   Aquí sólo tokens semánticos específicos de las fichas (tema claro A4). */
:root {
    --bg:     var(--vlx-bg-dark);
    --cyan:   var(--vlx-cyan);
    --silver: var(--vlx-silver);
    --white:  var(--vlx-white);
    --light:  #F4F7F7;
    --border: #DDE6E6;
    --text:   #152828;
    --muted:  #5A7070;
    --tag-bg: #E6FFFE;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--vlx-font);
    background: #CDD8D8;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
    gap: 32px;
}

/* ===== PAGE ===== */
.page {
    width: 210mm;
    min-height: 297mm;
    background: white;
    box-shadow: 0 6px 40px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    page-break-after: always;
}

/* ===== LOGO ===== */
.ft-logo-wrap {
    display: inline-flex;
    align-items: center;
}

.ft-logo {
    height: 54px;
    width: 200px;
    object-fit: cover;
    object-position: center 42%;
    display: block;
    border-radius: 5px;
}

/* ===== HEADER ===== */
.ft-header {
    background: var(--bg);
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.ft-brand-name {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--cyan);
    line-height: 1;
}

.ft-brand-sub {
    display: block;
    font-size: .6rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--silver);
    margin-top: 3px;
}

.ft-product-title { text-align: right; }

.ft-label {
    display: block;
    font-size: .58rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--silver);
    margin-bottom: 3px;
}

.ft-product-title h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.ft-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--cyan) 0%, transparent 100%);
    flex-shrink: 0;
}

/* ===== PRODUCT IMAGE BANNER ===== */
.ft-banner {
    width: 100%;
    height: 130px;
    overflow: hidden;
    flex-shrink: 0;
}

.ft-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.82) saturate(0.7);
}

/* ===== INTRO ===== */
.ft-intro {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 0;
    padding: 18px 28px;
    border-bottom: 1px solid var(--border);
}

.ft-desc {
    padding-right: 20px;
}

.ft-desc p {
    font-size: .8rem;
    line-height: 1.7;
    color: var(--text);
}

.ft-quick {
    background: var(--light);
    border-left: 3px solid var(--cyan);
    border-radius: 3px;
    padding: 12px 14px;
}

.ft-quick h3 {
    font-size: .58rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 8px;
}

.ft-quick ul { list-style: none; }

.ft-quick li {
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    font-size: .73rem;
}

.ft-quick li:last-child { border-bottom: none; }

.ft-quick li .qlabel {
    display: block;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
}

.ft-quick li .qval {
    font-weight: 600;
    color: var(--text);
    margin-top: 1px;
}

/* ===== SECTIONS ===== */
.ft-section {
    padding: 14px 28px;
    border-bottom: 1px solid var(--border);
}

.ft-section:last-of-type { border-bottom: none; }

.ft-section-title {
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--cyan);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

/* ===== APPLICATIONS ===== */
.ft-apps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
}

.ft-app {
    background: var(--light);
    border-radius: 4px;
    padding: 9px 6px;
    text-align: center;
    font-size: .7rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
    border: 1px solid var(--border);
}

.ft-app-ico {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 4px;
}

/* ===== TABLE ===== */
.ft-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .74rem;
}

.ft-table thead tr th {
    background: var(--bg);
    color: white;
    padding: 7px 10px;
    text-align: left;
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}

.ft-table tbody tr:nth-child(even) td { background: var(--light); }

.ft-table td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.ft-table td:first-child { font-weight: 500; }
.ft-table td.norm { color: var(--muted); font-size: .68rem; }

/* ===== SIZES ===== */
.ft-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ft-tag {
    background: var(--tag-bg);
    border: 1px solid var(--cyan);
    border-radius: 3px;
    padding: 3px 8px;
    font-size: .7rem;
    font-weight: 500;
    color: var(--text);
}

/* ===== NOTE ===== */
.ft-note {
    font-size: .68rem;
    color: var(--muted);
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* ===== FAQ ===== */
.ft-faq {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ft-faq details {
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--light);
    padding: 0;
    transition: background 0.2s;
}

.ft-faq details[open] {
    background: #FAFCFC;
    border-color: var(--cyan);
}

.ft-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 9px 14px;
    font-size: .76rem;
    font-weight: 600;
    color: var(--text);
    position: relative;
    padding-right: 32px;
    line-height: 1.4;
}

.ft-faq summary::-webkit-details-marker { display: none; }

.ft-faq summary::after {
    content: '+';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cyan);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s;
}

.ft-faq details[open] summary::after {
    content: '−';
}

.ft-faq details > p {
    padding: 0 14px 11px;
    font-size: .73rem;
    line-height: 1.65;
    color: var(--text);
}

/* ===== FOOTER ===== */
.ft-footer {
    margin-top: auto;
    background: var(--bg);
    color: var(--silver);
    padding: 11px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .65rem;
    flex-shrink: 0;
}

.ft-footer strong { color: var(--cyan); }

.ft-footer-right { text-align: right; }

/* ===== RESPONSIVE (móvil / tablet) =====
   El A4 (210mm) es para imprimir; en pantallas pequeñas hacemos reflujo
   para no forzar scroll horizontal. */
@media (max-width: 820px) {
    body { padding: 16px 8px; gap: 24px; }
    .page {
        width: 100%;
        max-width: 210mm;
        min-height: auto;
        box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    }
    .ft-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px 20px;
    }
    .ft-product-title { text-align: left; }
    .ft-banner { height: 110px; }
    .ft-intro {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 20px;
    }
    .ft-desc { padding-right: 0; }
    .ft-section { padding: 14px 20px; }
    .ft-apps { grid-template-columns: repeat(2, 1fr); }
    .ft-table { font-size: .8rem; }
    .ft-table thead tr th,
    .ft-table td { padding: 6px 8px; }
    .ft-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 20px;
        text-align: left;
    }
    .ft-footer-right { text-align: left; }
}

@media (max-width: 480px) {
    .ft-apps { grid-template-columns: repeat(2, 1fr); }
    .ft-product-title h1 { font-size: 1.1rem; }
}

/* ===== PRINT ===== */
@media print {
    body { background: none; padding: 0; }
    .page { box-shadow: none; width: 100%; min-height: 100vh; }
    @page { size: A4; margin: 0; }
}
