/* RESET E FUNDO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    isolation: isolate;
    background-color: #F5F2EC;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(rgba(90, 78, 66, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 78, 66, 0.075) 1px, transparent 1px),
        radial-gradient(ellipse 90% 70% at 50% 42%, rgba(255, 252, 247, 0.9) 0%, rgba(245, 242, 236, 0) 58%),
        radial-gradient(ellipse 130% 110% at 50% 50%, transparent 45%, rgba(72, 58, 42, 0.055) 100%);
    background-size: 36px 36px, 36px 36px, auto, auto;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
}

@keyframes page-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* CONTAINER QUE ORGANIZA OS CARTÕES */
.card-container {
    display: flex;
    flex-direction: column; 
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    gap: 60px;
    padding: 40px 20px calc(240px + env(safe-area-inset-bottom, 0px));
    position: relative;
    z-index: 1;
    animation: page-fade-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .card-container {
        animation: none;
    }
}

.card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 550px;
}

/* O CARTÃO */
.card {
    width: 90%;
    max-width: 550px;
    min-height: 310px;
    height: auto;
    aspect-ratio: 1.7 / 1;
    padding: 20px;
    background-color: #EDE6DC; /* Pastel quente */
    border-radius: 25px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 2px 4px rgba(42, 32, 20, 0.04),
        0 10px 24px rgba(42, 32, 20, 0.07),
        0 24px 48px rgba(42, 32, 20, 0.09),
        0 40px 80px rgba(42, 32, 20, 0.06);
    overflow: hidden; 
}

/* MOLDURA INTERNA - AGORA DOURADA */
.bronze-edge {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 0 3px #C5A059; /* Cor Dourada */
    pointer-events: none;
    border-radius: 25px;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    z-index: 1;
}

/* TIPOGRAFIA FRENTE */
.card-back {
    background-color: #e8dfd0;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.card-back::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/claudio-moreno-antiguidades-x7k2/fundoverso1.png?v=1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.card-back .content-back {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    justify-content: center;
    gap: 8px;
    padding: 2px 0;
}

.card-front {
    background-color: #000000;
}

