/* ======================================================
   SALUD CANINA - VETERINARIA PREMIUM
   Ultra Professional Mobile-First CSS
   ====================================================== */

/* ---- CSS Variables ---- */
:root {
    --primary: #0F766E;
    --primary-light: #14B8A6;
    --primary-dark: #0D5C56;
    --primary-bg: #F0FDFA;
    --secondary: #7C3AED;
    --accent: #EA580C;
    --danger: #DC2626;
    --success: #16A34A;
    --warning: #D97706;
    --dark: #111827;
    --gray-900: #1F2937;
    --gray-800: #374151;
    --gray-700: #4B5563;
    --gray-600: #6B7280;
    --gray-500: #9CA3AF;
    --gray-400: #D1D5DB;
    --gray-300: #E5E7EB;
    --gray-200: #F3F4F6;
    --gray-100: #F9FAFB;
    --white: #FFFFFF;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 48px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --header-height: 60px;
    --nav-height: 72px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overscroll-behavior: none;
}

body {
    font-family: var(--font-body);
    background: var(--gray-100);
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: inherit;
    color: inherit;
    -webkit-appearance: none;
}

input, select, textarea {
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-appearance: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.hidden {
    display: none !important;
}

/* ---- Splash Screen ---- */
.splash-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #0F766E 0%, #0D9488 50%, #14B8A6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.splash-paw {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    animation: splashPulse 1.5s ease infinite;
    backdrop-filter: blur(10px);
}

@keyframes splashPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.splash-name {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: white;
    display: block;
    letter-spacing: -0.5px;
}

.splash-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
}

.splash-loader {
    width: 120px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    margin: 32px auto 0;
    overflow: hidden;
}

.splash-bar {
    width: 0%;
    height: 100%;
    background: white;
    border-radius: 4px;
    animation: splashLoad 2s ease forwards;
}

@keyframes splashLoad {
    0% { width: 0%; }
    60% { width: 70%; }
    100% { width: 100%; }
}

/* ---- App Container ---- */
.app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--gray-100);
    position: relative;
}

/* ---- Header ---- */
.app-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--header-height);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mini {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
    color: var(--gray-600);
    transition: all 0.2s;
    position: relative;
}

.header-btn:active {
    background: var(--gray-200);
    transform: scale(0.92);
}

.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* ---- Page Container ---- */
.page-container {
    padding-top: var(--header-height);
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
    min-height: 100vh;
}

.page {
    display: none;
    animation: pageIn 0.35s ease;
}

.page.active {
    display: block;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-pad {
    padding: 0 16px;
    margin-bottom: 24px;
}

.bottom-spacer {
    height: 20px;
}

/* ---- Hero Banner ---- */
.hero-banner {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.65) 100%);
}

.hero-content {
    position: absolute;
    bottom: 48px;
    left: 20px;
    right: 20px;
    color: white;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
    line-height: 1.5;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(15,118,110,0.4);
}

.hero-cta:active {
    transform: scale(0.96);
}

.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s;
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* ---- Quick Actions ---- */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: -30px;
    position: relative;
    z-index: 5;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 12px;
    box-shadow: var(--shadow-lg);
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
}

.qa-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    transition: all 0.3s;
}

.quick-action-btn:active .qa-icon {
    transform: scale(0.88);
}

.quick-action-btn span {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-700);
    text-align: center;
    line-height: 1.3;
}

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

.section-header h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.see-all-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---- Service Cards (Horizontal Scroll) ---- */
.services-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.services-scroll::-webkit-scrollbar {
    display: none;
}

.service-card {
    min-width: 200px;
    max-width: 200px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    scroll-snap-align: start;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.service-card:active {
    transform: scale(0.97);
}

.service-img {
    height: 130px;
    position: relative;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-badge.premium {
    background: linear-gradient(135deg, var(--secondary), #A78BFA);
}

.service-info {
    padding: 14px;
}

.service-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
}

.service-info p {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.service-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
}

.duration {
    font-size: 11px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---- Promo Banner ---- */
.promo-banner {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 180px;
}

.promo-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,118,110,0.92), rgba(20,184,166,0.85));
}

