/* Ecosistema ACU — hub de productos */

:root {
    --bg: #f4f4f2;
    --surface: rgba(255, 255, 255, 0.76);
    --border: rgba(255, 255, 255, 0.92);
    --text: #111113;
    --text-secondary: #66666c;
    --muted: #929299;
    --focus: #202024;
    --shadow: 0 20px 60px rgba(28, 28, 32, 0.09);
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: "Outfit", system-ui, sans-serif;
    min-height: 100dvh;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.95) 0, transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(198, 198, 204, 0.46) 0, transparent 30%),
        radial-gradient(circle at 78% 82%, rgba(255, 255, 255, 0.7) 0, transparent 32%),
        radial-gradient(circle at 18% 88%, rgba(191, 191, 198, 0.42) 0, transparent 34%),
        linear-gradient(135deg, #f8f8f7 0%, #dedee2 48%, #f1f1f0 100%);
    background-size: 150% 150%, 145% 145%, 160% 160%, 150% 150%, 100% 100%;
    background-attachment: fixed;
    animation: meshMovement 18s ease-in-out infinite alternate;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 40% at 50% -8%, rgba(255, 255, 255, 0.75), transparent 70%),
        linear-gradient(115deg, transparent 15%, rgba(255, 255, 255, 0.34) 42%, transparent 68%);
    background-size: 100% 100%, 220% 100%;
    animation: lightSweep 14s linear infinite;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    mix-blend-mode: multiply;
    background-image:
        radial-gradient(circle, rgba(32, 32, 36, 0.34) 0.7px, transparent 0.8px),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
    background-size: 26px 26px, 180px 180px;
    mask-image: linear-gradient(to bottom, transparent 2%, #000 24%, #000 78%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 2%, #000 24%, #000 78%, transparent 100%);
}

.ambient {
    position: fixed;
    border-radius: 999px;
    filter: blur(58px);
    pointer-events: none;
    opacity: 0.3;
    mix-blend-mode: multiply;
    will-change: transform;
}

.ambient-one {
    width: 34rem;
    height: 34rem;
    top: -11rem;
    right: 3%;
    background: radial-gradient(circle at 42% 46%, rgba(255, 91, 34, 0.56), rgba(255, 184, 123, 0.15) 42%, transparent 70%);
    animation: ambientFloatOne 13s ease-in-out infinite alternate;
}

.ambient-two {
    width: 39rem;
    height: 39rem;
    left: -13rem;
    bottom: -13rem;
    background: radial-gradient(circle at 58% 44%, rgba(22, 140, 255, 0.5), rgba(110, 188, 255, 0.12) 44%, transparent 70%);
    animation: ambientFloatTwo 16s ease-in-out infinite alternate;
}

.ambient-three {
    width: 30rem;
    height: 30rem;
    left: 58%;
    top: 32%;
    background: radial-gradient(circle, rgba(134, 196, 64, 0.42), rgba(199, 231, 161, 0.1) 45%, transparent 70%);
    animation: ambientFloatThree 19s ease-in-out infinite alternate;
}

.page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 590px;
    margin: 0 auto;
    padding: clamp(32px, 5vh, 60px) 24px 40px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* Hero */
.hero {
    text-align: left;
    margin-bottom: 38px;
    animation: fadeUp 0.6s ease both;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: #6f6f75;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-label span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #151517;
    box-shadow: 0 0 0 5px rgba(21, 21, 23, 0.08);
}

.hero h1 {
    max-width: 520px;
    margin-bottom: 18px;
    color: var(--text);
    font-size: clamp(42px, 8vw, 68px);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.hero h1 strong {
    font-weight: 800;
}

.hero-sub {
    max-width: 430px;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Links */
.links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 0 0 auto;
}

.link-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 112px;
    padding: 18px 20px;
    background:
        radial-gradient(circle at 102% -5%, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 38%),
        linear-gradient(125deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.72) 68%, rgba(255, 255, 255, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 28px 28px 28px 10px;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
    animation: fadeUp 0.55s ease both;
    animation-delay: calc(0.12s + var(--i, 0) * 0.08s);
}

.link-card:nth-child(even) {
    border-radius: 28px 28px 10px 28px;
}

.link-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 1px;
    border-radius: inherit;
    background:
        linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.72) 46%, transparent 68%);
    background-size: 230% 100%;
    background-position: 110% 0;
    opacity: 0;
    transition: opacity 0.3s ease, background-position 0.65s ease;
}

.link-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 170px;
    height: 170px;
    right: -105px;
    top: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 68%);
    opacity: 0.3;
    filter: blur(2px);
    transition: opacity 0.3s ease, transform 0.45s ease;
}

.link-card:hover {
    transform: translateY(-6px) rotate(-0.35deg) scale(1.01);
    box-shadow: 0 30px 70px rgba(28, 28, 32, 0.15);
}

