@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa+Ink:wght@400;700&family=Cinzel+Decorative:wght@400;700&display=swap');

:root {
    --tm8-primary: #ed1c24;
    --tm8-black: #050505;
    --tm8-dark: #0d0d0d;
    --tm8-white: #ffffff;
    --tm8-page-bg: #ffffff;
    --tm8-text: #151515;
    --tm8-muted: #6b6b6b;
    --tm8-border: #e5e5e5;
    --tm8-soft: #f7f7f7;
    --tm8-radius: 6px;
    --tm8-container: 1420px;
}

body.mtg-template-tm8 {
    margin: 0;
    background: var(--tm8-page-bg);
    color: var(--tm8-text);
}

body.mtg-template-tm8 .site-header,
body.mtg-template-tm8 header.site-header,
body.mtg-template-tm8 .mtg-public-header,
body.mtg-template-tm8 .mdg-header {
    display: none !important;
}

.tm8-home,
.tm8-home * {
    box-sizing: border-box;
}

.tm8-home {
    width: 100%;
    overflow: hidden;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: var(--tm8-page-bg);
    color: var(--tm8-text);
}

.tm8-home img {
    display: block;
    max-width: 100%;
}

.tm8-home a {
    text-decoration: none;
}

.tm8-container {
    width: min(92%, var(--tm8-container));
    margin: 0 auto;
}

.tm8-topbar {
    min-height: 38px;
    background: #000;
    border-bottom: 1px solid #202020;
    color: #fff;
    font-size: 12px;
}

.tm8-topbar-inner {
    min-height: 38px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 20px;
}

.tm8-topbar-inner > span:nth-child(2) {
    text-align: center;
}

.tm8-topbar nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.tm8-topbar a,
.tm8-topbar nav span {
    color: #fff;
    opacity: .85;
}

.tm8-header {
    position: relative;
    z-index: 20;
    min-height: 78px;
    background: #050505;
    border-bottom: 1px solid #202020;
}

.tm8-header-inner {
    min-height: 78px;
    display: grid;
    grid-template-columns: 250px 1fr auto;
    align-items: center;
    gap: 30px;
}

.tm8-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.tm8-logo img {
    width: auto;
    max-width: 210px;
    max-height: 58px;
    object-fit: contain;
}

.tm8-logo-icon {
    font-size: 34px;
}

.tm8-logo strong {
    display: block;
    font-size: 21px;
    letter-spacing: .02em;
}

.tm8-logo small {
    display: block;
    margin-top: 2px;
    color: var(--tm8-primary);
    font-weight: 800;
}

.tm8-main-menu ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 38px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tm8-main-menu li {
    position: relative;
}

.tm8-main-menu a {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.tm8-main-menu .current-menu-item > a,
.tm8-main-menu a:hover {
    color: var(--tm8-primary);
}

.tm8-header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.tm8-header-actions a {
    color: #fff;
    font-size: 25px;
    line-height: 1;
}

.tm8-hero {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #050505;
}

.tm8-hero-background,
.tm8-banner-background {
    position: absolute;
    inset: 0;
}

.tm8-hero-background img,
.tm8-banner-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm8-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.98) 0%,
            rgba(0,0,0,.90) 33%,
            rgba(0,0,0,.30) 66%,
            rgba(0,0,0,.08) 100%
        );
}

.tm8-hero-inner {
    position: relative;
    z-index: 2;
}

.tm8-hero-content {
    width: min(620px, 100%);
    padding: 72px 0;
    color: #fff;
}

.tm8-kicker {
    display: block;
    margin-bottom: 16px;
    color: var(--tm8-primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .10em;
}

.tm8-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(52px, 5.2vw, 86px);
    line-height: .98;
    letter-spacing: -.045em;
}

.tm8-hero h1 em,
.tm8-banner h2 em {
    color: var(--tm8-primary);
    font-style: normal;
}

.tm8-hero p {
    max-width: 500px;
    margin: 22px 0 28px;
    color: rgba(255,255,255,.82);
    font-size: 17px;
    line-height: 1.6;
}

.tm8-primary-button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 4px;
    background: var(--tm8-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.tm8-primary-button:hover {
    filter: brightness(.92);
    color: #fff;
}

.tm8-categories {
    padding: 18px 0 8px;
    background: #fff;
}

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

.tm8-category-card {
    min-width: 0;
    padding: 14px 14px 16px;
    border: 1px solid var(--tm8-border);
    border-radius: var(--tm8-radius);
    background: #fff;
    color: var(--tm8-text);
    text-align: center;
    transition: .2s ease;
}

.tm8-category-card:hover {
    transform: translateY(-3px);
    border-color: var(--tm8-primary);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.tm8-category-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.tm8-category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tm8-category-image > span {
    font-size: 56px;
}

.tm8-category-card strong {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
}

.tm8-category-card small {
    display: block;
    margin-top: 8px;
    color: #444;
    font-size: 12px;
}

.tm8-section {
    padding: 28px 0 16px;
    background: #fff;
}

.tm8-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.tm8-section-head h2 {
    margin: 0;
    color: #141414;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    line-height: 1.1;
}

.tm8-section-head > a {
    color: #222;
    font-size: 13px;
    font-weight: 700;
}

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

.tm8-product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--tm8-border);
    border-radius: var(--tm8-radius);
    background: #fff;
}

.tm8-product-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 2px;
    background: var(--tm8-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.tm8-product-image {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #fafafa;
}

.tm8-product-image img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    transition: transform .25s ease;
}

.tm8-product-card:hover .tm8-product-image img {
    transform: scale(1.05);
}

.tm8-product-placeholder {
    font-size: 70px;
}

.tm8-product-content {
    padding: 14px;
}

.tm8-product-content h3 {
    min-height: 40px;
    margin: 0 0 7px;
    font-size: 14px;
    line-height: 1.4;
}

.tm8-product-content h3 a {
    color: #1a1a1a;
}

.tm8-product-price {
    display: block;
    font-size: 15px;
    color: #111;
}

.tm8-product-stars {
    margin: 7px 0 10px;
    color: #e79c00;
    font-size: 12px;
    letter-spacing: 2px;
}

.tm8-product-button {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    border-radius: 3px;
    background: #070707;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.tm8-product-button:hover {
    background: var(--tm8-primary);
    color: #fff;
}

.tm8-banner-section {
    padding: 18px 0 2px;
    background: #fff;
}

.tm8-banner {
    position: relative;
    min-height: 255px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 5px;
    background: #060606;
}

.tm8-banner-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.98) 0%,
            rgba(0,0,0,.90) 36%,
            rgba(0,0,0,.28) 72%,
            rgba(0,0,0,.05) 100%
        );
}

.tm8-banner-content {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    padding: 42px 52px;
    color: #fff;
}

.tm8-banner-content > span {
    color: var(--tm8-primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
}

.tm8-banner h2 {
    margin: 10px 0;
    font-size: clamp(38px, 4vw, 60px);
    line-height: .98;
    letter-spacing: -.035em;
}

.tm8-banner p {
    color: rgba(255,255,255,.78);
}

.tm8-banner-content > a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    padding: 12px 18px;
    border-radius: 3px;
    background: #fff;
    color: #111;
    font-size: 13px;
    font-weight: 800;
}

.tm8-benefits-section {
    padding: 22px 0;
    background: #fff;
}

.tm8-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--tm8-border);
    border-radius: var(--tm8-radius);
}

.tm8-benefit {
    display: grid;
    grid-template-columns: 62px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 105px;
    padding: 20px;
    border-right: 1px solid var(--tm8-border);
}

.tm8-benefit:last-child {
    border-right: 0;
}

.tm8-benefit > span {
    font-size: 35px;
    text-align: center;
}

.tm8-benefit strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.tm8-benefit p {
    margin: 0;
    color: var(--tm8-muted);
    font-size: 12px;
    line-height: 1.45;
}

.tm8-testimonials-section {
    padding: 0 0 28px;
    background: #fff;
}

.tm8-testimonials-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    padding: 22px;
    border: 1px solid var(--tm8-border);
    border-radius: var(--tm8-radius);
}

.tm8-testimonials-summary h2 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
}

.tm8-testimonials-summary > div {
    margin-bottom: 8px;
    color: #e79c00;
    letter-spacing: 3px;
}

.tm8-testimonials-summary strong {
    font-size: 12px;
}

.tm8-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.tm8-testimonial-card {
    position: relative;
    min-height: 180px;
    padding: 20px;
    border: 1px solid var(--tm8-border);
    border-radius: var(--tm8-radius);
}

.tm8-quote {
    color: #c68a14;
    font-family: Georgia, serif;
    font-size: 34px;
    line-height: .7;
}

.tm8-testimonial-card p {
    color: #4e4e4e;
    font-size: 12px;
    line-height: 1.55;
}

.tm8-testimonial-card footer {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
}

.tm8-testimonial-card footer img,
.tm8-avatar-placeholder {
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 50%;
    object-fit: cover;
}

.tm8-avatar-placeholder {
    display: grid;
    place-items: center;
    background: #ddd;
    color: #555;
}

.tm8-testimonial-card footer strong {
    font-size: 11px;
}

.tm8-newsletter {
    padding: 18px 0;
    background: #050505;
    color: #fff;
    border-bottom: 1px solid #252525;
}

.tm8-newsletter-inner {
    display: grid;
    grid-template-columns: 1fr minmax(400px, 610px);
    align-items: center;
    gap: 30px;
}

.tm8-newsletter-copy {
    display: flex;
    align-items: center;
    gap: 18px;
}

.tm8-newsletter-copy > span {
    color: var(--tm8-primary);
    font-size: 36px;
}

.tm8-newsletter h2 {
    margin: 0;
    color: #fff;
    font-size: 19px;
}

.tm8-newsletter p {
    margin: 5px 0 0;
    color: rgba(255,255,255,.68);
    font-size: 12px;
}

.tm8-newsletter form {
    display: grid;
    grid-template-columns: 1fr 150px;
}

.tm8-newsletter input {
    min-height: 45px;
    padding: 0 16px;
    border: 1px solid #3a3a3a;
    border-right: 0;
    background: #111;
    color: #fff;
}

.tm8-newsletter button {
    border: 0;
    background: var(--tm8-primary);
    color: #fff;
    font-weight: 800;
}

.tm8-footer {
    background: #050505;
    color: #fff;
}

.tm8-footer-grid {
    display: grid;
    grid-template-columns: 1.45fr repeat(4, 1fr);
    gap: 45px;
    padding: 52px 0 44px;
}

.tm8-footer h2 {
    margin: 0;
    font-size: 22px;
}

.tm8-footer h2 small {
    display: block;
    color: var(--tm8-primary);
}

.tm8-footer-brand > img {
    max-width: 220px;
    max-height: 70px;
    object-fit: contain;
}

.tm8-footer-brand > p {
    max-width: 260px;
    color: rgba(255,255,255,.65);
    font-size: 13px;
    line-height: 1.6;
}

.tm8-socials {
    display: flex;
    gap: 18px;
    margin-top: 24px;
}

.tm8-socials a {
    color: #fff;
    font-size: 18px;
}

.tm8-footer section > h3 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 12px;
}

.tm8-footer section > a {
    display: block;
    margin-bottom: 11px;
    color: rgba(255,255,255,.68);
    font-size: 12px;
}

.tm8-payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
}

.tm8-payment-icons span {
    padding: 6px 8px;
    border-radius: 3px;
    background: #fff;
    color: #111;
    font-size: 10px;
    font-weight: 900;
}

.tm8-payment-column p {
    color: rgba(255,255,255,.68);
    font-size: 11px;
}

.tm8-footer-bottom {
    padding: 18px 0;
    border-top: 1px solid #202020;
    color: rgba(255,255,255,.52);
    font-size: 11px;
    text-align: center;
}

@media (max-width: 1180px) {
    .tm8-main-menu ul {
        gap: 18px;
    }

    .tm8-category-grid,
    .tm8-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tm8-testimonials-layout {
        grid-template-columns: 1fr;
    }

    .tm8-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .tm8-container {
        width: min(92%, 680px);
    }

    .tm8-topbar-inner {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 8px 0;
        text-align: center;
    }

    .tm8-topbar-inner > span:nth-child(2) {
        text-align: center;
    }

    .tm8-topbar nav {
        display: none;
    }

    .tm8-header-inner {
        grid-template-columns: 1fr auto;
        min-height: 70px;
    }

    .tm8-main-menu {
        display: none;
    }

    .tm8-header-actions {
        gap: 13px;
    }

    .tm8-hero {
        min-height: 560px;
        align-items: flex-end;
    }

    .tm8-hero-overlay {
        background:
            linear-gradient(
                0deg,
                rgba(0,0,0,.99) 0%,
                rgba(0,0,0,.88) 55%,
                rgba(0,0,0,.20) 100%
            );
    }

    .tm8-hero-content {
        padding: 260px 0 48px;
    }

    .tm8-hero h1 {
        font-size: 48px;
    }

    .tm8-category-grid,
    .tm8-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .tm8-category-image {
        height: 90px;
    }

    .tm8-product-image {
        min-height: 165px;
    }

    .tm8-product-image img {
        height: 140px;
    }

    .tm8-benefits-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tm8-benefit:nth-child(2) {
        border-right: 0;
    }

    .tm8-benefit:nth-child(-n+2) {
        border-bottom: 1px solid var(--tm8-border);
    }

    .tm8-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .tm8-newsletter-inner {
        grid-template-columns: 1fr;
    }

    .tm8-newsletter form {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .tm8-newsletter input {
        border-right: 1px solid #3a3a3a;
    }

    .tm8-newsletter button {
        min-height: 44px;
    }

    .tm8-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 20px;
    }

    .tm8-footer-brand,
    .tm8-payment-column {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   TM8 — SECCIONES COMPUESTAS
   PC principal: texto izquierda + imagen derecha
   Móvil: contenido apilado y adaptado automáticamente
   ========================================================= */

.tm8-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 40%, rgba(237,28,36,.14), transparent 32%),
        linear-gradient(135deg, #050505 0%, #090909 58%, #121212 100%);
}

.tm8-hero-grid {
    min-height: 480px;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
    align-items: stretch;
}

.tm8-hero-content {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 68px 58px 68px 0;
    color: #fff;
}

.tm8-hero-visual {
    position: relative;
    min-width: 0;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tm8-hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, #090909 0%, rgba(9,9,9,.30) 23%, transparent 58%),
        radial-gradient(circle at 70% 40%, rgba(237,28,36,.18), transparent 38%);
    pointer-events: none;
}

.tm8-hero-visual img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    object-position: center;
}

.tm8-hero-placeholder,
.tm8-banner-placeholder {
    width: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed rgba(255,255,255,.25);
    background: rgba(255,255,255,.035);
    color: rgba(255,255,255,.72);
    text-align: center;
}

.tm8-hero-placeholder span,
.tm8-banner-placeholder span {
    font-size: 76px;
}

.tm8-hero-placeholder strong,
.tm8-banner-placeholder strong {
    color: #fff;
    font-size: 17px;
}

.tm8-hero-placeholder small,
.tm8-banner-placeholder small {
    color: rgba(255,255,255,.52);
}

/* Banner compuesto */

.tm8-banner {
    position: relative;
    min-height: 270px;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    align-items: stretch;
    overflow: hidden;
    border-radius: 6px;
    background:
        radial-gradient(circle at 72% 50%, rgba(237,28,36,.13), transparent 34%),
        #070707;
}

.tm8-banner-content {
    position: relative;
    z-index: 2;
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 26px 42px 52px;
    color: #fff;
}

.tm8-banner-visual {
    position: relative;
    min-height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tm8-banner-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, #070707 0%, rgba(7,7,7,.28) 25%, transparent 60%);
    pointer-events: none;
}

.tm8-banner-visual img {
    width: 100%;
    height: 100%;
    min-height: 270px;
    object-fit: cover;
    object-position: center;
}

/* Las antiguas imágenes de fondo dejan de intervenir */

.tm8-hero-background,
.tm8-hero-overlay,
.tm8-banner-background,
.tm8-banner-overlay {
    display: none !important;
}

@media (max-width: 1100px) {
    .tm8-hero-grid {
        grid-template-columns: minmax(0, .95fr) minmax(410px, 1.05fr);
    }

    .tm8-hero-content {
        padding-right: 35px;
    }

    .tm8-banner {
        grid-template-columns: minmax(0, .95fr) minmax(380px, 1.05fr);
    }
}

@media (max-width: 780px) {
    .tm8-hero {
        min-height: 0;
        align-items: initial;
    }

    .tm8-hero-grid {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .tm8-hero-content {
        order: 1;
        max-width: none;
        padding: 46px 0 32px;
    }

    .tm8-hero-visual {
        order: 2;
        min-height: 310px;
        margin: 0 -4.35vw;
    }

    .tm8-hero-visual::before {
        background:
            linear-gradient(180deg, #090909 0%, transparent 24%),
            radial-gradient(circle at 50% 40%, rgba(237,28,36,.17), transparent 46%);
    }

    .tm8-hero-visual img {
        min-height: 310px;
        max-height: 410px;
        object-position: center;
    }

    .tm8-hero h1 {
        font-size: clamp(43px, 12vw, 58px);
    }

    .tm8-banner {
        grid-template-columns: 1fr;
    }

    .tm8-banner-content {
        order: 1;
        padding: 36px 28px 28px;
    }

    .tm8-banner-visual {
        order: 2;
        min-height: 230px;
    }

    .tm8-banner-visual::before {
        background:
            linear-gradient(180deg, #070707 0%, transparent 24%);
    }

    .tm8-banner-visual img {
        min-height: 230px;
        max-height: 320px;
    }
}

/* =========================================================
   TM8 — CONSERVAR CABECERA HEREDADA DE MITIENDAGRATIS.COM
   Ocultar exclusivamente la cabecera duplicada creada en TM8
   ========================================================= */

body.mtg-template-tm8 .tm8-topbar,
body.mtg-template-tm8 .tm8-header {
    display: none !important;
}

/* El hero comienza inmediatamente debajo del header global. */
body.mtg-template-tm8 .tm8-home,
body.mtg-template-tm8 .tm8-hero {
    margin-top: 0 !important;
}

/* =========================================================
   TM8 — HERO Y CATEGORÍAS CON ARQUITECTURA TIPO TM3
   ========================================================= */

/*
 * Se mantiene intacta la cabecera heredada de
 * mitiendagratis.com. TM8 comienza debajo de ella.
 */

body.mtg-template-tm8 .tm8-home {
    background:
        radial-gradient(
            circle at 15% 8%,
            rgba(237, 28, 36, .07),
            transparent 32%
        ),
        #ffffff;
}

/* HERO PRINCIPAL */

body.mtg-template-tm8 .tm8-hero {
    padding: 56px 0 52px;
    background:
        radial-gradient(
            circle at 76% 45%,
            rgba(237, 28, 36, .18),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #030303 0%,
            #090909 58%,
            #151010 100%
        );
}

body.mtg-template-tm8 .tm8-hero-grid {
    min-height: 530px;
    grid-template-columns:
        minmax(0, .92fr)
        minmax(520px, 1.08fr);
    gap: 55px;
    align-items: center;
}

body.mtg-template-tm8 .tm8-hero-content {
    max-width: 690px;
    padding: 40px 0;
}

body.mtg-template-tm8 .tm8-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 38px;
    margin-bottom: 26px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(237, 28, 36, .13);
    color: #ff3c43;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
}

body.mtg-template-tm8 .tm8-hero h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(62px, 5.15vw, 94px);
    line-height: .98;
    letter-spacing: -.052em;
}

body.mtg-template-tm8 .tm8-hero p {
    max-width: 610px;
    margin: 30px 0;
    font-size: 18px;
    line-height: 1.7;
}

body.mtg-template-tm8 .tm8-primary-button {
    min-height: 58px;
    padding: 0 30px;
    border-radius: 13px;
    font-size: 15px;
}

body.mtg-template-tm8 .tm8-hero-visual {
    min-height: 530px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 25px;
    background: #111;
    box-shadow:
        0 28px 80px rgba(0,0,0,.40),
        0 0 80px rgba(237,28,36,.12);
}

body.mtg-template-tm8 .tm8-hero-visual img {
    width: 100%;
    height: 100%;
    min-height: 530px;
    object-fit: cover;
    object-position: center;
}

/* CATEGORÍAS GRANDES */

body.mtg-template-tm8 .tm8-categories {
    padding: 72px 0 80px;
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(237,28,36,.055),
            transparent 34%
        ),
        #ffffff;
}