.promo-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-tag {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.promo-content h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.promo-content h3 span {
    color: #FDE68A;
}

.promo-content p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 14px;
}

.promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    width: fit-content;
    transition: transform 0.3s;
}

.promo-cta:active {
    transform: scale(0.96);
}

/* ---- Stats Grid ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: var(--primary);
    font-size: 16px;
}

.stat-number {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 2px;
}

/* ---- Testimonials ---- */
.testimonials-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px 4px;
}

.testimonials-scroll::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 280px;
    max-width: 280px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.testimonial-stars {
    color: #F59E0B;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    gap: 2px;
}

.testimonial-card p {
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    font-size: 13px;
    display: block;
    color: var(--dark);
}

.testimonial-author span {
    font-size: 11px;
    color: var(--gray-500);
}

/* ---- Contact Card ---- */
.contact-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-card h3 i {
    color: var(--primary);
}

.contact-address {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.contact-hours {
    border-top: 1px solid var(--gray-200);
    padding-top: 14px;
    margin-bottom: 16px;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.hour-row span {
    color: var(--gray-600);
}

.hour-row strong {
    color: var(--dark);
}

.contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.contact-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    background: var(--primary);
    color: white;
}

.contact-action-btn.whatsapp {
    background: #25D366;
}

.contact-action-btn:active {
    transform: scale(0.96);
}

/* ---- Page Top Bar ---- */
.page-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    position: sticky;
    top: var(--header-height);
    background: rgba(249,250,251,0.95);
    backdrop-filter: blur(10px);
    z-index: 50;
}

.page-top-bar h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
    color: var(--gray-700);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.back-btn:active {
    transform: scale(0.92);
    background: var(--gray-200);
}

.add-pet-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 16px;
    color: white;
    background: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

/* ---- Services Full List ---- */
.service-full-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 14px;
    display: flex;
    transition: transform 0.2s;
}

.service-full-card:active {
    transform: scale(0.98);
}

.service-full-card.urgent {
    border: 2px solid var(--danger);
}

.sfc-img {
    width: 110px;
    min-height: 120px;
    flex-shrink: 0;
}

.sfc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfc-content {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sfc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
    gap: 8px;
}

.sfc-top h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.sfc-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.urgent-price {
    color: var(--danger) !important;
}

.sfc-content > p {
    font-size: 11px;
    color: var(--gray-600);
    line-height: 1.4;
    margin-bottom: 8px;
}

.sfc-meta {
    display: flex;
    gap: 12px;
    font-size: 10px;
    color: var(--gray-500);
}

