/* ==================================================
   CONFIGURACIÓN GENERAL
================================================== */

:root {
    --background: #f5f0e8;
    --background-light: #fbf8f3;
    --card: rgba(255, 255, 255, 0.78);
    --card-solid: #ffffff;

    --text: #171411;
    --text-soft: #716a61;
    --text-light: #9a9186;

    --gold: #b38a4a;
    --gold-light: #d5b77f;
    --gold-dark: #806231;

    --border: rgba(128, 98, 49, 0.18);
    --border-dark: rgba(23, 20, 17, 0.12);

    --shadow:
        0 20px 60px rgba(52, 40, 25, 0.10);

    --shadow-card:
        0 12px 30px rgba(52, 40, 25, 0.08);

    --font-title: "Cormorant Garamond", serif;
    --font-body: "Manrope", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;

    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 15% 5%,
            rgba(213, 183, 127, 0.20),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 90%,
            rgba(179, 138, 74, 0.12),
            transparent 34%
        ),
        linear-gradient(
            160deg,
            var(--background-light) 0%,
            var(--background) 55%,
            #eee5d8 100%
        );

    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* ==================================================
   FONDO DECORATIVO
================================================== */

.background-decoration {
    position: fixed;
    inset: 0;
    z-index: 0;

    overflow: hidden;
    pointer-events: none;
}

.background-decoration::before,
.background-decoration::after {
    position: absolute;
    content: "";

    width: 360px;
    height: 360px;

    border: 1px solid rgba(179, 138, 74, 0.13);
    border-radius: 50%;
}

.background-decoration::before {
    top: -180px;
    right: -170px;
}

.background-decoration::after {
    bottom: -210px;
    left: -160px;
}

.light {
    position: absolute;

    width: 280px;
    height: 280px;

    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.light-one {
    top: -80px;
    left: -80px;
    background: rgba(213, 183, 127, 0.30);
}

.light-two {
    right: -100px;
    bottom: 10%;
    background: rgba(255, 255, 255, 0.60);
}

.sparkle {
    position: absolute;

    color: rgba(179, 138, 74, 0.32);
    font-family: var(--font-title);

    animation: floatingSparkle 6s ease-in-out infinite;
}

.sparkle-one {
    top: 12%;
    left: 8%;
    font-size: 22px;
}

.sparkle-two {
    top: 32%;
    right: 9%;
    font-size: 16px;
    animation-delay: 1.2s;
}

.sparkle-three {
    bottom: 25%;
    left: 7%;
    font-size: 14px;
    animation-delay: 2.4s;
}

.sparkle-four {
    right: 6%;
    bottom: 8%;
    font-size: 24px;
    animation-delay: 3.4s;
}

@keyframes floatingSparkle {
    0%,
    100% {
        opacity: 0.25;
        transform: translateY(0) rotate(0deg);
    }

    50% {
        opacity: 0.75;
        transform: translateY(-12px) rotate(18deg);
    }
}

/* ==================================================
   CONTENEDOR PRINCIPAL
================================================== */

.link-page {
    position: relative;
    z-index: 1;

    width: min(100%, 540px);
    min-height: 100vh;
    min-height: 100svh;

    margin: 0 auto;
    padding:
        max(28px, env(safe-area-inset-top))
        20px
        max(38px, env(safe-area-inset-bottom));

    display: flex;
    flex-direction: column;
}

/* ==================================================
   BOTÓN COMPARTIR
================================================== */

.share-button {
    position: absolute;
    top: max(22px, env(safe-area-inset-top));
    right: 20px;

    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 24px rgba(52, 40, 25, 0.08);

    color: var(--text);
    font-size: 15px;

    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.share-button:hover {
    transform: translateY(-2px) rotate(-4deg);
    border-color: var(--gold);
    background: var(--text);
    color: #ffffff;
}

.share-button:active {
    transform: scale(0.94);
}

/* ==================================================
   PERFIL
================================================== */

.profile {
    padding: 30px 48px 28px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.logo-wrapper {
    position: relative;

    margin-bottom: 22px;

    animation: profileEntrance 0.8s ease both;
}

.logo-ring {
    position: relative;

    width: 122px;
    height: 122px;

    display: grid;
    place-items: center;

    padding: 6px;

    border: 1px solid rgba(179, 138, 74, 0.45);
    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.95),
            rgba(245, 240, 232, 0.90)
        );

    box-shadow:
        0 18px 50px rgba(52, 40, 25, 0.13),
        inset 0 0 0 5px rgba(255, 255, 255, 0.65);
}

.logo-ring::before {
    position: absolute;
    inset: -7px;

    content: "";

    border: 1px solid rgba(179, 138, 74, 0.17);
    border-radius: inherit;

    animation: logoPulse 3.5s ease-in-out infinite;
}

.profile-logo {
    width: 100%;
    height: 100%;

    padding: 9px;

    border-radius: 50%;

    background: #ffffff;
    object-fit: contain;
}

.verified-badge {
    position: absolute;
    right: 1px;
    bottom: 8px;

    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    border: 3px solid var(--background);
    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            var(--gold-light),
            var(--gold-dark)
        );

    color: #ffffff;
    font-size: 10px;

    box-shadow: 0 6px 14px rgba(128, 98, 49, 0.28);
}

