/* CSS Reset & Variables */
:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-orange: #f59e0b;
  
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dark: #111827;
  
  --card-glass: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.text-cyan { color: var(--accent-cyan); }
.text-muted { color: var(--text-muted); }
.text-warning { color: var(--accent-orange); }
.text-success { color: var(--accent-green); }
.text-error { color: var(--accent-red); }

/* Spacing helpers */
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mr-1 { margin-right: 0.25rem; }
.p-3 { padding: 1rem; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.font-bold { font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: white;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: var(--glass-border);
  color: var(--accent-cyan);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

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

.w-100 {
  width: 100%;
}

/* Glassmorphism Cards */
.glass {
  background: var(--card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

/* Header & Navigation */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--glass-border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-main);
}

.logo-icon {
  color: var(--accent-cyan);
  animation: spin 10s linear infinite;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

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

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-bg-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-card {
  padding: 2.5rem;
}

.schedule-list {
  list-style: none;
  margin: 1.5rem 0;
}

.schedule-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.schedule-list li:last-child {
  border-bottom: none;
}

.closed {
  color: var(--accent-red);
  font-weight: 600;
}

.contact-quick {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-quick a {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}

.contact-quick a:hover {
  color: var(--accent-cyan);
}

/* Services Section */
.services-section {
  background-color: rgba(17, 24, 39, 0.4);
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2rem;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.3);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.9rem;
}

/* Contact & Map */
.contact-section {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  gap: 1.25rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-top: 0.25rem;
}

.map-container {
  height: 400px;
  overflow: hidden;
}

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

.form-row {
  display: flex;
  gap: 1rem;
}

.col-6 { width: 50%; }
.col-4 { width: 33.33%; }
.col-3 { width: 25%; }

label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* Modal Overlay & Animation */
.modal-overlay, .portal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-content {
  width: 100%;
  max-width: 600px;
  padding: 2.5rem;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal {
  max-width: 450px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.modal-close, .portal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover, .portal-close:hover {
  color: var(--accent-red);
}

/* Wizard Steps */
.wizard-step {
  display: none;
}

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

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.slot-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-main);
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
}

.slot-btn:hover {
  border-color: var(--accent-cyan);
}

.slot-btn.selected {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: white;
  border-color: transparent;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

/* Portals & Sidebar */
.portal-window {
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  display: flex;
  flex-direction: column;
}

.portal-header {
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.portal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
}

.portal-icon {
  color: var(--accent-cyan);
}

.portal-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.portal-body {
  flex: 1;
  overflow: hidden;
}

.portal-section-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100%;
}

.portal-sidebar {
  background: rgba(11, 15, 25, 0.4);
  border-right: 1px solid var(--glass-border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.sidebar-link:hover, .sidebar-link.active {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
}

.portal-content-pane {
  padding: 2rem;
  overflow-y: auto;
}

.portal-tab-content {
  display: none;
}

.portal-tab-content.active {
  display: block;
}

/* Statistics Widgets */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat-card {
  padding: 1.5rem;
  border-left: 4px solid var(--glass-border);
}

.stat-card.border-cyan { border-left-color: var(--accent-cyan); }
.stat-card.border-blue { border-left-color: var(--accent-blue); }

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card .number {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-title);
  margin-top: 0.5rem;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

th {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-tertiary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 250px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--accent-cyan);
}

.toast.success { border-left-color: var(--accent-green); }
.toast.error { border-left-color: var(--accent-red); }

/* Mechanic Calendar Dashboard */
.calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
}

.mechanic-row-calendar {
  padding: 1.5rem;
}

.mechanic-row-calendar h4 {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

.calendar-timeline {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.calendar-slot {
  flex: 0 0 100px;
  padding: 1rem 0.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  text-align: center;
}

.calendar-slot.busy {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

.calendar-slot.free {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Animations */
@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

/* Mobile Responsive styling */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
  }
  
  .nav-menu.mobile-open {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .portal-section-wrapper {
    grid-template-columns: 1fr;
  }
  
  .portal-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding: 0.75rem;
  }
  
  .sidebar-link {
    white-space: nowrap;
  }
}

/* -----------------------------
   HEADER LOGO IMAGE
   ----------------------------- */
.header-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: var(--transition-smooth);
}

.header-logo:hover { opacity: 0.85; }

/* -----------------------------
   ABOUT / QUIENES SOMOS SECTION
   ----------------------------- */
.about-section {
  padding: 5rem 0;
  background: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.about-card {
  padding: 2rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.1);
}

.about-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.6rem;
  color: var(--accent-cyan);
}

.about-card h3 { font-size: 1.2rem; color: var(--text-main); margin-bottom: 0.75rem; }
.about-card p { font-size: 0.9rem; line-height: 1.7; }

/* -----------------------------
   FOOTER REDESIGN
   ----------------------------- */
.main-footer {
  background: rgba(17, 24, 39, 0.7);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--glass-border);
}

.footer-logo {
  height: 55px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer-tagline { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.footer-social { display: flex; gap: 1rem; }

.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--card-glass);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem; text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-social a:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); transform: translateY(-2px); }

.footer-info h4, .footer-hours h4 {
  color: var(--accent-cyan); font-size: 0.85rem; margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}

.footer-info p, .footer-hours p {
  color: var(--text-muted); font-size: 0.9rem;
  margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem;
}

.footer-info a { color: var(--text-muted); text-decoration: none; transition: var(--transition-smooth); }
.footer-info a:hover { color: var(--accent-cyan); }

.footer-bottom { padding: 1.5rem 0; text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0; }

@media (max-width: 992px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

/* -----------------------------
   ORBIT ANIMATIONS & BACKGROUND
   ----------------------------- */
.orbits-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.comet {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px var(--accent-cyan);
  opacity: 0;
}

.comet::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  width: 200px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-cyan));
  transform: translateY(-50%);
}

