﻿/* ==============================================
   TOP FRASES — Landing
   ============================================== */

:root {
    --tf-primary: #e91e8c;
    --tf-purple: #9c27b0;
    --tf-gradient: linear-gradient(135deg, #e91e8c 0%, #9c27b0 100%);
    --tf-gradient-pro: linear-gradient(135deg, #9c27b0 0%, #4a148c 100%);
    --tf-soft: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%);
    --tf-bg: #fff8fc;
    --tf-surface: #ffffff;
    --tf-text: #1a1a2e;
    --tf-muted: #6b6b8a;
    --tf-border: rgba(233, 30, 140, 0.13);
    --tf-shadow-sm: 0 2px 8px rgba(233, 30, 140, 0.08);
    --tf-shadow-md: 0 8px 24px rgba(233, 30, 140, 0.12);
    --tf-shadow-lg: 0 20px 48px rgba(233, 30, 140, 0.16);
    --tf-radius: 20px;
    --tf-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: var(--tf-bg);
}

/* ── Botones ─────────────────────────── */
.tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--tf-ease);
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.tf-btn--full {
    width: 100%;
}

.tf-btn--primary {
    background: var(--tf-gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(233,30,140,0.3);
}

    .tf-btn--primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(233,30,140,0.4);
        color: #fff;
    }

.tf-btn--ghost {
    background: transparent;
    color: var(--tf-primary);
    border: 1.5px solid var(--tf-border);
}

    .tf-btn--ghost:hover {
        background: var(--tf-soft);
        border-color: var(--tf-primary);
        color: var(--tf-primary);
    }

.tf-btn--pro {
    background: var(--tf-gradient-pro);
    color: #fff;
    box-shadow: 0 4px 16px rgba(156,39,176,0.35);
}

    .tf-btn--pro:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(156,39,176,0.45);
        color: #fff;
    }

/* ── Hero ────────────────────────────── */
.tf-hero {
    padding: 100px 1.25rem 2rem;
    text-align: center;
    background: var(--tf-bg);
}

.tf-hero__inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
}

.tf-hero__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: var(--tf-surface);
    border: 1.5px solid var(--tf-border);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--tf-muted);
    box-shadow: var(--tf-shadow-sm);
}

.tf-hero__title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    font-weight: 900;
    color: var(--tf-text);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.tf-hero__accent {
    background: var(--tf-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tf-hero__sub {
    font-size: 1rem;
    color: var(--tf-muted);
}

.tf-hero__free-notice {
    font-size: 0.85rem;
    color: var(--tf-muted);
    background: var(--tf-surface);
    border: 1.5px solid var(--tf-border);
    border-radius: 100px;
    padding: 0.45rem 1rem;
}

.tf-hero__pro-link {
    color: var(--tf-primary);
    font-weight: 700;
    text-decoration: none;
}

    .tf-hero__pro-link:hover {
        text-decoration: underline;
    }

.tf-hero__pro-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: var(--tf-gradient-pro);
    color: #fff;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
}

/* ── Lista de frases ─────────────────── */
.tf-lista {
    padding: 0 1.25rem 2rem;
}

.tf-lista__inner {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Card de frase ───────────────────── */
.tf-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--tf-surface);
    border-radius: var(--tf-radius);
    border: 1.5px solid var(--tf-border);
    padding: 1.25rem;
    box-shadow: var(--tf-shadow-sm);
    transition: all 0.25s var(--tf-ease);
    position: relative;
    overflow: hidden;
}

    .tf-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--tf-border);
        transition: all 0.25s ease;
    }

    .tf-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--tf-shadow-md);
    }

        .tf-card:hover::before {
            background: var(--tf-gradient);
            height: 4px;
        }

/* Podio — top 3 con borde más llamativo */
.tf-card--podio {
    border-color: rgba(233, 30, 140, 0.25);
    box-shadow: var(--tf-shadow-md);
}

    .tf-card--podio::before {
        background: var(--tf-gradient);
        height: 4px;
    }

