/* ==========================================================================
   CENTRO DE ESTÉTICA MARÍA FLOR - LUXURY DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Official María Flor Modern Logo Palette (#E6007A Vibrant Fuchsia & Crisp Modern Monochrome) */
  --color-primary: #E6007A;
  --color-primary-dark: #B80062;
  --color-primary-deep: #1A181B;
  --color-primary-light: #FCD6E8;
  --color-primary-subtle: #FDF0F6;
  --color-primary-hover: #D4006F;
  
  --color-gold: #D4AF37;
  --color-gold-light: #FAF5E6;
  --color-gold-dark: #9A7B1C;
  
  --color-bg-main: #F8F9FA;
  --color-bg-card: #FFFFFF;
  --color-bg-alt: #F1F3F5;
  
  --color-text-title: #18191C;
  --color-text-body: #3E4149;
  --color-text-muted: #727682;
  --color-border: #E5E7EB;
  --color-border-focus: #E6007A;
  
  /* Status Colors */
  --color-success: #10B981;
  --color-success-bg: #ECFDF5;
  --color-warning: #F59E0B;
  --color-warning-bg: #FFFBEB;
  --color-danger: #EF4444;
  --color-danger-bg: #FEF2F2;
  --color-info: #3B82F6;
  --color-info-bg: #EFF6FF;

  /* Typography */
  --font-serif: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px rgba(230, 0, 122, 0.25);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* ==========================================================================
   MODERN DARK MODE (CLEAN CHARCOAL & VIBRANT FUCHSIA)
   ========================================================================== */
[data-theme="dark"] {
  --color-primary: #FF1A8C;
  --color-primary-dark: #FF4DAB;
  --color-primary-deep: #0C0D0E;
  --color-primary-light: #4D0029;
  --color-primary-subtle: #260014;
  --color-primary-hover: #FF3399;
  
  --color-gold: #E5C365;
  --color-gold-light: #2A2412;
  --color-gold-dark: #F5D78E;
  
  --color-bg-main: #0F1012;
  --color-bg-card: #18191D;
  --color-bg-alt: #141518;
  
  --color-text-title: #F9FAFB;
  --color-text-body: #D1D5DB;
  --color-text-muted: #9CA3AF;
  --color-border: #282A30;
  --color-border-focus: #FF1A8C;
  
  /* Status Colors */
  --color-success: #34D399;
  --color-success-bg: #064E3B;
  --color-warning: #FBBF24;
  --color-warning-bg: #78350F;
  --color-danger: #F87171;
  --color-danger-bg: #7F1D1D;
  --color-info: #60A5FA;
  --color-info-bg: #1E3A8A;
  
  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(255, 26, 140, 0.35);
}

[data-theme="dark"], [data-theme="dark"] body {
  background-color: #0F1012 !important;
  color: #D1D5DB !important;
}

[data-theme="dark"] .dashboard-layout {
  background-color: #0F1012 !important;
}

[data-theme="dark"] .dashboard-sidebar {
  background-color: #18191D !important;
  border-color: #282A30 !important;
}

[data-theme="dark"] .card,
[data-theme="dark"] .table-card,
[data-theme="dark"] .kpi-card,
[data-theme="dark"] .agenda-column-card,
[data-theme="dark"] .modal-card,
[data-theme="dark"] .modal-content {
  background-color: #200C16 !important;
  border-color: #3A1828 !important;
  color: #E8D8DE !important;
}

[data-theme="dark"] .custom-table th {
  background-color: #180911 !important;
  color: #B39DA7 !important;
  border-color: #3A1828 !important;
}

[data-theme="dark"] .custom-table td {
  border-color: #3A1828 !important;
  color: #E8D8DE !important;
}

[data-theme="dark"] .custom-table tr:hover td {
  background-color: #2A101D !important;
}

[data-theme="dark"] .form-control {
  background-color: #180811 !important;
  color: #FFF0F5 !important;
  border-color: #3A1828 !important;
}

[data-theme="dark"] .form-control:focus {
  background-color: #220B18 !important;
  border-color: #E0537E !important;
  box-shadow: 0 0 0 3px rgba(224, 83, 126, 0.25) !important;
}