.comet-1 { top: -10%; left: 30%; animation: shoot 6s infinite ease-in; }

.comet-2 { top: 20%; left: -10%; animation: shoot 8s infinite ease-in; animation-delay: 2s; box-shadow: 0 0 10px 2px var(--accent-blue); }
.comet-2::before { background: linear-gradient(to right, transparent, var(--accent-blue)); }

.comet-3 { top: -10%; left: 80%; animation: shoot 10s infinite ease-in; animation-delay: 4s; box-shadow: 0 0 10px 2px var(--accent-green); }
.comet-3::before { background: linear-gradient(to right, transparent, var(--accent-green)); }

.comet-4 { top: 60%; left: -10%; animation: shoot 7s infinite ease-in; animation-delay: 1s; }

@keyframes shoot {
  0% { transform: rotate(45deg) translateX(-100px); opacity: 0; }
  10% { opacity: 1; }
  40% { transform: rotate(45deg) translateX(150vw); opacity: 0; }
  100% { transform: rotate(45deg) translateX(150vw); opacity: 0; }
}

/* Faded Hero Background */
.hero-section {
  position: relative;
  background-image: linear-gradient(to bottom, rgba(11, 15, 25, 0.5), var(--bg-primary)), url('../img/header-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 8rem 0 6rem; /* Ensure proper spacing */
}

/* -----------------------------
   SOCIAL SPEED-DIAL FLOATING BUTTON
   ----------------------------- */

/* Container */
.social-speed-dial {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Child items wrapper */
.social-dial-items {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  pointer-events: none;
}

/* Each child button */
.social-dial-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
  opacity: 0;
  transform: translateY(20px) scale(0.7);
  pointer-events: none;
}

.social-dial-btn:hover {
  transform: translateY(-4px) scale(1.12) !important;
  filter: brightness(1.2);
  color: #fff;
}

/* WhatsApp — larger + pulse */
.sdb-whatsapp {
  width: 58px;
  height: 58px;
  font-size: 1.65rem;
  background: #25d366;
  animation: none;
}
.social-speed-dial.open .sdb-whatsapp {
  animation: pulse-ws 2s infinite;
}

/* Instagram — gradient */
.sdb-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Facebook */
.sdb-facebook {
  background: #1877f2;
}

/* Toggle main button */
.social-dial-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--accent-cyan);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(6,182,212,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.social-dial-toggle:hover {
  background: var(--accent-blue);
  transform: scale(1.08);
}

.social-speed-dial.open .social-dial-toggle {
  background: var(--accent-blue);
  transform: rotate(45deg);
}

/* OPEN STATE: reveal child buttons */
.social-speed-dial.open .social-dial-items {
  pointer-events: auto;
}

.social-speed-dial.open .social-dial-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Staggered animation delays */
.social-speed-dial.open .social-dial-btn:nth-child(1) { transition: opacity 0.25s 0.05s ease, transform 0.25s 0.05s cubic-bezier(0.34,1.56,0.64,1); }
.social-speed-dial.open .social-dial-btn:nth-child(2) { transition: opacity 0.25s 0.12s ease, transform 0.25s 0.12s cubic-bezier(0.34,1.56,0.64,1); }
.social-speed-dial.open .social-dial-btn:nth-child(3) { transition: opacity 0.25s 0.19s ease, transform 0.25s 0.19s cubic-bezier(0.34,1.56,0.64,1); }

/* Closing: reverse stagger */
.social-dial-btn { transition: opacity 0.15s ease, transform 0.15s ease; }

@keyframes pulse-ws {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.7); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}


