    :root {
        --bg: #f6f7f9;
        --surface: #ffffff;
        --surface-2: #f0f2f5;
        --border: #e3e6ec;
        --border-dark: #c8cdd8;

        --ink: #0f1117;
        --ink-2: #3a3f4d;
        --ink-3: #6b7385;
        --ink-4: #9ba3b4;

        --mint: #0f8e9c;
        --mint-lt: #e6faf4;
        --mint-mid: #027C89;
        --blue: #0057ff;
        --blue-lt: #eef3ff;

        --radius-sm: 6px;
        --radius-md: 10px;
        --radius-lg: 16px;

        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
        --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);

        --ff: 'Inter', sans-serif;
        --ff-mono: 'DM Mono', monospace;
        --nav-h: 60px;
        --side-w: 236px;
        --ease: cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    html {
        scroll-behavior: smooth;
    }

    body {
        background: var(--bg);
        color: var(--ink);
        font-family: var(--ff);
        font-size: 14px;
        line-height: 1.5;
        -webkit-font-smoothing: antialiased;
    }

    /* ── NAVBAR ─────────────────────────── */
    .navbar {
        position: sticky;
        top: 0;
        z-index: 100;
        height: var(--nav-h);
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 28px;
    }

    .navbar-left {
        display: flex;
        align-items: center;
        gap: 32px;
    }

    .logo {
        font-size: 18px;
        font-weight: 700;
        letter-spacing: -0.03em;
        color: var(--ink);
    }

    .logo span {
        color: var(--mint);
    }

    .nav-links {
        display: flex;
        gap: 4px;
        list-style: none;
    }

    .nav-links a {
        font-size: 13px;
        font-weight: 500;
        color: var(--ink-3);
        text-decoration: none;
        padding: 5px 10px;
        border-radius: var(--radius-sm);
        transition: background 0.15s, color 0.15s;
    }

    .nav-links a:hover {
        background: var(--surface-2);
        color: var(--ink);
    }

    .navbar-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .btn-ghost {
        padding: 7px 14px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
        background: var(--surface);
        font-family: var(--ff);
        font-size: 13px;
        font-weight: 500;
        color: var(--ink-2);
        cursor: pointer;
        text-decoration: none;
        transition: border-color 0.15s, box-shadow 0.15s;
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .btn-ghost:hover {
        border-color: var(--border-dark);
        box-shadow: var(--shadow-sm);
    }

    .btn-primary {
        padding: 7px 16px;
        border-radius: var(--radius-sm);
        border: none;
        background: var(--mint);
        font-family: var(--ff);
        font-size: 13px;
        font-weight: 600;
        color: #fff;
        cursor: pointer;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 7px;
        transition: background 0.15s, box-shadow 0.15s;
    }

    .btn-primary:hover {
        background: var(--mint-mid);
        box-shadow: 0 4px 12px rgba(0, 200, 150, 0.3);
    }

    /* ── HERO ────────────────────────────── */
    .hero {
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 56px 28px 52px;
        display: grid;
        grid-template-columns: 1fr 420px;
        gap: 48px;
        align-items: center;
        max-width: 1280px;
        margin: 0 auto;
        width: 100%;
    }

    /* full-width border */
    .hero-wrap {
        background: var(--surface);
        border-bottom: 1px solid var(--border);
    }

    .hero-wrap .hero {
        border-bottom: none;
    }

    .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 10px 4px 6px;
        background: var(--mint-lt);
        border: 1px solid rgba(0, 200, 150, 0.25);
        border-radius: 100px;
        font-size: 11px;
        font-weight: 600;
        color: var(--mint-mid);
        margin-bottom: 20px;
    }

    .hero-badge i {
        width: 5px;
        height: 5px;
        background: var(--mint);
        border-radius: 50%;
        display: inline-block;
        animation: pulse 2s ease infinite;
    }

    @keyframes pulse {

        0%,
        100% {
            box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.5);
        }

        50% {
            box-shadow: 0 0 0 5px rgba(0, 200, 150, 0);
        }
    }

    .hero h1 {
        font-size: clamp(28px, 3.5vw, 44px);
        font-weight: 700;
        letter-spacing: -0.03em;
        line-height: 1.1;
        color: var(--ink);
        margin-bottom: 16px;
    }

    .hero h1 em {
        font-style: normal;
        background: linear-gradient(135deg, var(--mint) 0%, #00a8c8 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .hero h2 em {
        font-style: normal;
        background: linear-gradient(135deg, var(--mint) 0%, #00a8c8 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.7;
        color: var(--ink-3);
        max-width: 440px;
        margin-bottom: 28px;
    }

    .hero-actions {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .hero-stats {
        display: flex;
        gap: 28px;
        margin-top: 36px;
        padding-top: 28px;
        border-top: 1px solid var(--border);
    }

    .stat-item {}

    .stat-value {
        font-size: 22px;
        font-weight: 700;
        letter-spacing: -0.03em;
        color: var(--ink);
    }

    .stat-label {
        font-size: 11px;
        color: var(--ink-4);
        font-weight: 500;
        margin-top: 2px;
    }

    .hero-visual {
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        overflow: hidden;
        aspect-ratio: 4/3;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .hero-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.9;
        border-radius: var(--radius-lg);
    }

    /* Floating chip on hero image */
    .hero-chip {
        position: absolute;
        bottom: 16px;
        left: 16px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(8px);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 10px 14px;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: var(--shadow-md);
    }

    .hero-chip-dot {
        width: 8px;
        height: 8px;
        background: var(--mint);
        border-radius: 50%;
        flex-shrink: 0;
    }

    .hero-chip-text {
        font-size: 11px;
        font-weight: 600;
        color: var(--ink-2);
    }

    .hero-chip-sub {
        font-size: 10px;
        color: var(--ink-4);
    }

    /* ── LAYOUT ──────────────────────────── */
    .layout {
        display: grid;
        grid-template-columns: var(--side-w) 1fr;
        max-width: 1280px;
        margin: 0 auto;
        min-height: calc(100vh - var(--nav-h) - 300px);
    }

    /* ── SIDEBAR ─────────────────────────── */
    .sidebar {
        padding: 24px 0;
        position: sticky;
        top: var(--nav-h);
        height: calc(100vh - var(--nav-h));
        overflow-y: auto;
        border-right: 1px solid var(--border);
    }

    .sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 4px;
    }

    .sidebar-section {
        margin-bottom: 4px;
    }

    .sidebar-label {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--ink-4);
        padding: 0 16px 8px;
        display: block;
    }

    .filter-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 7px 16px;
        background: none;
        border: none;
        font-family: var(--ff);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--ink-3);
        cursor: pointer;
    }

    .filter-toggle .arrow {
        font-size: 9px;
        color: var(--ink-4);
    }

    .filter-list {
        list-style: none;
        padding-bottom: 8px;
    }

    .filter-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 16px;
        font-size: 13px;
        color: var(--ink-3);
        cursor: pointer;
        border-radius: 0;
        transition: background 0.12s, color 0.12s;
        position: relative;
    }

    .filter-item::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--border-dark);
        flex-shrink: 0;
        transition: background 0.12s;
    }

    .filter-item:hover {
        background: var(--mint-lt);
        color: var(--ink);
    }

    .filter-item:hover::before {
        background: var(--mint);
    }

    .filter-item.active {
        color: var(--mint-mid);
        font-weight: 600;
        background: var(--mint-lt);
    }

    .filter-item.active::before {
        background: var(--mint);
    }

    .sidebar-divider {
        height: 1px;
        background: var(--border);
        margin: 12px 16px;
    }

    /* ── CONTENT ─────────────────────────── */
    .content {
        padding: 24px 28px 80px;
    }

    .content-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        gap: 12px;
    }

    .search-wrap {
        position: relative;
        flex: 1;
        max-width: 320px;
    }

    .search-icon {
        position: absolute;
        left: 11px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--ink-4);
        pointer-events: none;
    }

    .search-input {
        width: 100%;
        padding: 8px 12px 8px 34px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: var(--surface);
        font-family: var(--ff);
        font-size: 13px;
        color: var(--ink);
        outline: none;
        transition: border-color 0.15s, box-shadow 0.15s;
    }

    .search-input::placeholder {
        color: var(--ink-4);
    }

    .search-input:focus {
        border-color: var(--mint);
        box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.12);
    }

    .content-bar-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .result-count {
        font-size: 12px;
        color: var(--ink-4);
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .chip-row {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        margin-bottom: 20px;
        align-items: center;
    }

    .chip {
        padding: 4px 12px;
        border-radius: 100px;
        border: 1px solid var(--border);
        font-size: 12px;
        font-weight: 500;
        color: var(--ink-3);
        cursor: pointer;
        background: var(--surface);
        transition: all 0.15s;
        user-select: none;
    }

    .chip:hover {
        border-color: var(--mint);
        color: var(--mint-mid);
    }

    .chip.active {
        background: var(--mint);
        border-color: var(--mint);
        color: #fff;
        font-weight: 600;
    }

    .filter-btn {
        display: none;
        padding: 5px 12px;
        border-radius: 100px;
        border: 1px solid var(--border);
        background: var(--surface);
        font-family: var(--ff);
        font-size: 12px;
        font-weight: 500;
        color: var(--ink-3);
        cursor: pointer;
        gap: 6px;
        align-items: center;
    }

    /* ── GRID ────────────────────────────── */
    .grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        overflow: hidden;
        cursor: pointer;
        transition: box-shadow 0.2s var(--ease), border-color 0.2s, transform 0.2s var(--ease);
        animation: fadeUp 0.4s var(--ease) both;
    }

    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .card:nth-child(1) {
        animation-delay: .03s
    }

    .card:nth-child(2) {
        animation-delay: .06s
    }

    .card:nth-child(3) {
        animation-delay: .09s
    }

    .card:nth-child(4) {
        animation-delay: .12s
    }

    .card:nth-child(5) {
        animation-delay: .15s
    }

    .card:nth-child(6) {
        animation-delay: .18s
    }

    .card:nth-child(7) {
        animation-delay: .21s
    }

    .card:nth-child(8) {
        animation-delay: .24s
    }

    .card:hover {
        border-color: var(--mint);
        box-shadow: var(--shadow-md), 0 0 0 3px rgba(0, 200, 150, 0.08);
        transform: translateY(-2px);
    }

    .image-wrapper {
        width: 100%;
        aspect-ratio: 1;
        background: var(--bg);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        overflow: hidden;
        position: relative;
    }

    .image-wrapper img {
        width: 75%;
        height: 75%;
        object-fit: contain;
        transition: transform 0.3s var(--ease);
    }

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

    /* Mint tag on hover */
    .card-tag {
        position: absolute;
        top: 10px;
        right: 10px;
        background: var(--mint-lt);
        color: var(--mint-mid);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.08em;
        padding: 2px 7px;
        border-radius: 100px;
        border: 1px solid rgba(0, 200, 150, 0.2);
        opacity: 0;
        transform: translateY(-4px);
        transition: opacity 0.2s, transform 0.2s;
    }

    .card:hover .card-tag {
        opacity: 1;
        transform: translateY(0);
    }

    .card-body {
        padding: 14px 14px 16px;
    }

    .card h3 {
        font-size: 13px;
        font-weight: 600;
        color: var(--ink);
        line-height: 1.35;
        margin-bottom: 5px;
        letter-spacing: -0.01em;
    }

    .card .brand {
        font-family: var(--ff-mono);
        font-size: 10px;
        color: var(--ink-4);
        letter-spacing: 0.04em;
        margin-bottom: 8px;
    }

    .card .category {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 10px;
        font-weight: 500;
        color: var(--ink-3);
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 2px 7px;
    }

    /* ── MODAL ───────────────────────────── */
    .modal {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(15, 17, 23, 0.5);
        backdrop-filter: blur(6px);
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .modal.open {
        display: flex;
    }

    .modal-box {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        max-width: 780px;
        width: 100%;
        max-height: 90vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: var(--shadow-lg);
        animation: modalIn 0.25s var(--ease);
    }

    @keyframes modalIn {
        from {
            opacity: 0;
            transform: scale(0.97) translateY(12px);
        }

        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }

    .modal-header {
        padding: 16px 20px;
        border-bottom: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
    }

    .modal-header-left {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .modal-header-dot {
        width: 8px;
        height: 8px;
        background: var(--mint);
        border-radius: 50%;
    }

    .modal-header span {
        font-size: 12px;
        font-weight: 600;
        color: var(--ink-3);
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .close-modal {
        width: 28px;
        height: 28px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
        background: var(--surface);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: var(--ink-3);
        cursor: pointer;
        transition: background 0.12s, color 0.12s;
        line-height: 1;
    }

    .close-modal:hover {
        background: var(--surface-2);
        color: var(--ink);
    }

    .modal-body {
        display: grid;
        grid-template-columns: 1fr 1.1fr;
        overflow-y: auto;
        flex: 1;
    }

    .modal-image-wrapper {
        position: relative;
        background: var(--bg);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 48px 40px;
        border-right: 1px solid var(--border);
    }

    .modal-image-wrapper img {
        max-width: 100%;
        max-height: 240px;
        object-fit: contain;
    }

    .modal-info {
        padding: 28px 28px 32px;
        display: flex;
        flex-direction: column;
    }

    .modal-info h2 {
        font-size: 20px;
        font-weight: 700;
        letter-spacing: -0.02em;
        line-height: 1.2;
        color: var(--ink);
        margin-bottom: 6px;
    }

    #modalMarca {
        font-family: var(--ff-mono);
        font-size: 11px;
        color: var(--ink-4);
        margin-bottom: 12px;
    }

    #modalCategoria {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 11px;
        font-weight: 600;
        color: var(--mint-mid);
        background: var(--mint-lt);
        border: 1px solid rgba(0, 200, 150, 0.2);
        border-radius: 6px;
        padding: 3px 10px;
        margin-bottom: 24px;
        width: fit-content;
    }

    .modal-divider {
        height: 1px;
        background: var(--border);
        margin-bottom: 16px;
    }

    .modal-field-label {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--ink-4);
        margin-bottom: 8px;
    }

    #modalCaracteristicas {
        font-size: 13px;
        line-height: 1.75;
        color: var(--ink-2);
        flex: 1;
    }

    .modal-footer {
        margin-top: 24px;
        padding-top: 20px;
        border-top: 1px solid var(--border);
    }

    .btn-wa {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        border-radius: var(--radius-sm);
        background: var(--mint);
        color: #fff;
        font-family: var(--ff);
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.15s, box-shadow 0.15s;
    }

    .btn-wa:hover {
        background: var(--mint-mid);
        box-shadow: 0 4px 14px rgba(0, 200, 150, 0.35);
    }

    .image-wrapper::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50%;
        /* ajusta el tamaño del logo */
        height: 50%;
        background-image: url('/static/img/marca-agua.png');
        /* ← tu ruta de logo */
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        opacity: 0.90;
        /* 0.08 más sutil, 0.20 más visible */
        pointer-events: none;
        z-index: 3;
    }

    .modal-image-wrapper::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 45%;
        height: 45%;
        background-image: url('/static/img/marca-agua.png');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        opacity: 0.95;
        pointer-events: none;
        z-index: 3;
    }

    /* ── RESPONSIVE ──────────────────────── */
    @media (max-width: 900px) {
        .layout {
            grid-template-columns: 1fr;
        }

        .sidebar {
            display: none;
            position: fixed;
            left: 0;
            top: var(--nav-h);
            width: 260px;
            height: calc(100vh - var(--nav-h));
            z-index: 150;
            background: var(--surface);
            box-shadow: var(--shadow-lg);
            border-right: 1px solid var(--border);
        }

        .sidebar.open {
            display: block;
        }

        .filter-btn {
            display: inline-flex;
        }

        .hero {
            grid-template-columns: 1fr;
        }

        .hero-visual {
            display: none;
        }

        .modal-body {
            grid-template-columns: 1fr;
        }

        .modal-image-wrapper {
            border-right: none;
            border-bottom: 1px solid var(--border);
            padding: 32px;
        }

        .nav-links {
            display: none;
        }
    }

    @media (max-width: 600px) {
        .content {
            padding: 16px 16px 60px;
        }

        .hero {
            padding: 32px 16px;
        }
    }