.link-card:hover::before {
    background-position: -80% 0;
    opacity: 1;
}

.link-card:hover::after {
    opacity: 0.5;
    transform: scale(1.3) translate(-8px, 8px);
}

.link-card:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.link-logo {
    flex-shrink: 0;
    width: 104px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.58);
}

.link-logo img {
    max-width: 100%;
    max-height: 45px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.link-logo:has(.generated-icon) {
    overflow: hidden;
}

.link-logo img.generated-icon {
    width: 62px;
    height: 62px;
    max-width: none;
    max-height: none;
    border-radius: 16px;
    mix-blend-mode: multiply;
    transform: scale(1.38);
}

.link-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.link-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.link-desc {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.35;
}

.link-domain {
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.link-action {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(30, 30, 34, 0.09);
    border-radius: 50%;
    color: #4e4e54;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.56);
    transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.link-card:hover .link-action {
    color: #fff;
    background: #171719;
    transform: rotate(5deg);
}

/* Contacto */
.whatsapp-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 18px 20px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px 28px 28px 28px;
    background:
        radial-gradient(circle at 92% 0%, rgba(255, 255, 255, 0.2), transparent 35%),
        linear-gradient(130deg, #102a20 0%, #173d2d 48%, #1d5038 100%);
    box-shadow: 0 24px 55px rgba(16, 42, 32, 0.22);
    animation: fadeUp 0.55s ease 0.4s both;
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}

.whatsapp-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    top: -105px;
    right: 40px;
    border-radius: 50%;
    border: 22px solid rgba(37, 211, 102, 0.12);
    transition: transform 0.4s ease;
}

.whatsapp-card:hover {
    transform: translateY(-5px) scale(1.008);
    box-shadow: 0 30px 68px rgba(16, 42, 32, 0.3);
}

.whatsapp-card:hover::after {
    transform: scale(1.25) translate(-8px, 8px);
}

.whatsapp-card:focus-visible {
    outline: 2px solid #173d2d;
    outline-offset: 3px;
}

.whatsapp-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #102a20;
    background: #6ef09e;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.whatsapp-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.whatsapp-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.whatsapp-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6ef09e;
    box-shadow: 0 0 0 4px rgba(110, 240, 158, 0.12);
}

.whatsapp-copy strong {
    font-size: 17px;
    line-height: 1.2;
}

.whatsapp-copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
}

.whatsapp-arrow {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    transition: background 0.25s ease, transform 0.25s ease;
}

.whatsapp-card:hover .whatsapp-arrow {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(5deg);
}

/* Footer */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 34px;
    padding: 0 4px;
    font-size: 11px;
    color: var(--muted);
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.4s;
}

.footer span {
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.footer p {
    margin: 0;
}

@keyframes meshMovement {
    0% {
        background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%, 50% 50%;
    }
    50% {
        background-position: 12% 8%, 88% 16%, 92% 86%, 8% 78%, 50% 50%;
    }
    100% {
        background-position: 4% 18%, 82% 4%, 78% 94%, 18% 88%, 50% 50%;
    }
}

@keyframes lightSweep {
    from { background-position: 50% 0, 120% 0; }
    to { background-position: 50% 0, -120% 0; }
}

@keyframes ambientFloatOne {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-70px, 90px, 0) scale(1.16); }
}

@keyframes ambientFloatTwo {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(95px, -65px, 0) scale(1.12); }
}

@keyframes ambientFloatThree {
    from { transform: translate3d(-40px, 20px, 0) scale(0.9); }
    to { transform: translate3d(75px, -85px, 0) scale(1.18); }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body,
    body::before,
    .ambient {
        animation: none;
    }

    .hero,
    .link-card,
    .whatsapp-card,
    .footer {
        animation: none;
    }

    .link-card:hover,
    .link-card:hover .link-action,
    .whatsapp-card:hover,
    .whatsapp-card:hover .whatsapp-arrow {
        transform: none;
    }
}

@media (max-width: 520px) {
    .page {
        padding: 28px 16px 6px;
    }

    .hero {
        margin-bottom: 30px;
    }

    .hero h1 {
        font-size: clamp(40px, 13vw, 56px);
    }

    .hero-sub {
        font-size: 15px;
    }

    .link-card {
        gap: 14px;
        min-height: 98px;
        padding: 15px 14px;
        border-radius: 20px;
    }

    .link-logo {
        width: 82px;
        height: 50px;
    }

    .link-name {
        font-size: 16px;
    }

    .link-action {
        width: 38px;
        height: 38px;
    }

    .whatsapp-card {
        padding: 16px 14px;
        border-radius: 10px 22px 22px 22px;
    }

    .whatsapp-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .whatsapp-copy strong {
        font-size: 15px;
    }
}
