/* ===================================================
   VARIABLES DE COLOR & SISTEMA DE DISEÑO LUMINOSO
   =================================================== */
:root {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-highlight: #eef2ff;
    
    --border-subtle: #e2e8f0;
    --border-card: #e2e8f0;
    --border-hover: #6366f1;

    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-dim: #94a3b8;

    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-glow: rgba(79, 70, 229, 0.15);

    --secondary: #e11d48;
    --secondary-hover: #be123c;
    --secondary-light: #fff1f2;

    --emerald: #059669;
    --emerald-hover: #047857;
    --emerald-light: #ecfdf5;

    --gold: #f59e0b;
    --gold-dark: #b45309;
    --gold-text: #92400e;
    --gold-light: #fef3c7;

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-pill: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(15, 23, 42, 0.04);
    --shadow-float: 0 20px 40px -10px rgba(15, 23, 42, 0.45);
    --shadow-modal: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
    --shadow-vip: 0 15px 45px -8px rgba(217, 119, 6, 0.18), 0 0 0 2px rgba(217, 119, 6, 0.3);
}

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

p, h1, h2, h3, h4, .editorial-review, .business-name {
    overflow-wrap: break-word;
    word-break: break-word;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 120px;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1040px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

/* Navbar Principal */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.logo-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.btn-nav-register {
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px var(--primary-glow);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.btn-nav-register:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-nav-coupons {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.btn-nav-coupons:hover {
    background: #e2e8f0;
}

/* Toast */
.toast {
    position: fixed;
    top: 4.75rem;
    right: 1.5rem;
    max-width: calc(100vw - 2rem);
    background: #0f172a;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--emerald);
    font-size: 0.88rem;
    box-shadow: var(--shadow-sm);
    z-index: 100001;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ===================================================
   ADAPTABILIDAD MÓVIL GLOBAL (SMARTPHONES)
   =================================================== */
@media (max-width: 640px) {
    .container {
        padding: 1rem 0.85rem;
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 0.85rem 1rem;
        border-radius: var(--radius-lg);
        margin-bottom: 1.25rem;
        gap: 0.65rem;
    }

    .logo-brand {
        justify-content: center;
        font-size: 1.08rem;
        text-align: center;
    }

    .nav-actions {
        width: 100%;
        justify-content: stretch;
        gap: 0.5rem;
    }

    .btn-nav-register,
    .btn-nav-coupons {
        flex: 1 1 calc(50% - 0.5rem);
        font-size: 0.82rem;
        padding: 0.6rem 0.65rem;
        white-space: normal;
        line-height: 1.25;
    }

    .toast {
        left: 0.85rem;
        right: 0.85rem;
        top: 4.25rem;
    }
}

/* ===================================================
   PANTALLAS 360px (SAMSUNG S3) Y MICRO 320px (S2)
   =================================================== */
@media (max-width: 380px) {
    .container {
        padding: 0.75rem 0.6rem;
    }

    .main-nav {
        padding: 0.7rem 0.75rem;
        gap: 0.5rem;
        border-radius: var(--radius-md);
    }

    .logo-brand {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .nav-actions {
        flex-direction: column;
        gap: 0.45rem;
    }

    .btn-nav-register,
    .btn-nav-coupons {
        width: 100%;
        flex: 1 1 100%;
        font-size: 0.8rem;
        padding: 0.55rem 0.6rem;
        white-space: normal;
    }
}

/* ===================================================
   TARJETA DE PERFIL COMERCIAL (FEED PRINCIPAL)
   =================================================== */
.profile-card {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
}

.profile-card.is-vip {
    border: 2px solid #f59e0b;
    box-shadow: 0 15px 45px -8px rgba(217, 119, 6, 0.22), 0 0 0 2px rgba(217, 119, 6, 0.3);
}

.vip-announcement-banner {
    display: none;
    background: linear-gradient(90deg, #92400e 0%, #b45309 50%, #d97706 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.45rem 1rem;
    text-align: center;
    letter-spacing: 0.02em;
}

.profile-card.is-vip .vip-announcement-banner {
    display: block;
}

.cover-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #1e293b;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-card:hover .cover-img {
    transform: scale(1.02);
}

.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.cover-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    z-index: 2;
    pointer-events: none;
}

.category-tag {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #1e1b4b;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    white-space: nowrap;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: auto;
}

.vip-crown-badge {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1.5px solid #f59e0b;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
    pointer-events: auto;
}

.avatar-bar {
    position: relative;
    padding: 0 1.5rem;
    margin-top: -46px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    z-index: 10;
}

.avatar-group {
    display: flex;
    align-items: flex-end;
    gap: 0.85rem;
}

.avatar-box {
    position: relative;
}

.avatar-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.18);
    display: block;
}

.profile-card.is-vip .avatar-img {
    border-color: #f59e0b;
}

.verified-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    border: 2px solid #ffffff;
}

.profile-card.is-vip .verified-badge {
    background: #d97706;
}

.card-body {
    padding: 1.25rem 1.5rem 1.75rem;
}

.business-name {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}

.editorial-review {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1rem 0 1.25rem;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.6;
}

.profile-card.is-vip .editorial-review {
    background: #fffbeb;
    border-left-color: #d97706;
}

.editorial-label {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.profile-card.is-vip .editorial-label {
    color: #b45309;
}

.official-url-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    margin-top: 1rem;
}

.official-url-card:hover {
    border-color: var(--primary);
    background: #faf5ff;
}

.url-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

@media (max-width: 640px) {
    .cover-wrapper {
        height: 170px;
    }
    .cover-badges {
        top: 0.65rem;
        left: 0.65rem;
        right: 0.65rem;
    }
    .category-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
        max-width: 55%;
    }
    .vip-crown-badge {
        font-size: 0.68rem;
        padding: 0.25rem 0.6rem;
    }
    .avatar-bar {
        padding: 0 1rem;
        margin-top: -38px;
    }
    .avatar-img {
        width: 74px;
        height: 74px;
    }
    .card-body {
        padding: 1rem 1rem 1.35rem;
    }
    .business-name {
        font-size: 1.35rem;
    }
}