body.mtg-template-tm8 .tm8-categories-heading {
    margin-bottom: 34px;
}

body.mtg-template-tm8 .tm8-categories-heading h2 {
    margin: 0 0 9px;
    color: #171717;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(42px, 4vw, 64px);
    line-height: 1;
    letter-spacing: -.025em;
}

body.mtg-template-tm8 .tm8-categories-heading p {
    max-width: 720px;
    margin: 0;
    color: #777;
    font-size: 17px;
    line-height: 1.6;
}

body.mtg-template-tm8 .tm8-category-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 28px;
}

body.mtg-template-tm8 .tm8-category-card {
    position: relative;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: #f4f4f4;
    box-shadow:
        0 15px 38px rgba(0,0,0,.08);
    text-align: left;
    transform: translateZ(0);
}

body.mtg-template-tm8 .tm8-category-card:hover {
    border: 0;
    transform: translateY(-7px);
    box-shadow:
        0 24px 55px rgba(0,0,0,.15);
}

body.mtg-template-tm8 .tm8-category-image {
    width: 100%;
    height: 355px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #f8f8f8,
            #e8e8e8
        );
}

body.mtg-template-tm8 .tm8-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform .45s ease,
        filter .45s ease;
}

body.mtg-template-tm8 .tm8-category-card:hover
.tm8-category-image img {
    transform: scale(1.055);
}

body.mtg-template-tm8 .tm8-category-image > span {
    font-size: 100px;
}

body.mtg-template-tm8 .tm8-category-card > strong {
    position: relative;
    z-index: 2;
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 15px 22px;
    background:
        linear-gradient(
            135deg,
            #d9141c,
            #f02b32
        );
    color: #fff;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 25px;
    font-weight: 800;
    text-align: center;
    text-transform: none;
}

body.mtg-template-tm8 .tm8-category-card > small {
    display: none;
}

/* TABLET */

@media (max-width: 1150px) {
    body.mtg-template-tm8 .tm8-hero-grid {
        grid-template-columns:
            minmax(0, .9fr)
            minmax(430px, 1.1fr);
        gap: 34px;
    }

    body.mtg-template-tm8 .tm8-category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

/* CELULAR */

@media (max-width: 780px) {
    body.mtg-template-tm8 .tm8-hero {
        padding: 32px 0 38px;
    }

    body.mtg-template-tm8 .tm8-hero-grid {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    body.mtg-template-tm8 .tm8-hero-content {
        order: 1;
        padding: 15px 0 8px;
    }

    body.mtg-template-tm8 .tm8-hero-visual {
        order: 2;
        min-height: 320px;
        margin: 0;
        border-radius: 18px;
    }

    body.mtg-template-tm8 .tm8-hero-visual img {
        min-height: 320px;
        max-height: 390px;
    }

    body.mtg-template-tm8 .tm8-hero h1 {
        font-size: clamp(46px, 13vw, 64px);
    }

    body.mtg-template-tm8 .tm8-hero p {
        margin: 22px 0;
        font-size: 16px;
    }

    body.mtg-template-tm8 .tm8-categories {
        padding: 48px 0 58px;
    }

    body.mtg-template-tm8 .tm8-categories-heading h2 {
        font-size: 40px;
    }

    body.mtg-template-tm8 .tm8-categories-heading p {
        font-size: 15px;
    }

    body.mtg-template-tm8 .tm8-category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    body.mtg-template-tm8 .tm8-category-card {
        min-height: 255px;
        border-radius: 14px;
    }

    body.mtg-template-tm8 .tm8-category-image {
        height: 200px;
    }

    body.mtg-template-tm8 .tm8-category-card > strong {
        min-height: 56px;
        padding: 10px 8px;
        font-size: 17px;
    }
}

/* =========================================================
   TM8 — CATEGORÍAS DEFINITIVAS
   4 columnas en PC / 2 columnas en móvil
   ========================================================= */

body.mtg-template-tm8 .tm8-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 1100px) {
    body.mtg-template-tm8 .tm8-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 780px) {
    body.mtg-template-tm8 .tm8-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* =========================================================
   TM8 — ANCHO GENERAL 90% EN ESCRITORIO
   ========================================================= */

body.mtg-template-tm8 .tm8-container {
    width: 90% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/*
 * Evita que reglas antiguas vuelvan a limitar
 * el ancho de las secciones principales.
 */
body.mtg-template-tm8 .tm8-hero-grid,
body.mtg-template-tm8 .tm8-category-grid,
body.mtg-template-tm8 .tm8-product-grid,
body.mtg-template-tm8 .tm8-benefits-grid,
body.mtg-template-tm8 .tm8-testimonials-layout,
body.mtg-template-tm8 .tm8-newsletter-inner,
body.mtg-template-tm8 .tm8-footer-grid {
    max-width: none !important;
}

/* Mantener márgenes cómodos en pantallas muy grandes. */
@media (min-width: 1900px) {
    body.mtg-template-tm8 .tm8-container {
        width: 90% !important;
        max-width: 1800px !important;
    }
}

/* Tablet. */
@media (max-width: 1100px) {
    body.mtg-template-tm8 .tm8-container {
        width: 92% !important;
    }
}

/* Celular. */
@media (max-width: 780px) {
    body.mtg-template-tm8 .tm8-container {
        width: 92% !important;
    }
}

/* =========================================================
   TM8 — TARJETAS DE PRODUCTOS MTG COMMERCE
   ========================================================= */

body.mtg-template-tm8 .tm8-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

body.mtg-template-tm8 .tm8-product-card {
    overflow: visible;
    border: 1px solid #e6e6e6;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 13px 35px rgba(0,0,0,.065);
}

body.mtg-template-tm8 .tm8-product-image {
    min-height: 320px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #f4f4f4;
}

body.mtg-template-tm8 .tm8-product-image img {
    height: 290px;
    object-fit: contain;
}

body.mtg-template-tm8 .tm8-product-content {
    padding: 18px 18px 20px;
}

body.mtg-template-tm8 .tm8-product-content h3 {
    min-height: auto;
    margin-bottom: 10px;
    font-size: 16px;
}

body.mtg-template-tm8 .tm8-product-price {
    font-size: 19px;
    font-weight: 900;
}

body.mtg-template-tm8 .tm8-product-button {
    min-height: 43px;
    margin-top: 12px;
    border-radius: 7px;
}

/*
 * El plugin MTG Product Share Core inyecta su bloque
 * dentro de tarjetas identificadas como .mtg-product-card.
 */
body.mtg-template-tm8 .tm8-product-card .mtg-share-clean {
    margin: 0 !important;
    border-top: 1px solid #ececec !important;
    border-radius: 0 0 17px 17px !important;
    box-shadow: none !important;
}

@media (max-width: 1150px) {
    body.mtg-template-tm8 .tm8-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 780px) {
    body.mtg-template-tm8 .tm8-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    body.mtg-template-tm8 .tm8-product-image {
        min-height: 190px;
    }

    body.mtg-template-tm8 .tm8-product-image img {
        height: 170px;
    }

    body.mtg-template-tm8 .tm8-product-content {
        padding: 12px;
    }

    body.mtg-template-tm8 .tm8-product-content h3 {
        font-size: 14px;
    }

    body.mtg-template-tm8 .tm8-product-price {
        font-size: 16px;
    }
}

/* ==========================================================
   TM8 BUILDER CORE V1 — AMARRE COMPLETO
   ========================================================== */

.tm8-hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:28px;
}

.tm8-secondary-button{
    display:inline-flex;
    min-height:56px;
    align-items:center;
    justify-content:center;
    padding:0 28px;
    border:1px solid rgba(255,255,255,.28);
    border-radius:10px;
    background:transparent;
    color:#fff!important;
    font-weight:800;
    text-decoration:none;
    transition:.2s ease;
}

.tm8-secondary-button:hover{
    border-color:#fff;
    background:#fff;
    color:#111!important;
}

.tm8-hero-features{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin-top:25px;
}

.tm8-hero-features article{
    display:flex;
    min-width:0;
    align-items:center;
    gap:9px;
    padding:11px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:10px;
    background:rgba(255,255,255,.045);
}

.tm8-hero-features article>span{
    display:flex;
    width:27px;
    height:27px;
    flex:0 0 27px;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--tm8-primary);
    color:#fff;
    font-weight:900;
}

.tm8-hero-features strong,
.tm8-hero-features small{
    display:block;
}

.tm8-hero-features strong{
    color:#fff;
    font-size:12px;
}

.tm8-hero-features small{
    margin-top:2px;
    color:#bfc0c4;
    font-size:10px;
}

.tm8-section-head>div p{
    max-width:680px;
    margin:7px 0 0;
    color:#73757d;
}

.tm8-product-prices{
    display:flex;
    align-items:center;
    gap:9px;
}

.tm8-product-prices del{
    color:#96979c;
    font-size:13px;
}

.tm8-brands-section,
.tm8-gallery-section,
.tm8-cta-section{
    padding:72px 0;
}

.tm8-brands-section{
    background:#fff;
    text-align:center;
}

.tm8-brands-section h2{
    margin:0 0 30px;
    font-size:clamp(28px,4vw,44px);
}

.tm8-brands-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}

.tm8-brand-card{
    display:flex;
    min-height:120px;
    align-items:center;
    justify-content:center;
    padding:20px;
    border:1px solid #e4e4e6;
    border-radius:14px;
    background:#fafafa;
    color:#111;
    text-decoration:none;
}

.tm8-brand-card img{
    display:block;
    max-width:150px;
    max-height:64px;
    object-fit:contain;
}

.tm8-brand-card strong{
    font-size:20px;
}

.tm8-gallery-section{
    background:#f6f6f7;
}

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

.tm8-gallery-item{
    display:block;
    overflow:hidden;
    border-radius:14px;
    aspect-ratio:1/1;
    background:#e7e7e8;
}

.tm8-gallery-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .3s ease;
}

.tm8-gallery-item:hover img{
    transform:scale(1.045);
}

.tm8-cta-section{
    background:#101010;
    color:#fff;
}

.tm8-cta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
}

.tm8-cta h2{
    margin:0 0 10px;
    color:#fff;
    font-size:clamp(30px,4vw,52px);
}

.tm8-cta p{
    margin:0;
    color:#bfc0c5;
}

.tm8-cta-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.tm8-footer-core-grid{
    display:grid;
    grid-template-columns:1.5fr 1fr 1fr;
    gap:44px;
}

.tm8-footer-core-grid>section{
    display:flex;
    flex-direction:column;
    gap:9px;
}

.tm8-footer-core-grid h3{
    margin:0 0 9px;
}

.tm8-footer-core-grid a{
    color:inherit;
    text-decoration:none;
}

.tm8-footer-core-grid a:hover{
    color:var(--tm8-primary);
}

@media(max-width:900px){
    .tm8-hero-features{
        grid-template-columns:1fr;
    }

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

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

    .tm8-cta{
        align-items:flex-start;
        flex-direction:column;
    }

    .tm8-footer-core-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:600px){
    .tm8-hero-actions{
        flex-direction:column;
    }

    .tm8-primary-button,
    .tm8-secondary-button{
        width:100%;
    }

    .tm8-brands-grid,
    .tm8-gallery-grid,
    .tm8-footer-core-grid{
        grid-template-columns:1fr;
    }
}

/* ==========================================================
   TM8 BENEFIT ICONS SVG FIX
   ========================================================== */

.tm8-benefit{
    display:flex;
    align-items:center;
    gap:16px;
    min-width:0;
}

.tm8-benefit > .tm8-benefit-icon{
    display:flex!important;
    width:52px!important;
    height:52px!important;
    min-width:52px!important;
    flex:0 0 52px!important;
    align-items:center!important;
    justify-content:center!important;

    margin:0!important;
    padding:0!important;

    border-radius:14px;
    background:rgba(237,28,36,.10);
    color:var(--tm8-primary);

    font-size:0!important;
    line-height:1!important;
    overflow:hidden;
}

.tm8-benefit-icon svg{
    display:block;
    width:27px;
    height:27px;

    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.tm8-benefit > div{
    min-width:0;
}

.tm8-benefit strong{
    display:block;
    margin:0 0 4px;
    line-height:1.25;
}

.tm8-benefit p{
    margin:0;
    line-height:1.45;
}

@media(max-width:700px){
    .tm8-benefit > .tm8-benefit-icon{
        width:46px!important;
        height:46px!important;
        min-width:46px!important;
        flex-basis:46px!important;
    }

    .tm8-benefit-icon svg{
        width:24px;
        height:24px;
    }
}

/* =========================================================
   TM8 ELECTRO7 — ELECTRODOMÉSTICOS
   Identidad visual basada en Builder Core
   ========================================================= */

:root{
    --tm8-primary:#0747b8;
    --tm8-primary-dark:#052b70;
    --tm8-primary-soft:#eaf2ff;
    --tm8-accent:#18a0fb;

    --tm8-bg:#ffffff;
    --tm8-surface:#f6f8fb;
    --tm8-card:#ffffff;

    --tm8-text:#101828;
    --tm8-muted:#667085;
    --tm8-border:#e4e7ec;

    --tm8-success:#16a34a;
    --tm8-danger:#dc2626;

    --tm8-radius:14px;
    --tm8-shadow:0 12px 34px rgba(16,24,40,.08);
}

body.mtg-template-tm8{
    background:var(--tm8-bg);
    color:var(--tm8-text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body.mtg-template-tm8 *,
body.mtg-template-tm8 *::before,
body.mtg-template-tm8 *::after{
    box-sizing:border-box;
}

body.mtg-template-tm8 .tm8-home{
    width:100%;
    overflow:hidden;
    background:#fff;
}

body.mtg-template-tm8 .tm8-container{
    width:90%;
    max-width:1500px;
    margin:0 auto;
}


/* =========================================================
   HERO
   ========================================================= */

body.mtg-template-tm8 .mtg-core-section--hero{
    background:
        linear-gradient(
            90deg,
            rgba(247,248,250,1) 0%,
            rgba(247,248,250,.95) 42%,
            rgba(247,248,250,.25) 72%,
            rgba(247,248,250,0) 100%
        );
}

body.mtg-template-tm8 .tm8-hero{
    min-height:520px;
}

body.mtg-template-tm8 .tm8-hero-grid{
    min-height:520px;
    display:grid;
    grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
    align-items:center;
    gap:50px;
}

body.mtg-template-tm8 .tm8-hero-content{
    max-width:650px;
}

body.mtg-template-tm8 .tm8-hero-content h1{
    margin:0 0 22px;
    color:#111;
    font-size:clamp(44px,5vw,76px);
    line-height:.98;
    letter-spacing:-.05em;
}

body.mtg-template-tm8 .tm8-hero-content p{
    max-width:580px;
    color:var(--tm8-muted);
    font-size:18px;
    line-height:1.7;
}

body.mtg-template-tm8 .tm8-hero-actions a{
    min-height:50px;
    padding:0 26px;
    border-radius:6px;
    background:var(--tm8-primary);
    color:#fff;
    font-weight:800;
}

body.mtg-template-tm8 .tm8-hero-visual img{
    width:100%;
    max-height:500px;
    object-fit:contain;
    object-position:center;
}


/* =========================================================
   SECCIONES GENERALES
   ========================================================= */

body.mtg-template-tm8 .mtg-core-section{
    position:relative;
}

body.mtg-template-tm8 .tm8-section{
    padding:64px 0;
}

body.mtg-template-tm8 .tm8-section-head{
    margin-bottom:28px;
}

body.mtg-template-tm8 .tm8-section-head h2{
    margin:0 0 8px;
    color:#111;
    font-size:clamp(28px,3vw,42px);
    letter-spacing:-.035em;
}

body.mtg-template-tm8 .tm8-section-head p{
    margin:0;
    color:var(--tm8-muted);
}


/* =========================================================
   CATEGORÍAS
   ========================================================= */

body.mtg-template-tm8 .tm8-category-grid{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:14px;
}

body.mtg-template-tm8 .tm8-category-card{
    min-width:0;
    padding:22px 14px;
    border:1px solid var(--tm8-border);
    border-radius:var(--tm8-radius);
    background:#fff;
    color:var(--tm8-text);
    text-align:center;
    text-decoration:none;
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

body.mtg-template-tm8 .tm8-category-card:hover{
    transform:translateY(-3px);
    border-color:#b9cdf5;
    box-shadow:var(--tm8-shadow);
}

body.mtg-template-tm8 .tm8-category-image{
    height:115px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:12px;
}

body.mtg-template-tm8 .tm8-category-image img{
    width:100%;
    height:100%;
    object-fit:contain;
}


/* =========================================================
   PRODUCTOS
   ========================================================= */

body.mtg-template-tm8 .tm8-product-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
}

body.mtg-template-tm8 .tm8-product-card{
    min-width:0;
    overflow:hidden;
    border:1px solid var(--tm8-border);
    border-radius:var(--tm8-radius);
    background:#fff;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

body.mtg-template-tm8 .tm8-product-card:hover{
    transform:translateY(-4px);
    box-shadow:var(--tm8-shadow);
}

body.mtg-template-tm8 .tm8-product-media{
    aspect-ratio:1 / 1;
    padding:18px;
    background:#fff;
}

body.mtg-template-tm8 .tm8-product-media img{
    width:100%;
    height:100%;
    object-fit:contain;
}

body.mtg-template-tm8 .tm8-product-body{
    padding:18px;
}

body.mtg-template-tm8 .tm8-product-body h3{
    min-height:48px;
    margin:0 0 10px;
    color:#111;
    font-size:17px;
    line-height:1.4;
}

body.mtg-template-tm8 .tm8-product-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

body.mtg-template-tm8 .tm8-product-bottom strong{
    color:var(--tm8-primary);
    font-size:21px;
}

body.mtg-template-tm8 .tm8-product-bottom a{
    min-height:38px;
    padding:0 14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--tm8-primary);
    border-radius:6px;
    color:var(--tm8-primary);
    text-decoration:none;
    font-size:12px;
    font-weight:800;
}


/* =========================================================
   BANNER
   ========================================================= */

body.mtg-template-tm8 .tm8-banner-section{
    padding:34px 0;
}

body.mtg-template-tm8 .tm8-banner{
    min-height:260px;
    display:grid;
    grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
    align-items:center;
    gap:34px;
    padding:38px 44px;
    overflow:hidden;
    border-radius:16px;
    background:
        linear-gradient(
            115deg,
            #071a3d 0%,
            #082f72 55%,
            #0758ca 100%
        );
    color:#fff;
}

body.mtg-template-tm8 .tm8-banner h2,
body.mtg-template-tm8 .tm8-banner p{
    color:#fff;
}

body.mtg-template-tm8 .tm8-banner-content h2{
    margin:0 0 12px;
    font-size:clamp(34px,4vw,58px);
    line-height:1;
}

body.mtg-template-tm8 .tm8-banner-content a{
    display:inline-flex;
    min-height:46px;
    align-items:center;
    padding:0 22px;
    border-radius:6px;
    background:#fff;
    color:var(--tm8-primary-dark);
    font-weight:900;
    text-decoration:none;
}

body.mtg-template-tm8 .tm8-banner-visual img{
    width:100%;
    max-height:260px;
    object-fit:contain;
}


/* =========================================================
   BENEFICIOS
   ========================================================= */

body.mtg-template-tm8 .tm8-benefits-section{
    padding:30px 0;
}

body.mtg-template-tm8 .tm8-benefits-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:0;
    overflow:hidden;
    border:1px solid var(--tm8-border);
    border-radius:var(--tm8-radius);
    background:#fff;
}

body.mtg-template-tm8 .tm8-benefit{
    display:flex;
    align-items:center;
    gap:13px;
    padding:20px;
    border-right:1px solid var(--tm8-border);
}

body.mtg-template-tm8 .tm8-benefit:last-child{
    border-right:0;
}

body.mtg-template-tm8 .tm8-benefit-icon{
    color:var(--tm8-primary);
    font-size:25px;
}

body.mtg-template-tm8 .tm8-benefit h3{
    margin:0 0 3px;
    font-size:14px;
}

body.mtg-template-tm8 .tm8-benefit p{
    margin:0;
    color:var(--tm8-muted);
    font-size:12px;
}


/* =========================================================
   MARCAS
   ========================================================= */

body.mtg-template-tm8 .tm8-brands-grid{
    display:grid;
    grid-template-columns:repeat(8,minmax(0,1fr));
    gap:12px;
}

body.mtg-template-tm8 .tm8-brand-card{
    min-height:82px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:15px;
    border:1px solid var(--tm8-border);
    border-radius:10px;
    background:#fff;
}

body.mtg-template-tm8 .tm8-brand-card img{
    width:100%;
    height:44px;
    object-fit:contain;
}


/* =========================================================
   TESTIMONIOS
   ========================================================= */

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

body.mtg-template-tm8 .tm8-testimonial-card{
    padding:26px;
    border:1px solid var(--tm8-border);
    border-radius:var(--tm8-radius);
    background:#fff;
}

body.mtg-template-tm8 .tm8-testimonial-card p{
    color:#344054;
    line-height:1.7;
}


/* =========================================================
   GALLERY
   Usa el contrato universal:
   gallery
   gallery__grid
   gallery__item
   gallery__image
   ========================================================= */

body.mtg-template-tm8 .mtg-core-section--gallery{
    padding:64px 0;
    background:var(--tm8-surface);
}


/* =========================================================
   NEWSLETTER
   ========================================================= */

body.mtg-template-tm8 .tm8-newsletter{
    padding:34px 0;
}

body.mtg-template-tm8 .tm8-newsletter-inner{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,.8fr);
    align-items:center;
    gap:36px;
    padding:32px;
    border:1px solid var(--tm8-border);
    border-radius:var(--tm8-radius);
    background:#fff;
}

body.mtg-template-tm8 .tm8-newsletter form{
    display:flex;
}

body.mtg-template-tm8 .tm8-newsletter input{
    flex:1;
    min-width:0;
    min-height:50px;
    padding:0 16px;
    border:1px solid var(--tm8-border);
}

body.mtg-template-tm8 .tm8-newsletter button{
    min-width:145px;
    border:0;
    background:var(--tm8-primary);
    color:#fff;
    font-weight:900;
}


/* =========================================================
   CTA
   ========================================================= */

body.mtg-template-tm8 .tm8-cta-section{
    padding:32px 0;
}

body.mtg-template-tm8 .tm8-cta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    padding:36px 42px;
    border-radius:14px;
    background:
        linear-gradient(
            110deg,
            #06162f,
            #082d68
        );
    color:#fff;
}