.sfc-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---- Plans ---- */
.plans-intro {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.plans-intro img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.plans-intro-text {
    padding: 20px;
}

.plans-intro-text h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.plans-intro-text p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

.plan-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.plan-card.premium {
    border-color: var(--primary);
    background: linear-gradient(180deg, #F0FDFA 0%, var(--white) 30%);
}

.plan-card.vip {
    border-color: #D97706;
    background: linear-gradient(180deg, #FFFBEB 0%, var(--white) 30%);
}

.plan-popular-badge, .plan-vip-badge {
    position: absolute;
    top: 0;
    right: 20px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 0 0 12px 12px;
}

.plan-vip-badge {
    background: linear-gradient(135deg, #D97706, #F59E0B);
}

.plan-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.plan-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}

.plan-card.vip .plan-icon {
    background: #FEF3C7;
    color: #D97706;
}

.plan-header h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.plan-tag {
    font-size: 12px;
    color: var(--gray-500);
}

.plan-price {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    font-family: var(--font-mono);
}

.plan-period {
    font-size: 14px;
    color: var(--gray-500);
}

.plan-features {
    list-style: none;
    margin-bottom: 20px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li i {
    font-size: 12px;
    color: var(--success);
    width: 20px;
    text-align: center;
}

.plan-features li.disabled {
    color: var(--gray-400);
}

.plan-features li.disabled i {
    color: var(--gray-400);
}

.plan-cta {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gray-200);
    color: var(--gray-800);
    transition: all 0.3s;
}

.plan-cta:active {
    transform: scale(0.97);
}

.premium-cta {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(15,118,110,0.4);
}

.vip-cta {
    background: linear-gradient(135deg, #D97706, #F59E0B);
    color: white;
    box-shadow: 0 4px 16px rgba(217,119,6,0.4);
}

/* ---- Booking Form ---- */
.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    padding: 0 8px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-300);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s;
}

.progress-step.active .step-circle {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(15,118,110,0.3);
}

.progress-step.completed .step-circle {
    background: var(--success);
    color: white;
}

.progress-step span {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-500);
}

.progress-step.active span {
    color: var(--primary);
}

.progress-line {
    width: 40px;
    height: 2px;
    background: var(--gray-300);
    margin: 0 4px 18px;
}

.booking-step {
    display: none;
    animation: fadeSlideUp 0.3s ease;
}

.booking-step.active {
    display: block;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.step-title i {
    width: 40px;
    height: 40px;
    background: var(--primary-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
}

.step-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--dark);
    background: var(--white);
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15,118,110,0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Service Selection Grid */
.service-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.service-option {
    cursor: pointer;
}

.service-option input {
    display: none;
}

.so-card {
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    transition: all 0.25s;
}

.so-card i {
    font-size: 24px;
    color: var(--gray-500);
    margin-bottom: 8px;
    display: block;
    transition: all 0.25s;
}

.so-card span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.so-card small {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 600;
}

.service-option input:checked + .so-card {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: 0 0 0 4px rgba(15,118,110,0.1);
}

.service-option input:checked + .so-card i {
    color: var(--primary);
}

.so-card:active {
    transform: scale(0.96);
}

.urgent-option {
    border-color: #FEE2E2;
}

.service-option input:checked + .urgent-option {
    border-color: var(--danger);
    background: #FEF2F2;
}

.service-option input:checked + .urgent-option i {
    color: var(--danger);
}

/* Time Grid */
.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.time-slot {
    padding: 12px 8px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.time-slot.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.time-slot:active {
    transform: scale(0.95);
}

/* Step Navigation */
.step-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.prev-step-btn {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    background: var(--gray-200);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.next-step-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(15,118,110,0.3);
}

.next-step-btn:active, .prev-step-btn:active {
    transform: scale(0.97);
}

.confirm-btn {
    flex: 1;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--success), #22C55E);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(22,163,74,0.3);
    transition: all 0.2s;
}

.confirm-btn:active {
    transform: scale(0.97);
}

/* Confirmation Card */
.confirmation-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-bg);
}

.conf-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

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

.conf-label {
    color: var(--gray-500);
    font-weight: 500;
}

.conf-value {
    color: var(--dark);
    font-weight: 600;
    text-align: right;
}

.conf-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    padding-top: 12px;
    margin-top: 4px;
    border-top: 2px dashed var(--gray-300);
}

/* ---- Appointments ---- */
.appointments-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 20px;
    padding-bottom: 4px;
}

.appointments-tabs::-webkit-scrollbar {
    display: none;
}

.apt-tab {
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--white);
    color: var(--gray-600);
    border: 1.5px solid var(--gray-300);
    transition: all 0.2s;
}

.apt-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.appointment-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: transform 0.2s;
    border-left: 4px solid var(--primary);
}

.appointment-card:active {
    transform: scale(0.98);
}

.appointment-card.status-pendiente {
    border-left-color: var(--warning);
}

.appointment-card.status-confirmada {
    border-left-color: var(--primary);
}

.appointment-card.status-completada {
    border-left-color: var(--success);
}

