/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px 20px;

    background:
        radial-gradient(
            circle at top,
            #3c3c3c 0%,
            #181818 45%,
            #0b0b0b 100%
        );

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #222;
}


/* =========================================
   TARJETA
========================================= */

.business-card {
    width: 100%;
    max-width: 430px;

    overflow: hidden;

    border-radius: 28px;

    background: #ffffff;

    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.45);

    animation: cardEnter 0.8s ease forwards;
}


/* =========================================
   PORTADA
========================================= */

.business-card__cover {
    position: relative;

    width: 100%;
    height: 270px;

    overflow: hidden;

    background: #111;
}


/* =========================================
   SLIDER DE PORTADA
========================================= */

.business-card__slider {
    position: absolute;
    inset: 0;

    overflow: hidden;
}

.business-card__slides {
    display: flex;

    width: 600%;
    height: 100%;

    transition: transform 0.8s ease;
}

.business-card__cover-image {
    width: calc(100% / 6);
    height: 100%;

    flex-shrink: 0;

    object-fit: cover;
}

.business-card:hover .business-card__cover-image {
    transform: scale(1.045);
}


.business-card__cover-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08) 20%,
            rgba(0, 0, 0, 0.85) 100%
        );
}


/* =========================================
   MARCA
========================================= */

.business-card__brand {
    position: absolute;

    left: 26px;
    bottom: 24px;

    z-index: 2;

    display: flex;
    align-items: center;

    gap: 14px;

    color: #fff;
}


.business-card__logo {
    width: 64px;
    height: 64px;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 9px;

    border-radius: 17px;

    background: #f3f2f2;

    box-shadow:
        0 10px 30px rgba(245, 130, 32, 0.35);
}


.business-card__logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


.business-card__brand-text {
    display: flex;
    flex-direction: column;
}


.business-card__brand-text span {
    font-size: 0.68rem;

    font-weight: 700;

    letter-spacing: 0.3em;

    opacity: 0.75;
}


.business-card__brand-text h1 {
    margin-top: 2px;

    font-size: 2rem;

    font-weight: 900;

    line-height: 1;

    letter-spacing: 0.03em;
}


/* =========================================
   CONTENIDO
========================================= */

.business-card__content {
    padding: 28px;
}


/* =========================================
   INTRO
========================================= */

.business-card__eyebrow {
    display: inline-block;

    margin-bottom: 10px;

    color: #f58220;

    font-size: 0.67rem;

    font-weight: 800;

    letter-spacing: 0.13em;
}


.business-card__intro h2 {
    max-width: 320px;

    font-size: 1.8rem;

    line-height: 1.08;

    font-weight: 800;

    color: #1b1b1b;
}


.business-card__intro h2 span {
    color: #f58220;
}


.business-card__intro p {
    margin-top: 14px;

    color: #747474;

    font-size: 0.9rem;

    line-height: 1.7;
}


/* =========================================
   CTA WHATSAPP
========================================= */

.business-card__contact {
    margin-top: 24px;

    width: 100%;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 14px;

    border-radius: 18px;

    text-decoration: none;

    color: #fff;

    background: #202020;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.business-card__contact:hover {
    transform: translateY(-3px);

    background: #161616;

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.18);
}


.business-card__contact-icon {
    flex-shrink: 0;

    width: 47px;
    height: 47px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 14px;

    background: #06bd28;

    font-size: 1.4rem;
}


.business-card__contact-text {
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 2px;
}


.business-card__contact-text small {
    color: #aaa;

    font-size: 0.7rem;
}


.business-card__contact-text strong {
    font-size: 0.9rem;
}


/* =========================================
   REDES
========================================= */

.business-card__socials {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 8px;

    margin-top: 25px;
}


