* { -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100vh; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f6f9;
    color: #2c3e50;
    display: flex; flex-direction: column; min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
.main-content { flex: 1; }

.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 80px; height: 80px; border-radius: 50%;
    background: white; color: #0d6efd; font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.login-container .card { border-radius: 16px; }
.login-container .form-control {
    border-radius: 10px; border: 2px solid #e1e5eb;
    padding: 0.75rem 1rem; font-size: 1rem;
}
.login-container .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}
.login-container .btn-primary { border-radius: 10px; padding: 0.75rem; }
.login-container .input-group .btn {
    border-radius: 0 10px 10px 0; border: 2px solid #e1e5eb; border-left: 0;
}
.login-container .input-group .form-control { border-radius: 10px 0 0 10px; }

.action-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 1.5rem 1rem; border-radius: 16px;
    color: white; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.action-card:hover { color: white; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.action-card:active { transform: scale(0.97); }
.action-card-primary { background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%); }
.action-card-success { background: linear-gradient(135deg, #198754 0%, #146c43 100%); }
.action-card-icon { font-size: 2.5rem; margin-bottom: 0.5rem; line-height: 1; }
.action-card-title { font-size: 1.1rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.25rem; }
.action-card-sub { font-size: 0.75rem; opacity: 0.9; line-height: 1.3; }

@media (min-width: 768px) {
    .action-card { min-height: 200px; padding: 2rem; }
    .action-card-icon { font-size: 3.5rem; }
    .action-card-title { font-size: 1.5rem; }
    .action-card-sub { font-size: 0.9rem; }
}

.action-big {
    display: block; padding: 1.25rem; border-radius: 12px; color: white !important;
    text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.action-big:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
.action-big-primary { background: linear-gradient(135deg, #0d6efd, #0a58ca); }
.action-big-success { background: linear-gradient(135deg, #198754, #146c43); }
.action-big-info { background: linear-gradient(135deg, #0dcaf0, #0aa2c0); }
.action-big-warning { background: linear-gradient(135deg, #ffc107, #e0a800); color: #333 !important; }
.action-big-icon {
    font-size: 2rem; width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center; margin-right: 1rem;
}

.stat-card {
    background: white; border-radius: 12px; padding: 1rem;
    text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,0.05); border: 1px solid #e9ecef;
}
.stat-value { font-size: 1.75rem; font-weight: 700; color: #0d6efd; line-height: 1; }
.stat-label { font-size: 0.8rem; color: #6c757d; margin-top: 0.25rem; }

.stepper { display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.step { display: flex; flex-direction: column; align-items: center; }
.step-circle {
    width: 36px; height: 36px; border-radius: 50%;
    background: #e9ecef; color: #6c757d;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
}
.step.active .step-circle { background: #0d6efd; color: white; }
.step.done .step-circle { background: #198754; color: white; }
.step-label { font-size: 0.75rem; color: #6c757d; margin-top: 0.4rem; }
.step.active .step-label { color: #0d6efd; font-weight: 600; }
.step-line { flex: 1; height: 2px; background: #e9ecef; margin: 0 0.5rem; margin-bottom: 1.3rem; max-width: 60px; }
.step-line.active { background: #198754; }

.mascota-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; overflow: hidden; flex-shrink: 0;
}
.mascota-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mascota-avatar-lg {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; overflow: hidden; flex-shrink: 0;
}
.mascota-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

.btn { min-height: 44px; }
.btn-lg { min-height: 52px; font-size: 1rem; }
.form-control, .form-select { min-height: 44px; }
.form-control-lg, .form-select-lg { min-height: 52px; font-size: 1rem; }

@media (max-width: 768px) {
    input[type="text"], input[type="email"], input[type="password"],
    input[type="tel"], input[type="number"], input[type="search"],
    input[type="date"], input[type="time"], textarea, select {
        font-size: 16px !important;
    }
}

.nav-tabs .nav-link { font-size: 0.85rem; padding: 0.5rem 0.75rem; }
.nav-tabs .nav-link i { margin-right: 0.25rem; }
.dropdown-item-text { white-space: normal; }
.navbar-brand { font-size: 1.15rem; }