﻿/* =========================================================
   JONKUB — SISTEMA GLOBAL DE DISEÑO
   ========================================================= */

/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {
    --rm-red: #0B3DFF;
    --rm-red-dark: #002EB8;
    --rm-red-light: #fff1f1;

    --rm-black: #000000;
    --rm-black-soft: #1a1a1a;

    --rm-white: #ffffff;

    --rm-gray-50: #fafafa;
    --rm-gray-100: #f5f5f5;
    --rm-gray-200: #e7e7e7;
    --rm-gray-300: #d5d5d5;
    --rm-gray-400: #a8a8a8;
    --rm-gray-500: #777777;
    --rm-gray-600: #555555;

    --rm-border: #e5e5e5;

    --rm-success: #666666;
    --rm-warning: #666666;
    --rm-danger: #0B3DFF;

    --rm-radius-sm: 8px;
    --rm-radius-md: 12px;
    --rm-radius-lg: 18px;
    --rm-radius-xl: 24px;

    --rm-shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
    --rm-shadow-md: 0 8px 24px rgba(0, 0, 0, .08);
    --rm-shadow-lg: 0 16px 40px rgba(0, 0, 0, .12);

    --rm-container: 1400px;

    --rm-transition: .25s ease;

    --rm-font:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}


/* =========================================================
   2. RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* El drawer del carrito usa position:fixed + transform:translateX(100%); sin esto genera scroll horizontal fantasma. */
    overflow-x: clip;
}