.social-button {
    min-width: 0;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 7px;

    padding: 13px 4px;

    border: 1px solid #ededed;

    border-radius: 15px;

    background: #fafafa;

    color: #333;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}


.social-button i {
    font-size: 1.25rem;

    transition: transform 0.25s ease;
}


.social-button span {
    width: 100%;

    overflow: hidden;

    font-size: 0.58rem;

    font-weight: 600;

    text-align: center;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.social-button:hover {
    transform: translateY(-4px);

    border-color: #f58220;

    color: #ffffff;

    background: #f58220;
}


.social-button:hover i {
    transform: scale(1.1);
}


/* =========================================
   QR
========================================= */

/* =========================================
   UBICACIÓN Y MAPA
========================================= */

.business-card__location {
    margin-top: 30px;

    overflow: hidden;

    border: 1px solid #eeeeee;
    border-radius: 22px;

    background: #fafafa;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06);
}


/* MAPA */

.contact-map {
    width: 100%;
    height: 220px;

    margin-top: 30px;

    overflow: hidden;

    background: #eeeeee;
}

.contact-map iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* INFORMACIÓN */

.contact-info {
    padding: 20px;
}


/* UBICACIÓN */

.contact-info__location {
    display: flex;
    align-items: center;

    gap: 12px;
}

.contact-info__icon {
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 12px;

    color: #ffffff;
    background: #f58220;
}

.contact-info__icon svg {
    width: 20px;
    height: 20px;

    fill: currentColor;
}

.contact-info__location div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.contact-info__location strong {
    color: #222222;

    font-size: 0.78rem;
    font-weight: 800;

    line-height: 1.3;
}

.contact-info__location div span {
    color: #888888;

    font-size: 0.72rem;
    font-weight: 500;
}


/* HORARIOS */

.contact-info__schedule {
    margin-top: 18px;
    padding-top: 17px;

    display: flex;
    flex-direction: column;

    gap: 9px;

    border-top: 1px solid #eeeeee;
}

.contact-info__schedule div {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;
}

.contact-info__schedule span:first-child {
    color: #555555;

    font-size: 0.72rem;
    font-weight: 600;
}

.contact-info__schedule span:last-child {
    color: #222222;

    font-size: 0.72rem;
    font-weight: 800;

    text-align: right;
}

/* QR */

.business-card__qr-box {
    flex-shrink: 0;

    width: 112px;
    height: 112px;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 9px;

    border-radius: 15px;

    background: #fff;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08);
}


#qrcode {
    width: 94px;
    height: 94px;
}


#qrcode img,
#qrcode canvas {
    width: 94px !important;
    height: 94px !important;

    border-radius: 4px;
}



/* =========================================
   FOOTER
========================================= */

.business-card__footer {
    width: 100%;

    margin-top: 26px;
    padding-top: 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-top: 1px solid #ededed;
}


/* =========================================
   COPYRIGHT
========================================= */

.footer__copyright {
    margin: 0;

    color: #8a8a8a;

    font-size: 0.68rem;
    font-weight: 500;

    line-height: 1.5;

    text-align: center;

    letter-spacing: 0.02em;
}



/* =========================================
   ANIMACIÓN
========================================= */

@keyframes cardEnter {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

    body {
        padding: 0;

        align-items: flex-start;

        background: #fff;
    }


    .business-card {
        max-width: none;

        min-height: 100vh;

        border-radius: 0;

        box-shadow: none;
    }


    .business-card__cover {
        height: 290px;
    }


    .business-card__content {
        padding: 25px 20px 30px;
    }


    .business-card__intro h2 {
        font-size: 1.65rem;
    }


    .business-card__footer {
        margin-top: 24px;
        padding-top: 18px;

        padding-bottom:
            calc(8px + env(safe-area-inset-bottom));
    }

    .footer__copyright {
        font-size: 0.65rem;
    }



}


/* =========================================
   MOBILE PEQUEÑO
========================================= */

@media (max-width: 370px) {

    .business-card__socials {
        grid-template-columns: repeat(3, 1fr);
    }


    .business-card__qr {
        flex-direction: column;

        text-align: center;
    }

}

