/* ==========================================================================
   PhotonCode · Footer (receta de Extrafazant, extraída con REA, en versión clara)
   Llamado grande con logos que salen al mover el mouse, letras que cambian de
   grosor cerca del cursor, logo, columnas y enlaces con subrayado animado.
   ========================================================================== */
.pf {
    --pf-ink: #0d0c22;
    --pf-ink-2: #4a4860;
    --pf-line: rgba(13, 12, 34, 0.1);
    position: relative;
    margin: clamp(40px, 6vw, 80px) clamp(8px, 1.4vw, 20px) clamp(8px, 1.4vw, 20px);
    border-radius: 48px;
    overflow: hidden;
    color: var(--pf-ink);
    background:
        radial-gradient(55% 60% at 10% 0%, rgba(0, 166, 255, 0.18), transparent 70%),
        radial-gradient(50% 60% at 95% 30%, rgba(108, 71, 255, 0.2), transparent 70%),
        radial-gradient(60% 50% at 50% 100%, rgba(255, 170, 214, 0.22), transparent 70%),
        linear-gradient(160deg, #f4f0ff 0%, #eef5ff 55%, #fbf2ff 100%);
    font-family: 'Inter', system-ui, sans-serif;
}

.pf-wrap {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

/* ---------- Llamado ---------- */
.pf-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(80px, 11vw, 150px) 0 clamp(70px, 9vw, 120px);
    text-align: center;
}

.pf-kicker {
    position: relative;
    z-index: 2;
    margin-bottom: 18px;
    color: #6c47ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.pf-title {
    position: relative;
    z-index: 2;
    margin: 0;
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: clamp(2.8rem, 8.2vw, 7.4rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.pf-line {
    display: block;
}

.pf-line .pf-ch {
    display: inline-block;
    font-variation-settings: 'wght' var(--w, 800);
    font-weight: var(--w, 800);
}

.pf-alt {
    font-weight: 300;
    color: #6c47ff;
}

.pf-lead {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: 26px auto 0;
    color: var(--pf-ink-2);
    font-size: 1.08rem;
}

.pf-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}

/* Botón con icono que entra al pasar el mouse */
.pf-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 22px 8px 8px;
    border-radius: 999px;
    background: var(--pf-ink);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, background 0.3s ease;
}

.pf-btn-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a6ff, #6c47ff);
    color: #fff;
    overflow: hidden;
}

.pf-btn-icon i {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(108, 71, 255, 0.3);
}

.pf-btn:hover .pf-btn-icon .fa-arrow-right {
    animation: pfArrow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pfArrow {
    0% { transform: translateX(0); }
    45% { transform: translateX(140%); }
    46% { transform: translateX(-140%); }
    100% { transform: translateX(0); }
}

.pf-btn-ghost {
    background: #fff;
    color: var(--pf-ink);
    box-shadow: 0 10px 26px rgba(20, 16, 60, 0.08);
}

.pf-btn-ghost .pf-btn-icon {
    background: #25d366;
}

.pf-hint {
    position: relative;
    z-index: 2;
    margin-top: 30px;
    color: rgba(13, 12, 34, 0.4);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Logos que salen al mover el mouse */
.pf-trail {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(34, 24, 110, 0.16);
    pointer-events: none;
    will-change: transform;
}

.pf-trail.is-round { border-radius: 50%; }

.pf-trail.is-tilt {
    background: var(--tile, #fff);
}

.pf-trail .brand-mark {
    width: 46%;
    height: 46%;
    background: rgb(var(--bc));
    -webkit-mask: var(--logo) center / contain no-repeat;
    mask: var(--logo) center / contain no-repeat;
}

.pf-trail.is-tilt .brand-mark {
    background: #fff;
}

/* ---------- Principal ---------- */
.pf-main {
    display: grid;
    grid-template-columns: 1.2fr 1.6fr;
    gap: 40px clamp(30px, 6vw, 90px);
    padding: clamp(40px, 6vw, 70px) 0;
    border-top: 1px solid var(--pf-line);
}

.pf-logo {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--pf-ink);
    text-decoration: none;
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.pf-logo svg {
    width: 1.05em;
    height: 1.05em;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-logo:hover svg {
    transform: rotate(-180deg);
}

.pf-logo b {
    background: linear-gradient(90deg, #00a6ff, #6c47ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pf-desc {
    max-width: 360px;
    margin-top: 16px;
    color: var(--pf-ink-2);
}

.pf-main > .pf-logo,
.pf-main > .pf-desc {
    grid-column: 1;
}

.pf-cols {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pf-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.pf-col h3 {
    margin: 0 0 8px;
    color: #6c47ff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Enlace con subrayado que se dibuja */
.pf-link {
    position: relative;
    color: var(--pf-ink);
    font-weight: 500;
    text-decoration: none;
}

.pf-link span {
    background: linear-gradient(90deg, #00a6ff, #6c47ff) left bottom / 0% 2px no-repeat;
    padding-bottom: 3px;
    transition: background-size 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.pf-link:hover span {
    background-size: 100% 2px;
    color: #6c47ff;
}

.pf-note {
    color: var(--pf-ink-2);
    font-size: 0.88rem;
}

/* ---------- Barra final ---------- */
.pf-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 30px;
    padding: 24px 0 30px;
    border-top: 1px solid var(--pf-line);
    color: var(--pf-ink-2);
    font-size: 0.86rem;
}

.pf-legal {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.pf-legal a {
    color: var(--pf-ink-2);
    text-decoration: none;
}

.pf-legal a:hover {
    color: #6c47ff;
}

.pf-top {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--pf-ink);
    color: #fff;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.pf-top:hover {
    transform: translateY(-4px);
    background: #6c47ff;
}

@media (max-width: 900px) {
    .pf {
        border-radius: 32px;
    }

    .pf-main {
        grid-template-columns: 1fr;
    }

    .pf-cols {
        grid-column: 1;
        grid-row: auto;
        grid-template-columns: 1fr 1fr;
    }

    .pf-hint {
        display: none;
    }
}

@media (max-width: 560px) {
    .pf-wrap {
        width: calc(100% - 36px);
    }

    .pf-cols {
        grid-template-columns: 1fr;
    }

    .pf-legal {
        margin-left: 0;
    }
}

/* La descripción va justo debajo del logo */
.pf-main {
    grid-template-rows: auto 1fr;
}

.pf-desc {
    align-self: start;
}

@media (max-width: 900px) {
    .pf-main {
        grid-template-rows: none;
    }
}

/* Los logos viajan por todo el recuadro, detrás del contenido */
.pf-cta {
    overflow: visible;
}

.pf-wrap {
    position: relative;
    z-index: 2;
}

.pf > .pf-trail {
    z-index: 1;
}