/* Número de posición */
.tf-card__pos {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    background: var(--tf-soft);
    color: var(--tf-muted);
    border: 1.5px solid var(--tf-border);
}

.tf-card__pos--gold {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #fff;
    border: none;
    font-size: 1.3rem;
}

.tf-card__pos--silver {
    background: linear-gradient(135deg, #c0c0c0, #9e9e9e);
    color: #fff;
    border: none;
    font-size: 1.3rem;
}

.tf-card__pos--bronze {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: #fff;
    border: none;
    font-size: 1.3rem;
}

/* Cuerpo de la card */
.tf-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0; /* evita overflow */
}

.tf-card__original,
.tf-card__traduccion {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.tf-card__original-label,
.tf-card__traduccion-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--tf-muted);
}

.tf-card__original-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tf-text);
    font-style: italic;
}

.tf-card__traduccion-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tf-text);
    line-height: 1.4;
}

.tf-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

/* Tag de categoría */
.tf-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    background: var(--tf-soft);
    color: var(--tf-primary);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(233,30,140,0.18);
}

.tf-votos {
    font-size: 0.78rem;
    color: var(--tf-muted);
    font-weight: 600;
}

/* Botón compartir */
.tf-card__share {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--tf-border);
    background: transparent;
    color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    align-self: center;
}

    .tf-card__share:hover {
        background: #25d366;
        color: #fff;
        border-color: #25d366;
        transform: scale(1.1);
    }

/* ── Empty state ─────────────────────── */
.tf-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.tf-empty__emoji {
    font-size: 3rem;
}

/* ── Paginación ──────────────────────── */
.tf-paginacion {
    padding: 1rem 1.25rem 2rem;
}

.tf-paginacion__inner {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.tf-paginacion__info {
    font-size: 0.85rem;
    color: var(--tf-muted);
    font-weight: 600;
    white-space: nowrap;
}

/* ── Paywall ─────────────────────────── */
.tf-paywall {
    padding: 1rem 1.25rem 2rem;
}

.tf-paywall__inner {
    max-width: 480px;
    margin: 0 auto;
    background: var(--tf-gradient-pro);
    border-radius: 28px;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    box-shadow: var(--tf-shadow-lg);
    position: relative;
    overflow: hidden;
}

    .tf-paywall__inner::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 200px;
        height: 200px;
        background: rgba(255,255,255,0.07);
        border-radius: 50%;
        pointer-events: none;
    }

.tf-paywall__lock {
    font-size: 2.5rem;
}

.tf-paywall__title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
}

.tf-paywall__sub {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.78);
    margin-top: -0.25rem;
}

.tf-paywall__features {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

    .tf-paywall__features li {
        font-size: 0.88rem;
        color: rgba(255,255,255,0.9);
        padding: 0.55rem 0.875rem;
        background: rgba(255,255,255,0.1);
        border-radius: 10px;
        font-weight: 500;
    }

.tf-paywall .tf-btn--pro {
    background: #fff;
    color: #7b1fa2;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

    .tf-paywall .tf-btn--pro:hover {
        background: #f3e5f5;
        color: #7b1fa2;
    }

.tf-paywall__nota {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
}

/* ── CTA final ───────────────────────── */
.tf-cta {
    padding: 2rem 1.25rem;
    text-align: center;
    border-top: 1px solid var(--tf-border);
}

.tf-cta__inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

    .tf-cta__inner p {
        font-size: 0.95rem;
        color: var(--tf-muted);
        font-weight: 500;
    }

/* ── Desktop ─────────────────────────── */
@media (min-width: 600px) {
    .tf-hero {
        padding-top: 120px;
    }

    .tf-card {
        padding: 1.5rem;
    }

    .tf-card__pos {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }
}

/* Comentario en cards de TopFrases */
.tf-card__comentario {
    font-size: 0.8rem;
    color: var(--th-text-soft, #888);
    font-style: italic;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(233, 30, 140, 0.2);
    margin-top: 0.5rem;
}