body {
    margin: 0;
    padding: 0;
    /* El drawer del carrito usa position:fixed + transform:translateX(100%); sin esto genera scroll horizontal fantasma. */
    overflow-x: clip;

    font-family: var(--rm-font);

    color: var(--rm-black);

    background: var(--rm-white);

    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* =========================================================
   3. CONTENEDOR
   ========================================================= */

.rm-container {
    width: min(
        calc(100% - 64px),
        var(--rm-container)
    );

    margin-inline: auto;
}


/* =========================================================
   4. TOP BAR
   ========================================================= */

.rm-topbar {
    width: 100%;

    min-height: 38px;

    display: flex;
    align-items: center;

    background: var(--rm-black);

    color: var(--rm-white);

    font-size: 13px;
}

.rm-topbar-inner {
    width: min(
        calc(100% - 64px),
        var(--rm-container)
    );

    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.rm-topbar-left,
.rm-topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.rm-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    white-space: nowrap;
}

.rm-topbar-item svg,
.rm-topbar-item i {
    font-size: 15px;
}


/* =========================================================
   5. HEADER PRINCIPAL
   ========================================================= */

.rm-header {
    position: relative;
    z-index: 1000;

    background: var(--rm-white);

    border-bottom: 1px solid var(--rm-border);
}

.rm-header-main {
    min-height: 105px;

    width: min(
        calc(100% - 64px),
        var(--rm-container)
    );

    margin-inline: auto;

    display: grid;

    grid-template-columns:
        230px
        minmax(300px, 1fr)
        auto;

    align-items: center;

    gap: 35px;
}


/* =========================================================
   6. LOGO
   ========================================================= */

.rm-logo {
    display: flex;
    align-items: center;

    min-width: 0;
}

.rm-logo img {
    width: auto;
    max-width: 210px;
    max-height: 72px;

    object-fit: contain;
}

.rm-logo-text {
    font-size: 28px;
    font-weight: 900;

    letter-spacing: -1.5px;
}

.rm-logo-text span {
    color: var(--rm-red);
}


/* =========================================================
   7. BUSCADOR
   ========================================================= */

.rm-search {
    width: 100%;

    display: flex;
    align-items: stretch;

    min-height: 48px;

    border: 1px solid var(--rm-gray-300);

    border-radius: var(--rm-radius-md);

    overflow: hidden;

    background: var(--rm-white);

    transition:
        border-color var(--rm-transition),
        box-shadow var(--rm-transition);
}

.rm-search:focus-within {
    border-color: var(--rm-red);

    box-shadow:
        0 0 0 3px rgba(11, 61, 255, 0.1);
}

.rm-search-icon {
    width: 50px;

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

    color: var(--rm-gray-500);
}

.rm-search input {
    flex: 1;

    min-width: 0;

    border: 0;
    outline: 0;

    padding: 0 14px;

    background: transparent;

    color: var(--rm-black);
}

.rm-search input::placeholder {
    color: var(--rm-gray-400);
}

.rm-search button {
    border: 0;

    padding: 0 28px;

    background: var(--rm-red);

    color: white;

    font-weight: 700;

    transition:
        background var(--rm-transition);
}

.rm-search button:hover {
    background: var(--rm-red-dark);
}


/* =========================================================
   8. HEADER ACTIONS
   ========================================================= */

.rm-header-actions {
    display: flex;
    align-items: center;

    gap: 22px;
}

.rm-header-action {
    position: relative;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 8px;

    border: 0;

    background: transparent;

    color: var(--rm-black);

    transition:
        color var(--rm-transition);
}

.rm-header-action:hover {
    color: var(--rm-red);
}

.rm-header-action-icon {
    position: relative;

    width: 38px;
    height: 38px;

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

    font-size: 23px;
}

.rm-header-action-content {
    display: flex;
    flex-direction: column;

    line-height: 1.2;

    text-align: left;
}

.rm-header-action-title {
    font-size: 14px;
    font-weight: 800;
}

.rm-header-action-subtitle {
    margin-top: 4px;

    color: var(--rm-gray-500);

    font-size: 12px;
}

.rm-cart-count {
    position: absolute;

    top: -5px;
    right: -7px;

    min-width: 20px;
    height: 20px;

    padding: 0 5px;

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

    border-radius: 999px;

    background: var(--rm-red);

    color: white;

    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   9. NAVBAR
   ========================================================= */

.rm-navbar {
    width: 100%;

    background: var(--rm-white);

    border-top: 1px solid var(--rm-gray-100);

    border-bottom: 1px solid var(--rm-border);
}

.rm-navbar-inner {
    width: min(
        calc(100% - 64px),
        var(--rm-container)
    );

    min-height: 65px;

    margin-inline: auto;

    display: flex;
    align-items: center;

    gap: 8px;
}

.rm-nav-link {
    position: relative;

    min-height: 46px;

    padding: 0 22px;

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

    gap: 9px;

    border-radius: var(--rm-radius-md);

    font-size: 15px;
    font-weight: 700;

    color: var(--rm-black);

    transition:
        background var(--rm-transition),
        color var(--rm-transition);
}

.rm-nav-link:hover {
    color: var(--rm-red);

    background: var(--rm-red-light);
}

.rm-nav-link.active {
    background: var(--rm-red);

    color: white;
}

.rm-nav-link.active:hover {
    color: white;

    background: var(--rm-red-dark);
}


/* =========================================================
   10. HERO
   ========================================================= */

.rm-hero {
    position: relative;

    min-height: 500px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: var(--rm-black);
}

.rm-hero-background {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 0;
}

.rm-hero-content {
    position: relative;
    z-index: 2;

    width: min(
        calc(100% - 64px),
        var(--rm-container)
    );

    margin-inline: auto;

    padding: 70px 0;
}

.rm-hero-label {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 16px;

    color: var(--rm-red);

    font-size: 17px;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.rm-hero-label::before {
    content: "";

    width: 35px;
    height: 3px;

    background: var(--rm-red);
}

.rm-hero h1 {
    max-width: 700px;

    margin: 0 0 20px;

    color: white;

    font-size: clamp(48px, 6vw, 78px);

    line-height: .98;

    font-weight: 950;

    letter-spacing: -3px;
}

.rm-hero h1 span {
    color: var(--rm-red);
}

.rm-hero p {
    max-width: 620px;

    margin: 0 0 32px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 20px;

    line-height: 1.5;
}


/* =========================================================
   11. BOTONES
   ========================================================= */

.rm-btn {
    min-height: 50px;

    padding: 0 24px;

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

    gap: 10px;

    border: 1px solid transparent;

    border-radius: var(--rm-radius-md);

    font-size: 15px;
    font-weight: 800;

    transition:
        transform var(--rm-transition),
        background var(--rm-transition),
        border-color var(--rm-transition),
        box-shadow var(--rm-transition);
}

.rm-btn:hover {
    transform: translateY(-2px);
}

.rm-btn-primary {
    background: var(--rm-red);

    color: white;

    box-shadow:
        0 8px 20px rgba(11, 61, 255, 0.2);
}

.rm-btn-primary:hover {
    background: var(--rm-red-dark);
}

.rm-btn-secondary {
    background: white;

    color: var(--rm-black);

    border-color: var(--rm-gray-300);
}

.rm-btn-secondary:hover {
    border-color: var(--rm-red);

    color: var(--rm-red);
}

.rm-btn-dark {
    background: var(--rm-black);

    color: white;
}

.rm-btn-danger {
    background: var(--rm-danger);

    color: white;
}

.rm-btn-small {
    min-height: 40px;

    padding: 0 16px;

    font-size: 13px;
}


/* =========================================================
   12. HERO BUTTONS
   ========================================================= */

.rm-hero-buttons {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 14px;
}

.rm-hero .rm-btn-secondary {
    background: rgba(0,0,0,.2);

    color: white;

    border-color: rgba(255, 255, 255, 0.8);
}

.rm-hero .rm-btn-secondary:hover {
    background: white;

    color: var(--rm-black);
}


/* =========================================================
   13. BENEFICIOS
   ========================================================= */

.rm-benefits {
    padding: 24px 0;

    background: white;

    border-bottom: 1px solid var(--rm-border);
}

.rm-benefits-grid {
    width: min(
        calc(100% - 64px),
        var(--rm-container)
    );

    margin-inline: auto;

    display: grid;

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

    gap: 16px;
}

.rm-benefit {
    min-height: 90px;

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 16px;

    background: var(--rm-gray-50);

    border: 1px solid var(--rm-gray-200);

    border-radius: var(--rm-radius-md);

    transition:
        transform var(--rm-transition),
        box-shadow var(--rm-transition);
}

.rm-benefit:hover {
    transform: translateY(-2px);

    box-shadow: var(--rm-shadow-sm);
}

.rm-benefit-icon {
    flex: 0 0 52px;

    width: 52px;
    height: 52px;

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

    border-radius: 50%;

    background: var(--rm-red);

    color: white;

    font-size: 21px;
}

.rm-benefit strong {
    display: block;

    margin-bottom: 3px;

    font-size: 14px;
}

.rm-benefit span {
    color: var(--rm-gray-500);

    font-size: 12px;
}


/* =========================================================
   14. SECCIONES
   ========================================================= */

.rm-section {
    padding: 75px 0;
}

.rm-section-light {
    background: var(--rm-gray-50);
}

.rm-section-header {
    margin-bottom: 35px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;
}

.rm-section-heading {
    position: relative;

    padding-left: 46px;
}

.rm-section-heading::before {
    content: "";

    position: absolute;

    left: 0;
    top: 10px;

    width: 32px;
    height: 3px;

    background: var(--rm-red);
}

.rm-section-label {
    display: block;

    margin-bottom: 8px;

    color: var(--rm-red);

    font-size: 13px;
    font-weight: 900;

    text-transform: uppercase;
}

.rm-section-title {
    margin: 0;

    color: var(--rm-black);

    font-size: clamp(30px, 4vw, 45px);

    line-height: 1.05;

    letter-spacing: -1.5px;
}

.rm-section-description {
    max-width: 700px;

    margin: 12px 0 0;

    color: var(--rm-gray-500);

    font-size: 16px;
}


/* =========================================================
   15. CATEGORÍAS
   ========================================================= */

.rm-category-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 18px;
}

.rm-category-card {
    overflow: hidden;

    background: white;

    border: 1px solid var(--rm-gray-200);

    border-radius: var(--rm-radius-md);

    box-shadow: var(--rm-shadow-sm);

    transition:
        transform var(--rm-transition),
        box-shadow var(--rm-transition);
}

.rm-category-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--rm-shadow-md);
}

