@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Animations */
.update-card-featured,
.update-card-regular {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.update-card-featured:hover,
.update-card-regular:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.reaction-badge {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.reaction-badge:hover {
    transform: scale(1.15) rotate(3deg);
}

.reaction-badge.user-selected {
    animation: pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.5);
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
}

@keyframes pop-in {
    0% {
        transform: scale(0.5);
    }

    100% {
        transform: scale(1);
    }
}

:root {
    --bg-main: #fcfcfd;
    --text-dark: #101828;
    --text-muted: #667085;
    --primary-blue: #2d5cf7;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --border-light: #eaecf0;

    /* Tag Colors */
    --tag-featured-bg: #fef3f2;
    --tag-featured-text: #b42318;
    --tag-improvement-bg: #ecfdf3;
    --tag-improvement-text: #027a48;
    --tag-new-bg: #eff8ff;
    --tag-new-text: #175cd3;
    --tag-security-bg: #fdf2fa;
    --tag-security-text: #c11574;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.full-container {
    width: 100%;
    max-width: 1540px;
    /* Much wider as requested */
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Integration */


/* Hero Section */
.novedades-hero-wide {
    width: 100%;
    padding: 120px 0 100px;
    background: radial-gradient(circle at top right, #f9faff, #fff);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.hero-content-wide {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.badge-new {
    background: #eff4ff;
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 24px;
}

.hero-content-wide h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.95;
    margin-bottom: 30px;
    color: #101828;
}

.hero-content-wide p {
    font-size: 1.35rem;
    color: var(--text-muted);
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Updates Grid */
.updates-section {
    padding: 60px 0 120px;
    width: 100%;
}

.updates-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.update-card-featured,
.update-card-regular {
    background: white;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    width: 100%;
}

.update-card-featured:hover,
.update-card-regular:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: #d0d5dd;
}

.card-content-wide {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Multi-colored Tags */
.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.card-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.tag-featured {
    background: var(--tag-featured-bg);
    color: var(--tag-featured-text);
}

.tag-improvement {
    background: var(--tag-improvement-bg);
    color: var(--tag-improvement-text);
}

.tag-new {
    background: var(--tag-new-bg);
    color: var(--tag-new-text);
}

.tag-security {
    background: var(--tag-security-bg);
    color: var(--tag-security-text);
}

.card-title-row {
    margin-bottom: 12px;
}

.card-title-row h2,
.card-title-row h3 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #101828;
}

.card-body {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #475467;
    max-height: 4.8em;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-body.expanded {
    max-height: 3000px;
}

.btn-show-more {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    padding: 10px 0;
    transition: opacity 0.2s;
}

.btn-show-more:hover {
    opacity: 0.7;
}

.footer-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* Reaction UI */
.reaction-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.reaction-trigger {
    background: #f2f4f7;
    border: none;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475467;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.reaction-trigger:hover {
    background: #eaecf0;
    transform: translateY(-1px);
}

.active-reactions {
    display: flex;
    gap: 6px;
}

.reaction-badge {
    background: #f2f4f7;
    border: 1px solid transparent;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reaction-badge:hover {
    transform: scale(1.1);
}

.reaction-badge.user-selected {
    background: #f0f9ff;
    border-color: #0086ff;
    color: #0086ff;
    animation: emojiBounce 0.5s ease;
}

/* Panels */
.emoji-panel {
    position: absolute;
    bottom: 130%;
    right: 0;
    background: white;
    border: 1px solid #d0d5dd;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 10px 14px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.9);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.emoji-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.full-emoji-picker {
    position: absolute;
    bottom: 130%;
    right: 0;
    background: white;
    border: 1px solid #d0d5dd;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 24px;
    display: none;
    grid-template-columns: repeat(10, 1fr);
    gap: 12px;
    width: 480px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 105;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.full-emoji-picker.show {
    display: grid;
}

.emoji-btn {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
}

.emoji-btn:hover {
    transform: scale(1.3);
    background: #f9fafb;
}

.btn-emoji-plus {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f2f4f7;
    border: none;
    color: #667085;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@keyframes emojiBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .full-emoji-picker {
        width: 320px;
        grid-template-columns: repeat(6, 1fr);
    }

    .hero-content-wide h1 {
        font-size: 3.5rem;
    }
}
html, body { overflow-y: scroll !important; scrollbar-gutter: stable !important; }