body.mtg-template-tm8 .tm8-cta h2,
body.mtg-template-tm8 .tm8-cta p{
    color:#fff;
}

body.mtg-template-tm8 .tm8-cta-actions a{
    background:#fff;
    color:var(--tm8-primary-dark);
}


/* =========================================================
   FOOTER
   ========================================================= */

body.mtg-template-tm8 .tm8-footer{
    padding:56px 0 0;
    background:#161616;
    color:#fff;
}

body.mtg-template-tm8 .tm8-footer h2,
body.mtg-template-tm8 .tm8-footer h3,
body.mtg-template-tm8 .tm8-footer strong{
    color:#fff;
}

body.mtg-template-tm8 .tm8-footer a,
body.mtg-template-tm8 .tm8-footer p{
    color:rgba(255,255,255,.68);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:1100px){
    body.mtg-template-tm8 .tm8-category-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    body.mtg-template-tm8 .tm8-product-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    body.mtg-template-tm8 .tm8-benefits-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    body.mtg-template-tm8 .tm8-brands-grid{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
}

@media(max-width:760px){
    body.mtg-template-tm8 .tm8-container{
        width:94%;
    }

    body.mtg-template-tm8 .tm8-hero-grid,
    body.mtg-template-tm8 .tm8-banner,
    body.mtg-template-tm8 .tm8-newsletter-inner{
        grid-template-columns:1fr;
    }

    body.mtg-template-tm8 .tm8-hero-grid{
        min-height:0;
        padding:30px 0;
    }

    body.mtg-template-tm8 .tm8-hero-content{
        order:2;
    }

    body.mtg-template-tm8 .tm8-hero-visual{
        order:1;
    }

    body.mtg-template-tm8 .tm8-category-grid,
    body.mtg-template-tm8 .tm8-product-grid,
    body.mtg-template-tm8 .tm8-brands-grid,
    body.mtg-template-tm8 .tm8-testimonials-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }

    body.mtg-template-tm8 .tm8-benefits-grid{
        grid-template-columns:1fr;
    }

    body.mtg-template-tm8 .tm8-benefit{
        border-right:0;
        border-bottom:1px solid var(--tm8-border);
    }

    body.mtg-template-tm8 .tm8-newsletter form{
        flex-direction:column;
        gap:10px;
    }

    body.mtg-template-tm8 .tm8-newsletter button{
        min-height:50px;
    }

    body.mtg-template-tm8 .tm8-cta{
        align-items:flex-start;
        flex-direction:column;
    }
}

/* MTG TM8 CATEGORY FULL CARD FIX START */

/*
 * Objetivo:
 * - la imagen debe ocupar todo el espacio disponible del card
 * - el título debe quedar abajo en una franja degradada roja
 * - evitar zonas vacías en la tarjeta
 */
.mtg-template-tm8 .mtg-core-section--categories :is(
    .tm8-category-card,
    .tm8-categories-card,
    .tm8-category-item,
    .tm8-categories-item,
    .tm8-core-category-card,
    .tm8-core-categories__item,
    .tm8-category-box,
    .tm8-categories-box
),
.mtg-template-tm8 section[data-core-section="categories"] :is(
    .tm8-category-card,
    .tm8-categories-card,
    .tm8-category-item,
    .tm8-categories-item,
    .tm8-core-category-card,
    .tm8-core-categories__item,
    .tm8-category-box,
    .tm8-categories-box
) {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 430px !important;
    overflow: hidden !important;
    border-radius: 22px !important;
}

/* Si la tarjeta viene con un enlace envolviendo todo */
.mtg-template-tm8 .mtg-core-section--categories :is(
    .tm8-category-card,
    .tm8-categories-card,
    .tm8-category-item,
    .tm8-categories-item,
    .tm8-core-category-card,
    .tm8-core-categories__item,
    .tm8-category-box,
    .tm8-categories-box
) > a,
.mtg-template-tm8 section[data-core-section="categories"] :is(
    .tm8-category-card,
    .tm8-categories-card,
    .tm8-category-item,
    .tm8-categories-item,
    .tm8-core-category-card,
    .tm8-core-categories__item,
    .tm8-category-box,
    .tm8-categories-box
) > a {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: inherit !important;
    text-decoration: none !important;
}