/* =========================================
   BOTÓN COMPARTIR PORTADA
========================================= */

.business-card__share {
    position: absolute;

    z-index: 5;

    top: 20px;
    right: 20px;

    width: 46px;
    height: 46px;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;

    background: rgba(20, 20, 20, 0.35);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: #ffffff;

    font-size: 1rem;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}


.business-card__share:hover {
    transform: scale(1.08);

    background: #f58220;

    border-color: #f58220;
}


.business-card__share:active {
    transform: scale(0.94);
}


/* =========================================
   MODAL
========================================= */

.share-modal {
    position: fixed;

    z-index: 9999;

    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


.share-modal.active {
    visibility: visible;
    opacity: 1;
}


/* Fondo */

.share-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* Caja */

.share-modal__content {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 360px;

    padding: 35px 28px 28px;

    border-radius: 28px;

    background: #ffffff;

    text-align: center;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35);

    transform:
        translateY(20px)
        scale(0.96);

    transition:
        transform 0.3s cubic-bezier(.2, .8, .2, 1);
}


.share-modal.active .share-modal__content {
    transform:
        translateY(0)
        scale(1);
}


/* =========================================
   CERRAR
========================================= */

.share-modal__close {
    position: absolute;

    top: 16px;
    right: 16px;

    width: 36px;
    height: 36px;

    display: flex;
    justify-content: center;
    align-items: center;

    border: none;
    border-radius: 50%;

    background: #f3f3f3;

    color: #555;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.share-modal__close:hover {
    background: #222;

    color: #ffffff;

    transform: rotate(90deg);
}


/* =========================================
   LOGO
========================================= */

.share-modal__logo {
    width: 60px;
    height: 60px;

    margin: 0 auto 15px;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 9px;

    border-radius: 17px;

    background: #ffffff;
}


.share-modal__logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================
   TEXTO
========================================= */

.share-modal__eyebrow {
    color: #f58220;

    font-size: 0.62rem;

    font-weight: 900;

    letter-spacing: 0.16em;
}


.share-modal__content h2 {
    margin-top: 7px;

    color: #1c1c1c;

    font-size: 1.45rem;
}


.share-modal__content p {
    max-width: 260px;

    margin: 8px auto 20px;

    color: #888;

    font-size: 0.8rem;

    line-height: 1.5;
}


/* =========================================
   QR
========================================= */

.share-modal__qr {
    width: 190px;
    height: 190px;

    margin: 0 auto;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 15px;

    border: 1px solid #eeeeee;
    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.08);
}


#shareQrCode {
    width: 160px;
    height: 160px;
}


#shareQrCode img,
#shareQrCode canvas {
    width: 160px !important;
    height: 160px !important;
}


.share-modal__scan {
    display: block;

    margin-top: 13px;

    color: #aaa;

    font-size: 0.57rem;

    font-weight: 800;

    letter-spacing: 0.14em;
}


/* =========================================
   ACCIONES
========================================= */

.share-modal__actions {
    display: grid;

    gap: 9px;

    margin-top: 22px;
}


.share-action {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 9px;

    padding: 13px 18px;

    border: 1px solid #e8e8e8;
    border-radius: 13px;

    background: #f7f7f7;

    color: #333333;

    font-size: 0.78rem;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.share-action:hover {
    transform: translateY(-2px);

    background: #eeeeee;
}


.share-action--primary {
    border-color: #f58220;

    background: #f58220;

    color: #ffffff;
}


.share-action--primary:hover {
    background: #e8730c;

    border-color: #e8730c;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

    .business-card__share {
        top: 18px;
        right: 18px;

        width: 44px;
        height: 44px;
    }


    .share-modal {
        align-items: flex-end;

        padding: 0;
    }


    .share-modal__content {
        max-width: none;

        border-radius: 28px 28px 0 0;

        padding-bottom:
            calc(28px + env(safe-area-inset-bottom));
    }

}