/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
  /* Navbar */
  .navbar { padding: 12px 16px; }
  .nav-links { 
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 80%;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    padding: 80px 24px 24px;
    z-index: 9999;
    transition: transform 0.3s ease;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex !important; }
  
  /* Buttons */
  button, .btn, a.btn { 
    min-height: 48px !important; 
    font-size: 15px !important;
  }
  
  /* Inputs */
  input, select, textarea { 
    font-size: 16px !important;
    min-height: 48px !important;
  }
  
  /* Cards stack vertically */
  .cards-grid, .worker-grid, .blog-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* No horizontal overflow */
  body { overflow-x: hidden !important; }
  * { max-width: 100vw; box-sizing: border-box; }
  
  /* Tables become cards */
  table { display: block; overflow-x: auto; }
  
  /* Modals full screen */
  .modal, .popup {
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
  
  /* Headings smaller */
  h1 { font-size: 1.8rem !important; }
  h2 { font-size: 1.4rem !important; }
  h3 { font-size: 1.2rem !important; }
  
  /* Padding reduced */
  .section, section { padding: 32px 16px !important; }
  .container { padding: 0 16px !important; }
  
  /* Dashboard sidebar → bottom tabs */
  .sidebar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60px !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    z-index: 999 !important;
  }
  .sidebar .nav-item span { display: none; }
  .main-content { margin-bottom: 70px !important; }
  
  /* Map smaller */
  #map, .map-container { height: 250px !important; }
  
  /* Two col → one col */
  .two-col, .split-layout { 
    flex-direction: column !important; 
    grid-template-columns: 1fr !important;
  }
  
  /* Auth pages */
  .auth-container { 
    flex-direction: column !important;
    padding: 16px !important;
  }
  .auth-benefits { display: none !important; }
}

@media (max-width: 480px) {
  /* Extra small phones */
  .cards-grid { grid-template-columns: 1fr !important; }
  h1 { font-size: 1.5rem !important; }
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  width: 25px; height: 2px;
  background: var(--dark, #333);
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== SCROLL TO TOP ===== */
#scrollTop {
  position: fixed;
  bottom: 80px; right: 20px;
  width: 44px; height: 44px;
  background: var(--rose, #e11d48);
  color: white;
  border: none; border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  z-index: 9998;
}
#scrollTop.visible { opacity: 1; pointer-events: all; }

/* ===== WHATSAPP BUTTON ===== */
#whatsappBtn {
  position: fixed;
  bottom: 20px; right: 20px;
  background: #25D366;
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  z-index: 9997;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  display: flex; align-items: center; gap: 8px;
}

/* ===== COOKIE CONSENT ===== */
#cookieBanner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1a1a2e;
  color: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 99999;
  font-size: 14px;
}
#cookieBanner button {
  background: var(--rose, #e11d48);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
}

/* ===== PAGE FADE IN ===== */
body { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== TOAST NOTIFICATION ===== */
#toast {
  position: fixed;
  bottom: 90px; right: 20px;
  background: #1e1e2e;
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  max-width: 300px;
  z-index: 99998;
  transform: translateX(350px);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
#toast.show { transform: translateX(0); }

/* ===== SKELETON LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, 
    #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== FORM VALIDATION ===== */
input.valid { border-color: #22c55e !important; }
input.invalid { 
  border-color: #ef4444 !important;
  animation: shake 0.3s ease;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}
.field-error { 
  color: #ef4444; font-size: 12px; 
  margin-top: 4px; display: block; 
}
.field-success { 
  color: #22c55e; font-size: 12px; 
  margin-top: 4px; display: block; 
}

/* ===== NEW FOOTER ===== */
.footer-new {
  background: #0f0f1a;
  color: #ccc;
  padding: 60px 40px 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .footer-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 24px;
  }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr !important; }
}
.footer-col h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: #aaa;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--rose, #e11d48); }
.footer-social { display: flex; gap: 12px; margin-top: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  background: #ffffff15;
  border-radius: 50%;
  display: flex; align-items: center; 
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--rose, #e11d48); }
.footer-bottom {
  border-top: 1px solid #ffffff15;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #666;
}
.footer-cities {
  font-size: 12px;
  color: #555;
  margin-top: 16px;
  line-height: 1.8;
}

/* ===== BLOG ANIMATED GRADIENTS ===== */
.blog-hero-gradient {
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
  border-radius: 16px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.blog-hero-1 { 
  background: linear-gradient(135deg, #0ea5e9, #0891b2, 
    #06b6d4, #0284c7); 
}
.blog-hero-2 { 
  background: linear-gradient(135deg, #10b981, #059669, 
    #34d399, #065f46); 
}
.blog-hero-3 { 
  background: linear-gradient(135deg, #8b5cf6, #6d28d9, 
    #a78bfa, #4c1d95); 
}
.blog-hero-4 { 
  background: linear-gradient(135deg, #f97316, #ea580c, 
    #fb923c, #9a3412); 
}
.blog-hero-5 { 
  background: linear-gradient(135deg, #eab308, #ca8a04, 
    #22c55e, #15803d); 
}

/* Floating particles in hero */
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
}
