﻿.tj-map-block {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.tj-map-frame {
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(127, 127, 127, 0.24);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(127, 127, 127, 0.08);
}

.tj-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.tj-pack-module {
    scroll-margin-top: 24px;
}

.tj-pack-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
}

.tj-pack-status::before {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.tj-pack-status-open {
    color: #137a3d;
    background: rgba(34, 197, 94, 0.14);
}

.tj-pack-status-closed {
    color: #b42318;
    background: rgba(239, 68, 68, 0.14);
}

.tj-pack-status-neutral {
    color: inherit;
    background: rgba(127, 127, 127, 0.14);
}

.tj-module-cta,
.tj-map-directions {
    justify-self: start;
}

@media (max-width: 480px) {
    .tj-map-frame {
        aspect-ratio: 4 / 3;
        border-radius: 15px;
    }
}
/* Portix shared public components
   Estructura comun del Hero, CTA contextual, scroll, WhatsApp y navegacion.
   Los CSS de plantilla conservan color, fondo, borde, sombra y personalidad. */

.tj-card-wrapper {
    padding-bottom: 166px;
}

.tj-hero-premium {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 640px;
    padding: 18px;
}

.tj-hero-premium .tj-hero-cta-wrap {
    display: none !important;
}

.tj-hero-bottom-controls {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 0 0 2px;
}

.tj-card-wrapper .tj-hero-premium .tj-hero-floating-chip {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 3;
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 64px);
    min-width: 92px;
    min-height: 30px;
    padding: 0 16px;
    font-size: 10.5px;
    line-height: 1;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none !important;
    font-variant-caps: normal;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tj-hero-scroll-hint {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0 0 0 auto;
}

.tj-hero-scroll-hint svg {
    width: 22px;
    height: 22px;
}

.tj-whatsapp-floating {
    position: fixed;
    left: 50%;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 120px) !important;
    transform: translateX(154px);
    z-index: 10000;
    width: 48px;
    height: 48px;
}

.tj-whatsapp-floating:hover,
.tj-whatsapp-floating:focus {
    transform: translateX(154px) translateY(-2px);
}

.tj-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 9998;
    width: min(calc(100% - 20px), 410px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
}

.tj-bottom-nav a {
    display: grid;
    place-items: center;
    min-width: 0;
    max-width: 100%;
    min-height: 38px;
    padding: 0 2px;
    font-size: 10px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: none !important;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .tj-whatsapp-floating {
        left: auto;
        right: 18px;
        bottom: calc(max(12px, env(safe-area-inset-bottom)) + 120px) !important;
        transform: none;
        width: 46px;
        height: 46px;
    }

    .tj-whatsapp-floating:hover,
    .tj-whatsapp-floating:focus {
        transform: translateY(-2px);
    }
}

@media (max-width: 430px) {
    .tj-hero-premium {
        min-height: 628px;
        padding: 16px;
    }

    .tj-hero-premium-content {
        padding-top: 64px;
    }
}

@media (max-width: 374px) {
    .tj-hero-premium {
        min-height: 604px;
    }

    .tj-hero-bottom-controls {
        gap: 12px;
    }

    .tj-card-wrapper .tj-hero-premium .tj-hero-floating-chip {
        min-width: 92px;
        min-height: 30px;
        padding: 0 16px;
        font-size: 10.5px;
    }
}
/* Portix 1.11.10: logo limpio y QR escaneable/imprimible */
/* Portix 1.11.11: espaciado real del Hero tras cache bust de assets */
.tj-card-wrapper:not(.tj-pack-perfil_profesional) .tj-brand-mark--image,
.tj-card-wrapper:not(.tj-pack-perfil_profesional) .tj-hero-logo.tj-brand-mark--image {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
}

.tj-card-wrapper:not(.tj-pack-perfil_profesional) .tj-brand-mark--image .tj-header-avatar,
.tj-card-wrapper:not(.tj-pack-perfil_profesional) .tj-hero-logo.tj-brand-mark--image .tj-header-avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