.rm-category-image {
    aspect-ratio: 1 / .8;

    overflow: hidden;

    background: var(--rm-gray-100);
}

.rm-category-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .4s ease;
}

.rm-category-card:hover .rm-category-image img {
    transform: scale(1.05);
}

.rm-category-body {
    padding: 16px;
}

.rm-category-title {
    margin: 0 0 7px;

    font-size: 15px;
    font-weight: 850;
}

.rm-category-link {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: var(--rm-red);

    font-size: 13px;
    font-weight: 800;
}


/* =========================================================
   16. PRODUCTOS
   ========================================================= */

.rm-product-grid {
    display: grid;

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

    gap: 22px;
}

.rm-product-card {
    overflow: hidden;

    background: white;

    border: 1px solid var(--rm-gray-200);

    border-radius: var(--rm-radius-md);

    box-shadow: var(--rm-shadow-sm);

    transition:
        transform var(--rm-transition),
        box-shadow var(--rm-transition);
}

.rm-product-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--rm-shadow-md);
}

.rm-product-image {
    position: relative;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: var(--rm-gray-100);
}

.rm-product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 20px;

    transition:
        transform .35s ease;
}

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

.rm-product-body {
    padding: 18px;
}

.rm-product-brand {
    margin-bottom: 5px;

    color: var(--rm-gray-500);

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
}

