/* 
  🏥 Guia Médico - Premium Design System 
  Theme: HealthTech Modern (Clean, Trustworthy, Vibrant)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* --- Color Palette (Teal Health Theme) --- */
    --color-primary: #0d9488;
    --color-primary-hover: #0f766e;
    --color-primary-light: #f0fdfa;
    --color-accent: #14b8a6;
    --color-accent-hover: #0d9488;
    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-bg-body: #f8fafc;
    --color-bg-surface: #ffffff;
    --color-bg-surface-glass: rgba(255, 255, 255, 0.85);

    /* UI States */
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;

    /* --- Spacing --- */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-giant: 120px;

    /* --- Radius --- */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* --- Shadows --- */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-highlight: 0 0 0 4px var(--color-primary-light);

    /* --- Transitions --- */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
.h1,
.h2,
.h3,
.h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
}

.h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.h2 {
    font-size: 2rem;
    line-height: 1.25;
}

.h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

.text-sm {
    font-size: 0.875rem;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-primary {
    color: var(--color-primary);
}

/* Components: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1rem;
    gap: 8px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(11, 107, 203, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(11, 107, 203, 0.4);
}

.btn-outline {
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--color-text-main);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-accent {
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(21, 194, 111, 0.3);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
}

.btn-ghost:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--color-text-main);
}

/* Components: Cards */
.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    padding: var(--space-lg);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover {
    background: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
    transform: translateY(-5px);
    border-color: var(--color-primary-light);
}

.card:hover::before {
    opacity: 1;
}

/* Components: Inputs */
.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    background-color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.input-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    width: 100%;
}

/* --- GLOBAL NAVBAR --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0;
    height: 72px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1100;
    flex-shrink: 0;
}

.navbar-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-primary);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
    font-size: 0.95rem;
    position: relative;
    padding: 0 8px;
    height: 72px;
    display: flex;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.nav-auth {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--color-text-main);
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(-150%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1099;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-link.highlight {
    color: var(--color-primary);
}

@media (max-width: 900px) {

    .nav-menu,
    .nav-auth {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

/* --- HERO SECTION (Restored) --- */
.hero {
    padding: var(--space-giant) 0;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(13, 148, 136, 0.9), rgba(15, 118, 110, 0.9)), url('https://images.unsplash.com/photo-1638202993631-032d84a5c091?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center bottom;
    color: white;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

/* --- ICONS & FEATURES (Restored) --- */
.icon-shield {
    width: 64px;
    height: 64px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 12px;
    transition: all var(--transition-normal);
}

.card:hover .icon-shield {
    background: var(--color-primary);
    color: white;
}

.feature-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
}

.feature-icon-outline {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

/* --- SEARCH CONTAINER (Restored) --- */
.search-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: var(--space-sm);
    border-radius: var(--radius-full);
    box-shadow: 0 20px 40px -10px rgba(11, 107, 203, 0.15);
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 1);
    transition: transform var(--transition-normal);
}

.search-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(11, 107, 203, 0.2);
}

.search-input-group {
    flex: 1;
    position: relative;
    border-right: 1px solid #f1f5f9;
}

.search-input-group:last-of-type {
    border-right: none;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    outline: none;
}

.search-btn-large {
    padding: 0.5rem 2rem;
    border-radius: var(--radius-full);
    margin: 4px;
}

@media (max-width: 768px) {
    .h1 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .search-container {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: var(--space-md);
    }

    .search-input-group {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: var(--space-sm);
    }

    .search-btn-large {
        width: 100%;
        margin: var(--space-md) 0 0 0;
    }
}

/* --- PRICING TABLES (Restored) --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.pricing-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.pricing-card.featured {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
    z-index: 10;
}

.price-tag {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin: var(--space-md) 0;
}

.price-period {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.features-list {
    margin: var(--space-xl) 0;
    text-align: left;
    flex: 1;
}

.features-list li {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
}

.features-list li i {
    color: var(--color-success);
    font-weight: bold;
}

.features-list li.disabled {
    opacity: 0.5;
    text-decoration: line-through;
}

.features-list li.disabled i {
    color: var(--color-text-light);
}