[data-theme="dark"] select.form-control option {
  background: #200C16 !important;
  color: #FFF0F5 !important;
}

[data-theme="dark"] .site-header {
  background: rgba(20, 7, 14, 0.95) !important;
  border-color: #3A1828 !important;
}

[data-theme="dark"] .nav-link {
  color: #E8D8DE !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #E0537E !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] .kpi-value {
  color: #FFF0F5 !important;
}

[data-theme="dark"] .btn-secondary {
  background-color: #200C16 !important;
  color: #E8D8DE !important;
  border-color: #3A1828 !important;
}

[data-theme="dark"] .btn-secondary:hover {
  background-color: #2E1220 !important;
  color: #FFF0F5 !important;
}

[data-theme="dark"] .agenda-date-nav {
  background-color: #200C16 !important;
  border-color: #3A1828 !important;
}

[data-theme="dark"] .agenda-booking-card {
  background-color: #180811 !important;
  border-color: #3A1828 !important;
}

[data-theme="dark"] .agenda-booking-card:hover {
  background-color: #200C16 !important;
}

[data-theme="dark"] .card-glass {
  background: rgba(32, 12, 22, 0.88) !important;
  border-color: rgba(58, 24, 40, 0.7) !important;
}

[data-theme="dark"] .mobile-drawer {
  background: #1B0A13 !important;
  color: var(--color-text-title) !important;
}

/* Theme Toggle Switch Button */
.theme-toggle-btn {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-title);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
  transform: rotate(15deg) scale(1.08);
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-main);
  color: var(--color-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100vw;
  position: relative;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  color: var(--color-text-title);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; line-height: 1.25; }
h3 { font-size: 1.4rem; line-height: 1.3; }
h4 { font-size: 1.15rem; line-height: 1.4; }

p {
  margin-bottom: 0.8rem;
  color: var(--color-text-body);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-primary-dark);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.container-sm {
  max-width: 800px;
}

.container-lg {
  max-width: 1360px;
}

/* Navbar Luxury */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 0.5rem;
  overflow: hidden;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title span {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--color-text-body);
  transition: color var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  min-width: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(184, 51, 90, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary-deep));
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(184, 51, 90, 0.45);
  transform: translateY(-1px);
}

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

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

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text-body);
}

.btn-secondary:hover {
  background: var(--color-bg-alt);
  color: var(--color-text-title);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.1rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-primary { background: var(--color-primary-subtle); color: var(--color-primary-dark); border: 1px solid var(--color-primary-light); }
.badge-gold { background: var(--color-gold-light); color: var(--color-gold-dark); border: 1px solid rgba(212,175,55,0.3); }
.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-danger { background: var(--color-danger-bg); color: var(--color-danger); }
.badge-info { background: var(--color-info-bg); color: var(--color-info); }
.badge-light { background: #f0edf0; color: #555; }

/* Cards & Glassmorphism */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(234, 219, 223, 0.6);
}

/* Toast Messages / Alerts */
.messages-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}

.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.3s ease-out;
}