.rm-product-title {
    margin: 0 0 10px;

    font-size: 16px;
    font-weight: 800;

    line-height: 1.3;
}

.rm-product-price {
    margin-bottom: 15px;

    color: var(--rm-red);

    font-size: 21px;
    font-weight: 900;
}


/* =========================================================
   17. BADGES
   ========================================================= */

.rm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 27px;

    padding: 0 10px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;
}

.rm-badge-success {
    background: #F5F5F5;

    color: var(--rm-success);
}

.rm-badge-danger {
    background: #fff1f1;

    color: var(--rm-danger);
}

.rm-badge-warning {
    background: #F5F5F5;

    color: var(--rm-warning);
}

.rm-badge-red {
    background: var(--rm-red-light);

    color: var(--rm-red);
}


/* =========================================================
   18. OFERTA
   ========================================================= */

.rm-offer-grid {
    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 24px;
}

.rm-offer {
    position: relative;

    min-height: 240px;

    overflow: hidden;

    display: flex;
    align-items: center;

    padding: 45px;

    border-radius: var(--rm-radius-lg);

    background: var(--rm-gray-100);

    color: var(--rm-text);
}

.rm-offer-background {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 0;
}

.rm-offer-content {
    position: relative;

    z-index: 1;

    max-width: 600px;
}

.rm-offer-label {
    margin-bottom: 10px;

    color: var(--rm-red);

    font-size: 13px;
    font-weight: 900;

    text-transform: uppercase;
}

.rm-offer h3 {
    margin: 0 0 20px;

    font-size: clamp(28px, 4vw, 40px);

    line-height: 1.05;
}


/* =========================================================
   19. UBICACIÓN
   ========================================================= */

.rm-location {
    min-height: 240px;

    display: flex;
    align-items: center;

    padding: 35px;

    background: var(--rm-gray-50);

    border: 1px solid var(--rm-gray-200);

    border-radius: var(--rm-radius-lg);
}

.rm-location-icon {
    flex: 0 0 70px;

    width: 70px;
    height: 70px;

    margin-right: 25px;

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

    border-radius: 50%;

    background: white;

    color: var(--rm-red);

    font-size: 30px;

    box-shadow: var(--rm-shadow-sm);
}

.rm-location h3 {
    margin: 0 0 8px;

    font-size: 23px;
}

.rm-location p {
    margin: 0;

    color: var(--rm-gray-600);

    font-size: 17px;

    font-weight: 700;

    text-transform: uppercase;
}


/* =========================================================
   20. FORMULARIOS
   ========================================================= */

.rm-form {
    width: 100%;
}

.rm-form-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.rm-form-group {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.rm-form-group.full {
    grid-column: 1 / -1;
}

.rm-form-label {
    color: var(--rm-black);

    font-size: 14px;
    font-weight: 800;
}

.rm-form input,
.rm-form select,
.rm-form textarea {
    width: 100%;

    min-height: 48px;

    padding: 12px 14px;

    border: 1px solid var(--rm-gray-300);

    border-radius: var(--rm-radius-md);

    outline: none;

    background: white;

    color: var(--rm-black);

    transition:
        border-color var(--rm-transition),
        box-shadow var(--rm-transition);
}

.rm-form textarea {
    min-height: 140px;

    resize: vertical;
}

.rm-form input:focus,
.rm-form select:focus,
.rm-form textarea:focus {
    border-color: var(--rm-red);

    box-shadow:
        0 0 0 3px rgba(11, 61, 255, 0.1);
}


/* =========================================================
   21. TABLAS — PANEL ADMIN
   ========================================================= */

.rm-table-wrapper {
    width: 100%;

    overflow-x: auto;

    background: white;

    border: 1px solid var(--rm-gray-200);

    border-radius: var(--rm-radius-md);
}

.rm-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 700px;
}

.rm-table th {
    padding: 15px 18px;

    background: var(--rm-gray-100);

    color: var(--rm-black);

    font-size: 12px;

    text-align: left;

    text-transform: uppercase;

    letter-spacing: .3px;
}

.rm-table td {
    padding: 15px 18px;

    border-top: 1px solid var(--rm-gray-200);

    color: var(--rm-gray-600);

    font-size: 14px;
}

.rm-table tr:hover td {
    background: var(--rm-gray-50);
}


/* =========================================================
   22. CARDS GENERALES
   ========================================================= */