/* ══════════════════════════════════════════════════════════════════
   PEGA ESTE BLOQUE COMPLETO AL FINAL DE static/css/styles.css
   (reemplaza cualquier bloque anterior que hayas pegado)
   ══════════════════════════════════════════════════════════════════ */

/* ── Logo subtítulo ──────────────────────────────────────────────── */
.logo-sub {
    font-size: 11px;
    font-weight: 400;
    color: var(--ink-4);
    letter-spacing: 0.04em;
    margin-left: 4px;
}

/* ── Pie de página ───────────────────────────────────────────────── */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 20px 28px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-4);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── Imagen uniforme 1:1 en la tarjeta ───────────────────────────── */
.image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;        /* todas del mismo alto */
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;         /* no recorta, mantiene proporción */
    transition: transform 0.3s var(--ease);
}

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

/* Marca de agua en tarjeta */
.image-wrapper::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50%; height: 50%;
    background-image: url('/static/img/marca-agua.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.90;
    pointer-events: none;
    z-index: 3;
}

/* Tag "Ver detalle" */
.card-tag {
    position: absolute;
    top: 10px; right: 10px;
    background: var(--mint-lt);
    color: var(--mint-mid);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    border-radius: 100px;
    border: 1px solid rgba(0,200,150,0.2);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 4;
    pointer-events: none;
}