@keyframes logoPulse {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0;
        transform: scale(1.10);
    }
}

@keyframes profileEntrance {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.94);
    }

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

.eyebrow {
    margin-bottom: 8px;

    color: var(--gold-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;

    animation: contentEntrance 0.7s 0.1s ease both;
}

.profile h1 {
    font-family: var(--font-title);
    font-size: clamp(40px, 10vw, 52px);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: 0.05em;

    animation: contentEntrance 0.7s 0.16s ease both;
}

.business-type {
    margin-top: 9px;

    color: var(--text-soft);
    font-family: var(--font-title);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    animation: contentEntrance 0.7s 0.22s ease both;
}

.title-divider {
    width: 160px;
    margin: 20px 0 16px;

    display: flex;
    align-items: center;
    gap: 11px;

    color: var(--gold);

    animation: contentEntrance 0.7s 0.28s ease both;
}

.title-divider span {
    height: 1px;
    flex: 1;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(179, 138, 74, 0.55)
        );
}

.title-divider span:last-child {
    background:
        linear-gradient(
            90deg,
            rgba(179, 138, 74, 0.55),
            transparent
        );
}

.title-divider i {
    font-size: 13px;
}

.profile-description {
    max-width: 330px;

    color: var(--text-soft);
    font-family: var(--font-title);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.35;

    animation: contentEntrance 0.7s 0.34s ease both;
}