/* ========== ICON PICKER ========== */
.icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.icon-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 2px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1.2rem;
  color: var(--text-muted);
  position: relative;
}

.icon-option:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
}

.icon-option.selected {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.icon-option[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  color: var(--text-main);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  border: 1px solid var(--glass-border);
  pointer-events: none;
}

/* ========== SPECIALTY PICKER ========== */
.specialties-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.specialty-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 2px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  user-select: none;
}

.specialty-tag:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
}

.specialty-tag input[type=checkbox] {
  display: none;
}

.specialty-tag:has(input:checked) {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

/* ========== MECHANIC TIMELINE CALENDAR ========== */
.calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
}

.mechanic-row-calendar {
  border-radius: 12px;
  padding: 1rem 1.2rem;
  overflow: hidden;
}

.mech-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mech-cal-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mech-timeline-bar {
  display: flex;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.2);
}

.tl-block {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: filter 0.2s;
  min-width: 2px;
}

.tl-block.tl-free {
  background: rgba(16, 185, 129, 0.12);
  border-right: 1px solid rgba(16, 185, 129, 0.2);
}

.tl-block.tl-busy {
  background: linear-gradient(90deg, rgba(59,130,246,0.5), rgba(6,182,212,0.5));
  border-right: 1px solid rgba(6,182,212,0.4);
}

.tl-block.tl-busy:hover {
  filter: brightness(1.3);
}

.tl-block.tl-offset {
  background: rgba(0,0,0,0);
}

.tl-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 6px;
  pointer-events: none;
}

.tl-free .tl-label {
  color: rgba(16,185,129,0.7);
}

.calendar-time-axis {
  position: relative;
  height: 20px;
  margin-top: 0.2rem;
  padding: 0 0;
}

.axis-mark {
  position: absolute;
  font-size: 0.7rem;
  color: var(--text-muted);
  transform: translateX(-50%);
}

/* Table inline select styling */
.inline-select {
  padding: 0.4rem 1.8rem 0.4rem 0.6rem !important; /* Extra right padding for custom select arrows */
  font-size: 0.85rem;
  min-width: 140px;
  width: auto;
  background: var(--bg-secondary) !important;
  border-color: var(--glass-border);
  cursor: pointer;
  height: auto;
}

/* ========== SERVICE INFO BANNER ========== */
.service-info-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(59,130,246,0.08));
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  animation: fadeInUp 0.3s ease;
}

.sib-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(6,182,212,0.15);
  color: var(--accent-cyan);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.sib-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sib-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.sib-row strong {
  color: var(--text-main);
}

.sib-mechs {
  font-size: 0.85rem;
  gap: 0.5rem;
}

.sib-mech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.sib-mech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--accent-green);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* ========== ADMIN SLOTS GRID ========== */
.slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Reuse existing .slot-btn styles, they already exist */

.tl-block.tl-busy.tl-overlap {
  background: linear-gradient(90deg, rgba(239,68,68,0.7), rgba(249,115,22,0.7)) !important;
  border-right: 1px solid rgba(239,68,68,0.5) !important;
}

.tl-block.tl-busy.tl-overlap:hover {
  filter: brightness(1.25);
}

/* ========== MECHANIC PORTAL SPECIFICS ========== */
#mechanicPortal {
  min-height: 80vh;
}

#mechanicNextCitaContainer .glass {
  background: rgba(6, 182, 212, 0.04);
  border-left: 4px solid var(--accent-cyan);
  padding: 1.2rem;
  border-radius: 8px;
}

.status-badge.status-en_proceso {
  background: rgba(6, 182, 212, 0.15) !important;
  color: var(--accent-cyan) !important;
}

.status-badge.status-finalizada {
  background: rgba(16, 185, 129, 0.15) !important;
  color: var(--accent-green) !important;
}

.status-badge.status-cancelada {
  background: rgba(239, 68, 68, 0.15) !important;
  color: var(--accent-red) !important;
}

.status-badge.status-pendiente {
  background: rgba(245, 158, 11, 0.15) !important;
  color: var(--accent-orange) !important;
}

.status-badge.status-confirmada {
  background: rgba(59, 130, 246, 0.15) !important;
  color: var(--accent-blue) !important;
}

.mech-custom-date {
  animation: fadeIn 0.25s ease;
}

.mr-1 {
  margin-right: 0.25rem;
}

.text-magenta {
  color: #ec4899;
}







