:root {
    --theme-primary: #3157d5;
    --theme-secondary: #172033;
    --theme-background: #f7f8fb;
    --theme-surface: #ffffff;
    --theme-text: #172033;
    --theme-font: Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--theme-text);
    background: #dfe5ee;
    font-family: var(--theme-font);
}

/* El marco pertenece al previsualizador, no al Tema. */
.tv2-preview-toolbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: grid;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid #d8dee8;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(23, 32, 51, .1);
}

.tv2-preview-toolbar > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tv2-preview-toolbar a {
    color: #3157d5;
    font-size: .78rem;
    font-weight: 750;
    text-decoration: none;
}

.tv2-preview-toolbar span {
    margin-left: auto;
    color: #667085;
    font-size: .72rem;
}

.tv2-preview-toolbar nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
}

.tv2-preview-toolbar nav a {
    padding: 7px 10px;
    border-radius: 8px;
    color: #667085;
    white-space: nowrap;
}

.tv2-preview-toolbar nav a:hover,
.tv2-preview-toolbar nav a.active {
    color: #3157d5;
    background: #edf2ff;
}

/* El interior obtiene toda su apariencia y distribución del JSON compilado. */
.tv2-store {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    color: var(--theme-text);
    background: var(--theme-background);
    font-family: var(--theme-font);
}

.tv2-store main {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    min-height: 0;
}

.tv2-store main > .tv2-section:not(.tv2-type-cabecera):not(.tv2-type-pie) {
    flex: 1 0 auto;
}

.tv2-section,
.tv2-section-content,
[data-theme-container],
.tv2-collection,
[data-theme-element] {
    min-width: 0;
}

[data-theme-element] {
    display: block;
    overflow-wrap: anywhere;
}

[data-theme-container],
.tv2-collection {
    overflow-wrap: anywhere;
}

.tv2-media {
    display: grid;
    place-items: center;
    overflow: hidden;
}

.tv2-link,
.tv2-section button,
.tv2-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tv2-field {
    display: grid;
    gap: 8px;
}

.tv2-field > span,
.tv2-field input,
.tv2-field select {
    display: block;
    width: 100%;
}

.tv2-field input,
.tv2-field select,
.tv2-section button {
    appearance: none;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: inherit;
    background: transparent;
    font: inherit;
}

.tv2-variant-option {
    gap: 10px;
}

.tv2-variant-option > span {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(23, 63, 56, 0.14);
    color: #52635e;
    font-size: 0.78em;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.tv2-variant-option > select {
    min-height: 40px;
    padding: 8px 36px 8px 11px;
    border: 1px solid #b9cdbd;
    border-radius: 9px;
    background-color: #fff;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    cursor: pointer;
}

.tv2-variant-option > select:focus {
    border-color: #c85c3c;
    outline: 2px solid rgba(200, 92, 60, 0.18);
    outline-offset: 2px;
}

[data-theme-function="cantidad"].tv2-field {
    gap: 9px;
}

[data-theme-function="cantidad"].tv2-field > span {
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(23, 63, 56, 0.14);
    color: #52635e;
    font-size: 0.78em;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
}

[data-theme-function="cantidad"].tv2-field > input {
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #b9cdbd;
    border-radius: 9px;
    background: #fff;
    font-weight: 750;
    text-align: center;
}

[data-theme-function="cantidad"].tv2-field > input:focus {
    border-color: #c85c3c;
    outline: 2px solid rgba(200, 92, 60, 0.18);
    outline-offset: 2px;
}

[data-theme-function="linea_cantidad"].tv2-field {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    white-space: nowrap;
}

[data-theme-function="linea_cantidad"].tv2-field > span {
    width: auto;
    color: #52635e;
    font-size: 0.82em;
    font-weight: 750;
}

[data-theme-function="linea_cantidad"].tv2-field > input {
    width: 44px;
    min-height: 36px;
    padding: 6px;
    border: 1px solid #b9cdbd;
    border-radius: 9px;
    background: #fff;
    font-weight: 750;
    text-align: center;
}

.tv2-section button:disabled,
.tv2-field input:disabled,
.tv2-field select:disabled {
    opacity: 1;
}

@media (max-width: 760px) {
    .tv2-preview-toolbar > div {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .tv2-preview-toolbar span {
        width: 100%;
        margin-left: 0;
    }
}
.theme-v2-runtime .tv2-media{position:relative;overflow:hidden}.theme-v2-runtime .tv2-media>img{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:100%;object-fit:cover}
.theme-v2-runtime .tv2-options{min-width:0}.theme-v2-runtime .tv2-options select,.theme-v2-runtime .tv2-field input{max-width:100%}
:root{--legal-notice-loaded:1}
.theme-v2-runtime .tv2-legal-action{display:grid;gap:10px}.theme-v2-runtime .tv2-legal-action>label{display:flex;align-items:flex-start;gap:9px;padding:12px;border:1px solid rgba(80,95,120,.25);border-radius:8px;font-size:.78rem;line-height:1.45}.theme-v2-runtime .tv2-legal-action input{flex:0 0 auto;width:17px;height:17px;margin-top:2px}.theme-v2-runtime .tv2-legal-navigation{display:flex;flex-wrap:wrap;gap:8px 14px}
