/* ==========================================================================
   FUNDACIÓN SONREÍR - IPS VALLEDUPAR
   Mobile-First Stylesheet Optimized for Motorola G77 & Modern Smartphones
   Colors extracted from official "Portafolio de Servicios Fundación Sonreír 2026"
   ========================================================================== */

:root {
  /* Brand Colors from Portfolio */
  --primary: #177548;            /* Verde Institucional Médico */
  --primary-dark: #0f5533;       /* Verde Oscuro Sólido */
  --primary-light: #e8f5ee;      /* Tinte suave primario */
  --accent: #019040;             /* Verde Sonreír Esmeralda */
  --accent-bright: #0da756;      /* Verde Vivo Acción */
  --accent-soft: #edf8f2;        /* Fondo ligero tarjetas */
  --warm-neutral: #e6e7d9;       /* Gris Cálido Portafolio */
  
  /* Neutral & UI Colors */
  --bg-main: #f6f8f6;            /* Fondo base limpio */
  --bg-card: #ffffff;            /* Superficie tarjetas */
  --bg-muted: #eef3ef;           /* Elementos secundarios */
  --text-main: #14281e;          /* Texto principal alto contraste */
  --text-muted: #50675a;         /* Texto secundario */
  --text-subtle: #799183;        /* Textos auxiliares */
  --border-light: #e2ebe4;       /* Bordes sutiles */
  --border-focus: #019040;       /* Borde activo */
  
  /* Status Colors */
  --success: #019040;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0284c7;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Layout & Measurements */
  --max-w-mobile: 480px;         /* Ancho óptimo móvil (Motorola G77) */
  --max-w-desktop: 1120px;       /* Ancho en pantallas grandes */
  --header-height: 64px;
  --bottom-bar-height: 68px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(20, 60, 40, 0.05);
  --shadow-md: 0 4px 20px rgba(20, 60, 40, 0.08);
  --shadow-lg: 0 10px 30px rgba(20, 60, 40, 0.12);
  --shadow-nav: 0 -4px 25px rgba(20, 60, 40, 0.09);

  /* Safe Area for notch & bottom bar (Motorola G77) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  background-color: #0b2e1e;
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* Mobile Shell Wrapper (keeps perfect Motorola G77 proportions on desktop while being 100% full fluid on mobile) */
.app-container {
  width: 100%;
  max-width: var(--max-w-mobile);
  min-height: 100vh;
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.25);
  padding-bottom: calc(var(--bottom-bar-height) + var(--safe-bottom) + 16px);
}

@media (min-width: 900px) {
  body {
    background: radial-gradient(circle at 50% 20%, #177548 0%, #0d3a24 100%);
    padding: 24px 0;
  }
  .app-container {
    border-radius: 36px;
    overflow: hidden;
    min-height: 92vh;
    border: 8px solid #233e30;
  }
}

/* ==========================================================================
   TOP STICKY HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: calc(var(--header-height) + var(--safe-top));
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 16px;
  transition: all 0.25s ease;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

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

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.btn-icon-header {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
  position: relative;
  text-decoration: none;
}

.btn-icon-header:active {
  transform: scale(0.92);
  background-color: var(--primary-light);
}

.btn-icon-header svg {
  width: 20px;
  height: 20px;
}

.badge-pulse {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 2px #fff;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 1; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

/* ==========================================================================
   TOP QUICK CATEGORY PILL STRIP
   ========================================================================== */
.quick-tabs-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px 8px;
  scrollbar-width: none;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
}

.quick-tabs-strip::-webkit-scrollbar {
  display: none;
}

.tab-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-muted);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.tab-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-dark);
  box-shadow: 0 2px 10px rgba(23, 117, 72, 0.25);
}

.tab-pill:active {
  transform: scale(0.95);
}

.tab-pill svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   TAB CONTENT PANELS
   ========================================================================== */
.main-content {
  flex: 1;
  position: relative;
}

.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  padding-bottom: 24px;
}

.tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   HERO / BANNER SECTION (INICIO)
   ========================================================================== */
.hero-card {
  margin: 14px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #177548 0%, #0d5432 100%);
  color: #ffffff;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

.hero-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 167, 86, 0.35) 0%, rgba(13, 167, 86, 0) 70%);
  pointer-events: none;
}

.hero-img-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.hero-body {
  padding: 18px 18px 20px;
  position: relative;
  z-index: 1;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  backdrop-filter: blur(4px);
}

.hero-badge-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

.hero-title {
  font-size: 1.38rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #e3efe7;
  margin-bottom: 16px;
}

.hero-cta-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-height: 48px; /* Touch friendly on Motorola G77 */
}

.btn-primary:active {
  transform: scale(0.96);
  background: #f0f7f2;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  min-height: 48px;
}

.btn-secondary:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   METRIC STATS STRIP (Desde 1996)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 16px 16px;
}

.stat-card {
  background: var(--bg-card);
  padding: 12px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
}

/* ==========================================================================
   SECTION HEADERS & TITLES
   ========================================================================== */
.section-header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 16px 12px;
}

.section-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.section-title svg {
  color: var(--accent);
}

.section-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   FEATURED GRID (SPECIALTIES ON HOME)
   ========================================================================== */
.specialties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
}

.specialty-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  min-height: 120px;
  box-shadow: var(--shadow-sm);
}

.specialty-card:active {
  transform: scale(0.97);
  border-color: var(--accent);
}

.specialty-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.specialty-icon-box img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.specialty-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 4px;
}

.specialty-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

/* Notice Banner (Malformaciones y Cirugías Reconstructivas) */
.notice-card {
  margin: 16px 16px;
  background: linear-gradient(135deg, #edf8f2 0%, #e6f3eb 100%);
  border: 1px solid #c8e6d5;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.notice-badge-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(23, 117, 72, 0.1);
}

.notice-badge-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.notice-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.notice-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   SERVICES TAB (COMPREHENSIVE CATALOG & PROCEDURES)
   ========================================================================== */
.services-header-box {
  padding: 16px 16px 8px;
}

.search-bar-wrap {
  position: relative;
  margin-bottom: 12px;
}

.search-input {
  width: 100%;
  height: 48px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0 16px 0 46px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(1, 144, 64, 0.15);
}

.search-icon-svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

/* Service Category Accordions */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px;
}

.service-accordion-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.service-accordion-item.active {
  border-color: var(--accent);
}

.accordion-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: var(--bg-card);
  transition: background 0.15s ease;
}

.accordion-header:active {
  background: var(--bg-muted);
}

.accordion-title-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.accordion-icon-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  padding: 4px;
  object-fit: contain;
}

.accordion-title-text {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.accordion-count-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.accordion-arrow {
  color: var(--text-subtle);
  transition: transform 0.25s ease;
}

.service-accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fafcfa;
  border-top: 1px solid var(--border-light);
}

.service-accordion-item.active .accordion-body {
  max-height: 800px;
}

.procedure-items-list {
  padding: 8px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.procedure-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  gap: 8px;
}