.rm-card {
    padding: 25px;

    background: white;

    border: 1px solid var(--rm-gray-200);

    border-radius: var(--rm-radius-md);

    box-shadow: var(--rm-shadow-sm);
}

.rm-card-title {
    margin: 0 0 10px;

    font-size: 20px;
    font-weight: 850;
}

.rm-card-description {
    margin: 0;

    color: var(--rm-gray-500);

    font-size: 14px;
}


/* =========================================================
   23. FOOTER
   ========================================================= */

.rm-footer {
    margin-top: 60px;

    padding: 60px 0 25px;

    background: var(--rm-black);

    color: white;
}

.rm-footer-grid {
    display: grid;

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

    gap: 45px;
}

.rm-footer-logo {
    margin-bottom: 15px;

    font-size: 28px;
    font-weight: 900;
}

.rm-footer-logo span {
    color: var(--rm-red);
}

.rm-footer-description {
    max-width: 400px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 14px;
}

.rm-footer-title {
    margin: 0 0 18px;

    font-size: 15px;
    font-weight: 850;
}

.rm-footer-links {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.rm-footer-links a {
    color: rgba(255, 255, 255, 0.65);

    font-size: 14px;

    transition:
        color var(--rm-transition);
}

.rm-footer-links a:hover {
    color: white;
}

.rm-footer-bottom {
    margin-top: 45px;

    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    color: rgba(255, 255, 255, 0.5);

    font-size: 12px;

    text-align: center;
}


/* =========================================================
   24. MENSAJES
   ========================================================= */

.rm-alert {
    padding: 14px 17px;

    border-radius: var(--rm-radius-md);

    font-size: 14px;
    font-weight: 600;
}

.rm-alert-success {
    background: #F5F5F5;
    color: #666666;
}

.rm-alert-error {
    background: #fff1f1;
    color: var(--red-dark);
}

.rm-alert-warning {
    background: #F5F5F5;
    color: #666666;
}

.rm-alert-info {
    background: #F5F5F5;
    color: #666666;
}


/* =========================================================
   25. LOADING
   ========================================================= */

.rm-loading {
    min-height: 200px;

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

    color: var(--rm-gray-500);
}

.rm-spinner {
    width: 35px;
    height: 35px;

    border: 3px solid var(--rm-gray-200);

    border-top-color: var(--rm-red);

    border-radius: 50%;

    animation: rm-spin .8s linear infinite;
}

@keyframes rm-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   26. EMPTY STATE
   ========================================================= */

.rm-empty {
    padding: 60px 25px;

    text-align: center;

    color: var(--rm-gray-500);
}

.rm-empty-icon {
    margin-bottom: 15px;

    font-size: 45px;

    color: var(--rm-gray-300);
}

.rm-empty h3 {
    margin: 0 0 8px;

    color: var(--rm-black);

    font-size: 20px;
}


/* =========================================================
   27. DARK MODE
   ========================================================= */

html[data-theme="dark"] {
    --rm-white: #111111111;

    --rm-gray-50: #000000;
    --rm-gray-100: #1a1a1a;
    --rm-gray-200: #2a2a2a;
    --rm-gray-300: #3a3a3a;

    --rm-gray-400: #666666;
    --rm-gray-500: #666666;
    --rm-gray-600: #CCCCCC;

    --rm-border: #2a2a2a;

    --rm-black: #E5E5E5;

    background: #000000;

    color: #E5E5E5;
}

html[data-theme="dark"] .rm-header,
html[data-theme="dark"] .rm-navbar,
html[data-theme="dark"] .rm-benefits {
    background: #111111111;
}

html[data-theme="dark"] .rm-card,
html[data-theme="dark"] .rm-product-card,
html[data-theme="dark"] .rm-category-card,
html[data-theme="dark"] .rm-table-wrapper,
html[data-theme="dark"] .rm-location {
    background: #000000;
}

html[data-theme="dark"] .rm-search {
    background: #000000;
}

html[data-theme="dark"] .rm-search input {
    color: white;
}

html[data-theme="dark"] .rm-nav-link,
html[data-theme="dark"] .rm-header-action {
    color: #E5E5E5;
}

html[data-theme="dark"] .rm-section-title,
html[data-theme="dark"] .rm-card-title,
html[data-theme="dark"] .rm-product-title,
html[data-theme="dark"] .rm-category-title,
html[data-theme="dark"] .rm-location h3 {
    color: #E5E5E5;
}

html[data-theme="dark"] .rm-btn-secondary {
    background: #000000;

    color: white;

    border-color: #3a3a3a;
}


/* =========================================================
   28. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .rm-header-main {
        grid-template-columns: 190px 1fr auto;

        gap: 20px;
    }

    .rm-logo img {
        max-width: 180px;
    }

    .rm-header-action-content {
        display: none;
    }

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

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

    .rm-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rm-offer-grid {
        grid-template-columns: 1fr;
    }

    .rm-footer-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================================================
   29. RESPONSIVE — TABLET PEQUEÑA
   ========================================================= */

@media (max-width: 800px) {

    .rm-container,
    .rm-header-main,
    .rm-navbar-inner,
    .rm-topbar-inner,
    .rm-hero-content,
    .rm-benefits-grid {
        width: min(
            calc(100% - 32px),
            var(--rm-container)
        );
    }

    .rm-topbar {
        display: none;
    }

    .rm-header-main {
        min-height: auto;

        padding: 15px 0;

        grid-template-columns: 1fr auto;

        grid-template-areas:
            "logo actions"
            "search search";

        gap: 15px;
    }

    .rm-logo {
        grid-area: logo;
    }

    .rm-header-actions {
        grid-area: actions;
    }

    .rm-search {
        grid-area: search;
    }

    .rm-navbar-inner {
        overflow-x: auto;

        justify-content: flex-start;

        scrollbar-width: none;
    }

    .rm-navbar-inner::-webkit-scrollbar {
        display: none;
    }

    .rm-nav-link {
        flex: 0 0 auto;
    }

    .rm-hero {
        min-height: 520px;
    }

    .rm-hero h1 {
        font-size: clamp(42px, 9vw, 65px);
    }

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

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

    .rm-section {
        padding: 55px 0;
    }
}


/* =========================================================
   30. RESPONSIVE — MÓVIL
   ========================================================= */

@media (max-width: 550px) {

    .rm-container,
    .rm-header-main,
    .rm-navbar-inner,
    .rm-hero-content,
    .rm-benefits-grid {
        width: calc(100% - 24px);
    }

    .rm-header-main {
        grid-template-columns: 1fr auto;

        gap: 12px;
    }

    .rm-logo img {
        max-width: 150px;
        max-height: 55px;
    }

    .rm-header-actions {
        gap: 5px;
    }

    .rm-header-action {
        padding: 5px;
    }

    .rm-header-action-icon {
        width: 34px;
        height: 34px;
    }

    .rm-search {
        min-height: 46px;
    }

    .rm-search button {
        padding: 0 15px;
    }

    .rm-navbar-inner {
        min-height: 58px;
    }

    .rm-nav-link {
        padding: 0 15px;

        font-size: 13px;
    }

    .rm-hero {
        min-height: 570px;

        background: var(--rm-black);
    }

    .rm-hero-content {
        padding: 55px 0;
    }

    .rm-hero h1 {
        font-size: 46px;

        letter-spacing: -2px;
    }

    .rm-hero p {
        font-size: 17px;
    }

    .rm-hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .rm-hero-buttons .rm-btn {
        width: 100%;
    }

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

    .rm-category-grid {
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .rm-product-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .rm-section-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .rm-section-title {
        font-size: 31px;
    }

    .rm-offer {
        min-height: 300px;

        padding: 30px 22px;
    }

    .rm-location {
        min-height: 180px;

        padding: 25px;

        align-items: flex-start;
    }

    .rm-location-icon {
        flex-basis: 55px;

        width: 55px;
        height: 55px;

        margin-right: 15px;
    }

    .rm-location h3 {
        font-size: 18px;
    }

    .rm-location p {
        font-size: 15px;
    }

    .rm-form-grid {
        grid-template-columns: 1fr;
    }

    .rm-form-group.full {
        grid-column: auto;
    }

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


/* =========================================================
   31. ACCESIBILIDAD
   ========================================================= */

:focus-visible {
    outline: 3px solid rgba(11, 61, 255, 0.35);

    outline-offset: 2px;
}


/* =========================================================
   32. UTILIDADES
   ========================================================= */

.rm-hidden {
    display: none !important;
}

.rm-text-center {
    text-align: center;
}

.rm-flex {
    display: flex;
}

.rm-flex-center {
    display: flex;

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

.rm-gap-10 {
    gap: 10px;
}

.rm-gap-20 {
    gap: 20px;
}

.rm-mt-20 {
    margin-top: 20px;
}

.rm-mb-20 {
    margin-bottom: 20px;
}

.rm-w-full {
    width: 100%;
}