/* Zona de imagen */
.mtg-template-tm8 .mtg-core-section--categories :is(
    .tm8-category-card__media,
    .tm8-categories-card__media,
    .tm8-category-item__media,
    .tm8-core-category-card__media,
    .tm8-core-categories__media,
    .tm8-category-image,
    .tm8-categories-image,
    .tm8-category-thumb,
    .tm8-categories-thumb,
    .tm8-category-photo,
    .tm8-categories-photo
),
.mtg-template-tm8 section[data-core-section="categories"] :is(
    .tm8-category-card__media,
    .tm8-categories-card__media,
    .tm8-category-item__media,
    .tm8-core-category-card__media,
    .tm8-core-categories__media,
    .tm8-category-image,
    .tm8-categories-image,
    .tm8-category-thumb,
    .tm8-categories-thumb,
    .tm8-category-photo,
    .tm8-categories-photo
) {
    flex: 1 1 auto !important;
    min-height: 250px !important;
    height: auto !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f2f2f2 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

/* Fallback:
 * si no existe contenedor "media", aplicar al primer bloque visual/imágenes
 */
.mtg-template-tm8 .mtg-core-section--categories :is(
    .tm8-category-card,
    .tm8-categories-card,
    .tm8-category-item,
    .tm8-categories-item,
    .tm8-core-category-card,
    .tm8-core-categories__item,
    .tm8-category-box,
    .tm8-categories-box
) :is(img, picture),
.mtg-template-tm8 section[data-core-section="categories"] :is(
    .tm8-category-card,
    .tm8-categories-card,
    .tm8-category-item,
    .tm8-categories-item,
    .tm8-core-category-card,
    .tm8-core-categories__item,
    .tm8-category-box,
    .tm8-categories-box
) :is(img, picture) {
    width: 100% !important;
    height: 100% !important;
    min-height: 250px !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #f2f2f2 !important;
}

/* Título abajo con degradado rojo */
.mtg-template-tm8 .mtg-core-section--categories :is(
    .tm8-category-card__title,
    .tm8-categories-card__title,
    .tm8-category-item__title,
    .tm8-core-category-card__title,
    .tm8-core-categories__title,
    .tm8-category-title,
    .tm8-categories-title
),
.mtg-template-tm8 section[data-core-section="categories"] :is(
    .tm8-category-card__title,
    .tm8-categories-card__title,
    .tm8-category-item__title,
    .tm8-core-category-card__title,
    .tm8-core-categories__title,
    .tm8-category-title,
    .tm8-categories-title
) {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding: 22px 20px !important;
    background: linear-gradient(135deg, #071b46 0%, #064fc4 48%, #00a8ff 100%) !important;
    color: #ffffff !important;
    text-align: center !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Si el título está en h3/h4/p dentro del card */
.mtg-template-tm8 .mtg-core-section--categories :is(
    .tm8-category-card,
    .tm8-categories-card,
    .tm8-category-item,
    .tm8-categories-item,
    .tm8-core-category-card,
    .tm8-core-categories__item,
    .tm8-category-box,
    .tm8-categories-box
) :is(h3, h4, .title, .name):last-child,
.mtg-template-tm8 section[data-core-section="categories"] :is(
    .tm8-category-card,
    .tm8-categories-card,
    .tm8-category-item,
    .tm8-categories-item,
    .tm8-core-category-card,
    .tm8-core-categories__item,
    .tm8-category-box,
    .tm8-categories-box
) :is(h3, h4, .title, .name):last-child {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding: 22px 20px !important;
    background: linear-gradient(135deg, #071b46 0%, #064fc4 48%, #00a8ff 100%) !important;
    color: #ffffff !important;
    text-align: center !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    border-radius: 0 !important;
}

/* Por si el card trae padding interno general, lo neutralizamos arriba
   y dejamos limpio el flujo imagen + franja inferior */
.mtg-template-tm8 .mtg-core-section--categories :is(
    .tm8-category-card,
    .tm8-categories-card,
    .tm8-category-item,
    .tm8-categories-item,
    .tm8-core-category-card,
    .tm8-core-categories__item,
    .tm8-category-box,
    .tm8-categories-box
) > *:first-child,
.mtg-template-tm8 section[data-core-section="categories"] :is(
    .tm8-category-card,
    .tm8-categories-card,
    .tm8-category-item,
    .tm8-categories-item,
    .tm8-core-category-card,
    .tm8-core-categories__item,
    .tm8-category-box,
    .tm8-categories-box
) > *:first-child {
    margin-top: 0 !important;
}

/* Responsive */
@media (max-width: 991px) {
    .mtg-template-tm8 .mtg-core-section--categories :is(
        .tm8-category-card,
        .tm8-categories-card,
        .tm8-category-item,
        .tm8-categories-item,
        .tm8-core-category-card,
        .tm8-core-categories__item,
        .tm8-category-box,
        .tm8-categories-box
    ),
    .mtg-template-tm8 section[data-core-section="categories"] :is(
        .tm8-category-card,
        .tm8-categories-card,
        .tm8-category-item,
        .tm8-categories-item,
        .tm8-core-category-card,
        .tm8-core-categories__item,
        .tm8-category-box,
        .tm8-categories-box
    ) {
        min-height: 360px !important;
    }

    .mtg-template-tm8 .mtg-core-section--categories :is(
        .tm8-category-card,
        .tm8-categories-card,
        .tm8-category-item,
        .tm8-categories-item,
        .tm8-core-category-card,
        .tm8-core-categories__item,
        .tm8-category-box,
        .tm8-categories-box
    ) :is(img, picture),
    .mtg-template-tm8 section[data-core-section="categories"] :is(
        .tm8-category-card,
        .tm8-categories-card,
        .tm8-category-item,
        .tm8-categories-item,
        .tm8-core-category-card,
        .tm8-core-categories__item,
        .tm8-category-box,
        .tm8-categories-box
    ) :is(img, picture) {
        min-height: 210px !important;
    }
}

/* MTG TM8 CATEGORY FULL CARD FIX END */

/* MTG TM8 CATEGORY TITLE BLUE TECH FINAL */
body.mtg-template-tm8 .tm8-category-card__title,
body.mtg-template-tm8 .tm8-categories-card__title,
body.mtg-template-tm8 .tm8-category-item__title,
body.mtg-template-tm8 .tm8-core-category-card__title,
body.mtg-template-tm8 .tm8-core-categories__title,
body.mtg-template-tm8 .tm8-category-title,
body.mtg-template-tm8 .tm8-categories-title,

body.mtg-template-tm8 .mtg-core-section--categories h3,
body.mtg-template-tm8 .mtg-core-section--categories h4,
body.mtg-template-tm8 section[data-core-section="categories"] h3,
body.mtg-template-tm8 section[data-core-section="categories"] h4,

body.mtg-template-tm8 .mtg-core-section--categories .title,
body.mtg-template-tm8 .mtg-core-section--categories .name,
body.mtg-template-tm8 section[data-core-section="categories"] .title,
body.mtg-template-tm8 section[data-core-section="categories"] .name {
    background: linear-gradient(
        135deg,
        #061a40 0%,
        #064fc4 50%,
        #00a8ff 100%
    ) !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* MTG TM8 CATEGORY REAL BLUE TECH */
body.mtg-template-tm8
.tm8-category-card > strong {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 76px !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    box-sizing: border-box !important;

    background:
        linear-gradient(
            135deg,
            #061a40 0%,
            #0756d8 52%,
            #00a8ff 100%
        ) !important;

    color: #ffffff !important;
    font-weight: 850 !important;
    text-align: center !important;
    line-height: 1.15 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 8px 20px rgba(6,79,196,.16) !important;
}

/* Ocultar el texto secundario para conservar
   la estructura limpia de imagen + franja inferior */
body.mtg-template-tm8
.tm8-category-card > small {
    display: none !important;
}

/* La imagen ocupa toda la zona superior */
body.mtg-template-tm8
.tm8-category-card > .tm8-category-image {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 300px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.mtg-template-tm8
.tm8-category-card > .tm8-category-image > img {
    width: 100% !important;
    height: 100% !important;
    min-height: 300px !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Card sin espacio vacío */
body.mtg-template-tm8
.tm8-category-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 410px !important;
    padding: 0 !important;
    overflow: hidden !important;
}


/* MTG_TM8_OUD_SKIN_START
============================================================
TM8 — OUD AL ARAB
Skin premium perfumes árabes
Esqueleto: TM8 / Builder Core
============================================================
*/


/* ==========================================================
   VARIABLES
   ========================================================== */

body.mtg-template-tm8{
    --tm8-ivory:#fffdf8;
    --tm8-cream:#faf4ea;
    --tm8-cream-2:#f2e5d2;
    --tm8-champagne:#e3c28c;

    --tm8-gold:#9b681f;
    --tm8-gold-2:#c59951;
    --tm8-gold-light:#e2c58b;

    --tm8-brown:#2b190e;
    --tm8-brown-2:#513219;
    --tm8-brown-3:#775026;

    --tm8-ink:#21170f;
    --tm8-muted:#75695e;
    --tm8-line:#e7dbca;

    --tm8-shadow:
        0 12px 35px
        rgba(61,39,19,.08);

    background:var(--tm8-ivory) !important;
    color:var(--tm8-ink) !important;
}


/* ==========================================================
   CONTENEDOR GENERAL = 90%
   ========================================================== */

body.mtg-template-tm8 .tm8-container,
body.mtg-template-tm8 .mtg-core-container{
    width:90% !important;
    max-width:none !important;

    margin-left:auto !important;
    margin-right:auto !important;
}


/* ==========================================================
   HEADER GLOBAL MTG
   No sustituimos HTML, solo skin.
   ========================================================== */

body.mtg-template-tm8 .mtg-header-topbar{
    background:
        linear-gradient(
            90deg,
            #5f3b13,
            #865c1e,
            #5f3b13
        ) !important;

    color:#fff7e8 !important;
}

body.mtg-template-tm8 .mtg-header-topbar__inner,
body.mtg-template-tm8 .mtg-header-main__inner{
    width:90% !important;
    max-width:none !important;

    margin:auto !important;
}


body.mtg-template-tm8 .mtg-header-main{
    background:
        rgba(255,253,248,.98) !important;

    border-bottom:
        1px solid
        rgba(116,83,43,.10) !important;
}


body.mtg-template-tm8 .mtg-header-main__inner{
    min-height:72px !important;
}


body.mtg-template-tm8 .mtg-header-main a{
    color:#281b12 !important;
}


body.mtg-template-tm8 .mtg-header-main nav a{
    font-family:
        Georgia,
        "Times New Roman",
        serif !important;

    font-size:13px !important;
}


body.mtg-template-tm8 .mtg-header-main nav a:hover{
    color:var(--tm8-gold) !important;
}


body.mtg-template-tm8 .mtg-header-logo,
body.mtg-template-tm8 .site-title{
    font-family:
        Georgia,
        "Times New Roman",
        serif !important;

    font-weight:700 !important;

    color:#281b12 !important;
}


/* WhatsApp conserva verde */

body.mtg-template-tm8
.mtg-header-main
a[href*="wa.me"],
body.mtg-template-tm8
.mtg-header-main
a[href*="whatsapp"]{
    color:#fff !important;
}


/* ==========================================================
   TIPOGRAFIA GENERAL
   ========================================================== */

body.mtg-template-tm8 h1,
body.mtg-template-tm8 h2,
body.mtg-template-tm8 h3{
    font-family:
        Georgia,
        "Times New Roman",
        serif !important;

    color:var(--tm8-ink) !important;

    letter-spacing:-.035em;
}


body.mtg-template-tm8 p{
    color:var(--tm8-muted);
}


/* ==========================================================
   SECCIONES / RITMO
   ========================================================== */

body.mtg-template-tm8 .tm8-section{
    padding-top:58px !important;
    padding-bottom:58px !important;
}


body.mtg-template-tm8 .tm8-section-header,
body.mtg-template-tm8 .tm8-section-heading{
    max-width:760px !important;

    margin:
        0
        auto
        32px !important;

    text-align:center !important;
}


body.mtg-template-tm8 .tm8-section-header h2,
body.mtg-template-tm8 .tm8-section-heading h2{
    margin:
        0
        0
        7px !important;

    font-size:
        clamp(
            35px,
            3vw,
            48px
        ) !important;

    line-height:1 !important;
}


body.mtg-template-tm8 .tm8-section-header p,
body.mtg-template-tm8 .tm8-section-heading p{
    margin:0 !important;

    font-size:12px !important;

    line-height:1.5 !important;
}


/* ==========================================================
   HERO
   ========================================================== */

body.mtg-template-tm8
[data-core-section="hero"]{
    padding:
        26px
        0
        40px !important;

    background:
        linear-gradient(
            180deg,
            #fffdf8,
            #faf5ed
        ) !important;
}


body.mtg-template-tm8
[data-core-section="hero"]
.tm8-container{
    min-height:475px !important;

    overflow:hidden !important;

    background:
        linear-gradient(
            115deg,
            #faf2e6 0%,
            #f3e2c8 50%,
            #d7b27b 100%
        ) !important;

    border:
        1px solid
        rgba(150,104,38,.13) !important;

    border-radius:20px !important;

    box-shadow:
        0 22px 60px
        rgba(68,42,19,.09) !important;
}


/*
 * TM8 suele usar grid/flex propio.
 * Forzamos composición 48 / 52.
 */

body.mtg-template-tm8
[data-core-section="hero"]
.tm8-hero-grid,
body.mtg-template-tm8
[data-core-section="hero"]
> .tm8-container{
    grid-template-columns:
        minmax(0,.94fr)
        minmax(0,1.06fr) !important;
}


body.mtg-template-tm8
[data-core-section="hero"]
.tm8-hero-copy,
body.mtg-template-tm8
[data-core-section="hero"]
.tm8-hero-content{
    padding:
        55px
        5.5% !important;
}


body.mtg-template-tm8
[data-core-section="hero"]
h1{
    max-width:650px !important;

    margin:
        0
        0
        18px !important;

    font-size:
        clamp(
            50px,
            4.8vw,
            76px
        ) !important;

    line-height:.94 !important;

    font-weight:700 !important;
}


body.mtg-template-tm8
[data-core-section="hero"]
p{
    max-width:590px !important;

    font-size:14px !important;

    line-height:1.6 !important;
}


body.mtg-template-tm8
[data-core-section="hero"]
.tm8-hero-kicker,
body.mtg-template-tm8
[data-core-section="hero"]
.tm8-kicker{
    color:var(--tm8-gold) !important;

    font-size:9px !important;

    font-weight:800 !important;

    letter-spacing:.20em !important;
}


/* Hero imagen */

body.mtg-template-tm8
[data-core-section="hero"]
.tm8-hero-media,
body.mtg-template-tm8
[data-core-section="hero"]
.tm8-hero-visual{
    overflow:hidden !important;

    min-height:475px !important;

    background:
        radial-gradient(
            circle at 56% 44%,
            rgba(240,202,136,.80),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            #ba864b,
            #62401f
        ) !important;
}


body.mtg-template-tm8
[data-core-section="hero"]
.tm8-hero-media img,
body.mtg-template-tm8
[data-core-section="hero"]
.tm8-hero-visual img{
    width:100% !important;
    height:100% !important;

    min-height:475px !important;

    object-fit:cover !important;
}


/* botones hero */

body.mtg-template-tm8
[data-core-section="hero"]
a[class*="button"]{
    border-radius:6px !important;

    font-weight:700 !important;
}


/* ==========================================================
   CATEGORIAS — 4
   ========================================================== */

body.mtg-template-tm8
[data-core-section="categories"]{
    padding-top:42px !important;
    padding-bottom:52px !important;

    background:#fffdf8 !important;
}


body.mtg-template-tm8
[data-core-section="categories"]
.tm8-categories-grid,
body.mtg-template-tm8
[data-core-section="categories"]
.tm8-category-grid{
    display:grid !important;

    grid-template-columns:
        repeat(4,minmax(0,1fr)) !important;

    gap:18px !important;
}


body.mtg-template-tm8
[data-core-section="categories"]
.tm8-category-card{
    overflow:hidden !important;

    background:#fff !important;

    border:
        1px solid
        var(--tm8-line) !important;

    border-radius:10px !important;

    box-shadow:
        0 6px 20px
        rgba(52,33,15,.06) !important;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


body.mtg-template-tm8
[data-core-section="categories"]
.tm8-category-card:hover{
    transform:translateY(-4px);

    box-shadow:
        0 14px 30px
        rgba(52,33,15,.11) !important;
}


body.mtg-template-tm8
[data-core-section="categories"]
.tm8-category-card__media,
body.mtg-template-tm8
[data-core-section="categories"]
.tm8-category-image{
    aspect-ratio:
        16 / 7 !important;

    overflow:hidden !important;

    background:
        radial-gradient(
            circle at 50% 45%,
            #f6e7cd,
            #c99d62
        ) !important;
}


body.mtg-template-tm8
[data-core-section="categories"]
.tm8-category-card__media img,
body.mtg-template-tm8
[data-core-section="categories"]
.tm8-category-image img{
    width:100% !important;
    height:100% !important;

    object-fit:cover !important;
}


body.mtg-template-tm8
[data-core-section="categories"]
.tm8-category-card h3{
    font-size:20px !important;

    margin:
        10px
        12px
        3px !important;
}


/* ==========================================================
   PRODUCTOS — 4 POR FILA
   ========================================================== */

body.mtg-template-tm8
[data-core-section="featured"]{
    background:
        linear-gradient(
            180deg,
            #f9f4ec,
            #f7efe3
        ) !important;
}


body.mtg-template-tm8
[data-core-section="new_products"]{
    background:#fffdf9 !important;
}


body.mtg-template-tm8
.tm8-products-grid,
body.mtg-template-tm8
.tm8-product-grid{
    display:grid !important;

    grid-template-columns:
        repeat(4,minmax(0,1fr)) !important;

    gap:18px !important;
}


/* CARD */

body.mtg-template-tm8
.tm8-product-card{
    overflow:hidden !important;

    background:#fff !important;

    border:
        1px solid
        var(--tm8-line) !important;

    border-radius:10px !important;

    box-shadow:
        0 5px 18px
        rgba(55,35,17,.055) !important;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


body.mtg-template-tm8
.tm8-product-card:hover{
    transform:translateY(-4px);

    box-shadow:
        0 15px 35px
        rgba(55,35,17,.10) !important;
}


/* foto */

body.mtg-template-tm8
.tm8-product-card__media,
body.mtg-template-tm8
.tm8-product-image{
    aspect-ratio:
        1 / .92 !important;

    overflow:hidden !important;

    background:
        radial-gradient(
            circle at 50% 40%,
            #fbf3e7,
            #e8d0aa
        ) !important;
}


body.mtg-template-tm8
.tm8-product-card__media img,
body.mtg-template-tm8
.tm8-product-image img{
    width:100% !important;
    height:100% !important;

    object-fit:cover !important;
}


/* body */

body.mtg-template-tm8
.tm8-product-card__body,
body.mtg-template-tm8
.tm8-product-card__content{
    padding:
        14px
        15px
        16px !important;
}


body.mtg-template-tm8
.tm8-product-card h3{
    margin:
        4px
        0
        7px !important;

    font-size:19px !important;

    line-height:1.08 !important;
}


body.mtg-template-tm8
.tm8-product-card h3 a{
    color:var(--tm8-ink) !important;
    text-decoration:none !important;
}


/* precio */

body.mtg-template-tm8
.tm8-product-price,
body.mtg-template-tm8
.tm8-price{
    color:var(--tm8-brown) !important;

    font-weight:700 !important;
}


/* botón */

body.mtg-template-tm8
.tm8-product-card__button,
body.mtg-template-tm8
.tm8-product-card .button{
    min-height:36px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:100% !important;

    background:
        linear-gradient(
            90deg,
            #754810,
            #9d671d
        ) !important;

    color:#fff !important;

    border:0 !important;

    border-radius:5px !important;

    text-decoration:none !important;

    font-size:10px !important;

    font-weight:700 !important;
}


/* ==========================================================
   BANNER — ESENCIAS DE ORIENTE
   ========================================================== */

body.mtg-template-tm8
[data-core-section="banner"]{
    padding:
        22px
        0 !important;

    background:#fffdf9 !important;
}


body.mtg-template-tm8
[data-core-section="banner"]
.tm8-banner,
body.mtg-template-tm8
[data-core-section="banner"]
.tm8-container{
    min-height:315px !important;

    position:relative !important;

    overflow:hidden !important;

    background:
        linear-gradient(
            100deg,
            #e8c995 0%,
            #d8ab6c 53%,
            #775027 100%
        ) !important;

    border-radius:15px !important;
}


body.mtg-template-tm8
[data-core-section="banner"]
h2{
    font-size:
        clamp(
            42px,
            4vw,
            62px
        ) !important;

    line-height:.95 !important;
}


body.mtg-template-tm8
[data-core-section="banner"]
p{
    font-size:13px !important;
}


/* ==========================================================
   BENEFICIOS
   ========================================================== */

body.mtg-template-tm8
[data-core-section="benefits"]{
    padding:
        24px
        0 !important;

    background:
        linear-gradient(
            90deg,
            #2a190e,
            #3a2414,
            #2a190e
        ) !important;

    color:#fff !important;
}


body.mtg-template-tm8
.tm8-benefits-grid{
    display:grid !important;

    grid-template-columns:
        repeat(4,1fr) !important;
}


body.mtg-template-tm8
.tm8-benefit-card,
body.mtg-template-tm8
.tm8-benefits-grid article{
    min-height:70px !important;

    display:flex !important;

    align-items:center !important;

    gap:13px !important;

    padding:
        0
        20px !important;

    color:#fff !important;
}


body.mtg-template-tm8
.tm8-benefit-card strong,
body.mtg-template-tm8
.tm8-benefits-grid strong{
    color:#fff !important;

    font-size:11px !important;
}


body.mtg-template-tm8
.tm8-benefit-card p,
body.mtg-template-tm8
.tm8-benefit-card small,
body.mtg-template-tm8
.tm8-benefits-grid p,
body.mtg-template-tm8
.tm8-benefits-grid small{
    color:#c5b7a8 !important;

    font-size:9px !important;
}


/* ==========================================================
   MARCAS
   ========================================================== */

body.mtg-template-tm8
[data-core-section="brands"]{
    background:#fffdf9 !important;
}


body.mtg-template-tm8
.tm8-brands-grid{
    display:grid !important;

    grid-template-columns:
        repeat(6,1fr) !important;

    gap:20px !important;

    align-items:center !important;
}


body.mtg-template-tm8
.tm8-brand-card,
body.mtg-template-tm8
.tm8-brand{
    min-height:85px !important;

    display:flex !important;

    flex-direction:column !important;

    align-items:center !important;
    justify-content:center !important;

    text-align:center !important;

    background:transparent !important;

    border:0 !important;

    box-shadow:none !important;
}


body.mtg-template-tm8
.tm8-brand-card img,
body.mtg-template-tm8
.tm8-brand img{
    max-width:120px !important;
    max-height:48px !important;

    object-fit:contain !important;
}


/* ==========================================================
   TESTIMONIOS
   ========================================================== */

body.mtg-template-tm8
[data-core-section="testimonials"]{
    background:
        linear-gradient(
            90deg,
            #faf5ed,
            #f3e7d7,
            #faf5ed
        ) !important;
}


body.mtg-template-tm8
.tm8-testimonials-grid{
    display:grid !important;

    grid-template-columns:
        repeat(4,1fr) !important;

    gap:16px !important;
}


body.mtg-template-tm8
.tm8-testimonial-card,
body.mtg-template-tm8
.tm8-testimonials-grid article{
    padding:20px !important;

    background:#fff !important;

    border:
        1px solid
        var(--tm8-line) !important;

    border-radius:9px !important;

    box-shadow:
        0 4px 16px
        rgba(50,31,15,.04) !important;
}


/* ==========================================================
   GALERÍA / OFERTAS — 3
   ========================================================== */

body.mtg-template-tm8
[data-core-section="gallery"]{
    background:#fffdf9 !important;
}


body.mtg-template-tm8
.tm8-gallery-grid{
    display:grid !important;

    grid-template-columns:
        repeat(3,1fr) !important;

    gap:16px !important;
}


body.mtg-template-tm8
.tm8-gallery-grid > a{
    height:210px !important;

    display:block !important;

    overflow:hidden !important;

    border-radius:11px !important;
}


body.mtg-template-tm8
.tm8-gallery-grid img{
    width:100% !important;
    height:100% !important;

    object-fit:cover !important;
}


/* ==========================================================
   NEWSLETTER
   ========================================================== */

body.mtg-template-tm8
[data-core-section="newsletter"]{
    padding:
        28px
        0 !important;

    background:
        linear-gradient(
            105deg,
            #ecd4a9,
            #d9ae6b
        ) !important;
}


body.mtg-template-tm8
.tm8-newsletter-grid{
    display:grid !important;

    grid-template-columns:
        1fr
        1fr !important;

    align-items:center !important;

    gap:45px !important;
}


body.mtg-template-tm8
[data-core-section="newsletter"]
h2{
    font-size:29px !important;
}


body.mtg-template-tm8
[data-core-section="newsletter"]
form{
    display:flex !important;

    min-height:46px !important;

    overflow:hidden !important;

    background:#fff !important;

    border-radius:999px !important;
}


body.mtg-template-tm8
[data-core-section="newsletter"]
input{
    flex:1 !important;

    min-width:0 !important;

    padding:
        0
        20px !important;

    border:0 !important;

    outline:0 !important;
}


body.mtg-template-tm8
[data-core-section="newsletter"]
button{
    min-width:130px !important;

    border:0 !important;

    background:#784a11 !important;

    color:#fff !important;

    font-weight:700 !important;
}


/* ==========================================================
   CTA FINAL
   ========================================================== */

body.mtg-template-tm8
[data-core-section="cta"]{
    padding:
        35px
        0
        48px !important;

    background:#fffdf9 !important;
}


body.mtg-template-tm8
.tm8-cta-inner,
body.mtg-template-tm8
[data-core-section="cta"]
.tm8-container{
    min-height:170px !important;

    background:
        radial-gradient(
            circle at 82% 50%,
            rgba(199,151,76,.22),
            transparent 30%
        ),
        #28170d !important;

    border-radius:15px !important;

    color:#fff !important;
}


body.mtg-template-tm8
[data-core-section="cta"]
h2{
    color:#fff !important;

    font-size:
        clamp(
            35px,
            3vw,
            48px
        ) !important;
}


body.mtg-template-tm8
[data-core-section="cta"]
p{
    color:#c8b9aa !important;
}


/* ==========================================================
   FOOTER GLOBAL
   ========================================================== */

body.mtg-template-tm8
.site-footer-centered{
    background:#fff !important;

    border-top:
        1px solid
        #eee4d8 !important;
}


body.mtg-template-tm8
.site-footer-centered__inner{
    width:90% !important;
    max-width:none !important;

    margin:auto !important;

    color:#6f6257 !important;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media(max-width:1100px){

    body.mtg-template-tm8
    .tm8-container,
    body.mtg-template-tm8
    .mtg-header-topbar__inner,
    body.mtg-template-tm8
    .mtg-header-main__inner{
        width:92% !important;
    }

    body.mtg-template-tm8
    .tm8-products-grid,
    body.mtg-template-tm8
    .tm8-product-grid{
        grid-template-columns:
            repeat(2,1fr) !important;
    }

    body.mtg-template-tm8
    .tm8-brands-grid{
        grid-template-columns:
            repeat(4,1fr) !important;
    }

}


@media(max-width:780px){

    body.mtg-template-tm8
    .tm8-container{
        width:94% !important;
    }

    body.mtg-template-tm8
    [data-core-section="hero"]
    .tm8-hero-grid,
    body.mtg-template-tm8
    [data-core-section="hero"]
    > .tm8-container{
        grid-template-columns:
            1fr !important;
    }

    body.mtg-template-tm8
    [data-core-section="hero"]
    .tm8-hero-media,
    body.mtg-template-tm8
    [data-core-section="hero"]
    .tm8-hero-visual{
        min-height:340px !important;
    }

    body.mtg-template-tm8
    [data-core-section="categories"]
    .tm8-categories-grid,
    body.mtg-template-tm8
    [data-core-section="categories"]
    .tm8-category-grid{
        grid-template-columns:
            repeat(2,1fr) !important;
    }

    body.mtg-template-tm8
    .tm8-products-grid,
    body.mtg-template-tm8
    .tm8-product-grid{
        grid-template-columns:
            repeat(2,1fr) !important;
    }

    body.mtg-template-tm8
    .tm8-benefits-grid{
        grid-template-columns:
            repeat(2,1fr) !important;
    }

    body.mtg-template-tm8
    .tm8-brands-grid{
        grid-template-columns:
            repeat(3,1fr) !important;
    }

    body.mtg-template-tm8
    .tm8-testimonials-grid{
        grid-template-columns:
            repeat(2,1fr) !important;
    }

    body.mtg-template-tm8
    .tm8-gallery-grid{
        grid-template-columns:
            1fr !important;
    }

    body.mtg-template-tm8
    .tm8-newsletter-grid{
        grid-template-columns:
            1fr !important;
    }

}


@media(max-width:520px){

    body.mtg-template-tm8
    [data-core-section="categories"]
    .tm8-categories-grid,
    body.mtg-template-tm8
    [data-core-section="categories"]
    .tm8-category-grid,
    body.mtg-template-tm8
    .tm8-products-grid,
    body.mtg-template-tm8
    .tm8-product-grid,
    body.mtg-template-tm8
    .tm8-testimonials-grid{
        grid-template-columns:
            1fr !important;
    }

}


/* MTG_TM8_OUD_SKIN_END */


/* MTG_TM8_GALLERY_SIZE_FIX_START
============================================================
TM8 - OFERTAS ESPECIALES / GALERIA
3 imágenes grandes reales
============================================================
*/


/* sección */

body.mtg-template-tm8
[data-core-section="gallery"]{
    padding-top:58px !important;
    padding-bottom:64px !important;

    background:#fffdf9 !important;
}


/* contenedor = 90% */

body.mtg-template-tm8
[data-core-section="gallery"]
.tm8-container{
    width:90% !important;
    max-width:none !important;

    margin-left:auto !important;
    margin-right:auto !important;
}


/* encabezado alineado a la izquierda,
   como la referencia del template */

body.mtg-template-tm8
[data-core-section="gallery"]
.tm8-section-heading,
body.mtg-template-tm8
[data-core-section="gallery"]
.tm8-section-header{
    max-width:none !important;

    margin:
        0
        0
        30px !important;

    text-align:left !important;
}


body.mtg-template-tm8
[data-core-section="gallery"]
h2{
    margin:
        0
        0
        7px !important;

    font-size:
        clamp(
            38px,
            3vw,
            54px
        ) !important;

    line-height:1 !important;
}


body.mtg-template-tm8
[data-core-section="gallery"]
p{
    margin:0 !important;

    font-size:14px !important;
}


/* ==========================================================
   GRID
   ========================================================== */

body.mtg-template-tm8
.tm8-gallery-grid{
    width:100% !important;

    display:grid !important;

    grid-template-columns:
        repeat(3,minmax(0,1fr)) !important;

    gap:
        clamp(
            24px,
            2.5vw,
            42px
        ) !important;

    align-items:start !important;
}


/* Cada card ocupa realmente toda su columna */

body.mtg-template-tm8
.tm8-gallery-grid > a{
    width:100% !important;

    height:auto !important;
    min-height:0 !important;

    display:block !important;

    overflow:hidden !important;

    margin:0 !important;
    padding:0 !important;

    background:#f5eee5 !important;

    border-radius:15px !important;

    box-shadow:
        0 8px 26px
        rgba(52,33,16,.08) !important;

    text-decoration:none !important;
}


/* ==========================================================
   IMAGEN
   La clave del arreglo.
   ========================================================== */

body.mtg-template-tm8
.tm8-gallery-grid > a > img,
body.mtg-template-tm8
.tm8-gallery-grid img{
    display:block !important;

    width:100% !important;
    max-width:none !important;

    height:auto !important;

    aspect-ratio:
        4 / 5 !important;

    object-fit:cover !important;

    margin:0 !important;

    border-radius:15px !important;
}


/* Si el clon TM8 mete un wrapper interno */

body.mtg-template-tm8
.tm8-gallery-item,
body.mtg-template-tm8
.tm8-gallery-card{
    width:100% !important;
    max-width:none !important;

    margin:0 !important;
}


/* placeholders mientras falte imagen */

body.mtg-template-tm8
.tm8-gallery-placeholder{
    width:100% !important;

    aspect-ratio:
        4 / 5 !important;

    min-height:0 !important;

    display:flex !important;

    flex-direction:column !important;
    justify-content:flex-end !important;

    padding:28px !important;

    background:
        linear-gradient(
            145deg,
            #2d190d,
            #95622d
        ) !important;

    color:#fff !important;

    border-radius:15px !important;
}


body.mtg-template-tm8
.tm8-gallery-placeholder small{
    font-size:10px !important;
    letter-spacing:.20em !important;
}


body.mtg-template-tm8
.tm8-gallery-placeholder strong{
    font-size:48px !important;
}


/* ==========================================================
   HOVER PREMIUM
   ========================================================== */

body.mtg-template-tm8
.tm8-gallery-grid > a{
    transition:
        transform .22s ease,
        box-shadow .22s ease !important;
}


body.mtg-template-tm8
.tm8-gallery-grid > a:hover{
    transform:translateY(-5px) !important;

    box-shadow:
        0 17px 38px
        rgba(52,33,16,.14) !important;
}


body.mtg-template-tm8
.tm8-gallery-grid > a img{
    transition:
        transform .35s ease !important;
}


body.mtg-template-tm8
.tm8-gallery-grid > a:hover img{
    transform:scale(1.025) !important;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media(max-width:980px){

    body.mtg-template-tm8
    .tm8-gallery-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media(max-width:620px){

    body.mtg-template-tm8
    [data-core-section="gallery"]
    .tm8-container{
        width:92% !important;
    }

    body.mtg-template-tm8
    .tm8-gallery-grid{
        grid-template-columns:
            1fr !important;

        gap:20px !important;
    }

    body.mtg-template-tm8
    .tm8-gallery-grid > a > img,
    body.mtg-template-tm8
    .tm8-gallery-grid img,
    body.mtg-template-tm8
    .tm8-gallery-placeholder{
        aspect-ratio:
            4 / 5 !important;
    }

}


/* MTG_TM8_GALLERY_SIZE_FIX_END */


/* MTG_TM8_REAL_SELECTORS_START
===============================================================
TM8 OUD AL ARAB
FIX REAL BASADO EN HTML / SELECTORES REALES
===============================================================
*/


/* ============================================================
   PALETA
   ============================================================ */

body.mtg-template-tm8{
    --oud-ink:#25160d;
    --oud-dark:#301b0e;
    --oud-dark-2:#4c2c13;

    --oud-gold:#9d681e;
    --oud-gold-light:#cf9a45;
    --oud-gold-pale:#ecd4a9;

    --oud-cream:#fffaf2;
    --oud-cream-2:#f5e8d5;

    --oud-border:#e8d8be;
}


/* ============================================================
   1. CATEGORIAS
   SELECTOR REAL:
      .tm8-category-card
      .tm8-category-image
      > strong
      > small
   ============================================================ */


/*
 * Mata definitivamente el BLUE TECH clonado de TM8.
 */
body.mtg-template-tm8
section.mtg-core-section--categories
.tm8-category-card{
    background:#fff !important;

    border:
        1px solid
        var(--oud-border) !important;

    border-radius:16px !important;

    overflow:hidden !important;

    box-shadow:
        0 10px 28px
        rgba(63,39,17,.07) !important;
}


/* imagen */

body.mtg-template-tm8
section.mtg-core-section--categories
.tm8-category-card
> .tm8-category-image{
    overflow:hidden !important;

    background:#e4c18c !important;

    border-radius:
        15px
        15px
        0
        0 !important;
}


body.mtg-template-tm8
section.mtg-core-section--categories
.tm8-category-card
> .tm8-category-image
> img{
    display:block !important;

    width:100% !important;
    height:100% !important;

    object-fit:cover !important;
}


/*
 * El título REAL es hijo directo strong.
 * Aquí estaba entrando el gradient azul de TM8.
 */
body.mtg-template-tm8
section.mtg-core-section--categories
.tm8-category-card
> strong{
    display:block !important;

    margin:0 !important;

    padding:
        14px
        17px
        4px !important;

    background:
        linear-gradient(
            90deg,
            #321b0c 0%,
            #78501c 47%,
            #b47a29 100%
        ) !important;

    color:#fff9ee !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif !important;

    font-size:20px !important;

    font-weight:700 !important;

    line-height:1.1 !important;

    text-shadow:none !important;

    -webkit-text-fill-color:#fff9ee !important;
}


/*
 * subtítulo hijo directo
 */
body.mtg-template-tm8
section.mtg-core-section--categories
.tm8-category-card
> small{
    display:block !important;

    margin:0 !important;

    padding:
        1px
        17px
        14px !important;

    background:
        linear-gradient(
            90deg,
            #321b0c 0%,
            #78501c 47%,
            #b47a29 100%
        ) !important;

    color:
        rgba(
            255,
            248,
            235,
            .82
        ) !important;

    font-size:10px !important;

    -webkit-text-fill-color:
        rgba(
            255,
            248,
            235,
            .82
        ) !important;
}


/*
 * Por si alguna regla azul anterior aplica
 * background-clip:text al nombre.
 */
body.mtg-template-tm8
section.mtg-core-section--categories
.tm8-category-card
> strong,
body.mtg-template-tm8
section.mtg-core-section--categories
.tm8-category-card
> small{
    background-clip:border-box !important;
    -webkit-background-clip:border-box !important;
}


/* Hover */

body.mtg-template-tm8
section.mtg-core-section--categories
.tm8-category-card{
    transition:
        transform .20s ease,
        box-shadow .20s ease !important;
}


body.mtg-template-tm8
section.mtg-core-section--categories
.tm8-category-card:hover{
    transform:
        translateY(-4px) !important;

    box-shadow:
        0 17px 36px
        rgba(63,39,17,.13) !important;
}


/* ============================================================
   2. BOTONES HERO
   SELECTOR REAL: .tm8-primary-button / secondary
   ============================================================ */

body.mtg-template-tm8
.tm8-primary-button{
    background:
        linear-gradient(
            135deg,
            #b97e29,
            #805017
        ) !important;

    border:
        1px solid
        #8c5919 !important;

    color:#fff !important;

    box-shadow:
        0 8px 18px
        rgba(95,57,13,.15) !important;
}


body.mtg-template-tm8
.tm8-secondary-button{
    background:
        #fffaf2 !important;

    border:
        1px solid
        #cba978 !important;

    color:
        var(--oud-ink) !important;

    box-shadow:none !important;
}


body.mtg-template-tm8
.tm8-primary-button:hover{
    background:
        linear-gradient(
            135deg,
            #ce963c,
            #8e5918
        ) !important;
}


body.mtg-template-tm8
.tm8-secondary-button:hover{
    background:
        #f4e4cc !important;
}


/* ============================================================
   3. HERO FEATURES
   SELECTOR REAL: .tm8-hero-features
   ============================================================ */

body.mtg-template-tm8
.tm8-hero-features article{
    background:
        rgba(
            255,
            250,
            241,
            .62
        ) !important;

    border:
        1px solid
        rgba(
            174,
            126,
            58,
            .17
        ) !important;

    border-radius:13px !important;

    padding:
        11px
        13px !important;
}


body.mtg-template-tm8
.tm8-hero-features article span,
body.mtg-template-tm8
.tm8-hero-features article svg{
    color:
        var(--oud-gold) !important;

    fill:
        currentColor !important;
}


body.mtg-template-tm8
.tm8-hero-features strong{
    color:
        var(--oud-ink) !important;
}


body.mtg-template-tm8
.tm8-hero-features small{
    color:#8a745d !important;
}


/* ============================================================
   4. NUEVO
   CLASE REAL DEFINIDA EN EL CLON:
   .tm8-product-badge
   ============================================================ */

body.mtg-template-tm8
.tm8-product-badge{
    display:inline-flex !important;

    align-items:center !important;

    width:auto !important;

    min-height:25px !important;

    margin:
        0
        0
        8px !important;

    padding:
        5px
        12px !important;

    background:
        linear-gradient(
            135deg,
            #dab066 0%,
            #a56d21 52%,
            #70420f 100%
        ) !important;

    border:0 !important;

    border-radius:999px !important;

    color:#fff !important;

    font-size:10px !important;

    font-weight:800 !important;

    line-height:1 !important;

    letter-spacing:.10em !important;

    text-transform:uppercase !important;

    box-shadow:
        0 6px 16px
        rgba(86,52,15,.16) !important;
}


/*
 * Algunos cards del clon escriben la etiqueta
 * mediante elementos simples.
 */
body.mtg-template-tm8
section[data-core-section="new_products"]
.tm8-product-grid
article
> small:first-child,
body.mtg-template-tm8
section[data-core-section="new-products"]
.tm8-product-grid
article
> small:first-child{
    display:inline-flex !important;

    width:auto !important;

    padding:
        5px
        12px !important;

    margin:
        0
        0
        8px !important;

    border-radius:999px !important;

    background:
        linear-gradient(
            135deg,
            #dab066,
            #9b651d,
            #70420f
        ) !important;

    color:#fff !important;

    font-weight:800 !important;

    letter-spacing:.08em !important;

    text-transform:uppercase !important;
}


/* ============================================================
   5. NEWSLETTER
   SELECTORES REALES:
     .tm8-newsletter
     .tm8-newsletter-inner
     .tm8-newsletter-copy

   El BODY además trae:
     .mtg-newsletter-skin-tm1
   Por eso usamos especificidad alta.
   ============================================================ */

body.mtg-template-tm8.mtg-newsletter-skin-tm1
section.tm8-newsletter{
    padding:
        30px
        0 !important;

    background:
        linear-gradient(
            100deg,
            #f4e5c9 0%,
            #dbb470 100%
        ) !important;
}


body.mtg-template-tm8.mtg-newsletter-skin-tm1
section.tm8-newsletter
.tm8-newsletter-inner{
    width:90% !important;
    max-width:none !important;

    min-height:115px !important;

    display:grid !important;

    grid-template-columns:
        minmax(0,1fr)
        minmax(360px,.9fr) !important;

    align-items:center !important;

    gap:50px !important;

    margin:auto !important;

    padding:
        22px
        30px !important;

    background:
        rgba(
            255,
            251,
            244,
            .86
        ) !important;

    border:
        1px solid
        rgba(
            147,
            97,
            31,
            .18
        ) !important;

    border-radius:18px !important;

    box-shadow:none !important;
}


body.mtg-template-tm8.mtg-newsletter-skin-tm1
.tm8-newsletter-copy{
    display:block !important;

    color:
        var(--oud-ink) !important;
}


body.mtg-template-tm8.mtg-newsletter-skin-tm1
.tm8-newsletter-copy > span{
    display:block !important;

    margin-bottom:5px !important;

    color:
        var(--oud-gold) !important;

    font-size:9px !important;

    font-weight:800 !important;

    letter-spacing:.18em !important;
}


body.mtg-template-tm8.mtg-newsletter-skin-tm1
.tm8-newsletter-copy h2{
    display:block !important;

    margin:
        0
        0
        5px !important;

    color:
        var(--oud-ink) !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif !important;

    font-size:
        clamp(
            26px,
            2.2vw,
            38px
        ) !important;
}


body.mtg-template-tm8.mtg-newsletter-skin-tm1
.tm8-newsletter-copy p{
    display:block !important;

    margin:0 !important;

    color:#78644f !important;

    font-size:11px !important;
}


body.mtg-template-tm8.mtg-newsletter-skin-tm1
section.tm8-newsletter
form{
    width:100% !important;

    display:flex !important;

    align-items:center !important;

    gap:10px !important;

    margin:0 !important;

    padding:0 !important;

    background:transparent !important;
}


body.mtg-template-tm8.mtg-newsletter-skin-tm1
section.tm8-newsletter
input{
    flex:1 !important;

    min-width:0 !important;

    height:46px !important;

    padding:
        0
        18px !important;

    background:#fff !important;

    border:
        1px solid
        #d7bd93 !important;

    border-radius:999px !important;

    color:
        var(--oud-ink) !important;

    box-shadow:none !important;
}


body.mtg-template-tm8.mtg-newsletter-skin-tm1
section.tm8-newsletter
input::placeholder{
    color:#897762 !important;
}


body.mtg-template-tm8.mtg-newsletter-skin-tm1
section.tm8-newsletter
button{
    height:46px !important;

    min-width:135px !important;

    padding:
        0
        20px !important;

    background:
        linear-gradient(
            135deg,
            #b47b28,
            #77470e
        ) !important;

    border:0 !important;

    border-radius:999px !important;

    color:#fff !important;

    font-weight:800 !important;
}


/* ============================================================
   6. CTA FINAL
   ESTE ERA EL PROBLEMA PRINCIPAL.

   HTML REAL:
     .mtg-cta-final-v4
     .mtg-cta-final-v4__copy
     .mtg-cta-final-v4__actions
     .mtg-cta-final-v4__features
     .mtg-cta-final-v4__feature
   ============================================================ */

body.mtg-template-tm8
section.tm8-cta-section{
    padding:
        40px
        0
        52px !important;

    background:#fffaf3 !important;
}


/*
 * Contenedor real.
 */
body.mtg-template-tm8
section.tm8-cta-section
.mtg-cta-final-v4{
    width:90% !important;
    max-width:none !important;

    min-height:280px !important;

    display:grid !important;

    grid-template-columns:
        minmax(0,1fr)
        minmax(380px,.85fr) !important;

    align-items:center !important;

    gap:55px !important;

    margin:
        0
        auto !important;

    padding:
        48px
        55px !important;

    overflow:hidden !important;

    background:
        radial-gradient(
            circle at 88% 35%,
            rgba(203,155,79,.22),
            transparent 28%
        ),
        linear-gradient(
            125deg,
            #21130b 0%,
            #3e2412 54%,
            #65401c 100%
        ) !important;

    border:
        1px solid
        rgba(190,145,71,.20) !important;

    border-radius:24px !important;

    box-shadow:
        0 18px 45px
        rgba(46,27,12,.15) !important;
}


/* columna copy */

body.mtg-template-tm8
section.tm8-cta-section
.mtg-cta-final-v4__copy{
    display:block !important;

    min-width:0 !important;
}


body.mtg-template-tm8
section.tm8-cta-section
.mtg-cta-final-v4__copy h2{
    max-width:760px !important;

    margin:
        0
        0
        13px !important;

    color:#fff8ee !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif !important;

    font-size:
        clamp(
            40px,
            3.5vw,
            58px
        ) !important;

    line-height:.98 !important;

    letter-spacing:-.035em !important;

    -webkit-text-fill-color:
        #fff8ee !important;
}


body.mtg-template-tm8
section.tm8-cta-section
.mtg-cta-final-v4__copy p{
    max-width:650px !important;

    margin:
        0
        0
        24px !important;

    color:
        rgba(
            255,
            244,
            229,
            .82
        ) !important;

    font-size:13px !important;

    line-height:1.55 !important;
}


/* botones */

body.mtg-template-tm8
section.tm8-cta-section
.mtg-cta-final-v4__actions{
    display:flex !important;

    align-items:center !important;

    gap:12px !important;

    margin-top:20px !important;
}


body.mtg-template-tm8
.mtg-cta-final-v4__button{
    min-height:44px !important;

    display:inline-flex !important;

    align-items:center !important;
    justify-content:center !important;

    padding:
        0
        23px !important;

    border-radius:8px !important;

    text-decoration:none !important;

    font-weight:800 !important;
}


body.mtg-template-tm8
.mtg-cta-final-v4__button--primary{
    background:
        linear-gradient(
            135deg,
            #c28c35,
            #865414
        ) !important;

    border:
        1px solid
        #a26b1e !important;

    color:#fff !important;
}


body.mtg-template-tm8
.mtg-cta-final-v4__button--secondary{
    background:
        rgba(
            255,
            255,
            255,
            .10
        ) !important;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .28
        ) !important;

    color:#fff !important;
}


/* features derecha */

body.mtg-template-tm8
section.tm8-cta-section
.mtg-cta-final-v4__features{
    display:grid !important;

    grid-template-columns:1fr !important;

    gap:12px !important;
}


body.mtg-template-tm8
section.tm8-cta-section
.mtg-cta-final-v4__feature{
    display:flex !important;

    align-items:center !important;

    min-height:62px !important;

    padding:
        15px
        18px !important;

    background:
        rgba(
            255,
            250,
            242,
            .09
        ) !important;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .12
        ) !important;

    border-radius:14px !important;

    color:#fff7eb !important;

    font-size:13px !important;

    font-weight:700 !important;

    line-height:1.35 !important;

    -webkit-text-fill-color:
        #fff7eb !important;
}


/* ============================================================
   7. EVITAR QUE EL GLOBAL h1/h2/h3 OSCURO PISE EL CTA
   ============================================================ */

body.mtg-template-tm8
section.tm8-cta-section
.mtg-cta-final-v4
h1,
body.mtg-template-tm8
section.tm8-cta-section
.mtg-cta-final-v4
h2,
body.mtg-template-tm8
section.tm8-cta-section
.mtg-cta-final-v4
h3{
    color:#fff8ee !important;

    -webkit-text-fill-color:
        #fff8ee !important;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media(max-width:950px){

    body.mtg-template-tm8.mtg-newsletter-skin-tm1
    section.tm8-newsletter
    .tm8-newsletter-inner{
        grid-template-columns:1fr !important;
        gap:20px !important;
    }


    body.mtg-template-tm8
    section.tm8-cta-section
    .mtg-cta-final-v4{
        grid-template-columns:1fr !important;

        min-height:0 !important;

        padding:
            38px
            32px !important;
    }

}


@media(max-width:620px){

    body.mtg-template-tm8
    section.mtg-core-section--categories
    .tm8-category-card
    > strong{
        font-size:17px !important;
    }


    body.mtg-template-tm8.mtg-newsletter-skin-tm1
    section.tm8-newsletter
    .tm8-newsletter-inner{
        width:92% !important;

        padding:
            22px
            18px !important;
    }


    body.mtg-template-tm8.mtg-newsletter-skin-tm1
    section.tm8-newsletter
    form{
        flex-direction:column !important;
    }


    body.mtg-template-tm8.mtg-newsletter-skin-tm1
    section.tm8-newsletter
    input,
    body.mtg-template-tm8.mtg-newsletter-skin-tm1
    section.tm8-newsletter
    button{
        width:100% !important;
    }


    body.mtg-template-tm8
    section.tm8-cta-section
    .mtg-cta-final-v4{
        width:92% !important;

        padding:
            32px
            22px !important;

        border-radius:18px !important;
    }


    body.mtg-template-tm8
    section.tm8-cta-section
    .mtg-cta-final-v4__copy h2{
        font-size:36px !important;
    }

}


/* MTG_TM8_REAL_SELECTORS_END */


/* MTG_TM8_COLOR_FINAL_START
============================================================
TM8 OUD AL ARAB
ELIMINACION DEFINITIVA DEL AZUL HEREDADO
============================================================
*/


/* ==========================================================
   1. CATEGORIAS
   Todo lo que esté debajo de la imagen deja de ser azul.
   ========================================================== */

body.mtg-template-tm8
section[data-core-section="categories"]
.tm8-category-card{
    overflow:hidden !important;

    background:#fff !important;

    border:
        1px solid
        #ead8bc !important;

    border-radius:16px !important;
}


/*
 * IMAGEN: única parte que NO recibe el gradient.
 */
body.mtg-template-tm8
section[data-core-section="categories"]
.tm8-category-card
> .tm8-category-image{
    background:#ead1a8 !important;
}


/*
 * CLAVE:
 * cualquier hijo directo debajo/encima de la imagen,
 * independientemente de su etiqueta HTML.
 */
body.mtg-template-tm8
section[data-core-section="categories"]
.tm8-category-card
> :not(.tm8-category-image){
    background:
        linear-gradient(
            90deg,
            #2b180d 0%,
            #664018 48%,
            #ad762a 100%
        ) !important;

    color:#fff8ec !important;

    border:0 !important;

    -webkit-text-fill-color:
        #fff8ec !important;

    background-clip:
        border-box !important;

    -webkit-background-clip:
        border-box !important;
}


/*
 * Mata pseudo-elementos azules heredados de TM8.
 */
body.mtg-template-tm8
section[data-core-section="categories"]
.tm8-category-card::before,
body.mtg-template-tm8
section[data-core-section="categories"]
.tm8-category-card::after,
body.mtg-template-tm8
section[data-core-section="categories"]
.tm8-category-card
> :not(.tm8-category-image)::before,
body.mtg-template-tm8
section[data-core-section="categories"]
.tm8-category-card
> :not(.tm8-category-image)::after{
    background:
        transparent !important;

    box-shadow:
        none !important;
}


/*
 * Título.
 */
body.mtg-template-tm8
section[data-core-section="categories"]
.tm8-category-card
> strong{
    display:block !important;

    padding:
        13px
        16px
        5px !important;

    margin:0 !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif !important;

    font-size:20px !important;

    line-height:1.1 !important;

    color:#fff8ec !important;

    -webkit-text-fill-color:
        #fff8ec !important;
}


/*
 * Texto secundario / Ver todo.
 */
body.mtg-template-tm8
section[data-core-section="categories"]
.tm8-category-card
> small{
    display:block !important;

    margin:0 !important;

    padding:
        3px
        16px
        12px !important;

    color:
        rgba(
            255,
            248,
            235,
            .82
        ) !important;

    -webkit-text-fill-color:
        rgba(
            255,
            248,
            235,
            .82
        ) !important;
}


/*
 * Si hubiera enlace interno, tampoco azul.
 */
body.mtg-template-tm8
section[data-core-section="categories"]
.tm8-category-card
a{
    color:#fff8ec !important;

    -webkit-text-fill-color:
        #fff8ec !important;

    text-decoration:none !important;
}


/* ==========================================================
   2. HERO - CIRCULOS DE LOS BENEFICIOS
   ========================================================== */

/*
 * Selector real del icono.
 */
body.mtg-template-tm8
.tm8-hero-features
article
> span{
    width:30px !important;
    height:30px !important;

    min-width:30px !important;

    display:inline-flex !important;

    align-items:center !important;
    justify-content:center !important;

    background:
        linear-gradient(
            135deg,
            #cb963c,
            #815015
        ) !important;

    border:
        1px solid
        rgba(
            111,
            66,
            15,
            .18
        ) !important;

    border-radius:999px !important;

    color:#fff !important;

    box-shadow:
        0 5px 12px
        rgba(85,51,12,.13) !important;
}


body.mtg-template-tm8
.tm8-hero-features
article
> span
svg{
    color:#fff !important;

    fill:currentColor !important;
}


body.mtg-template-tm8
.tm8-hero-features
article
> span
path{
    fill:currentColor !important;
    stroke:currentColor !important;
}


/* ==========================================================
   3. PRODUCTOS - OFERTA / NUEVO
   ========================================================== */

/*
 * Clase nativa TM8 si está presente.
 */
body.mtg-template-tm8
.tm8-product-badge{
    display:inline-flex !important;

    align-items:center !important;
    justify-content:center !important;

    width:auto !important;

    min-height:24px !important;

    padding:
        5px
        11px !important;

    margin:
        0
        0
        8px !important;

    background:
        linear-gradient(
            135deg,
            #dcaf5f 0%,
            #a86f20 50%,
            #71420d 100%
        ) !important;

    border-radius:999px !important;

    border:0 !important;

    color:#fff !important;

    font-size:10px !important;

    line-height:1 !important;

    font-weight:800 !important;

    letter-spacing:.08em !important;

    text-transform:uppercase !important;

    box-shadow:
        0 5px 13px
        rgba(91,54,12,.14) !important;
}


/*
 * El clon puede imprimir la etiqueta como primer elemento.
 * Se cubren las variantes sin modificar PHP.
 */

body.mtg-template-tm8
section[data-core-section="featured"]
.tm8-product-grid
> *
> small:first-child,

body.mtg-template-tm8
section[data-core-section="featured"]
.tm8-product-grid
> *
> span:first-child,

body.mtg-template-tm8
section[data-core-section="new-products"]
.tm8-product-grid
> *
> small:first-child,

body.mtg-template-tm8
section[data-core-section="new-products"]
.tm8-product-grid
> *
> span:first-child,

body.mtg-template-tm8
section[data-core-section="new_products"]
.tm8-product-grid
> *
> small:first-child,

body.mtg-template-tm8
section[data-core-section="new_products"]
.tm8-product-grid
> *
> span:first-child{
    display:inline-flex !important;

    align-items:center !important;
    justify-content:center !important;

    width:auto !important;

    padding:
        5px
        11px !important;

    margin:
        0
        0
        8px !important;

    background:
        linear-gradient(
            135deg,
            #dcaf5f 0%,
            #a86f20 50%,
            #71420d 100%
        ) !important;

    border-radius:999px !important;

    color:#fff !important;

    font-size:10px !important;

    font-weight:800 !important;

    line-height:1 !important;

    letter-spacing:.08em !important;

    text-transform:uppercase !important;

    border:0 !important;

    box-shadow:
        0 5px 13px
        rgba(91,54,12,.14) !important;
}


/* ==========================================================
   4. EVITAR AZULES DENTRO DE CATEGORIAS
   ========================================================== */

body.mtg-template-tm8
section[data-core-section="categories"]
.tm8-category-card
*{
    border-color:
        rgba(
            255,
            255,
            255,
            .12
        ) !important;
}


/* cualquier SVG/flecha */

body.mtg-template-tm8
section[data-core-section="categories"]
.tm8-category-card
svg{
    color:#fff !important;
    fill:currentColor !important;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media(max-width:768px){

    body.mtg-template-tm8
    section[data-core-section="categories"]
    .tm8-category-card
    > strong{
        font-size:17px !important;
    }

}


/* MTG_TM8_COLOR_FINAL_END */


/* MTG_TM8_ACTIVE_SKIN_FINAL_START
============================================================
TM8
Únicamente personaliza el ACTIVE global.
La lógica pertenece al plugin global MTG.
============================================================
*/

body.mtg-template-tm8
.mtg-header-nav
a.mtg-active-menu-link{
    background:#a96d20 !important;

    background-image:
        linear-gradient(
            135deg,
            #b97c29 0%,
            #8b5718 100%
        ) !important;

    color:#ffffff !important;

    -webkit-text-fill-color:#ffffff !important;

    border-color:#95601d !important;

    box-shadow:
        0 10px 24px
        rgba(111,67,15,.22) !important;
}


body.mtg-template-tm8
.mtg-header-nav
a.mtg-active-menu-link:hover{
    background:#a96d20 !important;

    background-image:
        linear-gradient(
            135deg,
            #c48935 0%,
            #925b18 100%
        ) !important;

    color:#ffffff !important;

    -webkit-text-fill-color:#ffffff !important;
}


/* MTG_TM8_ACTIVE_SKIN_FINAL_END */


/* MTG_TM8_OFFERS_TEXT_START
============================================================
TM8 - BOTON OFERTAS
Texto claro sobre fondo gris
============================================================
*/

body.mtg-template-tm8
.mtg-header-btn--offers,

body.mtg-template-tm8
.mtg-header-btn--offers span,

body.mtg-template-tm8
.mtg-header-actions
a.mtg-header-btn--offers{
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;
    opacity:1 !important;
}


/* por si el texto viene heredado */
body.mtg-template-tm8
.mtg-header-btn--offers *{
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;
}


/* hover mantiene texto claro */
body.mtg-template-tm8
.mtg-header-btn--offers:hover,

body.mtg-template-tm8
.mtg-header-btn--offers:hover *{
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;
}


/* MTG_TM8_OFFERS_TEXT_END */

/* MTG_TM8_BENEFITS_DARKTEXT_START
============================================================
TM8 - textos oscuros en la franja de beneficios
============================================================
*/

body.mtg-template-tm8 [data-core-section="benefits"],
body.mtg-template-tm8 .tm8-benefits,
body.mtg-template-tm8 .tm8-benefits-strip,
body.mtg-template-tm8 .tm8-benefits-row{
    color:#2c1a10 !important;
}

body.mtg-template-tm8 [data-core-section="benefits"] .tm8-benefit-card,
body.mtg-template-tm8 .tm8-benefits .tm8-benefit-card,
body.mtg-template-tm8 .tm8-benefits-strip .tm8-benefit-card,
body.mtg-template-tm8 .tm8-benefits-row .tm8-benefit-card,
body.mtg-template-tm8 [data-core-section="benefits"] .benefit-item,
body.mtg-template-tm8 .tm8-benefits .benefit-item{
    color:#2c1a10 !important;
}

body.mtg-template-tm8 [data-core-section="benefits"] h3,
body.mtg-template-tm8 [data-core-section="benefits"] h4,
body.mtg-template-tm8 [data-core-section="benefits"] strong,
body.mtg-template-tm8 [data-core-section="benefits"] .title,
body.mtg-template-tm8 [data-core-section="benefits"] .label,
body.mtg-template-tm8 [data-core-section="benefits"] .tm8-benefit-title,
body.mtg-template-tm8 .tm8-benefits h3,
body.mtg-template-tm8 .tm8-benefits h4,
body.mtg-template-tm8 .tm8-benefits strong,
body.mtg-template-tm8 .tm8-benefits .title,
body.mtg-template-tm8 .tm8-benefits .label,
body.mtg-template-tm8 .tm8-benefits .tm8-benefit-title{
    color:#2c1a10 !important;
}

body.mtg-template-tm8 [data-core-section="benefits"] p,
body.mtg-template-tm8 [data-core-section="benefits"] span,
body.mtg-template-tm8 [data-core-section="benefits"] small,
body.mtg-template-tm8 [data-core-section="benefits"] .text,
body.mtg-template-tm8 [data-core-section="benefits"] .tm8-benefit-text,
body.mtg-template-tm8 .tm8-benefits p,
body.mtg-template-tm8 .tm8-benefits span,
body.mtg-template-tm8 .tm8-benefits small,
body.mtg-template-tm8 .tm8-benefits .text,
body.mtg-template-tm8 .tm8-benefits .tm8-benefit-text{
    color:#6a5648 !important;
    opacity:1 !important;
}

body.mtg-template-tm8 [data-core-section="benefits"] a,
body.mtg-template-tm8 .tm8-benefits a{
    color:#2c1a10 !important;
}

/* MTG_TM8_BENEFITS_DARKTEXT_END */


/* MTG_TM8_NEWSLETTER_INPUT_WIDE_START
============================================================
TM8 - NEWSLETTER
Input email más grande y usable
============================================================
*/

body.mtg-template-tm8
.tm8-newsletter form,

body.mtg-template-tm8
.mtg-core-section--newsletter form{
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
    flex-wrap:nowrap !important;
}


body.mtg-template-tm8
.tm8-newsletter input[type="email"],

body.mtg-template-tm8
.mtg-core-section--newsletter input[type="email"]{
    width:320px !important;
    min-width:320px !important;
    max-width:420px !important;

    height:46px !important;

    padding:0 16px !important;

    border-radius:14px !important;

    box-sizing:border-box !important;

    font-size:14px !important;
}


/* botón mantiene su tamaño */
body.mtg-template-tm8
.tm8-newsletter button,

body.mtg-template-tm8
.mtg-core-section--newsletter button{
    min-height:46px !important;

    padding:
        0
        24px !important;

    white-space:nowrap !important;
}


/* responsive */
@media (max-width: 760px){

    body.mtg-template-tm8
    .tm8-newsletter form,

    body.mtg-template-tm8
    .mtg-core-section--newsletter form{
        flex-wrap:wrap !important;
    }

    body.mtg-template-tm8
    .tm8-newsletter input[type="email"],

    body.mtg-template-tm8
    .mtg-core-section--newsletter input[type="email"]{
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
    }

    body.mtg-template-tm8
    .tm8-newsletter button,

    body.mtg-template-tm8
    .mtg-core-section--newsletter button{
        width:100% !important;
    }
}


/* MTG_TM8_NEWSLETTER_INPUT_WIDE_END */


/* MTG_TM8_NEWSLETTER_FINAL_WIDTH_START
============================================================
TM8 NEWSLETTER
Columna derecha ancha + input real usable
============================================================
*/

body.mtg-template-tm8.mtg-newsletter-skin-tm1
section.tm8-newsletter
.tm8-newsletter-inner{
    grid-template-columns:
        minmax(0,1fr)
        560px !important;

    gap:50px !important;
}


/* FORMULARIO */
body.mtg-template-tm8.mtg-newsletter-skin-tm1
section.tm8-newsletter
.tm8-newsletter-inner > form{
    width:560px !important;
    max-width:100% !important;

    display:flex !important;
    align-items:center !important;

    gap:10px !important;

    justify-self:end !important;

    margin:0 !important;
    padding:0 !important;
}


/* INPUT */
body.mtg-template-tm8.mtg-newsletter-skin-tm1
section.tm8-newsletter
.tm8-newsletter-inner > form > input[type="email"]{
    flex:
        1 1 auto !important;

    width:auto !important;
    min-width:0 !important;
    max-width:none !important;

    height:46px !important;

    padding:
        0
        18px !important;

    box-sizing:border-box !important;

    border:
        1px solid
        #d7bd93 !important;

    border-radius:
        14px !important;

    background:#ffffff !important;

    color:#2c1a10 !important;

    font-size:14px !important;
}


/* BOTON */
body.mtg-template-tm8.mtg-newsletter-skin-tm1
section.tm8-newsletter
.tm8-newsletter-inner > form > button{
    flex:
        0 0 auto !important;

    width:auto !important;
    min-width:135px !important;

    height:46px !important;

    padding:
        0
        22px !important;

    white-space:nowrap !important;
}


/* TABLET */
@media(max-width:950px){

    body.mtg-template-tm8.mtg-newsletter-skin-tm1
    section.tm8-newsletter
    .tm8-newsletter-inner{
        grid-template-columns:
            1fr !important;
    }

    body.mtg-template-tm8.mtg-newsletter-skin-tm1
    section.tm8-newsletter
    .tm8-newsletter-inner > form{
        width:100% !important;
        justify-self:stretch !important;
    }

}


/* MOBILE */
@media(max-width:620px){

    body.mtg-template-tm8.mtg-newsletter-skin-tm1
    section.tm8-newsletter
    .tm8-newsletter-inner > form{
        flex-direction:column !important;
    }

    body.mtg-template-tm8.mtg-newsletter-skin-tm1
    section.tm8-newsletter
    .tm8-newsletter-inner > form > input[type="email"],
    body.mtg-template-tm8.mtg-newsletter-skin-tm1
    section.tm8-newsletter
    .tm8-newsletter-inner > form > button{
        width:100% !important;
    }

}


/* MTG_TM8_NEWSLETTER_FINAL_WIDTH_END */

/* MTG_TM8_NEWSLETTER_BIGGER_START
============================================================
TM8 NEWSLETTER
Input mucho más grande + layout más ancho
============================================================
*/

body.mtg-template-tm8 section.tm8-newsletter .tm8-newsletter-inner{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(760px, 44%) !important;
    align-items:center !important;
    gap:40px !important;
}

body.mtg-template-tm8 section.tm8-newsletter .tm8-newsletter-copy{
    max-width:none !important;
}

body.mtg-template-tm8 section.tm8-newsletter .tm8-newsletter-inner > form{
    width:760px !important;
    max-width:100% !important;
    justify-self:end !important;
    display:flex !important;
    align-items:center !important;
    gap:14px !important;
    margin:0 !important;
    padding:0 !important;
}

body.mtg-template-tm8 section.tm8-newsletter .tm8-newsletter-inner > form input[type="email"]{
    flex:1 1 auto !important;
    width:100% !important;
    min-width:520px !important;
    max-width:none !important;
    height:52px !important;
    padding:0 20px !important;
    border:1px solid #d6b27a !important;
    border-radius:18px !important;
    background:#fff !important;
    color:#2b1a10 !important;
    font-size:16px !important;
    line-height:52px !important;
    box-sizing:border-box !important;
}

body.mtg-template-tm8 section.tm8-newsletter .tm8-newsletter-inner > form button,
body.mtg-template-tm8 section.tm8-newsletter .tm8-newsletter-inner > form .button,
body.mtg-template-tm8 section.tm8-newsletter .tm8-newsletter-inner > form input[type="submit"]{
    flex:0 0 auto !important;
    min-width:170px !important;
    height:52px !important;
    padding:0 26px !important;
    border-radius:18px !important;
    white-space:nowrap !important;
}

@media (max-width: 1100px){
    body.mtg-template-tm8 section.tm8-newsletter .tm8-newsletter-inner{
        grid-template-columns:1fr !important;
    }

    body.mtg-template-tm8 section.tm8-newsletter .tm8-newsletter-inner > form{
        width:100% !important;
        justify-self:stretch !important;
    }

    body.mtg-template-tm8 section.tm8-newsletter .tm8-newsletter-inner > form input[type="email"]{
        min-width:0 !important;
    }
}

@media (max-width: 640px){
    body.mtg-template-tm8 section.tm8-newsletter .tm8-newsletter-inner > form{
        flex-direction:column !important;
        align-items:stretch !important;
    }

    body.mtg-template-tm8 section.tm8-newsletter .tm8-newsletter-inner > form input[type="email"],
    body.mtg-template-tm8 section.tm8-newsletter .tm8-newsletter-inner > form button,
    body.mtg-template-tm8 section.tm8-newsletter .tm8-newsletter-inner > form .button,
    body.mtg-template-tm8 section.tm8-newsletter .tm8-newsletter-inner > form input[type="submit"]{
        width:100% !important;
        min-width:0 !important;
    }
}

/* MTG_TM8_NEWSLETTER_BIGGER_END */

/* MTG_TM8_HIDE_CATEGORY_VER_TODO_START */
/* Oculta solo el CTA inferior "Ver todo →" de las tarjetas de categorías */
body.mtg-template-tm8 [data-core-section="categories"] .tm8-category-card__footer,
body.mtg-template-tm8 [data-core-section="categories"] .tm8v4-category-card__footer,
body.mtg-template-tm8 [data-core-section="categories"] .tm-category-card__footer,
body.mtg-template-tm8 [data-core-section="categories"] .category-card__footer,
body.mtg-template-tm8 .tm8-category-grid .tm8-category-card__footer,
body.mtg-template-tm8 .tm8-category-grid .tm8v4-category-card__footer,
body.mtg-template-tm8 .tm8-category-grid .tm-category-card__footer,
body.mtg-template-tm8 .tm8-category-grid .category-card__footer{
    display:none !important;
}

body.mtg-template-tm8 [data-core-section="categories"] .tm8-category-card__link,
body.mtg-template-tm8 [data-core-section="categories"] .tm8v4-category-card__link,
body.mtg-template-tm8 [data-core-section="categories"] .tm-category-card__link,
body.mtg-template-tm8 [data-core-section="categories"] .category-card__link,
body.mtg-template-tm8 .tm8-category-grid .tm8-category-card__link,
body.mtg-template-tm8 .tm8-category-grid .tm8v4-category-card__link,
body.mtg-template-tm8 .tm8-category-grid .tm-category-card__link,
body.mtg-template-tm8 .tm8-category-grid .category-card__link{
    display:none !important;
}
/* MTG_TM8_HIDE_CATEGORY_VER_TODO_END */


/* MTG_TM8_PRICE_GAP_FIX_START */
/* Separa precio actual y precio anterior/tachado */
.mtg-template-tm8 .price,
.mtg-template-tm8 .tm8-product-price,
.mtg-template-tm8 .product-price,
.mtg-template-tm8 .woocommerce-Price-amount{
    line-height: 1.2;
}

.mtg-template-tm8 .price,
.mtg-template-tm8 .tm8-product-price,
.mtg-template-tm8 .product-price{
    display: flex !important;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.mtg-template-tm8 .price ins,
.mtg-template-tm8 .tm8-product-price ins,
.mtg-template-tm8 .product-price ins{
    display: inline-flex;
    align-items: baseline;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
    font-weight: 700;
}

.mtg-template-tm8 .price del,
.mtg-template-tm8 .tm8-product-price del,
.mtg-template-tm8 .product-price del{
    display: inline-flex;
    align-items: baseline;
    margin: 0 0 0 4px !important;
    padding: 0 !important;
    opacity: .72;
}

.mtg-template-tm8 .price del .woocommerce-Price-amount,
.mtg-template-tm8 .tm8-product-price del .woocommerce-Price-amount,
.mtg-template-tm8 .product-price del .woocommerce-Price-amount{
    opacity: .72;
}

.mtg-template-tm8 .price > .woocommerce-Price-amount + .woocommerce-Price-amount{
    margin-left: 10px !important;
}

.mtg-template-tm8 .price span,
.mtg-template-tm8 .tm8-product-price span,
.mtg-template-tm8 .product-price span{
    vertical-align: baseline;
}
/* MTG_TM8_PRICE_GAP_FIX_END */


/* MTG_TM8_PRICE_GAP_REAL_START
============================================================
TM8 - productos renderizados con clases TM8
Separación entre precio oferta y precio anterior
============================================================
*/

body.mtg-template-tm8
.tm8-product-grid
.tm8-product-prices{
    display:flex !important;
    align-items:baseline !important;
    gap:12px !important;
    flex-wrap:wrap !important;
}

body.mtg-template-tm8
.tm8-product-grid
.tm8-product-prices
.tm8-product-price{
    display:inline-block !important;
    margin:0 !important;
    padding:0 !important;
}

body.mtg-template-tm8
.tm8-product-grid
.tm8-product-prices
del{
    display:inline-block !important;
    margin:0 !important;
    padding:0 !important;
    opacity:.65 !important;
}

/* respaldo ultra específico */
body.mtg-template-tm8
.tm8-product-content
.tm8-product-prices
strong.tm8-product-price + del{
    margin-left:12px !important;
}


/* MTG_TM8_PRICE_GAP_REAL_END */


/* MTG_TM8_PRODUCT_BUTTON_START
============================================================
TM8 - convertir "Ver producto" en botón real
usa la clase real heredada: .tm8-product-button
============================================================
*/

body.mtg-template-tm8 .tm8-product-grid .tm8-product-button,
body.mtg-template-tm8 .tm8-product-card .tm8-product-button{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    margin-top:12px !important;
    padding:12px 18px !important;
    min-height:44px !important;
    width:auto !important;
    background:linear-gradient(135deg,#5a2d0c 0%, #b57a23 100%) !important;
    color:#ffffff !important;
    text-decoration:none !important;
    border:none !important;
    border-radius:12px !important;
    font-size:14px !important;
    font-weight:700 !important;
    line-height:1 !important;
    box-shadow:0 10px 24px rgba(109,68,20,.18) !important;
    transition:all .22s ease !important;
}

body.mtg-template-tm8 .tm8-product-grid .tm8-product-button:hover,
body.mtg-template-tm8 .tm8-product-card .tm8-product-button:hover{
    transform:translateY(-1px) !important;
    box-shadow:0 14px 30px rgba(109,68,20,.24) !important;
    filter:brightness(1.03) !important;
    color:#ffffff !important;
    text-decoration:none !important;
}

body.mtg-template-tm8 .tm8-product-grid .tm8-product-button:visited,
body.mtg-template-tm8 .tm8-product-card .tm8-product-button:visited{
    color:#ffffff !important;
}

body.mtg-template-tm8 .tm8-product-grid .tm8-product-button span,
body.mtg-template-tm8 .tm8-product-card .tm8-product-button span{
    display:inline-flex !important;
    align-items:center !important;
    margin-left:2px !important;
    font-size:14px !important;
    line-height:1 !important;
}

body.mtg-template-tm8 .tm8-product-content{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
}

body.mtg-template-tm8 .tm8-product-content .tm8-product-button{
    align-self:flex-start !important;
}

/* MTG_TM8_PRODUCT_BUTTON_END */


/* MTG_TM8_ARABIC_FONTS_START
============================================================
TM8 Perfumes Árabes
Hero premium oriental
============================================================
*/

/* Título principal */
body.mtg-template-tm8 .tm8-hero-content h1{
    font-family:
        "Cormorant Garamond",
        Georgia,
        "Times New Roman",
        serif !important;

    font-weight:700 !important;

    /*
     * Le damos más presencia vertical y esos remates largos
     * característicos de la familia.
     */
    letter-spacing:-1.5px !important;
    line-height:.88 !important;
}

/* Etiqueta PERFUMES ÁRABES */
body.mtg-template-tm8 .tm8-hero-content .tm8-kicker,
body.mtg-template-tm8 .tm8-hero .tm8-kicker{
    font-family:
        "Cinzel Decorative",
        "Times New Roman",
        serif !important;

    font-weight:700 !important;
    letter-spacing:2px !important;
}

/*
 * Mantener descripción y botones limpios.
 * El contraste entre serif ornamental + Montserrat
 * hace que el hero conserve apariencia premium.
 */
body.mtg-template-tm8 .tm8-hero-content p,
body.mtg-template-tm8 .tm8-hero-actions,
body.mtg-template-tm8 .tm8-hero-features{
    font-family:
        "Montserrat",
        Arial,
        sans-serif !important;
}


/* Desktop grande */
@media (min-width:1200px){

    body.mtg-template-tm8 .tm8-hero-content h1{
        font-size:clamp(64px,5.5vw,88px) !important;
    }

}


/* Tablet */
@media (max-width:900px){

    body.mtg-template-tm8 .tm8-hero-content h1{
        line-height:.93 !important;
        letter-spacing:-1px !important;
    }

}


/* Mobile */
@media (max-width:600px){

    body.mtg-template-tm8 .tm8-hero-content h1{
        font-size:48px !important;
        line-height:.92 !important;
        letter-spacing:-.7px !important;
    }

    body.mtg-template-tm8 .tm8-hero-content .tm8-kicker,
    body.mtg-template-tm8 .tm8-hero .tm8-kicker{
        letter-spacing:1.4px !important;
    }

}

/* MTG_TM8_ARABIC_FONTS_END */


/* MTG_TM8_ARABIC_OPTION4_START
============================================================
TM8 - Opción 4
Título con aire árabe / caligráfico
============================================================
*/

/* TITULO HERO */
body.mtg-template-tm8 .tm8-hero-content h1{
    font-family:
        "Aref Ruqaa Ink",
        Georgia,
        "Times New Roman",
        serif !important;

    font-weight:700 !important;

    /* carácter fuerte y compacto */
    line-height:.90 !important;
    letter-spacing:-1.7px !important;

    /* conservar el tono premium del diseño */
    color:#21130c !important;
}

/* KICKER "PERFUMES ÁRABES" */
body.mtg-template-tm8 .tm8-hero-content .tm8-kicker,
body.mtg-template-tm8 .tm8-hero .tm8-kicker{
    font-family:
        "Cinzel Decorative",
        "Times New Roman",
        serif !important;

    font-weight:700 !important;
    letter-spacing:2.2px !important;
}

/* TEXTO NORMAL */
body.mtg-template-tm8 .tm8-hero-content p,
body.mtg-template-tm8 .tm8-hero-actions,
body.mtg-template-tm8 .tm8-hero-features{
    font-family:
        "Montserrat",
        Arial,
        sans-serif !important;
}


/* DESKTOP */
@media (min-width:1200px){

    body.mtg-template-tm8 .tm8-hero-content h1{
        font-size:clamp(68px,5.8vw,92px) !important;
        max-width:780px !important;
    }

}


/* TABLET */
@media (max-width:900px){

    body.mtg-template-tm8 .tm8-hero-content h1{
        line-height:.93 !important;
        letter-spacing:-1.2px !important;
    }

}


/* MOBILE */
@media (max-width:600px){

    body.mtg-template-tm8 .tm8-hero-content h1{
        font-size:48px !important;
        line-height:.92 !important;
        letter-spacing:-.8px !important;
    }

    body.mtg-template-tm8 .tm8-hero-content .tm8-kicker,
    body.mtg-template-tm8 .tm8-hero .tm8-kicker{
        letter-spacing:1.5px !important;
    }

}

/* MTG_TM8_ARABIC_OPTION4_END */


/* MTG_TM8_HERO_TWO_LINES_START
============================================================
TM8 - Hero desktop en 2 líneas
============================================================
*/

@media (min-width:1100px){

    body.mtg-template-tm8 .tm8-hero-content{
        max-width:900px !important;
    }

    body.mtg-template-tm8 .tm8-hero-content h1{
        max-width:900px !important;

        /*
         * Reducimos lo justo para que:
         * Fragancias para oler
         * como un Jeque
         */
        font-size:clamp(58px,4.55vw,78px) !important;
        line-height:.92 !important;
        letter-spacing:-1.2px !important;
    }

}

/* Tablet: mantiene adaptación natural */
@media (min-width:701px) and (max-width:1099px){

    body.mtg-template-tm8 .tm8-hero-content h1{
        max-width:760px !important;
        font-size:clamp(54px,6vw,72px) !important;
        line-height:.93 !important;
    }

}

/* Mobile: no forzar 2 líneas */
@media (max-width:700px){

    body.mtg-template-tm8 .tm8-hero-content h1{
        max-width:100% !important;
        font-size:46px !important;
        line-height:.94 !important;
    }

}

/* MTG_TM8_HERO_TWO_LINES_END */


/* MTG_TM8_HERO_BOLDER_START
============================================================
TM8 - Hero más grueso / bold
============================================================
*/

body.mtg-template-tm8 .tm8-hero-content h1{
    font-weight:700 !important;

    /*
     * Engrosado visual suave.
     * No cambia la familia tipográfica.
     */
    -webkit-text-stroke:.45px currentColor !important;

    text-shadow:
        .25px 0 0 currentColor,
        0 .25px 0 currentColor !important;
}

/* Desktop grande: un poco más de cuerpo */
@media (min-width:1100px){

    body.mtg-template-tm8 .tm8-hero-content h1{
        -webkit-text-stroke:.6px currentColor !important;
    }

}

/* Mobile: menos stroke para no empastar */
@media (max-width:700px){

    body.mtg-template-tm8 .tm8-hero-content h1{
        -webkit-text-stroke:.3px currentColor !important;
    }

}

/* MTG_TM8_HERO_BOLDER_END */


/* MTG_TM8_HERO_HEAVY_START
============================================================
TM8 - Título hero extra pesado
============================================================
*/

body.mtg-template-tm8 .tm8-hero-content h1{
    font-family:
        "Aref Ruqaa Ink",
        Georgia,
        serif !important;

    font-weight:700 !important;

    /*
     * Simulación Extra Bold.
     */
    -webkit-text-stroke:1.05px currentColor !important;

    text-shadow:
        0.45px 0 0 currentColor,
        -0.45px 0 0 currentColor,
        0 0.45px 0 currentColor,
        0 -0.45px 0 currentColor,
        0.35px 0.35px 0 currentColor,
        -0.35px -0.35px 0 currentColor !important;

    letter-spacing:-1.8px !important;
}


/* Desktop: todavía más contundente */
@media (min-width:1100px){

    body.mtg-template-tm8 .tm8-hero-content h1{
        -webkit-text-stroke:1.25px currentColor !important;

        text-shadow:
            .55px 0 0 currentColor,
            -.55px 0 0 currentColor,
            0 .55px 0 currentColor,
            0 -.55px 0 currentColor,
            .45px .45px 0 currentColor,
            -.45px -.45px 0 currentColor,
            .45px -.45px 0 currentColor,
            -.45px .45px 0 currentColor !important;
    }

}


/* Tablet */
@media (min-width:701px) and (max-width:1099px){

    body.mtg-template-tm8 .tm8-hero-content h1{
        -webkit-text-stroke:.95px currentColor !important;
    }

}


/* Mobile: pesado, pero sin cerrar demasiado las letras */
@media (max-width:700px){

    body.mtg-template-tm8 .tm8-hero-content h1{
        -webkit-text-stroke:.75px currentColor !important;
        letter-spacing:-1.2px !important;
    }

}

/* MTG_TM8_HERO_HEAVY_END */


/* MTG_TM8_SLIDER_SKIN_V2_START
============================================================
TM8 - HERO SLIDER PERFUMES ARABES
============================================================
*/

body.mtg-template-tm8
.tm8-hero-slider{
    width:100%;
    background:#f4e8d5;
}

body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-slide{
    min-height:610px;

    background:
        linear-gradient(
            135deg,
            #f8edda 0%,
            #f3e4cd 100%
        );
}

body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-grid{
    min-height:610px;
}

body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-content{
    position:relative;
    z-index:3;
}

body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-visual{
    position:relative;
}

body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-visual img{
    width:100%;
    height:100%;

    max-height:590px;

    object-fit:cover;

    border-radius:
        28px 0 0 28px;
}

body.mtg-template-tm8
.tm8-slider-chat{
    position:absolute;
    z-index:10;

    right:18px;
    bottom:22px;

    width:min(300px,90%);

    display:grid;
    gap:4px;

    padding:
        15px 52px
        15px 18px;

    border:
        1px solid
        rgba(155,101,31,.20);

    border-radius:16px;

    background:
        rgba(255,250,242,.96);

    box-shadow:
        0 15px 38px
        rgba(70,40,15,.15);
}

body.mtg-template-tm8
.tm8-slider-chat strong{
    color:#2c1a10;
}

body.mtg-template-tm8
.tm8-slider-chat small{
    color:#806d60;
}

body.mtg-template-tm8
.tm8-slider-chat b{
    position:absolute;

    right:13px;
    top:50%;

    width:34px;
    height:34px;

    display:grid;
    place-items:center;

    border-radius:50%;

    background:#9b651f;
    color:white;

    transform:
        translateY(-50%);
}


/*
 * Navegación acorde con TM8.
 */
body.mtg-template-tm8
.tm8-hero-slider
.mtg-hero-slider-v2__arrow{
    color:#9b651f;
    background:#fffaf2;
}

body.mtg-template-tm8
.tm8-hero-slider
.mtg-hero-slider-v2__dot{
    background:#d8bea0;
}

body.mtg-template-tm8
.tm8-hero-slider
.mtg-hero-slider-v2__dot.is-active{
    background:#9b651f;
}


@media(max-width:900px){

    body.mtg-template-tm8
    .tm8-hero-slider
    .tm8-hero-slide,

    body.mtg-template-tm8
    .tm8-hero-slider
    .tm8-hero-grid{
        min-height:auto;
    }
}


@media(max-width:700px){

    body.mtg-template-tm8
    .tm8-slider-chat{
        position:relative;

        right:auto;
        bottom:auto;

        width:100%;
        margin-top:15px;
    }

}

/* MTG_TM8_SLIDER_SKIN_V2_END */

/* MTG_TM8_SLIDER_FULL_BG_FINAL_START
============================================================
TM8 - SLIDER FULL BACKGROUND
Imagen completa + contenido encima
============================================================
*/


/* SLIDER */
body.mtg-template-tm8
.tm8-hero-slider{
    position:relative !important;
    width:100% !important;
    overflow:hidden !important;
    background:#160d08 !important;
}


/* CADA SLIDE ES UN BANNER COMPLETO */
body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-slide--full-bg{
    position:relative !important;
    isolation:isolate !important;

    min-height:650px !important;

    overflow:hidden !important;

    background-image:
        var(--tm8-slide-image) !important;

    background-size:
        cover !important;

    background-position:
        center center !important;

    background-repeat:
        no-repeat !important;
}


/* DEGRADADO PARA PODER LEER TEXTO */
body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-slide--full-bg::before{
    content:"" !important;

    position:absolute !important;
    z-index:0 !important;

    inset:0 !important;

    background:
        linear-gradient(
            90deg,
            rgba(16,9,5,.94) 0%,
            rgba(21,11,6,.86) 25%,
            rgba(25,13,7,.68) 46%,
            rgba(25,13,7,.30) 68%,
            rgba(25,13,7,.06) 100%
        ) !important;

    pointer-events:none !important;
}


body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-slide--full-bg::after{
    content:"" !important;

    position:absolute !important;
    z-index:0 !important;

    inset:0 !important;

    background:
        linear-gradient(
            0deg,
            rgba(10,5,2,.18) 0%,
            transparent 40%
        ) !important;

    pointer-events:none !important;
}


/* YA NO HAY CONCEPTO DE FOTO A LA DERECHA */
body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-visual{
    display:none !important;
}


/* CONTENIDO ENCIMA DE LA FOTO */
body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-grid{
    position:relative !important;
    z-index:2 !important;

    display:flex !important;
    align-items:center !important;

    min-height:650px !important;

    grid-template-columns:none !important;
}


/* BLOQUE DE CONTENIDO */
body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-content{
    position:relative !important;
    z-index:3 !important;

    width:min(760px,62%) !important;
    max-width:760px !important;

    padding:
        72px 0
        82px !important;
}


/* KICKER */
body.mtg-template-tm8
.tm8-hero-slider
.tm8-kicker{
    display:inline-flex !important;
    align-items:center !important;

    width:auto !important;

    margin:
        0 0 20px !important;

    padding:
        9px 16px !important;

    border:
        1px solid
        rgba(224,181,103,.52) !important;

    border-radius:
        999px !important;

    background:
        rgba(56,30,12,.42) !important;

    color:
        #e4b768 !important;

    backdrop-filter:
        blur(8px);

    font-family:
        "Cinzel Decorative",
        serif !important;

    font-size:
        13px !important;

    font-weight:
        700 !important;

    letter-spacing:
        1.5px !important;
}


/* TITULO */
body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-content h1{
    width:100% !important;
    max-width:760px !important;

    margin:
        0 0 20px !important;

    color:
        #fffaf2 !important;

    font-family:
        "Aref Ruqaa Ink",
        Georgia,
        serif !important;

    font-size:
        clamp(
            60px,
            5vw,
            86px
        ) !important;

    font-weight:
        700 !important;

    line-height:
        .93 !important;

    letter-spacing:
        -1.7px !important;

    -webkit-text-stroke:
        1.15px currentColor !important;

    text-shadow:
        0 4px 22px
        rgba(0,0,0,.42) !important;
}


body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-content h1 em{
    display:inline !important;

    color:
        #e1ad57 !important;

    font-style:
        normal !important;
}


/* TEXTO */
body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-content > p{
    width:100% !important;
    max-width:625px !important;

    margin:
        0 0 27px !important;

    color:
        rgba(255,250,242,.90) !important;

    font-size:
        17px !important;

    line-height:
        1.65 !important;

    text-shadow:
        0 2px 12px
        rgba(0,0,0,.34);
}


body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-content > p strong{
    color:
        #f0c778 !important;
}


/* BOTONES */
body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-actions{
    display:flex !important;
    flex-wrap:wrap !important;

    gap:12px !important;

    margin-top:
        6px !important;
}


body.mtg-template-tm8
.tm8-hero-slider
.tm8-primary-button{
    border:
        1px solid
        rgba(255,218,150,.28) !important;

    background:
        linear-gradient(
            135deg,
            #b97a27,
            #8c5317
        ) !important;

    color:#fff !important;

    box-shadow:
        0 12px 32px
        rgba(71,38,7,.38) !important;
}


body.mtg-template-tm8
.tm8-hero-slider
.tm8-secondary-button{
    border:
        1px solid
        rgba(255,255,255,.38) !important;

    background:
        rgba(255,255,255,.10) !important;

    color:#fff !important;

    backdrop-filter:
        blur(10px);
}


/* BENEFICIOS */
body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-features{
    display:flex !important;
    flex-wrap:wrap !important;

    gap:
        13px 20px !important;

    margin-top:
        28px !important;
}


body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-features article{
    display:flex !important;
    align-items:center !important;

    gap:8px !important;

    padding:0 !important;

    border:0 !important;

    background:
        transparent !important;

    box-shadow:
        none !important;
}


body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-features article > span{
    width:25px !important;
    height:25px !important;

    display:grid !important;
    place-items:center !important;

    border:
        1px solid
        rgba(226,183,104,.58) !important;

    border-radius:
        50% !important;

    background:
        rgba(43,23,8,.30) !important;

    color:
        #e7b868 !important;

    font-size:
        12px !important;
}


body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-features strong{
    color:
        rgba(255,255,255,.94) !important;

    font-size:
        13px !important;

    text-shadow:
        0 2px 8px
        rgba(0,0,0,.38);
}


/* FLECHAS */
body.mtg-template-tm8
.tm8-hero-slider
.mtg-hero-slider-v2__arrow{
    border:
        1px solid
        rgba(255,255,255,.30) !important;

    background:
        rgba(18,10,5,.48) !important;

    color:
        #fff !important;

    backdrop-filter:
        blur(9px);
}


body.mtg-template-tm8
.tm8-hero-slider
.mtg-hero-slider-v2__arrow:hover{
    border-color:
        #c68a34 !important;

    background:
        rgba(155,101,31,.90) !important;
}


/* DOTS */
body.mtg-template-tm8
.tm8-hero-slider
.mtg-hero-slider-v2__dots{
    background:
        rgba(18,10,5,.50) !important;

    backdrop-filter:
        blur(9px);
}


body.mtg-template-tm8
.tm8-hero-slider
.mtg-hero-slider-v2__dot{
    background:
        rgba(255,255,255,.46) !important;
}


body.mtg-template-tm8
.tm8-hero-slider
.mtg-hero-slider-v2__dot.is-active{
    background:
        #dfa64c !important;
}


/* TABLET */
@media(max-width:1100px){

    body.mtg-template-tm8
    .tm8-hero-slider
    .tm8-hero-slide--full-bg,

    body.mtg-template-tm8
    .tm8-hero-slider
    .tm8-hero-grid{
        min-height:
            590px !important;
    }

    body.mtg-template-tm8
    .tm8-hero-slider
    .tm8-hero-content{
        width:
            min(700px,72%) !important;
    }
}


/* MOBILE */
@media(max-width:700px){

    body.mtg-template-tm8
    .tm8-hero-slider
    .tm8-hero-slide--full-bg{
        min-height:
            620px !important;

        background-position:
            60% center !important;
    }


    body.mtg-template-tm8
    .tm8-hero-slider
    .tm8-hero-slide--full-bg::before{
        background:
            linear-gradient(
                0deg,
                rgba(15,7,3,.97) 0%,
                rgba(17,9,5,.82) 47%,
                rgba(17,9,5,.24) 100%
            ) !important;
    }


    body.mtg-template-tm8
    .tm8-hero-slider
    .tm8-hero-grid{
        min-height:
            620px !important;

        align-items:
            flex-end !important;
    }


    body.mtg-template-tm8
    .tm8-hero-slider
    .tm8-hero-content{
        width:
            100% !important;

        max-width:
            100% !important;

        padding:
            185px 0
            72px !important;
    }


    body.mtg-template-tm8
    .tm8-hero-slider
    .tm8-hero-content h1{
        font-size:
            clamp(
                44px,
                13vw,
                60px
            ) !important;

        line-height:
            .95 !important;
    }


    body.mtg-template-tm8
    .tm8-hero-slider
    .tm8-hero-content > p{
        font-size:
            15px !important;
    }

}


/* MTG_TM8_SLIDER_FULL_BG_FINAL_END */

/* MTG_TM8_SLIDER_LOOK_MTG_START
============================================================
TM8 - SLIDER VISUAL TIPO MITIENDAGRATIS.COM
============================================================
*/


/* ==========================================================
   1. EL SLIDER OCUPA TODO EL ANCHO
========================================================== */

body.mtg-template-tm8
.tm8-hero-slider{
    width:100% !important;
    max-width:none !important;

    margin:0 !important;
    padding:0 !important;

    border:0 !important;
    border-radius:0 !important;

    overflow:hidden !important;

    background:#160d08 !important;
}


/* ==========================================================
   2. QUITAR COMPLETAMENTE LA TARJETA CREMA DEL HERO
========================================================== */

body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-slide,

body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-slide--full-bg{
    position:relative !important;

    width:100% !important;
    max-width:none !important;

    min-height:650px !important;

    margin:0 !important;
    padding:0 !important;

    border:0 !important;
    border-radius:0 !important;

    box-shadow:none !important;

    overflow:hidden !important;

    background-color:#160d08 !important;

    background-image:
        var(--tm8-slide-image) !important;

    background-size:
        cover !important;

    background-position:
        center center !important;

    background-repeat:
        no-repeat !important;
}


/* ==========================================================
   3. EL GRID YA NO ES UNA CARD
========================================================== */

body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-grid{
    position:relative !important;
    z-index:3 !important;

    width:90% !important;
    max-width:1440px !important;

    min-height:650px !important;

    margin:0 auto !important;
    padding:0 !important;

    display:flex !important;
    align-items:center !important;

    background:
        transparent !important;

    border:0 !important;
    border-radius:0 !important;

    box-shadow:none !important;

    overflow:visible !important;
}


/* ==========================================================
   4. MATAR CUALQUIER FONDO CREMA INTERNO
========================================================== */

body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-grid::before,

body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-grid::after,

body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-content::before,

body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-content::after{
    background:
        transparent !important;

    box-shadow:
        none !important;
}


/* ==========================================================
   5. OVERLAY OSCURO COMO MITIENDAGRATIS
========================================================== */

body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-slide--full-bg::before{
    content:"" !important;

    position:absolute !important;
    z-index:1 !important;

    inset:0 !important;

    background:
        linear-gradient(
            90deg,
            rgba(10,8,8,.96) 0%,
            rgba(15,12,11,.90) 24%,
            rgba(20,16,14,.72) 44%,
            rgba(20,16,14,.44) 58%,
            rgba(20,16,14,.14) 76%,
            rgba(20,16,14,.02) 100%
        ) !important;

    pointer-events:none !important;
}


body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-slide--full-bg::after{
    content:"" !important;

    position:absolute !important;
    z-index:1 !important;

    inset:0 !important;

    background:
        linear-gradient(
            0deg,
            rgba(7,5,4,.24) 0%,
            transparent 38%
        ) !important;

    pointer-events:none !important;
}


/* ==========================================================
   6. TEXTO DIRECTAMENTE SOBRE LA FOTO
========================================================== */

body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-content{
    position:relative !important;
    z-index:5 !important;

    width:48% !important;
    max-width:690px !important;

    margin:0 !important;

    padding:
        68px 0
        72px !important;

    background:
        transparent !important;

    border:0 !important;
    border-radius:0 !important;

    box-shadow:none !important;
}


/* ==========================================================
   7. ETIQUETA
========================================================== */

body.mtg-template-tm8
.tm8-hero-slider
.tm8-kicker{
    display:inline-flex !important;

    width:auto !important;

    margin:
        0 0 22px !important;

    padding:
        9px 17px !important;

    border:
        1px solid
        rgba(216,166,80,.55) !important;

    border-radius:
        999px !important;

    background:
        rgba(29,19,12,.45) !important;

    color:
        #e5b55f !important;

    font-family:
        "Cinzel Decorative",
        serif !important;

    font-size:
        13px !important;

    font-weight:
        700 !important;

    letter-spacing:
        1.4px !important;

    backdrop-filter:
        blur(7px);
}


/* ==========================================================
   8. TITULO GRANDE COMO EL EJEMPLO
========================================================== */

body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-content h1{
    width:100% !important;
    max-width:680px !important;

    margin:
        0 0 22px !important;

    padding:0 !important;

    background:
        transparent !important;

    color:
        #fff !important;

    font-family:
        "Aref Ruqaa Ink",
        Georgia,
        serif !important;

    font-size:
        clamp(
            64px,
            5.4vw,
            92px
        ) !important;

    font-weight:
        700 !important;

    line-height:
        .90 !important;

    letter-spacing:
        -1.8px !important;

    -webkit-text-stroke:
        1.05px currentColor !important;

    text-shadow:
        0 4px 18px
        rgba(0,0,0,.35) !important;
}


body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-content h1 em{
    display:inline !important;

    color:
        #dfa64b !important;

    font-style:
        normal !important;
}


/* ==========================================================
   9. DESCRIPCION
========================================================== */

body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-content > p{
    max-width:
        610px !important;

    margin:
        0 0 28px !important;

    padding:0 !important;

    background:
        transparent !important;

    color:
        rgba(255,255,255,.88) !important;

    font-size:
        17px !important;

    line-height:
        1.6 !important;

    text-shadow:
        0 2px 8px
        rgba(0,0,0,.34);
}


/* ==========================================================
   10. BOTONES
========================================================== */

body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-actions{
    display:flex !important;
    flex-wrap:wrap !important;

    gap:12px !important;

    margin:
        0 !important;

    padding:0 !important;
}


body.mtg-template-tm8
.tm8-hero-slider
.tm8-primary-button{
    min-height:
        55px !important;

    padding:
        0 25px !important;

    display:inline-flex !important;
    align-items:center !important;

    border:
        1px solid
        rgba(255,210,135,.26) !important;

    border-radius:
        10px !important;

    background:
        linear-gradient(
            135deg,
            #c17a20,
            #9c5a12
        ) !important;

    color:
        #fff !important;

    box-shadow:
        0 13px 32px
        rgba(59,29,4,.34) !important;
}


body.mtg-template-tm8
.tm8-hero-slider
.tm8-secondary-button{
    min-height:
        55px !important;

    padding:
        0 25px !important;

    display:inline-flex !important;
    align-items:center !important;

    border:
        1px solid
        rgba(255,255,255,.34) !important;

    border-radius:
        10px !important;

    background:
        rgba(15,11,9,.18) !important;

    color:
        #fff !important;

    backdrop-filter:
        blur(9px);
}


/* ==========================================================
   11. BENEFICIOS ABAJO
========================================================== */

body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-features{
    display:flex !important;
    flex-wrap:wrap !important;

    gap:
        13px 22px !important;

    margin-top:
        30px !important;

    padding:0 !important;

    background:
        transparent !important;
}


body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-features article{
    width:auto !important;

    display:flex !important;
    align-items:center !important;

    gap:8px !important;

    margin:0 !important;
    padding:0 !important;

    border:0 !important;
    border-radius:0 !important;

    background:
        transparent !important;

    box-shadow:
        none !important;
}


body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-features article > span{
    width:27px !important;
    height:27px !important;

    display:grid !important;
    place-items:center !important;

    border:
        1px solid
        rgba(222,168,78,.62) !important;

    border-radius:
        50% !important;

    background:
        rgba(26,17,11,.42) !important;

    color:
        #e3ad50 !important;
}


body.mtg-template-tm8
.tm8-hero-slider
.tm8-hero-features strong{
    color:
        rgba(255,255,255,.90) !important;

    font-size:
        13px !important;

    text-shadow:
        0 2px 7px
        rgba(0,0,0,.42);
}


/* ==========================================================
   12. FLECHAS A LOS EXTREMOS
========================================================== */

body.mtg-template-tm8
.tm8-hero-slider
.mtg-hero-slider-v2__nav{
    padding:
        0 15px !important;
}


body.mtg-template-tm8
.tm8-hero-slider
.mtg-hero-slider-v2__arrow{
    width:
        42px !important;

    height:
        42px !important;

    border:
        1px solid
        rgba(255,255,255,.28) !important;

    background:
        rgba(13,10,8,.45) !important;

    color:
        #fff !important;

    backdrop-filter:
        blur(8px);
}


/* ==========================================================
   13. DOTS
========================================================== */

body.mtg-template-tm8
.tm8-hero-slider
.mtg-hero-slider-v2__dots{
    bottom:
        17px !important;

    background:
        rgba(12,9,7,.45) !important;

    backdrop-filter:
        blur(8px);
}


body.mtg-template-tm8
.tm8-hero-slider
.mtg-hero-slider-v2__dot{
    background:
        rgba(255,255,255,.45) !important;
}


body.mtg-template-tm8
.tm8-hero-slider
.mtg-hero-slider-v2__dot.is-active{
    background:
        #dca34b !important;
}


/* ==========================================================
   TABLET
========================================================== */

@media(max-width:1100px){

    body.mtg-template-tm8
    .tm8-hero-slider
    .tm8-hero-content{
        width:
            62% !important;
    }


    body.mtg-template-tm8
    .tm8-hero-slider
    .tm8-hero-slide--full-bg::before{
        background:
            linear-gradient(
                90deg,
                rgba(10,8,8,.95) 0%,
                rgba(16,13,11,.83) 50%,
                rgba(18,14,12,.28) 100%
            ) !important;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media(max-width:700px){

    body.mtg-template-tm8
    .tm8-hero-slider
    .tm8-hero-slide--full-bg{
        min-height:
            650px !important;

        background-position:
            62% center !important;
    }


    body.mtg-template-tm8
    .tm8-hero-slider
    .tm8-hero-grid{
        width:
            90% !important;

        min-height:
            650px !important;

        align-items:
            flex-end !important;
    }


    body.mtg-template-tm8
    .tm8-hero-slider
    .tm8-hero-slide--full-bg::before{
        background:
            linear-gradient(
                0deg,
                rgba(8,6,5,.97) 0%,
                rgba(13,10,8,.85) 50%,
                rgba(13,10,8,.20) 100%
            ) !important;
    }


    body.mtg-template-tm8
    .tm8-hero-slider
    .tm8-hero-content{
        width:
            100% !important;

        max-width:
            100% !important;

        padding:
            200px 0
            70px !important;
    }


    body.mtg-template-tm8
    .tm8-hero-slider
    .tm8-hero-content h1{
        font-size:
            clamp(
                46px,
                13vw,
                62px
            ) !important;
    }

}


/* MTG_TM8_SLIDER_LOOK_MTG_END */

/* MTG_TM8_RESPONSIVE_SPECIFICITY_V2_START */

/*
 * TM8 MOBILE FINAL
 *
 * Estas reglas usan mayor especificidad que las capas
 * responsive antiguas acumuladas dentro de tm8.css.
 *
 * Resultado móvil:
 * - Categorías: 2 columnas
 * - Productos: 2 columnas
 * - Beneficios: 2 columnas
 * - Marcas: 2 columnas
 * - Galería: 2 columnas
 * - Testimonios: 1 columna
 */

@media screen and (max-width: 767px) {

    /* =====================================================
       CATEGORIAS
       ===================================================== */

    html body.mtg-template-tm8 .tm8-category-grid,
    html body.mtg-template-tm8 .tm8-categories-grid,
    html body.mtg-template-tm8
        [data-core-section="categories"]
        .tm8-category-grid,
    html body.mtg-template-tm8
        [data-core-section="categories"]
        .tm8-categories-grid {
        display: grid !important;
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
    }


    /* =====================================================
       PRODUCTOS
       ===================================================== */

    html body.mtg-template-tm8 .tm8-product-grid,
    html body.mtg-template-tm8 .tm8-products-grid {
        display: grid !important;
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        align-items: stretch !important;
    }

    html body.mtg-template-tm8
        .tm8-product-grid > *,
    html body.mtg-template-tm8
        .tm8-products-grid > * {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html body.mtg-template-tm8
        .tm8-product-card {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }


    /* =====================================================
       BENEFICIOS
       ===================================================== */

    html body.mtg-template-tm8
        .tm8-benefits-grid {
        display: grid !important;
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    html body.mtg-template-tm8
        .tm8-benefits-grid > * {
        min-width: 0 !important;
        width: 100% !important;
    }


    /* =====================================================
       MARCAS
       ===================================================== */

    html body.mtg-template-tm8
        .tm8-brands-grid {
        display: grid !important;
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    html body.mtg-template-tm8
        .tm8-brands-grid > * {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }


    /* =====================================================
       GALERIA
       ===================================================== */

    html body.mtg-template-tm8
        .tm8-gallery-grid,
    html body.mtg-template-tm8
        .gallery__grid.tm8-gallery-grid {
        display: grid !important;
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    html body.mtg-template-tm8
        .tm8-gallery-grid > * {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }


    /* =====================================================
       TESTIMONIOS
       ===================================================== */

    html body.mtg-template-tm8
        .tm8-testimonials-grid,
    html body.mtg-template-tm8
        .tm8-testimonials-layout {
        display: grid !important;
        grid-template-columns:
            minmax(0, 1fr) !important;
        gap: 12px !important;
    }


    /* =====================================================
       CARDS PRODUCTO COMPACTAS COMO TM2
       ===================================================== */

    html body.mtg-template-tm8
        .tm8-product-card {
        border-radius: 16px !important;
        overflow: hidden !important;
    }

    html body.mtg-template-tm8
        .tm8-product-card img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    html body.mtg-template-tm8
        .tm8-product-card h3,
    html body.mtg-template-tm8
        .tm8-product-title {
        font-size: 13px !important;
        line-height: 1.22 !important;
    }

    html body.mtg-template-tm8
        .tm8-product-price,
    html body.mtg-template-tm8
        .tm8-product-sale-price {
        font-size: 15px !important;
    }

}


/*
 * Incluso en teléfonos angostos mantenemos
 * las 2 columnas, igual que TM2.
 */
@media screen and (max-width: 520px) {

    html body.mtg-template-tm8
        .tm8-product-grid,

    html body.mtg-template-tm8
        .tm8-products-grid,

    html body.mtg-template-tm8
        .tm8-category-grid,

    html body.mtg-template-tm8
        .tm8-categories-grid,

    html body.mtg-template-tm8
        [data-core-section="categories"]
        .tm8-category-grid,

    html body.mtg-template-tm8
        [data-core-section="categories"]
        .tm8-categories-grid,

    html body.mtg-template-tm8
        .tm8-brands-grid,

    html body.mtg-template-tm8
        .tm8-benefits-grid,

    html body.mtg-template-tm8
        .tm8-gallery-grid,

    html body.mtg-template-tm8
        .gallery__grid.tm8-gallery-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    html body.mtg-template-tm8
        .tm8-product-grid,

    html body.mtg-template-tm8
        .tm8-category-grid,

    html body.mtg-template-tm8
        .tm8-brands-grid,

    html body.mtg-template-tm8
        .tm8-benefits-grid,

    html body.mtg-template-tm8
        .tm8-gallery-grid {
        gap: 8px !important;
    }

}

/* MTG_TM8_RESPONSIVE_SPECIFICITY_V2_END */