.tj-hero-premium .tj-hero-logo.tj-brand-mark--image {
    width: 90px;
    height: 54px;
}

.tj-card-wrapper .tj-hero-premium {
    justify-content: flex-start;
    padding-bottom: 82px;
}

.tj-card-wrapper .tj-hero-premium-content {
    margin-top: clamp(88px, 12vh, 124px);
    padding-top: 0;
}

.tj-card-wrapper .tj-hero-bottom-controls {
    margin-top: auto;
}

.tj-qr-modal[hidden] {
    display: none !important;
}

body.tj-qr-modal-open {
    overflow: hidden;
}

.tj-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: grid;
    place-items: center;
    padding: 22px;
}

.tj-qr-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.tj-qr-card {
    position: relative;
    z-index: 1;
    width: min(100%, 390px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
    color: #fff;
    padding: 14px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
}

.tj-qr-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.tj-qr-print-card {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 26px 20px 22px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12), transparent 34%),
        #ffffff;
    color: #101827;
    text-align: center;
}

.tj-qr-brand {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tj-qr-logo {
    display: block;
    max-width: 124px;
    max-height: 42px;
    object-fit: contain;
}

.tj-qr-logo-fallback {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    font-weight: 900;
}

.tj-qr-eyebrow {
    margin: 2px 0 0;
    color: #10a37f;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tj-qr-card h2 {
    margin: 0;
    color: #101827;
    font-size: 25px;
    line-height: 1.08;
    font-weight: 900;
}

.tj-qr-help {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 650;
}

.tj-qr-image-wrap {
    margin-top: 8px;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
}

.tj-qr-image {
    display: block;
    width: min(64vw, 260px);
    max-width: 260px;
    height: auto;
    image-rendering: crisp-edges;
}

.tj-qr-url {
    max-width: 100%;
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.tj-qr-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 12px 2px 2px;
}

.tj-qr-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.tj-qr-action-primary {
    border-color: rgba(16, 185, 129, 0.32);
    background: linear-gradient(135deg, #10b981, #0f766e);
    color: #fff;
}

.tj-qr-action:hover,
.tj-qr-action:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 430px) {
    .tj-card-wrapper .tj-hero-premium {
        padding-bottom: 78px;
    }

    .tj-card-wrapper .tj-hero-premium-content {
        margin-top: clamp(68px, 10vh, 102px);
        padding-top: 0;
    }

    .tj-hero-premium .tj-hero-logo.tj-brand-mark--image {
        width: 86px;
        height: 48px;
    }

    .tj-qr-modal {
        padding: 14px;
    }

    .tj-qr-card {
        border-radius: 28px;
        padding: 12px;
    }

    .tj-qr-print-card {
        border-radius: 22px;
        padding: 24px 16px 20px;
    }

    .tj-qr-image {
        width: min(72vw, 250px);
    }
}

@media print {
    body.tj-qr-printing {
        background: #fff !important;
    }

    body.tj-qr-printing * {
        visibility: hidden !important;
    }

    body.tj-qr-printing .tj-qr-modal,
    body.tj-qr-printing .tj-qr-modal * {
        visibility: visible !important;
    }

    body.tj-qr-printing .tj-qr-modal {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body.tj-qr-printing .tj-qr-backdrop,
    body.tj-qr-printing .tj-qr-close,
    body.tj-qr-printing .tj-qr-actions {
        display: none !important;
    }

    body.tj-qr-printing .tj-qr-card {
        width: 100% !important;
        max-width: none !important;
        min-height: 100vh !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        padding: 0 !important;
    }

    body.tj-qr-printing .tj-qr-print-card {
        width: 100% !important;
        min-height: 100vh !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 32mm 18mm !important;
    }

    body.tj-qr-printing .tj-qr-image {
        width: 82mm !important;
        max-width: 82mm !important;
    }
}
