/* Estilos para el panel de usuario - Diseño moderno y elegante */

:root {
    --primary: #0010ef;
    --primary-dark: #0008a0;
    --primary-light: #4a5eff;
    --primary-lighter: #7c8aff;
    --secondary: #1a1a2e;
    --accent: #0f3460;
    --text-primary: #1a1a2e;
    --text-secondary: #4b5563;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, #0010ef 0%, #4a5eff 100%);
    --gradient-light: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* Header Mejorado */
.main-header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: translateY(-2px);
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-icon {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-text {
    display: inline-block;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--gradient-light);
}

.nav-link.active {
    color: var(--primary);
    background: var(--gradient-light);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.notification-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
}

.notification-bell:hover {
    background: var(--gradient-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.bell-icon {
    display: block;
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
    border: 2px solid var(--bg-primary);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.user-dropdown-toggle:hover {
    background: var(--gradient-light);
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.user-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.user-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-avatar,
.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.user-avatar-placeholder {
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-avatar,
.dropdown-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.dropdown-avatar-placeholder {
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.dropdown-user-details {
    flex: 1;
    min-width: 0;
}

.dropdown-user-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-user-email {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.dropdown-item-danger {
    color: #ef4444;
}

.dropdown-item-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.dropdown-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-text {
        display: none;
    }
    
    .nav-link {
        padding: 10px 12px;
    }
    
    .user-name {
        display: none;
    }
    
    .user-dropdown-toggle {
        padding: 6px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 2px solid var(--border);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: 16px;
        gap: 8px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 16px;
    }
    
    .nav-text {
        display: inline-block;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .user-dropdown-menu {
        right: 16px;
        left: 16px;
        min-width: auto;
    }
}

/* Footer */
.main-footer {
    background: var(--bg-primary);
    margin-top: 60px;
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    font-size: 14px;
}

/* Autenticación */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    padding: 24px;
}

.auth-box {
    background: white;
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
}

.auth-box h1 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 12px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
}

.auth-link {
    text-align: center;
    margin-top: 24px;
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: var(--primary-dark);
}

/* Formularios */
.form-container {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 16, 239, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* Botones */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-light);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Alertas */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid;
    font-size: 14px;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h1 {
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-header h1 {
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-bell {
    position: relative;
    font-size: 24px;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.notification-bell:hover {
    background: var(--bg-secondary);
}

.notification-bell .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid white;
}

/* Stats Grid Mejorado */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-primary);
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    font-size: 48px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 16, 239, 0.15));
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-widget {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.dashboard-widget:hover {
    box-shadow: var(--shadow-md);
}

.dashboard-widget.widget-full {
    grid-column: 1 / -1;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.widget-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* Pets Grid */
.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.pet-card {
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.pet-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.pet-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.pet-placeholder {
    width: 100%;
    height: 220px;
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.pet-info {
    padding: 20px;
}

.pet-info h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.pet-info p {
    margin: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.pet-actions {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    background: var(--bg-secondary);
}

.pets-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.pet-card-mini {
    text-align: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.pet-card-mini:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.pet-card-mini img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.pet-card-mini h3 {
    font-size: 15px;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-primary);
}

.pet-card-mini p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Lists */
.reminders-list,
.vaccinations-list,
.notifications-list {
    list-style: none;
    padding: 0;
}

.reminder-item,
.vaccination-item,
.notification-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
    transition: background 0.3s ease;
}

.reminder-item:hover,
.vaccination-item:hover,
.notification-item:hover {
    background: var(--bg-secondary);
}

.reminder-item:last-child,
.vaccination-item:last-child,
.notification-item:last-child {
    border-bottom: none;
}

.reminder-date,
.vaccination-date {
    min-width: 60px;
    text-align: center;
    padding: 10px 8px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.reminder-info,
.vaccination-info {
    flex: 1;
}

.reminder-info strong,
.vaccination-info strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.pet-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--gradient-light);
    border-radius: 12px;
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 6px;
}

.notification-item.unread {
    background: var(--gradient-light);
    border-left: 4px solid var(--primary);
}

.notification-content {
    flex: 1;
}

.notification-content strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.notification-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.5;
}

.notification-content small {
    color: var(--text-light);
    font-size: 12px;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 24px;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 2px dashed var(--border);
}

.empty-state p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Calendar */
.month-calendar {
    padding: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-name {
    text-align: center;
    font-weight: 700;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    min-height: 90px;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.calendar-day:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.calendar-day.empty {
    background: var(--bg-tertiary);
    border: none;
}

.calendar-day.today {
    background: var(--gradient-light);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.day-number {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.day-events {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.more-events {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
}

.weight-chart-container {
    padding: 24px;
    height: 350px;
}

/* Tables */
.data-table {
    width: 100%;
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.data-table thead {
    background: var(--bg-secondary);
}

.data-table th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 16px;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: var(--bg-secondary);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-active,
.badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-resolved,
.badge-paid,
.badge-delivered {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-chronic {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-cancelled {
    background-color: #f3f4f6;
    color: #374151;
}

.badge-processing {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-shipped {
    background-color: #e0e7ff;
    color: #3730a3;
}

/* Pet Detail Grid */
.pet-detail-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 32px;
    margin-bottom: 32px;
    align-items: start;
}

.pet-photo-section {
    position: sticky;
    top: 100px;
}

.pet-photo-container {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.pet-photo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-light);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.pet-photo-container:hover::before {
    opacity: 0.1;
}

.pet-photo-main {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    object-fit: cover;
    aspect-ratio: 1;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.pet-photo-container:hover .pet-photo-main {
    transform: scale(1.02);
}

.pet-photo-placeholder {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 60px 20px;
    box-shadow: var(--shadow-lg);
    border: 2px dashed var(--border);
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pet-photo-icon {
    font-size: 120px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0, 16, 239, 0.2));
    opacity: 0.6;
}

.pet-photo-placeholder p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.pet-info-card,
.pet-stats-card {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.pet-info-card h2,
.pet-stats-card h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.info-row {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row strong {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.stat-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary);
    background: var(--bg-secondary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.content-section {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.content-section h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

/* Shop */
.shop-filters {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.filter-form {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-form .form-group {
    margin-bottom: 0;
    min-width: 200px;
    flex: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-placeholder {
    width: 100%;
    height: 200px;
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
}

.product-category {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.product-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.product-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.product-stock {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
}

.product-stock.out {
    color: #dc3545;
}

.product-actions {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

/* Orders */
.orders-list {
    display: grid;
    gap: 24px;
}

.order-card {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.order-header h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
}

.order-items {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.order-items ul {
    list-style: none;
    margin-top: 12px;
}

.order-items li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h2 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pet-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .pet-photo-section {
        position: static;
    }
    
    .pet-photo-container {
        max-width: 100%;
    }
    
    .pet-photo-main {
        max-width: 100%;
        height: auto;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .main-nav {
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }
    
    .main-nav a {
        width: 100%;
        text-align: left;
    }
    
    .user-menu {
        width: 100%;
        justify-content: space-between;
    }
    
    .page-header,
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .pets-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-widget.widget-full {
        grid-column: 1;
    }
    
    .calendar-grid {
        gap: 4px;
    }
    
    .calendar-day {
        min-height: 70px;
        font-size: 12px;
        padding: 8px;
    }
    
    .calendar-day-name {
        padding: 8px 4px;
        font-size: 11px;
    }
}

/* ============================================
   ESTILOS PARA VISTA DE MASCOTA INDIVIDUAL
   ============================================ */

.pet-view-page {
    width: 100%;
    background: var(--bg-secondary);
    min-height: 100vh;
}

/* Header de la mascota */
.pet-view-header {
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 2px solid var(--border);
    padding: 40px 0;
}

.pet-view-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: var(--primary);
}

.back-button span {
    font-size: 18px;
}

.pet-header-main {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: center;
}

.pet-header-photo {
    position: relative;
}

.pet-photo-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--border);
}

.pet-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pet-photo-placeholder-large {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--border);
}

.pet-icon-large {
    font-size: 100px;
    opacity: 0.8;
}

.pet-header-info {
    flex: 1;
}

.pet-header-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pet-header-title h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
}

.btn-icon:hover {
    background: var(--gradient-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.pet-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.meta-icon {
    font-size: 16px;
}

/* Información rápida */
.pet-quick-info {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.quick-info-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.quick-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.quick-info-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-light);
    border-radius: 12px;
    flex-shrink: 0;
}

.quick-info-content {
    flex: 1;
}

.quick-info-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.quick-info-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.quick-info-value .no-data {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* Sección de detalles */
.pet-details-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

.pet-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.detail-card {
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    overflow: hidden;
}

.detail-card-header {
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border);
}

.detail-card-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-card-body {
    padding: 24px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item-full {
    flex-direction: column;
    gap: 8px;
}

.detail-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.detail-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

.detail-item-full .detail-value {
    text-align: left;
}

.empty-state-small {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state-small .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state-small p {
    margin: 0;
    font-size: 14px;
}

.event-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.event-item:last-child {
    border-bottom: none;
}

.event-date {
    min-width: 60px;
    text-align: center;
    padding: 8px;
    background: var(--gradient-light);
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
}

.event-info {
    flex: 1;
}

.event-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.event-type {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Tabs */
.pet-tabs-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.pet-tabs-container {
    background: var(--bg-primary);
    border-radius: 20px 20px 0 0;
    border: 2px solid var(--border);
    border-bottom: none;
    overflow-x: auto;
}

.pet-tabs {
    display: flex;
    gap: 4px;
    padding: 8px;
    overflow-x: auto;
}

.pet-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
}

.pet-tab-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.pet-tab-btn.active {
    background: var(--gradient-light);
    color: var(--primary);
    font-weight: 600;
}

.tab-icon {
    font-size: 18px;
}

.tab-text {
    display: inline-block;
}

.tab-badge {
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.pet-tabs-content {
    background: var(--bg-primary);
    border-radius: 0 0 20px 20px;
    border: 2px solid var(--border);
    border-top: none;
    padding: 40px;
}

.pet-tab-content {
    display: none;
}

.pet-tab-content.active {
    display: block;
}

.tab-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.tab-content-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Estados vacíos */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .empty-icon {
    font-size: 80px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.empty-state h3 {
    margin: 0 0 12px;
    font-size: 20px;
    color: var(--text-primary);
}

.empty-state p {
    margin: 0 0 24px;
    color: var(--text-secondary);
    font-size: 15px;
}

/* Listas de registros */
.records-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.record-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.record-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.record-date {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

.record-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.record-notes {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.record-measures {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.measure-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 12px;
}

.measure-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.measure-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Condiciones médicas */
.conditions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.condition-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.condition-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.condition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.condition-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: #fef2f2;
    color: #dc2626;
}

.status-resolved {
    background: #f0fdf4;
    color: #16a34a;
}

.status-chronic {
    background: #fefce8;
    color: #ca8a04;
}

.condition-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.condition-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.condition-date,
.condition-cost {
    font-size: 13px;
    color: var(--text-secondary);
}

.condition-description {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
}

/* Visitas */
.visits-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visit-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.visit-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.visit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.visit-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.visit-date {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.visit-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.visit-info {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.visit-vet,
.visit-cost {
    font-size: 13px;
    color: var(--text-secondary);
}

.visit-diagnosis {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
}

/* Servicios */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.service-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.service-date {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.service-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-cost {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.service-notes,
.service-products {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Responsive para vista de mascota */
@media (max-width: 1024px) {
    .pet-header-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .pet-header-photo {
        margin: 0 auto;
    }
    
    .pet-details-grid {
        grid-template-columns: 1fr;
    }
    
    .pet-tabs {
        padding: 8px 4px;
    }
    
    .pet-tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .tab-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .pet-view-header {
        padding: 24px 0;
    }
    
    .pet-header-title h1 {
        font-size: 28px;
    }
    
    .pet-quick-info {
        grid-template-columns: 1fr;
    }
    
    .pet-tabs-content {
        padding: 24px;
    }
    
    .tab-content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .services-list {
        grid-template-columns: 1fr;
    }
}

/* QR Code integrado en detail card */
.detail-card-qr {
    grid-column: 1 / -1;
}

.qr-section-inline {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    align-items: start;
}

.qr-code-inline {
    width: 200px;
    height: 200px;
    padding: 16px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qr-image-inline {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-actions-inline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qr-description-inline {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.qr-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.qr-url-small {
    margin: 0;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    word-break: break-all;
    font-family: monospace;
    border: 1px solid var(--border);
    line-height: 1.5;
}

.qr-placeholder-inline {
    text-align: center;
    padding: 40px 20px;
}

.qr-placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.qr-placeholder-inline p {
    margin: 0 0 20px;
    color: var(--text-secondary);
    font-size: 15px;
}

@media (max-width: 768px) {
    .qr-section-inline {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .qr-code-inline {
        margin: 0 auto;
        width: 180px;
        height: 180px;
    }
    
    .qr-buttons {
        justify-content: center;
    }
    
    .qr-buttons .btn {
        flex: 1;
        min-width: 140px;
    }
}

/* Estilos para dropdown de navegación de veterinario */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    min-width: 200px;
    z-index: 1000;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    transition: background 0.2s ease;
}

.nav-dropdown-menu .dropdown-item:hover {
    background: var(--bg-secondary);
}

.nav-dropdown-menu .dropdown-icon {
    font-size: 18px;
}