.card:hover .card-tag {
    opacity: 1;
    transform: translateY(0);
}

/* ── Carrusel del MODAL ──────────────────────────────────────────── */
.modal-carousel {
    position: relative;
    background: var(--bg);
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 280px;
}

.modal-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s var(--ease);
}

.modal-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-slide img {
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
}

/* Flechas del modal */
.modal-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--ink-2);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    padding: 0;
}

.modal-carousel-btn:hover {
    background: white;
    border-color: var(--mint);
    color: var(--mint-mid);
}

.modal-prev { left: 10px; }
.modal-next { right: 10px; }

/* Dots del modal */
.modal-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.modal-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.1);
    transition: background 0.2s, transform 0.2s;
}

.modal-dot.active {
    background: var(--mint);
    border-color: var(--mint);
    transform: scale(1.3);
}

/* Marca de agua en modal */
.modal-watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 45%; height: 45%;
    background-image: url('/static/img/marca-agua.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.95;
    pointer-events: none;
    z-index: 5;
}
/* Capa invisible encima de la imagen que bloquea el drag */
.image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    cursor: pointer;
}
/*
=================================== MARCAS.HTML =================================================
*/
h1{
    text-align: center;
    margin-top: 40px;
}
/* ── MARCAS ───────────────────────────── */