.card-front .content {
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.card-front .logo-img {
    width: min(42vw, 200px);
    margin: 0 auto;
}

.card-front-texto {
    width: min(82vw, 360px);
    max-width: 92%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.logo-img {
    width: 160px;
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.name {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    color: #5A4E42;
    margin-bottom: 10px;
}

.specialties {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px; 
    color: #C5A059; /* Dourado */
    padding-top: 12px;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    width: 90%; 
    line-height: 1.6; 
}

/* LINKS DAS ESPECIALIDADES */
.spec-item, 
.spec-item:visited {
    text-decoration: none;
    color: #C5A059 !important;
    transition: 0.3s;
    outline: none;
}

/* VERSO E QR CODE */
.content-back {
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.logo-verso {
    width: 76px;
    height: auto;
    display: block;
    margin: 0 auto;
    flex-shrink: 0;
}

.qrcode-container {
    text-align: center;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

/* QR CODE */
.qrcode-border {
    width: 120px;
    height: 120px;
    border: 2px solid #C5A059;
    padding: 5px;
    border-radius: 8px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 2px 10px rgba(59, 42, 26, 0.12),
        0 1px 3px rgba(59, 42, 26, 0.08);
}

.qrcode-content {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* BLOCO DE CONTATO (E-mail e Telefone) */
.contact-info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.content-back .contact-info-block {
    align-items: flex-start;
    align-self: center;
    text-align: left;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 92%;
    width: max-content;
    gap: 9px;
}

.content-back .link-contato,
.content-back .link-contato:visited {
    justify-content: flex-start;
    align-items: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: left;
    gap: 10px;
    color: #000000 !important;
    line-height: 1.4;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 2px 0;
    transition: all 0.3s ease;
}

.content-back .link-contato--email,
.content-back .link-contato--email:visited {
    letter-spacing: 0.5px;
}

.content-back .link-contato span {
    min-width: 0;
    overflow-wrap: break-word;
    text-align: left;
    transition: all 0.3s ease;
}

.content-back .contact-icon,
.content-back .contact-icon--instagram,
.content-back .contact-icon--facebook,
.content-back .contact-icon--email {
    width: 22px;
    height: 22px;
    min-width: 22px;
    flex: 0 0 22px;
    flex-shrink: 0;
    display: block;
    transform-origin: center;
    transition: background 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    background-color: #000000;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.content-back .contact-icon--instagram {
    -webkit-mask-image: url('/claudio-moreno-antiguidades-x7k2/iconeinsta.png');
    mask-image: url('/claudio-moreno-antiguidades-x7k2/iconeinsta.png');
}

.content-back .contact-icon--facebook {
    -webkit-mask-image: url('/claudio-moreno-antiguidades-x7k2/iconeface.png');
    mask-image: url('/claudio-moreno-antiguidades-x7k2/iconeface.png');
}

.content-back .contact-icon--email {
    -webkit-mask-image: url('/claudio-moreno-antiguidades-x7k2/icone-email.png');
    mask-image: url('/claudio-moreno-antiguidades-x7k2/icone-email.png');
}

.content-back .whatsapp-icon {
    width: 20px;
    height: 20px;
    transition: fill 0.3s ease;
}

.link-contato,
.link-contato:visited { 
    text-decoration: none;
    color: #C5A059 !important;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    outline: none; 
}

/* ICONE WHATSAPP INTERNO (Mantido verde para destaque) */
.whatsapp-icon {
    width: 18px;
    height: 18px;
    fill: #0da545 !important;
}

/* MARCA CORUX (rodapé) */
.corux-brand {
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    user-select: none;
    z-index: 500;
}

.corux-brand__link {
    display: inline-block;
    pointer-events: auto;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #5A4E42;
    letter-spacing: 0.35px;
    line-height: 1.2;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
}

.corux-brand__link:hover,
.corux-brand__link:focus-visible {
    color: #6B5D4F;
}

.corux-brand__link:active {
    opacity: 0.85;
}

.corux-brand__tagline {
    margin-top: 3px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 9px;
    font-weight: 400;
    color: rgba(90, 78, 66, 0.62);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    line-height: 1.2;
}

/* BOTÕES FLUTUANTES */
.whatsapp-float,
.whatsapp-group-float,
.share-float {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: 0.3s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.whatsapp-float {
    right: 30px;
    bottom: calc(30px + (60px + 12px) * 2);
    background-color: #25D366;
    border: none;
}

.whatsapp-group-float {
    right: 30px;
    bottom: calc(30px + 60px + 12px);
    background-color: #128C7E;
    border: none;
    text-decoration: none;
}

.share-float {
    right: 30px;
    background-color: #ffffff;
    border: 2px solid #C5A059;
}

.whatsapp-float svg,
.whatsapp-group-float svg {
    width: 32px;
    height: 32px;
    fill: #FFFFFF !important;
}

.whatsapp-group-float svg {
    width: 28px;
    height: 28px;
}

.share-float img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
    filter: brightness(0) saturate(100%) invert(72%) sepia(35%) saturate(450%) hue-rotate(5deg) brightness(95%) contrast(90%);
}

.share-float__tooltip,
.whatsapp-float__tooltip,
.whatsapp-group-float__tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 12px;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
}

.share-toast {
    position: fixed;
    left: 50%;
    bottom: 220px;
    transform: translateX(-50%) translateY(12px);
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(132, 105, 87, 0.95);
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
    pointer-events: none;
}

.share-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* HOVER (Computador) */
@media (hover: hover) {
    .link-contato:hover, 
    .spec-item:hover { 
        color: #9A7342 !important;
    }

    .content-back .link-contato:hover,
    .content-back .link-contato:visited:hover {
        color: #6B4423 !important;
        font-weight: 600;
        text-shadow: 0 0 5px rgba(197, 160, 89, 0.45);
    }

    .content-back .link-contato:hover .contact-icon--instagram,
    .content-back .link-contato:visited:hover .contact-icon--instagram {
        background-color: transparent;
        background-image: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        filter: drop-shadow(0 1px 3px rgba(225, 48, 108, 0.35));
        transform: scale(1.08);
    }

    .content-back .link-contato:hover .contact-icon--facebook,
    .content-back .link-contato:visited:hover .contact-icon--facebook {
        background-color: #1877F2;
        background-image: none;
        filter: drop-shadow(0 1px 3px rgba(24, 119, 242, 0.35));
        transform: scale(1.08);
    }

    .content-back .link-contato:hover .contact-icon--email,
    .content-back .link-contato:visited:hover .contact-icon--email {
        background-color: #EA4335;
        background-image: none;
        filter: drop-shadow(0 1px 3px rgba(234, 67, 53, 0.3));
        transform: scale(1.08);
    }

    .content-back .link-contato:hover .whatsapp-icon,
    .content-back .link-contato:visited:hover .whatsapp-icon {
        fill: #6B4423 !important;
    }

    .share-float:hover .share-float__tooltip,
    .whatsapp-float:hover .whatsapp-float__tooltip,
    .whatsapp-group-float:hover .whatsapp-group-float__tooltip {
        opacity: 1;
        visibility: visible;
    }

    .whatsapp-float:hover {
        transform: scale(1.1);
        background-color: #20ba5a;
    }

    .whatsapp-group-float:hover {
        transform: scale(1.1);
        background-color: #0f7a6e;
    }

    .share-float:hover {
        transform: scale(1.1);
        background-color: #faf8f6;
        border-color: #a8844a;
    }
}

.whatsapp-float:active,
.whatsapp-group-float:active,
.share-float:active {
    transform: scale(0.95);
}

.share-float:active {
    background-color: #f0ebe6;
    border-color: #a8844a;
}

.whatsapp-group-float:active {
    background-color: #0d6b61;
}

.whatsapp-float:active {
    background-color: #1da851;
}

/* RESPONSIVIDADE (Mobile) */
@media (max-width: 600px) {
    body {
        justify-content: flex-start;
        padding-top: 12px;
    }

    .card-container {
        padding: 12px 14px calc(210px + env(safe-area-inset-bottom, 0px));
        gap: 12px;
    }

    .card-inner {
        gap: 10px;
    }

    .corux-brand {
        position: static;
        transform: none;
        left: auto;
        width: 100%;
        margin-top: 0;
    }

    .card { 
        width: 100%;
        max-width: 550px;
        aspect-ratio: 1.55 / 1;
        padding: 10px 12px;
    }

    .card-front .content {
        gap: 12px;
    }

    .card-front .logo-img {
        width: min(36vw, 170px);
    }

    .card-front-texto {
        width: min(76vw, 320px);
    }

    .card-back .content-back {
        height: auto;
        flex: 0 1 auto;
        justify-content: center;
        gap: 6px;
    }

    .card-back {
        padding-top: 0;
        background-color: #e3d9ca;
    }

    .card-back::before {
        filter: contrast(1.1) saturate(1.08);
    }

    .name {
        font-size: 5.5vw;
    }

    .specialties {
        font-size: 2.8vw;
        width: 95%;
    }

    .link-contato,
    .link-contato:visited {
        font-size: 4vw;
    }

    .content-back .contact-info-block {
        max-width: 94%;
        gap: 8px;
    }

    .content-back .link-contato,
    .content-back .link-contato:visited {
        font-size: clamp(16px, 4.4vw, 18px);
        padding: 3px 0;
    }

    .content-back .contact-icon,
    .content-back .contact-icon--instagram,
    .content-back .contact-icon--facebook,
    .content-back .contact-icon--email {
        width: 24px;
        height: 24px;
        min-width: 24px;
        flex: 0 0 24px;
    }

    .content-back .whatsapp-icon {
        width: 18px;
        height: 18px;
    }

    .card-back .logo-verso {
        width: clamp(60px, 16vw, 72px);
    }

    .card-back .qrcode-border {
        width: clamp(96px, 28vw, 112px);
        height: clamp(96px, 28vw, 112px);
        box-shadow:
            0 2px 8px rgba(59, 42, 26, 0.14),
            0 1px 2px rgba(59, 42, 26, 0.1);
    }

    .link-contato:active, 
    .spec-item:active { 
        color: #9A7342 !important;
        transition: 0s;
    }

    .content-back .link-contato:active,
    .content-back .link-contato:visited:active {
        color: #6B4423 !important;
        font-weight: 600;
        text-shadow: 0 0 5px rgba(197, 160, 89, 0.45);
        transition: 0s;
    }

    .content-back .link-contato:active .contact-icon--instagram,
    .content-back .link-contato:visited:active .contact-icon--instagram {
        background-color: transparent;
        background-image: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        filter: drop-shadow(0 1px 3px rgba(225, 48, 108, 0.35));
        transform: scale(1.08);
    }

    .content-back .link-contato:active .contact-icon--facebook,
    .content-back .link-contato:visited:active .contact-icon--facebook {
        background-color: #1877F2;
        background-image: none;
        filter: drop-shadow(0 1px 3px rgba(24, 119, 242, 0.35));
        transform: scale(1.08);
    }

    .content-back .link-contato:active .contact-icon--email,
    .content-back .link-contato:visited:active .contact-icon--email {
        background-color: #EA4335;
        background-image: none;
        filter: drop-shadow(0 1px 3px rgba(234, 67, 53, 0.3));
        transform: scale(1.08);
    }

    .content-back .link-contato:active .whatsapp-icon,
    .content-back .link-contato:visited:active .whatsapp-icon {
        fill: #6B4423 !important;
    }

    .whatsapp-float,
    .whatsapp-group-float,
    .share-float {
        width: 50px;
        height: 50px;
    }

    .whatsapp-group-float {
        bottom: calc(30px + 50px + 10px);
    }

    .whatsapp-float {
        bottom: calc(30px + (50px + 10px) * 2);
    }

    .whatsapp-group-float svg {
        width: 24px;
        height: 24px;
    }

    .share-float img {
        width: 38px;
        height: 38px;
    }

    .share-toast {
        bottom: 190px;
        max-width: calc(100vw - 40px);
        text-align: center;
    }
}