.appointment-card.status-cancelada {
    border-left-color: var(--gray-400);
    opacity: 0.6;
}

.apt-date-badge {
    width: 52px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 8px 4px;
    text-align: center;
    flex-shrink: 0;
}

.apt-date-badge .apt-month {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    display: block;
}

.apt-date-badge .apt-day {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    display: block;
}

.apt-info {
    flex: 1;
    min-width: 0;
}

.apt-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.apt-service-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: var(--primary-bg);
    color: var(--primary);
    margin-bottom: 6px;
}

.apt-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--gray-500);
}

.apt-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.apt-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.apt-status {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apt-status.pendiente {
    background: #FEF3C7;
    color: #D97706;
}

.apt-status.confirmada {
    background: #DEF7EC;
    color: #0F766E;
}

.apt-status.completada {
    background: #D1FAE5;
    color: #16A34A;
}

.apt-status.cancelada {
    background: var(--gray-200);
    color: var(--gray-500);
}

.apt-cancel-btn {
    font-size: 10px;
    color: var(--danger);
    font-weight: 600;
    padding: 4px;
    margin-top: 4px;
}

/* ---- Pets List ---- */
.pets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pet-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 14px;
    align-items: center;
}

.pet-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.pet-details {
    flex: 1;
}

.pet-details h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.pet-details p {
    font-size: 12px;
    color: var(--gray-500);
}

.pet-vacc {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-full);
}

.pet-vacc.al-dia {
    background: #D1FAE5;
    color: #16A34A;
}

.pet-vacc.pendiente {
    background: #FEF3C7;
    color: #D97706;
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    color: var(--gray-400);
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--gray-500);
}

/* ---- Bottom Navigation ---- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--nav-height);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: flex-start;
    padding-top: 8px;
    padding-bottom: var(--safe-bottom);
    border-top: 1px solid rgba(0,0,0,0.06);
    z-index: 1000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0;
    color: var(--gray-500);
    font-size: 10px;
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
}

.nav-item i {
    font-size: 20px;
    transition: all 0.2s;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    transform: scale(1.1);
}

.nav-center {
    margin-top: -20px;
}

.nav-center-btn {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 20px rgba(15,118,110,0.4);
    transition: all 0.2s;
}

.nav-center:active .nav-center-btn {
    transform: scale(0.92);
}

.nav-center span {
    margin-top: 4px;
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 480px;
    padding: 32px 24px;
    padding-bottom: calc(32px + var(--safe-bottom));
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.success-modal {
    text-align: center;
}

.success-animation {
    margin-bottom: 20px;
}

.success-circle {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--success), #22C55E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 32px;
    color: white;
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-modal h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.success-modal p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.success-details {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: left;
    font-size: 13px;
}

.success-details .sd-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.sd-label {
    color: var(--gray-500);
}

.sd-value {
    font-weight: 600;
    color: var(--dark);
}

/* Notification Panel */
.notif-modal {
    max-height: 70vh;
    overflow-y: auto;
}

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

.notif-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-modal {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-600);
    font-size: 16px;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.notif-item.unread {
    position: relative;
}

.notif-item.unread::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.notif-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notif-text strong {
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
    color: var(--dark);
}

.notif-text p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.4;
}

.notif-time {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 4px;
    display: block;
}

/* ---- Responsive ---- */
@media (min-width: 481px) {
    .app {
        border-left: 1px solid var(--gray-200);
        border-right: 1px solid var(--gray-200);
        box-shadow: 0 0 40px rgba(0,0,0,0.06);
    }
}

/* ---- Touch Feedback ---- */
@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .service-full-card:hover {
        box-shadow: var(--shadow-lg);
    }

    .plan-card:hover {
        box-shadow: var(--shadow-lg);
    }
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: slideUp 0.4s ease forwards;
}

/* ---- Scrollbar Styles ---- */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

/* ---- Safe Area ---- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
}