/* ── TÍTULO ───────────────────────────── */

.titulo-marcas{
    text-align: center;
    margin: 50px 0 35px;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* ── GRID ─────────────────────────────── */

.grid-marcas{
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 0 28px 70px;

    display: grid;

    /* automático y responsive */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

    gap: 18px;
}

/* ── RECUADRO ─────────────────────────── */

.marca-box{

    background: var(--surface);

    border: 1px solid var(--border);

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

    min-height: 120px;

    padding: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        transform 0.2s var(--ease),
        border-color 0.2s,
        box-shadow 0.2s;
}

/* ── LOGO ─────────────────────────────── */

.marca-box img{

    width: 100%;

    height: 70px;

    object-fit: contain;

    display: block;
}

/* ── TEXTO FALLBACK ───────────────────── */

.marca-box span{

    font-size: 14px;

    font-weight: 600;

    color: var(--ink-2);

    text-align: center;
}

/* ── HOVER ────────────────────────────── */

.marca-box:hover{

    border-color: var(--mint);

    transform: translateY(-3px);

    box-shadow:
        var(--shadow-md),
        0 0 0 3px rgba(0, 200, 150, 0.08);
}

/* ── TABLET ───────────────────────────── */

@media (max-width: 900px){

    .grid-marcas{

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

/* ── MÓVIL ────────────────────────────── */

@media (max-width: 600px){

    .grid-marcas{

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

        padding: 0 16px 50px;
    }

    .marca-box{

        min-height: 95px;

        padding: 12px;
    }

    .marca-box img{

        height: 50px;
    }

    .titulo-marcas{

        font-size: 26px;
    }
}