.alert-success { background: #E8F5E9; color: #1B5E20; border-left: 4px solid #2E7D32; }
.alert-error, .alert-danger { background: #FFEBEE; color: #B71C1C; border-left: 4px solid #C2185B; }
.alert-warning { background: #FFF3E0; color: #E65100; border-left: 4px solid #FF9800; }
.alert-info { background: #E1F5FE; color: #01579B; border-left: 4px solid #0288D1; }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-title);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-body);
  background: #FFFFFF;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(184, 51, 90, 0.15);
}

/* Footer Luxury */
.site-footer {
  background: var(--color-primary-deep);
  color: #FAF6F8;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #FFFFFF;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: #D1C5C9;
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--color-primary-light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #D1C5C9;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #A3969B;
}

/* External Web Switch Banner */
.external-web-banner {
  background: linear-gradient(90deg, #4A1525, #721C38);
  color: #FFFFFF;
  padding: 8px 16px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.external-web-banner a {
  color: var(--color-primary-light);
  font-weight: 700;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.external-web-banner a:hover {
  color: #FFFFFF;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-title span {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-primary);
  font-weight: 600;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font-size: 1.3rem;
  color: var(--color-primary-dark);
  cursor: pointer;
  line-height: 1;
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 11, 22, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 10000;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.mobile-drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.mobile-drawer-menu a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-title);
  text-decoration: none;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.mobile-drawer-menu a:hover {
  color: var(--color-primary);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .nav-menu { display: none !important; }
  .mobile-menu-toggle { display: inline-flex !important; align-items: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .brand-title span { display: none; }
  .brand-title { font-size: 1.15rem; }
  /* En móvil, mantener visibles el botón de Acceso / Gerencia, Salir y el toggle de modo */
  .nav-actions { gap: 6px; }
  .btn-header-quick span, .btn-header-panel span, .btn-header-login span, .btn-header-logout span { display: inline !important; font-size: 0.78rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .brand-logo img { height: 32px; }
  .nav-wrapper { height: 58px; }
  .nav-actions { gap: 4px; }
  .btn-header-login, .btn-header-panel, .btn-header-quick, .btn-header-logout { padding: 4px 7px !important; font-size: 0.74rem !important; }
  .btn-header-reserve { padding: 4px 8px !important; font-size: 0.74rem !important; }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */

#whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0,0,0,0.15);
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.16,1,0.3,1), box-shadow 0.22s;
  animation: wa-float-in 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

#whatsapp-float-btn svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

#whatsapp-float-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  animation: wa-pulse 2.2s ease-out infinite;
  z-index: -1;
}

#whatsapp-float-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0,0,0,0.18);
}

#whatsapp-float-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateX(6px) translateY(-50%);
  background: #1a1a1a;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #1a1a1a;
  border-right: none;
}

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}

@keyframes wa-float-in {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
  #whatsapp-float-btn {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px;
    width: 52px;
    height: 52px;
  }
  #whatsapp-float-btn svg {
    width: 28px;
    height: 28px;
  }
  .whatsapp-tooltip { display: none; }
}

/* ==========================================================================
   PWA BOTTOM NAVIGATION BAR (100% NATIVE MOBILE APP FEEL)
   ========================================================================== */

.pwa-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  .pwa-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9995;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--color-border);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    user-select: none;
    -webkit-user-select: none;
  }

  [data-theme="dark"] .pwa-bottom-bar {
    background: rgba(15, 16, 18, 0.96) !important;
    border-color: #282A30 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4) !important;
  }

  .pwa-tab-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    flex: 1;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }

  .pwa-tab-link:hover,
  .pwa-tab-link.active {
    color: var(--color-primary);
  }

  .pwa-tab-highlight {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    border-radius: var(--radius-md);
  }

  [data-theme="dark"] .pwa-tab-highlight {
    background: #260014 !important;
    color: var(--color-primary) !important;
  }
}

/* ==========================================================================
   NATIVE STANDALONE PWA OPTIMIZATIONS (iOS & ANDROID APP MODE)
   ========================================================================== */

/* Remove browser bounce and enable smooth native app touch */
html, body {
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button, a, .cat-pill, .service-row-card, .pwa-tab-link, .card {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

input, textarea, select {
  -webkit-user-select: auto;
  user-select: auto;
}

@media all and (display-mode: standalone) {
  /* Hide any potential web browser UI artifacts */
  .site-header {
    padding-top: calc(env(safe-area-inset-top, 0px) + 4px);
  }

  .pwa-bottom-bar {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    height: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  body {
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Seamless native header */
  .hero-section {
    padding-top: 2rem;
  }
}

/* Smart PWA Install Banner */
.pwa-install-banner {
  position: fixed;
  bottom: calc(75px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  right: 12px;
  max-width: 440px;
  margin: 0 auto;
  z-index: 9990;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  box-shadow: var(--shadow-lg);
  animation: pwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .pwa-install-banner {
  background: #18191D !important;
  border-color: #282A30 !important;
}

@keyframes pwaSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pwa-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--color-bg-main);
  padding: 3px;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.pwa-banner-text {
  flex: 1;
  min-width: 0;
}

.pwa-banner-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--color-text-title);
  line-height: 1.2;
}

.pwa-banner-text p {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-banner-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

@keyframes mfSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}



