@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Manrope:wght@500;700;800&display=swap');

:root {
    --bg-deep: #04143d;
    --bg-mid: #0d2a73;
    --card-text: #101424;
    --muted: #59607a;
    --surface: #f7f9ff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Sora', sans-serif;
    color: var(--card-text);
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 127, 0, 0.35), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255, 202, 120, 0.2), transparent 35%),
        linear-gradient(150deg, var(--bg-deep), var(--bg-mid));
}

.sticky-name-bar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translate(-50%, -10px);
    width: min(calc(100% - 28px), 390px);
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 220ms ease;
}

.sticky-name-bar span {
    display: block;
    text-align: center;
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(6, 19, 56, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.sticky-name-bar.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 14px 92px;
}

.card-shell {
    width: min(100%, 390px);
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(247, 251, 255, 0.92));
    box-shadow: 0 26px 56px rgba(2, 15, 49, 0.45);
    padding: 18px;
    position: relative;
    animation: rise-in 480ms ease-out;
}

.card-shell::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 215px;
    border-radius: 0 0 38px 38px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--brand-color) 90%, #ffe2bf), #d7ff45);
    z-index: 0;
}

.card-shell > * {
    position: relative;
    z-index: 1;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 92px;
    height: auto;
}

.lang-switch {
    text-decoration: none;
    color: #04143d;
    background: rgba(255, 255, 255, 0.88);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.84rem;
}

.avatar-wrap {
    margin: 20px auto 14px;
    width: 142px;
    height: 142px;
    border-radius: 30px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 14px 28px rgba(8, 24, 68, 0.25);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro {
    text-align: center;
    padding: 2px 10px 8px;
}

.intro h1 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 1.72rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.08;
    text-transform: uppercase;
}

.intro .title {
    margin: 8px 0 0;
    color: #23315a;
    font-size: 0.95rem;
    font-weight: 600;
}

.primary-btn {
    display: block;
    margin: 12px auto 16px;
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: #0c1a40;
    background: linear-gradient(120deg, color-mix(in srgb, var(--brand-color) 82%, #ffe49e), #ffd269);
    font-weight: 800;
    padding: 14px 18px;
    border-radius: 16px;
    letter-spacing: 0.01em;
}

.panel {
    border-radius: 16px;
    background: #fff;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 10px 20px rgba(8, 20, 60, 0.08);
}

.panel h2 {
    margin: 0 0 8px;
    font-size: 0.98rem;
    font-weight: 800;
    color: #1a2b60;
}

.panel p {
    margin: 0;
    color: #253053;
    line-height: 1.45;
    font-size: 0.91rem;
}

.details {
    display: grid;
    gap: 8px;
}

.details a,
.details p {
    margin: 0;
    color: #15224b;
    text-decoration: none;
    font-size: 0.88rem;
}

.app-contact-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.contact-save {
    margin-top: 0;
    margin-bottom: 10px;
}

.app-social-card {
    padding-bottom: 12px;
}

.social-list {
    display: grid;
    gap: 10px;
}

.social-item {
    display: grid;
    grid-template-columns: 44px 1fr 20px;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0f1d47;
    background: linear-gradient(180deg, #fbfcff 0%, #f3f6ff 100%);
    border: 1px solid #dfe7fb;
    border-radius: 18px;
    padding: 10px 12px;
    box-shadow: 0 8px 16px rgba(8, 20, 60, 0.05);
}

.social-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.social-icon svg,
.footer-action-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.social-copy {
    display: grid;
    gap: 2px;
}

.social-copy strong {
    font-size: 0.93rem;
    line-height: 1.1;
}

.social-copy small {
    color: #6a7290;
    font-size: 0.76rem;
    font-weight: 600;
}

.social-arrow {
    color: #9098b5;
    font-size: 1.35rem;
    line-height: 1;
    justify-self: end;
}

.social-instagram {
    background: linear-gradient(135deg, #f58529 0%, #feda77 35%, #dd2a7b 65%, #8134af 100%);
}

.social-facebook {
    background: linear-gradient(135deg, #1877f2, #1456ba);
}

.social-linkedin {
    background: linear-gradient(135deg, #0a66c2, #004182);
}

.social-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-youtube {
    background: linear-gradient(135deg, #ff0000, #b30000);
}

.social-x,
.social-twitter,
.social-generic,
.social-tiktok {
    background: linear-gradient(135deg, #111827, #3d485d);
}

.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.ghost-btn {
    text-decoration: none;
    text-align: center;
    color: #fff;
    background: linear-gradient(120deg, #1d2a63, #30489a);
    padding: 11px 10px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
}

.fixed-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(4, 20, 61, 0), rgba(4, 20, 61, 0.92) 26%, rgba(4, 20, 61, 0.98));
    backdrop-filter: blur(8px);
}

.footer-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 28px rgba(2, 10, 32, 0.32);
}

.footer-action-copy {
    display: grid;
    gap: 1px;
    line-height: 1.05;
}

.footer-action-copy strong {
    font-size: 0.88rem;
}

.footer-action-copy small {
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.88;
}

.map-action {
    background: linear-gradient(135deg, #1f3c94, #2e61d1);
}

.review-action {
    background: linear-gradient(135deg, #ff7f00, #ffb347);
    color: #1a1740;
}

.footer-action-icon {
    display: grid;
    place-items: center;
}

.footer-action-icon svg {
    width: 20px;
    height: 20px;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (min-width: 768px) {
    .page {
        padding: 34px;
    }

    .card-shell {
        width: 430px;
        padding: 20px;
    }

    .sticky-name-bar {
        width: min(calc(100% - 28px), 430px);
    }

    .fixed-footer {
        left: 50%;
        transform: translateX(-50%);
        width: min(100%, 430px);
        border-radius: 18px 18px 0 0;
        overflow: hidden;
    }
}

@media (max-width: 420px) {
    .social-item {
        grid-template-columns: 40px 1fr 16px;
        padding: 10px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .fixed-footer {
        grid-template-columns: 1fr;
    }

    .footer-action {
        justify-content: flex-start;
        padding: 0 16px;
    }
}