.procedure-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.procedure-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.procedure-type-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-book-mini {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #bce1ce;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-book-mini:active {
  background: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   FACILITIES & VIRTUAL TOUR TAB (INSTALACIONES)
   ========================================================================== */
.gallery-section {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.facility-group-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.facility-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.facility-carousel::-webkit-scrollbar {
  display: none;
}

.facility-card-item {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.facility-img-wrap {
  width: 100%;
  height: 190px;
  position: relative;
  background: #e2ece5;
}

.facility-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.facility-caption {
  padding: 10px 14px;
}

.facility-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.facility-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Doctors Team Card */
.team-highlight-card {
  background: linear-gradient(145deg, #ffffff 0%, #edf7f1 100%);
  border: 1px solid #c2e2cf;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.team-photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.team-photo-frame {
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.team-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   ABOUT TAB (NOSOTROS - MISIÓN, VISIÓN, POLÍTICAS)
   ========================================================================== */
.about-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-banner-top {
  text-align: center;
  padding: 20px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.about-logo-big {
  max-width: 220px;
  height: auto;
  margin-bottom: 12px;
}

.about-intro-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.info-box-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.info-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.info-box-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-box-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.info-box-body {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.principles-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.principle-chip {
  background: var(--accent-soft);
  color: var(--primary-dark);
  border: 1px solid #b7e3ca;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ==========================================================================
   CONTACT & APPOINTMENT TAB (CITAS Y CONTACTO)
   ========================================================================== */
.contact-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Direct Channels Quick Cards */
.quick-channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.channel-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.2s ease;
  min-height: 48px;
}

.channel-card:active {
  transform: scale(0.96);
  border-color: var(--accent);
}

.channel-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-card.whatsapp .channel-icon {
  background: #e7f9ef;
  color: #128c7e;
}

.channel-card.call .channel-icon {
  background: #e9f4ff;
  color: #0369a1;
}

.channel-card.email .channel-icon {
  background: #fdf2f8;
  color: #be185d;
}

.channel-card.map .channel-icon {
  background: #fef3c7;
  color: #b45309;
}

.channel-name {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

.channel-value {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Appointment Form Card */
.booking-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1.5px solid #d3e7da;
  padding: 20px 18px;
  box-shadow: var(--shadow-md);
}

.booking-header {
  margin-bottom: 16px;
  text-align: center;
}

.booking-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.booking-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.booking-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Form Groups */
.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-label .req {
  color: var(--danger);
}

.form-control {
  width: 100%;
  min-height: 48px; /* Touch ergonomic standard */
  background: #f8faf8;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(1, 144, 64, 0.15);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2350675a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

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

.shift-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shift-option {
  position: relative;
}

.shift-option input {
  position: absolute;
  opacity: 0;
}

.shift-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  background: #f3f6f3;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.shift-option input:checked + .shift-label {
  background: var(--primary);
  border-color: var(--primary-dark);
  color: #ffffff;
}

.btn-submit-booking {
  width: 100%;
  min-height: 52px;
  background: linear-gradient(135deg, #177548 0%, #019040 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.98rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(23, 117, 72, 0.3);
  transition: all 0.2s ease;
  margin-top: 10px;
}

.btn-submit-booking:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(23, 117, 72, 0.2);
}

/* Appointment Confirmation Modal / Card */
.ticket-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 20, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ticket-modal.active {
  display: flex;
}

.ticket-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ticket-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e6f7ec;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.ticket-summary-box {
  background: #f8faf8;
  border: 1px dashed #b7d6c2;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 14px 0 18px;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.5;
}

.ticket-actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-ticket-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-ticket-close {
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 10px;
  border: none;
  cursor: pointer;
}

/* Location Card */
.location-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-placeholder-box {
  background: #e2ede5;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  padding: 16px;
  text-align: center;
}

.location-info {
  padding: 14px 16px;
}

.location-address {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.location-city {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR (Thumb Zone Optimized for Motorola G77)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w-mobile);
  height: calc(var(--bottom-bar-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  z-index: 200;
  box-shadow: var(--shadow-nav);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-subtle);
  text-decoration: none;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

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

.nav-item.active svg {
  transform: translateY(-2px);
  stroke: var(--primary);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: 6px;
  width: 18px;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius-pill);
}

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

/* Floating Action Button (Quick WhatsApp) */
.fab-whatsapp {
  position: fixed;
  right: 18px;
  bottom: calc(var(--bottom-bar-height) + var(--safe-bottom) + 14px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  z-index: 150;
  text-decoration: none;
  transition: transform 0.2s ease;
  animation: floatBounce 3s ease-in-out infinite;
}

.fab-whatsapp:active {
  transform: scale(0.92);
}

.fab-whatsapp svg {
  width: 28px;
  height: 28px;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ==========================================================================
   IMAGE LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-img {
  max-width: 95%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
