@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #0ea5e9;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f1f5f9;
    color: var(--dark);
    line-height: 1.6;
    padding-bottom: 70px;
    /* Space for mobile nav */
}

@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Header & Navigation */
header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Mobile Bottom Nav */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: none;
    /* Oculto por defecto */
    justify-content: space-around;
    padding: 0.8rem 0.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1001;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
        /* Solo se muestra en móviles */
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray);
    font-size: 0.7rem;
    position: relative;
}

.mobile-nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.mobile-nav-item.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 4rem 1.5rem;
    text-align: center;
    background: radial-gradient(circle at top right, #e0e7ff, transparent),
        radial-gradient(circle at bottom left, #f0f9ff, transparent);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-btns {
        flex-direction: row;
        justify-content: center;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Feature Cards */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: -2rem auto 3rem;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
        margin-top: -4rem;
    }
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
}

/* Professionals Grid */
.professionals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

@media (min-width: 640px) {
    .professionals-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.professional-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.card-header {
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.card-body {
    padding: 1.5rem;
    text-align: center;
    margin-top: -50px;
}

.profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    margin-bottom: 1rem;
}

.btn-contact {
    display: inline-block;
    width: 100%;
    padding: 0.8rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
}

/* Utilities */
.hidden-desktop {
    display: flex !important;
}

.hidden-mobile {
    display: none !important;
}

@media (min-width: 769px) {
    .hidden-desktop {
        display: none !important;
    }

    .hidden-mobile {
        display: flex !important;
    }
}

/* Forms */
.form-container {
    width: 90%;
    max-width: 450px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
}

/* Feed Improvements */
.post-card {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .post-header {
        padding: 0.8rem 1rem;
    }

    .post-content {
        padding: 0.8rem 1rem;
    }

    .post-footer {
        padding: 0.8rem 1rem;
        gap: 1rem;
        justify-content: space-between;
    }

    .action-btn span.count {
        font-size: 0.8rem;
    }
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 1.5rem;
    text-align: center;
}

.mobile-badge {
    position: absolute;
    top: -2px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}