@keyframes contentEntrance {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* ==================================================
   ENLACES
================================================== */

.links-container {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-card {
    position: relative;

    min-height: 76px;
    width: 100%;

    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;

    padding: 12px 17px;

    overflow: hidden;

    border: 1px solid var(--border-dark);
    border-radius: 18px;

    background: var(--card);
    box-shadow: var(--shadow-card);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    opacity: 0;

    animation: cardEntrance 0.65s ease forwards;

    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        background-color 0.28s ease;
}

.link-card:nth-child(1) {
    animation-delay: 0.16s;
}

.link-card:nth-child(2) {
    animation-delay: 0.23s;
}

.link-card:nth-child(3) {
    animation-delay: 0.30s;
}

.link-card:nth-child(4) {
    animation-delay: 0.37s;
}

.link-card:nth-child(5) {
    animation-delay: 0.44s;
}

.link-card:nth-child(6) {
    animation-delay: 0.51s;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.link-card::before {
    position: absolute;
    top: 0;
    left: -130%;

    width: 70%;
    height: 100%;

    content: "";

    background:
        linear-gradient(
            105deg,
            transparent,
            rgba(255, 255, 255, 0.72),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 0.75s ease;
}

.link-card:hover::before {
    left: 145%;
}

.link-card:hover {
    transform: translateY(-3px);
    border-color: rgba(179, 138, 74, 0.45);

    background: rgba(255, 255, 255, 0.93);

    box-shadow:
        0 17px 38px rgba(52, 40, 25, 0.13);
}

.link-card:active {
    transform: scale(0.985);
}

.link-icon {
    position: relative;

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(179, 138, 74, 0.17);
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(245, 240, 232, 0.95),
            rgba(255, 255, 255, 0.95)
        );

    color: var(--gold-dark);
    font-size: 19px;

    transition:
        transform 0.28s ease,
        background-color 0.28s ease,
        color 0.28s ease;
}

.link-card:hover .link-icon {
    transform: scale(1.06) rotate(-3deg);
    background: var(--text);
    color: #ffffff;
}

.link-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-content strong {
    overflow: hidden;

    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-content small {
    overflow: hidden;

    color: var(--text-soft);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-arrow {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: var(--text-light);
    font-size: 11px;

    transition:
        transform 0.28s ease,
        background-color 0.28s ease,
        color 0.28s ease;
}

.link-card:hover .link-arrow {
    transform: translateX(3px);

    background: rgba(179, 138, 74, 0.12);
    color: var(--gold-dark);
}

/* ==================================================
   BOTÓN DESTACADO
================================================== */

.link-card-featured {
    min-height: 90px;

    border-color: rgba(179, 138, 74, 0.35);

    background:
        linear-gradient(
            125deg,
            rgba(26, 22, 18, 0.97),
            rgba(55, 44, 31, 0.96)
        );

    box-shadow:
        0 18px 42px rgba(37, 29, 20, 0.20);
}

.link-card-featured::after {
    position: absolute;
    top: -55px;
    right: -35px;

    width: 150px;
    height: 150px;

    content: "";

    border: 1px solid rgba(213, 183, 127, 0.16);
    border-radius: 50%;
}

.link-card-featured:hover {
    border-color: rgba(213, 183, 127, 0.65);

    background:
        linear-gradient(
            125deg,
            #100e0c,
            #3e3020
        );

    box-shadow:
        0 22px 48px rgba(37, 29, 20, 0.27);
}

.link-card-featured .link-icon {
    border-color: rgba(213, 183, 127, 0.25);

    background: rgba(255, 255, 255, 0.09);
    color: var(--gold-light);
}

.link-card-featured:hover .link-icon {
    background: var(--gold-light);
    color: var(--text);
}

.link-card-featured .link-content strong {
    color: #ffffff;
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 600;
}

.link-card-featured .link-content small {
    color: rgba(255, 255, 255, 0.62);
}

.link-action {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--gold-light);
    font-size: 11px;
}

.featured-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

/* ==================================================
   COLORES DE REDES
================================================== */

.whatsapp-card:hover .link-icon {
    background: #25d366;
    color: #ffffff;
}

.instagram-card:hover .link-icon {
    background:
        linear-gradient(
            135deg,
            #833ab4,
            #fd1d1d,
            #fcb045
        );

    color: #ffffff;
}

.tiktok-card:hover .link-icon {
    background: #111111;
    color: #ffffff;

    text-shadow:
        2px 1px 0 #25f4ee,
        -2px -1px 0 #fe2c55;
}

.facebook-card:hover .link-icon {
    background: #1877f2;
    color: #ffffff;
}

.location-card:hover .link-icon {
    background: #c34a3b;
    color: #ffffff;
}

/* ==================================================
   FOOTER
================================================== */

.page-footer {
    padding: 34px 15px 5px;

    display: flex;
    flex-direction: column;
    align-items: center;

    color: var(--text-soft);
    text-align: center;
}

.footer-location {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;

    font-size: 10px;
    font-weight: 500;
    line-height: 1.6;
}

.footer-location i {
    margin-top: 3px;
    color: var(--gold-dark);
    font-size: 11px;
}

.footer-divider {
    width: 42px;
    height: 1px;

    margin: 18px 0;

    background: rgba(179, 138, 74, 0.38);
}

.page-footer > p {
    font-size: 9px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.page-footer .copyright {
    margin-top: 8px;

    color: var(--text-light);
    font-size: 8px;
    letter-spacing: 0.08em;
}

.footer-website {
    margin-top: 15px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--gold-dark);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-website:hover {
    transform: translateY(-2px);
    color: var(--text);
}

/* ==================================================
   NOTIFICACIÓN
================================================== */

.toast {
    position: fixed;
    z-index: 20;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));

    min-width: 150px;
    padding: 12px 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    border: 1px solid rgba(213, 183, 127, 0.25);
    border-radius: 999px;

    background: rgba(23, 20, 17, 0.94);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.23);

    color: #ffffff;
    font-size: 11px;
    font-weight: 600;

    opacity: 0;
    pointer-events: none;

    transform: translate(-50%, 20px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.toast i {
    color: var(--gold-light);
}

.toast.toast-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ==================================================
   CELULARES PEQUEÑOS
================================================== */

@media (max-width: 390px) {
    .link-page {
        padding-right: 14px;
        padding-left: 14px;
    }

    .share-button {
        right: 14px;
    }

    .profile {
        padding-right: 42px;
        padding-left: 42px;
    }

    .logo-ring {
        width: 112px;
        height: 112px;
    }

    .profile-description {
        font-size: 19px;
    }

    .link-card {
        grid-template-columns: 44px minmax(0, 1fr) auto;

        min-height: 72px;
        padding: 11px 13px;
        gap: 11px;
    }

    .link-icon {
        width: 43px;
        height: 43px;

        font-size: 18px;
    }

    .link-content strong {
        font-size: 13px;
    }

    .link-content small {
        font-size: 9.5px;
    }

    .featured-label {
        display: none;
    }
}

/* ==================================================
   PANTALLAS GRANDES
================================================== */

@media (min-width: 700px) {
    .link-page {
        padding-top: 48px;
        padding-bottom: 50px;
    }

    .share-button {
        top: 42px;
    }

    .link-card {
        min-height: 80px;
    }
}

/* ==================================================
   ACCESIBILIDAD
================================================== */

.share-button:focus-visible,
.link-card:focus-visible,
.footer-website:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}.developer-credit {
    margin-top: 22px;

    color: var(--text-light);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.developer-credit span {
    color: var(--gold-dark);
    font-weight: 700;
}