/* ═══════════════════════════════════════════════════════════════
   PHYSIOLUNG - CURSOS CATALOG V3
   Simple Header + Premium Cards + Elegant Mobile
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Brand Colors */
    --primary: #004AAD;
    --primary-dark: #003580;
    --primary-light: rgba(0, 74, 173, 0.1);
    --accent: #EFB644;
    --accent-dark: #d9a33a;
    --accent-light: rgba(239, 182, 68, 0.15);
    --success: #10b981;
    --error: #ef4444;

    /* Neutrals */
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-gray: #F1F5F9;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-accent: 0 8px 30px rgba(239, 182, 68, 0.3);
    --shadow-primary: 0 8px 30px rgba(0, 74, 173, 0.25);

    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─────────────────────────────────────────────────────────────────
   GLOBAL STYLES
   ───────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ─────────────────────────────────────────────────────────────────
   NAVBAR
   ───────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 74, 173, 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo img {
    height: 42px;
    transition: transform 0.3s;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    transition: all 0.3s;
    color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-gray);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
    font-size: 1rem;
}

.nav-icon-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent);
    color: var(--text-primary);
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.nav-toggle {
    display: none;
    font-size: 1.3rem;
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-gray);
    align-items: center;
    justify-content: center;
}

/* ─────────────────────────────────────────────────────────────────
   PAGE HEADER (Simple Title)
   ───────────────────────────────────────────────────────────────── */
.page-header {
    padding: 120px 24px 40px;
    text-align: center;
    background: var(--bg-light);
}

.page-header-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.page-header-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.25;
    max-width: 650px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────
   CATALOG SECTION
   ───────────────────────────────────────────────────────────────── */
.cursos-catalog {
    padding: 32px 0 60px;
}

.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-gray);
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    background: white;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--bg-gray);
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.catalog-info {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ─────────────────────────────────────────────────────────────────
   COURSE CARDS
   ───────────────────────────────────────────────────────────────── */
.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.course-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    cursor: pointer;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.course-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-thumb img {
    transform: scale(1.06);
}

.category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 74, 173, 0.95);
    color: white;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-content {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    min-height: 3.2rem;
    transition: color 0.3s;
}

.course-card:hover .course-title {
    color: var(--primary);
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-meta i {
    color: var(--accent);
    font-size: 0.85rem;
}

.course-footer {
    padding-top: 16px;
    border-top: 1px solid var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.course-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.price-value.free {
    color: var(--success);
    font-size: 1.2rem;
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
    z-index: 2;
    box-shadow: var(--shadow-accent);
}

.btn-add-cart:hover {
    transform: scale(1.1);
}

.btn-add-cart.success {
    background: var(--success);
    color: white;
}

.btn-enroll-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
    padding: 10px 16px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
}

.course-card:hover .btn-enroll-link {
    background: var(--primary);
    color: white;
}

.course-card:hover .btn-enroll-link i {
    transform: translateX(3px);
}

.btn-enroll-link i {
    transition: transform 0.3s;
}

/* ─────────────────────────────────────────────────────────────────
   SKELETON LOADING
   ───────────────────────────────────────────────────────────────── */
.skeleton-card {
    height: 380px;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s linear infinite;
    border-radius: var(--radius-xl);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ─────────────────────────────────────────────────────────────────
   TRUST INDICATORS
   ───────────────────────────────────────────────────────────────── */
.trust-section {
    padding: 50px 0;
    background: white;
    border-top: 1px solid var(--bg-gray);
    border-bottom: 1px solid var(--bg-gray);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-item i {
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.trust-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ─────────────────────────────────────────────────────────────────
   CTA SECTION
   ───────────────────────────────────────────────────────────────── */
.cta-section {
    padding: 40px 0 70px;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(239, 182, 68, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.cta-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    flex-shrink: 0;
}

.cta-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--text-primary);
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(239, 182, 68, 0.4);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────── */
.footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #001a40 100%);
    color: white;
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-logo {
    height: 44px;
    margin-bottom: 20px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--text-primary);
    transform: translateY(-3px);
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 700;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    font-size: 0.9rem;
}

.footer ul a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--accent);
    width: 18px;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE - TABLET
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .cursos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-info {
        grid-column: span 2;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE - MOBILE
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Navbar Mobile */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        gap: 4px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
        border-radius: var(--radius-md);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-logo img {
        height: 36px;
    }

    .nav-icon-btn {
        width: 40px;
        height: 40px;
    }

    /* Page Header Mobile */
    .page-header {
        padding: 100px 16px 32px;
    }

    .page-header-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .page-header-subtitle {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

    /* Filters Mobile */
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .filters {
        overflow-x: auto;
        padding-bottom: 8px;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .catalog-info {
        font-size: 0.8rem;
        text-align: center;
    }

    /* Course Grid Mobile */
    .cursos-catalog {
        padding: 24px 0 50px;
    }

    .cursos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .course-card {
        border-radius: var(--radius-lg);
    }

    .course-card:hover {
        transform: translateY(-4px);
    }

    .course-content {
        padding: 18px;
    }

    .course-title {
        font-size: 1rem;
        min-height: auto;
        -webkit-line-clamp: 2;
    }

    .course-meta {
        gap: 12px;
        margin-bottom: 14px;
        font-size: 0.75rem;
    }

    .course-footer {
        padding-top: 14px;
    }

    .price-value {
        font-size: 1.25rem;
    }

    .btn-add-cart {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .btn-enroll-link {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    /* Trust Section Mobile */
    .trust-section {
        padding: 40px 0;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .trust-item {
        gap: 12px;
    }

    .trust-item i {
        font-size: 1.5rem;
    }

    .trust-item strong {
        font-size: 0.85rem;
    }

    .trust-item span {
        font-size: 0.75rem;
    }

    /* CTA Mobile */
    .cta-section {
        padding: 30px 0 60px;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
        border-radius: var(--radius-lg);
    }

    .cta-content {
        flex-direction: column;
        gap: 16px;
    }

    .cta-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .cta-text h3 {
        font-size: 1.2rem;
    }

    .cta-text p {
        font-size: 0.85rem;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }

    /* Footer Mobile */
    .footer {
        padding: 50px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-info {
        grid-column: span 1;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 16px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer h4 {
        font-size: 0.95rem;
    }
}

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE - SMALL MOBILE
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 380px) {
    .page-header-title {
        font-size: 1.3rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .trust-item {
        justify-content: center;
        text-align: left;
    }
}