/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* REMOVE menu-preview-content completely */
.menu-preview-content,
.menu-preview,
div.menu-preview-content {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

:root {
  /* Light Theme Colors */
  --primary-color: #6A4CDB;
  --primary-dark: #5436B8;
  --secondary-color: #2c2c2c;
  --accent-color: #f0f0f0;
  --text-primary: #2c2c2c;
  --text-secondary: #666;
  --text-light: #999;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-accent: #f0f0f0;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  --gradient: linear-gradient(135deg, #6A4CDB, #7B57FF);
  --primary-rgb: 106, 76, 219;
  /* WhatsApp / success color tokens */
  --whatsapp-green: #25d366;
  --whatsapp-green-hover: #20ba5a;
  --whatsapp-green-dark: #128c7e;
  --whatsapp-rgb: 37, 211, 102;
  /* Alerts */
  --danger: #e74c3c;
  --warning: #f39c12;
  /* Fonts */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
}

/* SVG icons */
.icon { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: middle; fill: currentColor; stroke: currentColor; }
.icon.icon-spinner { animation: fa-fallback-spin 1s linear infinite; }
.icon.icon-heart { color: var(--primary-color); }
.icon.icon-ai { width: 1.5em; height: 1.5em; }
.icon-robot-img { width: 1.5em; height: 1.5em; object-fit: contain; vertical-align: middle; }
.icon-whatsapp-img { width: 1.1em; height: 1.1em; object-fit: contain; vertical-align: middle; }

[data-theme="dark"] {
  /* Dark Theme Colors */
  --primary-color: #7b57ff;
  --primary-dark: #6a4cdb;
  --secondary-color: #e0e0e0;
  --accent-color: #2c2c2c;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --text-light: #808080;
  --bg-primary: #1a1a1a;
  --bg-secondary: #2c2c2c;
  --bg-accent: #333333;
  --border-color: #404040;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.4);
  --gradient: linear-gradient(135deg, #7b57ff, #6a4cdb);
  --whatsapp-green: #25d366;
  --whatsapp-green-hover: #20ba5a;
  --whatsapp-green-dark: #128c7e;
  --whatsapp-rgb: 37, 211, 102;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: all 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); }

.main-content {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  opacity: 1;
}

.navbar.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(15px);
}

[data-theme="dark"] .navbar {
  background: rgba(26, 26, 26, 0.95);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(26, 26, 26, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 75px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-logo:hover {
  color: var(--primary-dark);
  transform: scale(1.05);
}

.nav-logo i {
  font-size: 1.8rem;
}

.nav-logo-img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 12px;
}



.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link-whatsapp { display: none; }

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Navbar theme transitions */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.nav-logo {
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link {
  transition: color 0.3s ease;
}

.theme-toggle {
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

/* WhatsApp CTA in navbar */
.nav-whatsapp { padding: 8px 12px; border-radius: 8px; font-weight: 600; display: inline-flex; align-items: center; gap:8px; }
.nav-whatsapp i { font-size: 1rem; }

/* Hero tweaks */
.hero-title {
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-subtitle { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 26px; }

.hero-buttons .btn-primary { padding: 14px 20px; border-radius: 10px; font-weight: 600; box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.08); }

/* Responsive tweaks */
@media (max-width: 900px) {
  /* keep the main WhatsApp button visible instead of swapping it for a menu link
     the small-screen menu already contains other links so the extra one looked like
     a duplicate when the navbar collapsed */
  .nav-whatsapp { display: inline-flex; }
  /* hide the redundant menu item completely */
  .nav-link-whatsapp { display: none; }
  .hero-container { grid-template-columns: 1fr; gap: 30px; }
  .nav-toggle { display: flex; }
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

/* Courses / Dashboard styles */
.courses .section-header h2 { margin-bottom: 0.25rem; }
.courses #modules-list { display: grid; gap: 1rem; margin-top: 1rem; }
.module-card { padding: 1rem; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-accent); box-shadow: var(--shadow); }
.module-card.locked { opacity: 0.6; }
.module-actions { margin-top: 0.5rem; }
.btn-outline { background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); padding: 0.5rem 0.8rem; border-radius: 6px; cursor: pointer; }
.btn-outline:hover { background: var(--primary-color); color: #fff; }

/* Small responsive tweaks for dashboard */
@media (max-width: 640px) {
  /* Ensure mobile nav is available — display:flex to allow toggle to show menu */
  .nav-menu { display: flex; }
  .module-card { padding: 0.75rem; }
}

/* Modal (Auth) */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display:flex; align-items:center; justify-content:center; z-index:2000; }
.modal-content { background: var(--bg-primary); padding: 1.25rem; border-radius: 8px; width: 360px; max-width: 95%; box-shadow: var(--shadow); }
.modal-close { position: absolute; right: 1rem; top: 1rem; background: transparent; border: none; font-size: 1.5rem; cursor: pointer; }
.modal input, .modal textarea { width: 100%; padding: 0.6rem; margin-bottom: 0.5rem; border: 1px solid var(--border-color); border-radius: 6px; }

.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 15px;
}

.theme-toggle:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  padding: 130px 0 80px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06) 0%, var(--bg-primary) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Hero-specific WhatsApp button (green, prominent) */
.hero .btn-whatsapp {
  background: var(--whatsapp-green);
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hero .btn-whatsapp:hover {
  background: var(--whatsapp-green-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.18);
}


.hero-graphic {
  position: relative;
  width: 450px;
  height: 450px;
  background: var(--gradient);
  border-radius: 50%;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.hero-main-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
  animation: fadeInUp 0.8s ease 0.3s both;
  opacity: 1;
  z-index: 1;
}


.hero-avatar-overlay {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 1;
  transition: transform 0.3s ease;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-avatar-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-graphic:hover .hero-avatar-overlay {
  transform: scale(1.05);
}

/* White circular badge with inner avatar used in hero */
.hero-badge {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  border: 6px solid rgba(106,76,219,0.85); /* primary color ring */
  z-index: 6;
}
.hero-badge-inner { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: white; }
.hero-badge-inner img { width: 80%; height: 80%; object-fit: contain; display: block; }

/* Ensure WhatsApp float icon svg is sized and visible */
.whatsapp-float svg.icon { width: 1.6rem; height: 1.6rem; fill: currentColor; }
.whatsapp-container { z-index: 9999; }

.hero-graphic i {
  font-size: 4rem;
  color: white;
  position: absolute;
  animation: float 3s ease-in-out infinite;
}

.hero-graphic i:nth-child(1) {
  animation-delay: 0s;
}

.hero-graphic i:nth-child(2) {
  font-size: 2.5rem;
  top: 20%;
  right: 20%;
  animation-delay: 1s;
}

.hero-graphic i:nth-child(3) {
  font-size: 2rem;
  bottom: 20%;
  left: 20%;
  animation-delay: 2s;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: rgba(138, 43, 226, 0.8);
  color: white;
  transform: translateY(-2px);
}

/* Enhanced module card visuals - Content-Based Layout */
.module-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0;
  margin: 0;
}
.module-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  /* Remove fixed aspect ratio - let content determine height */
}
.module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.16);
}
.module-card .thumb {
  width: 180px;
  height: 135px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-right: 24px;
  flex-shrink: 0;
}
.module-card .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  gap: 8px;
}
.module-card .meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.module-card h4 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}
.module-card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0 0 20px 0;
  line-height: 1.6;
  /* Remove text clamping to show full content */
}
.module-card .actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  justify-content: flex-start;
  padding-top: 8px;
}
.module-card .actions button {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.module-card .actions button:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-1px);
}
.module-badges {
  display: flex;
  gap: 8px;
  font-size: 11px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.module-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: 0.025em;
}

/* Responsive breakpoints for content-based layout */
@media (min-width: 1200px) {
  .module-list {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .module-card {
    padding: 20px;
  }
  .module-card .thumb {
    width: 160px;
    height: 120px;
    margin-right: 20px;
  }
  .module-card h4 {
    font-size: 18px;
  }
  .module-card p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .module-list {
    gap: 18px;
  }
  .module-card {
    padding: 18px;
  }
  .module-card .thumb {
    width: 140px;
    height: 105px;
    margin-right: 18px;
  }
  .module-card h4 {
    font-size: 17px;
  }
  .module-card p {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .module-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    align-items: center;
  }
  .module-card .thumb {
    width: 100%;
    height: 160px;
    margin-right: 0;
    margin-bottom: 16px;
  }
  .module-card .content {
    align-items: center;
    text-align: center;
  }
  .module-card .meta,
  .module-card h4,
  .module-card p {
    text-align: center;
  }
  .module-card .actions {
    justify-content: center;
  }
}
    margin-right: 16px;
    flex-shrink: 0;
  }
  .module-card .meta,
  .module-card h4,
  .module-card p {
    text-align: left;
  }
  .module-card .actions {
    justify-content: flex-start;
    margin-top: 12px;
  }
  .module-card .actions button {
    flex: none;
    max-width: none;
  }
}

/* WhatsApp buttons should use the standard .btn sizing so they look "normal" */
.btn-whatsapp {
  background: var(--whatsapp-green);
  color: white;
  border: 2px solid var(--whatsapp-green);
  display: inline-flex;      /* keep icon/text alignment */
  align-items: center;
  gap: 8px;
  /* padding now inherited from .btn (15px 30px) */
}

.btn-whatsapp:hover {
  background: var(--whatsapp-green-dark);
  border-color: var(--whatsapp-green-dark);
  color: white;
  transform: translateY(-2px);
}

.btn-whatsapp i, .btn-whatsapp svg {
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  line-height: 1;
  width: 1.1em;
  height: 1.1em;
}

.btn-full {
  width: 100%;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Section */
.services {
  padding: 80px 0;
  background: var(--bg-secondary);
}

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

.service-card {
  background: var(--bg-primary);
  padding: 0;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-primary), var(--bg-primary)),
    linear-gradient(135deg, var(--primary-color), #9b59b6, #ba68c8);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  overflow: hidden;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.05), rgba(155, 89, 182, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  border-radius: 18px;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(138, 43, 226, 0.25),
    0 0 30px rgba(186, 104, 200, 0.15);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.service-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(138, 43, 226, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.service-card:hover .service-image::after {
  opacity: 1;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-image img {
  transform: scale(1.08);
}

/* Deshabilitar escala para tarjetas con hover personalizado */
.ensamblaje-card:hover .service-image img,
.mantenimiento-card:hover .service-image img,
.upgrade-card:hover .service-image img,
.remoto-card:hover .service-image img,
.reparacion-card:hover .service-image img,
.asesoramiento-card:hover .service-image img,
.software-card:hover .service-image img,
.recuperacion-card:hover .service-image img,
.red-card:hover .service-image img,
.limpieza-card:hover .service-image img,
.diagnostico-card:hover .service-image img,
.optimizacion-card:hover .service-image img,
.backup-card:hover .service-image img {
  transform: none;
}

/* Efecto hover para ensamblaje */
.ensamblaje-card .service-image {
  position: relative;
  overflow: hidden;
}

.ensamblaje-card .ensamblaje-main {
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.ensamblaje-card .ensamblaje-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.ensamblaje-card:hover .ensamblaje-main {
  opacity: 0;
}

.ensamblaje-card:hover .ensamblaje-hover {
  opacity: 1;
}

/* Efecto hover para mantenimiento */
.mantenimiento-card .service-image {
  position: relative;
  overflow: hidden;
}

.mantenimiento-card .mantenimiento-main {
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.mantenimiento-card .mantenimiento-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.mantenimiento-card:hover .mantenimiento-main {
  opacity: 0;
}

.mantenimiento-card:hover .mantenimiento-hover {
  opacity: 1;
}

/* Efecto hover para upgrade */
.upgrade-card .service-image {
  position: relative;
  overflow: hidden;
}

.upgrade-card .upgrade-main {
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.upgrade-card .upgrade-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.upgrade-card:hover .upgrade-main {
  opacity: 0;
}

.upgrade-card:hover .upgrade-hover {
  opacity: 1;
}

/* Efecto hover para soporte remoto */
.remoto-card .service-image {
  position: relative;
  overflow: hidden;
}

.remoto-card .remoto-main {
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.remoto-card .remoto-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.remoto-card:hover .remoto-main {
  opacity: 0;
}

.remoto-card:hover .remoto-hover {
  opacity: 1;
}

/* Efecto hover para reparación */
.reparacion-card .service-image {
  position: relative;
  overflow: hidden;
}

.reparacion-card .reparacion-main {
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.reparacion-card .reparacion-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.reparacion-card:hover .reparacion-main {
  opacity: 0;
}

.reparacion-card:hover .reparacion-hover {
  opacity: 1;
}

.service-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #9b59b6 50%, #ba68c8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 20px rgba(138, 43, 226, 0.3);
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(138, 43, 226, 0.5);
}

.service-icon i {
  font-size: 2.2rem;
  color: white;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon i {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 15px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--primary-color);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 0 20px 30px;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.service-card:hover p {
  color: var(--text-primary);
}

/* Servicios Futuros */
.service-card.coming-soon {
  position: relative;
  opacity: 0.9;
}

.service-card.coming-soon:hover {
  opacity: 1;
  transform: translateY(-12px) scale(1.02);
}

.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.95), rgba(155, 89, 182, 0.95));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 18px 18px 0 0;
}

.coming-soon-overlay i {
  font-size: 3rem;
  margin-bottom: 10px;
  animation: pulse 2s infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.coming-soon-overlay span {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Estilos para tema oscuro */
[data-theme="dark"] .service-card {
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
  background-image: linear-gradient(var(--bg-primary), var(--bg-primary)),
    linear-gradient(135deg, #9c4dcc, #ba68c8, #ce93d8);
}

[data-theme="dark"] .service-card:hover {
  box-shadow: 0 20px 40px rgba(156, 77, 204, 0.35),
    0 0 30px rgba(186, 104, 200, 0.2);
}

[data-theme="dark"] .service-card::before {
  background: linear-gradient(135deg, rgba(156, 77, 204, 0.08), rgba(186, 104, 200, 0.08));
}

[data-theme="dark"] .service-card:hover h3 {
  color: #ba68c8;
}

/* Efecto de brillo en las tarjetas */
.service-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transform: rotate(45deg);
  transition: left 0.7s ease;
  z-index: 2;
  pointer-events: none;
}

.service-card:hover::after {
  left: 140%;
}

[data-theme="dark"] .service-card::after {
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.05),
      transparent);
}

/* Nota de Servicios */
.services-note {
  margin-top: 60px;
  text-align: center;
}

.note-content {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  max-width: 600px;
  margin: 0 auto;
}

.note-content i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: block;
}

.note-content h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.note-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 25px;
}

.note-content .btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--gradient);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.note-content .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Testimonios Section */
.testimonials {
  padding: 80px 0;
  background: var(--bg-secondary);
}

/* Layout principal de testimonios */
.testimonials-main-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

/* Formulario de Testimonios */
.testimonial-form-container {
  grid-column: 1;
}

.testimonial-form-card {
  background: var(--bg-primary);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.1);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-primary), var(--bg-primary)),
    linear-gradient(135deg, var(--primary-color), #9b59b6, #ba68c8);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-form-card:hover {
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.2);
}

.testimonial-form-card h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.testimonial-form-card h3 i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.new-testimonial-form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.new-testimonial-form .form-row {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.new-testimonial-form .form-row-inline {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.new-testimonial-form .form-group {
  position: relative;
}

.form-group-name {
  flex: 1;
}

.form-group-image {
  flex-shrink: 0;
}

.new-testimonial-form label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.new-testimonial-form label i {
  color: var(--primary-color);
  font-size: 0.8rem;
}

.new-testimonial-form label .required {
  color: #e74c3c;
  font-weight: bold;
  margin-left: 2px;
}

.new-testimonial-form input,
.new-testimonial-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
}

/* Botón de imagen compacto */
.btn-upload-image-compact {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-upload-image-compact:hover .image-preview-compact {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(138, 43, 226, 0.4);
}

.image-preview-compact {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #9b59b6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
  transition: all 0.3s ease;
}

.image-preview-compact i {
  font-size: 1.3rem;
  color: white;
  opacity: 0.9;
  z-index: 1;
}

.image-preview-compact .icon-camera {
  color: white;
  stroke: white;
}

.image-preview-compact svg {
  color: white;
}

.image-preview-compact svg path {
  fill: white;
  stroke: white;
}

.image-preview-compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.image-preview-compact.has-image i {
  display: none;
}

.new-testimonial-form input:focus,
.new-testimonial-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(106, 76, 219, 0.1);
} 

.new-testimonial-form textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.char-counter {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

.btn-submit-testimonial {
  width: 100%;
  margin-top: auto;
  padding: 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-message {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 0.85rem;
  animation: slideInUp 0.3s ease;
  flex-shrink: 0;
}

.form-message.success {
  background: rgba(var(--whatsapp-rgb), 0.1);
  border: 2px solid rgba(var(--whatsapp-rgb), 0.3);
  color: var(--whatsapp-green-dark);
}

.form-message.error {
  background: rgba(231, 76, 60, 0.1);
  border: 2px solid rgba(231, 76, 60, 0.3);
  color: #c0392b;
}

.form-message i {
  font-size: 1.2rem;
}

/* Lista de Testimonios en Tiempo Real */
.testimonials-list {
  grid-column: 1 / -1;
  margin-bottom: 30px;
}
.testimonials-error {
  background: #fff4f0;
  border: 1px solid #ffd2c2;
  color: #912d00;
  padding: 12px;
  border-radius: 6px;
}

/* Module cards */
.module-card {
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  display:flex;
  flex-direction:column;
}
.module-card.locked { opacity: 0.7; }
.module-card h4 { margin:0 0 6px 0; }
.module-meta { color: var(--text-secondary); font-size:0.9rem; margin-bottom:8px; }
.module-actions { margin-top:8px; display:flex; gap:8px; }

/* Admin modules list */
#admin-modules-list .module-card { display:flex; justify-content:space-between; align-items:flex-start; }
#admin-modules-list .module-card .left { flex:1; }
#admin-modules-list .module-card .right { margin-left:12px; display:flex; gap:6px; align-items:center; }

/* Module viewer tweaks */
#module-modal .modal-content { max-width:800px; }
#module-body p { white-space:pre-wrap; }

.testimonials-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.testimonials-header h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.testimonials-header h3 i {
  color: var(--primary-color);
}

.testimonials-count {
  background: linear-gradient(135deg, var(--primary-color), #9b59b6);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.testimonials-count span {
  font-size: 0.95rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Estados de carga y vacío */
.testimonials-loading,
.testimonials-empty,
.testimonials-offline {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-primary);
  border-radius: 16px;
  border: 2px dashed var(--border-color);
}

.testimonials-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.testimonials-empty i,
.testimonials-offline i {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 15px;
  display: block;
}

.testimonials-empty p,
.testimonials-offline p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.testimonials-offline h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.testimonials-offline .btn {
  margin-top: 15px;
}

/* Tarjetas de Testimonio en Tiempo Real */
.live-testimonial-card {
  background: var(--bg-primary);
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.1);
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.live-testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), #9b59b6, #ba68c8);
}

.live-testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.2);
  border-color: rgba(138, 43, 226, 0.3);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #9b59b6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
  overflow: hidden;
  position: relative;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

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

.testimonial-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 3px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.testimonial-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.testimonial-date i {
  font-size: 0.7rem;
}

.testimonial-body {
  margin-bottom: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.testimonial-body p {
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  word-wrap: break-word;
  font-size: 0.9rem;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.like-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.85rem;
}

.like-btn:hover {
  background: rgba(106, 76, 219, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: scale(1.05);
}

.like-btn.liked {
  background: linear-gradient(135deg, var(--primary-color), #9b59b6);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(106, 76, 219, 0.3);
}

.like-btn.liked:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: scale(1.05);
} 

.like-btn i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.like-btn:active i {
  transform: scale(1.3);
}

.delete-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.85rem;
  margin-left: 10px;
}

.delete-btn:hover {
  background: rgba(220, 53, 69, 0.1);
  border-color: #dc3545;
  color: #dc3545;
  transform: scale(1.05);
}

.delete-btn i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.delete-btn:active i {
  transform: scale(1.3);
}

.like-count {
  font-weight: 600;
}

/* Testimonios Destacados (Instagram) */
.featured-testimonials {
  grid-column: 2;
  background: var(--bg-primary);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(228, 64, 95, 0.1);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-primary), var(--bg-primary)),
    linear-gradient(135deg, #E4405F, #F77737, #FCAF45);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-testimonials h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
}

.featured-testimonials h3 i {
  color: #E4405F;
  font-size: 1.2rem;
}

.testimonials-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.testimonial-slide {
  display: none;
  animation: fadeIn 0.5s ease;
  flex: 1;
}

.testimonial-slide.active {
  display: flex;
  flex-direction: column;
}

.testimonial-content {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-text {
  margin-bottom: 15px;
}

.testimonial-text i {
  font-size: 1.5rem;
  color: #E4405F;
  margin-bottom: 12px;
}

.testimonial-text p {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #E4405F;
}

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

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.author-info span {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.rating {
  margin-top: 6px;
}

.rating i {
  color: #E4405F;
  margin-right: 2px;
  font-size: 0.85rem;
}

.rating span {
  font-size: 0.75rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: auto;
  padding-top: 20px;
  flex-shrink: 0;
}

.testimonial-prev,
.testimonial-next {
  background: linear-gradient(135deg, #E4405F, #F77737);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: linear-gradient(135deg, #d32f2f, #E4405F);
  transform: scale(1.1);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #E4405F;
  width: 20px;
  border-radius: 4px;
}

/* Calculadora Section */
.calculator {
  padding: 80px 0;
  background: var(--bg-primary);
}

.calculator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.calculator-form {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.calculator-result {
  display: flex;
  align-items: center;
}

.result-card {
  background: var(--gradient);
  color: white;
  padding: 30px;
  border-radius: 15px;
  width: 100%;
  box-shadow: var(--shadow-hover);
}

.result-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.price-breakdown {
  margin-bottom: 20px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 5px 0;
}

.price-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin: 15px 0;
}

.price-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 10px 0;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.price-note {
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: center;
  margin-bottom: 20px;
}

/* Works Section */
.works {
  padding: 80px 0;
  background: var(--bg-primary);
}

.works-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.work-card {
  background: var(--bg-primary);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  opacity: 1;
  transform: scale(1);
}

.work-card.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.work-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(138, 43, 226, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-overlay i {
  font-size: 2rem;
  color: white;
}

.work-card:hover .work-image img {
  transform: scale(1.05);
}

.work-content {
  padding: 25px;
}

.work-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.work-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 15px;
}

.work-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Estadísticas Section */
.stats {
  padding: 60px 0;
  background: var(--gradient);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  animation: fadeInUp 0.6s ease;
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Quote Section */
.quote {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.optional-field {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 400;
  font-style: italic;
}

.contact-requirement {
  background: rgba(106, 76, 219, 0.08);
  border-left: 3px solid var(--primary-color);
  padding: 12px 15px;
  border-radius: 8px;
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-requirement i {
  color: var(--primary-color);
  font-size: 1rem;
  flex-shrink: 0;
} 

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.quote-container {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.quote-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.quote-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.quote-form {
  background: var(--bg-primary);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.service-option span {
  font-weight: 500;
  color: var(--text-primary);
}

.service-option span {
  font-weight: 500;
  color: var(--text-primary);
}

/* Calculator Select Styles */
.calculator select[multiple] {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color 0.3s ease, max-height 0.3s ease, opacity 0.3s ease;
  min-height: 120px;
  overflow-y: auto;
}

.calculator select[multiple]:focus {
  outline: none;
  border-color: var(--primary-color);
}

.calculator select[multiple] option {
  padding: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* service toggle wrapper */
.service-type-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  min-width: 0;
}

.service-type-wrapper select {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--background);
  color: var(--text-color);
  font-size: 14px;
  min-height: 220px;
  box-sizing: border-box;
  font-family: inherit;
}

.service-type-wrapper select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.1);
}

.service-type-wrapper select option {
  padding: 8px;
  background: var(--background);
  color: var(--text-color);
}

.service-type-wrapper select option.selected-option {
  background: #e6d6ff !important;
  background-color: #e6d6ff !important;
  color: #6a0dad !important;
  font-weight: 600 !important;
  box-shadow: inset 0 0 0 2px #8a2be2 !important;
  border-radius: 3px !important;
  padding: 2px 4px !important;
}

.service-type-wrapper select option.selected-option:hover {
  background: #d6b8ff !important;
  background-color: #d6b8ff !important;
  color: #5a0d9d !important;
}

/* Estilos para el select del formulario de cotización */
.quote-form select#service option.selected-option {
  background: #e6d6ff !important;
  background-color: #e6d6ff !important;
  color: #6a0dad !important;
  font-weight: 600 !important;
  box-shadow: inset 0 0 0 2px #8a2be2 !important;
  border-radius: 3px !important;
  padding: 2px 4px !important;
}

.quote-form select#service option.selected-option:hover {
  background: #d6b8ff !important;
  background-color: #d6b8ff !important;
  color: #5a0d9d !important;
}



/* Calculator form styling */
.calculator-form select,
.calculator-form .form-group {
  margin-bottom: 15px;
}

.calculator-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-color);
}
}

/* badges for urgency and warranty */
.urgency-badge,
.warranty-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--whatsapp-green);
  background: rgba(37, 211, 102, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: var(--bg-primary);
}

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

.contact-info {
  display: grid;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 40px;
  text-align: center;
}

.contact-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.contact-item p {
  color: var(--text-secondary);
}

.contact-social {
  margin-top: 30px;
}

.contact-social h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: var(--bg-secondary);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.social-links a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(5px);
}

.social-links i {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.contact-map {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.contact-map h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.map-container iframe {
  border-radius: 10px;
}

.map-info {
  text-align: center;
}

.map-info p {
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.map-info i {
  color: var(--primary-color);
}

/* WhatsApp Float Button */
.whatsapp-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp-float {
  position: relative;
  width: 56px;               /* match the AI button size */
  height: 56px;
  background: var(--whatsapp-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;          /* consistent with ai-float */
  box-shadow: var(--shadow-hover);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: var(--whatsapp-green-hover);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #333;
}

.whatsapp-container:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

/* AI Assistant Float Button */
.ai-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1102; /* above mobile nav */
}

.ai-float {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-hover);
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  padding: 0;
  position: relative;
}

.ai-float i {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.ai-float:hover { transform: translateY(-3px) scale(1.03); }

/* AI Modal */
.ai-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  z-index: 1100;
  padding: 20px;
}

.ai-modal[aria-hidden="false"] { display: flex; }

.ai-modal-content {
  width: 420px;
  max-width: calc(100% - 40px);
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-modal-content h3 { margin: 0; font-size: 1.1rem; }
.ai-close { position: absolute; right: 26px; top: 22px; background: transparent; border: none; font-size: 1.6rem; color: var(--text-primary); cursor: pointer; }

.ai-chat { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.ai-message { padding: 10px 12px; border-radius: 8px; max-width: 86%; display: flex; align-items: flex-start; gap: 8px; }
.ai-message.user { align-self: flex-end; background: rgba(var(--primary-rgb), 0.08); }
.ai-message.bot { align-self: flex-start; background: #f4f4f4; }
.ai-avatar { flex-shrink: 0; width: 20px; height: 20px; }
.ai-message.user .ai-avatar { order: 2; }
.ai-message.bot .ai-avatar { order: 0; }

.ai-input { display: flex; gap: 10px; }
.ai-input input { flex: 1; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border-color); }

.ai-quick { font-size: 0.85rem; color: var(--text-secondary); display:flex; gap:6px; flex-wrap:wrap; }
.ai-quick-btn { background: transparent; border: 1px solid var(--border-color); padding: 6px 8px; border-radius: 6px; cursor:pointer; }

/* AI modal footer */
.ai-footer { display:flex; gap:8px; align-items:center; justify-content:flex-end; margin-top:8px; }


.ai-footer .btn-outline { padding: 8px 10px; }

/* Service suggestions */
.suggest-actions { display:flex; gap:8px; align-items:center; margin-top:8px; }
.service-suggestions { display:flex; gap:8px; flex-wrap:wrap; }
.suggestion-chip { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; padding:6px 10px; border-radius: 999px; cursor: pointer; font-size:0.85rem; }

/* Selected service chip */
.selected-service { margin-top: 10px; }
.selected-service-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(var(--primary-rgb), 0.12); border-radius: 999px; color: var(--text-primary); font-weight: 600; }
.selected-service-chip .remove-btn { background: transparent; border: none; color: var(--text-primary); font-size: 1rem; font-weight: 700; cursor: pointer; padding: 4px; line-height: 1; }
.selected-service-chip .remove-btn:focus { outline: 2px solid rgba(var(--primary-rgb), 0.2); border-radius: 6px; }

.selected-service .label { display: inline-block; }

.ai-notice { font-size: 0.85rem; color: var(--text-secondary); }

/* Toast notifications */
#toast-container {
  position: fixed;
  top: 76px; /* below debug banner */
  right: 12px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 220px;
  max-width: 380px;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  font-weight: 600;
  transform-origin: right top;
  animation: toast-in 220ms cubic-bezier(0.2, 0, 0, 1);
}

.toast.info { background: linear-gradient(90deg, #3498db, #2b9bd7); }
.toast.success { background: linear-gradient(90deg, #25d366, #1fa854); }
.toast.error { background: linear-gradient(90deg, #e74c3c, #d64541); }

.toast .close { margin-left: auto; background: transparent; border: none; color: rgba(255,255,255,0.9); font-weight: 700; cursor: pointer; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 520px) {
  .ai-modal-content { width: 100%; height: 100%; border-radius: 0; max-height: 100%; }
}

/* Fallback assistant button (visible text) */
.ai-fallback {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1103;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  font-weight: 600;
  cursor: pointer;
}

.ai-fallback:focus { outline: 3px solid rgba(var(--primary-rgb), 0.18); }



/* Footer */
.footer {
  position: static;
  background: var(--secondary-color);
  color: var(--text-primary);
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 0;
  width: 100%;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.footer.visible {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.footer-logo i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.footer-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: 10px;
}

/* Favicon redondo */
.favicon-round {
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  object-fit: cover !important;
}

.footer-info p {
  color: var(--text-secondary);
  margin-bottom: 5px;
}

/* Footer theme adjustments */
[data-theme="dark"] .footer {
  background: var(--bg-secondary);
  border-top-color: var(--border-color);
}

[data-theme="dark"] .footer-logo {
  color: var(--primary-color);
}

[data-theme="dark"] .footer-info p {
  color: var(--text-secondary);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

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

  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    bottom: 0;
    flex-direction: column;
    background: var(--bg-primary);
    width: 100%;
    text-align: center;
    transition: left 0.25s ease, transform 0.25s ease;
    box-shadow: var(--shadow);
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    z-index: 1001; /* ensure it overlays content */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(0);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu .nav-link { display: block; padding: 12px 20px; }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Menu Preview Styles */
  .menu-preview {
    display: none !important;
  }

  .menu-preview-content {
    display: none !important;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-graphic {
    width: 350px;
    height: 350px;
    border-radius: 50%;
  }

  .hero-main-image {
    border-radius: 50%;
  }

  .hero-graphic i {
    font-size: 3rem;
  }

  .hero-graphic i:nth-child(2) {
    font-size: 2rem;
  }

  .hero-graphic i:nth-child(3) {
    font-size: 1.5rem;
  }

  .quote-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .service-image {
    height: 180px;
    border-radius: 16px 16px 0 0;
  }

  .service-card {
    border-radius: 16px;
  }

  .service-card h3 {
    padding: 0 15px;
    margin: 15px 0 10px;
    font-size: 1.3rem;
  }

  .service-card p {
    padding: 0 15px 20px;
    font-size: 0.95rem;
  }

  .service-icon {
    width: 75px;
    height: 75px;
  }

  .service-icon i {
    font-size: 1.8rem;
  }

  .service-card:hover {
    transform: translateY(-8px) scale(1.01);
  }

  .note-content {
    padding: 30px 20px;
    margin: 0 15px;
  }

  .note-content h3 {
    font-size: 1.5rem;
  }

  .note-content i {
    font-size: 2.5rem;
  }

  .testimonials-main-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-form-container {
    grid-column: 1;
    order: 2;
  }

  .featured-testimonials {
    grid-column: 1;
    order: 1;
  }

  .calculator-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .calculator-form {
    order: 1;
    padding: 20px;
  }

  .calculator-result {
    order: 2;
  }

  .result-card {
    padding: 25px;
  }

  .result-card h3 {
    font-size: 1.3rem;
  }

  .price-breakdown {
    font-size: 0.9rem;
  }

  .price-total {
    font-size: 1.1rem;
  }

  .price-note {
    font-size: 0.8rem;
  }

  .testimonial-form-card {
    padding: 20px;
  }

  .testimonial-form-card h3 {
    font-size: 1.2rem;
  }

  .featured-testimonials {
    padding: 20px;
  }

  .featured-testimonials h3 {
    font-size: 1.2rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimonials-header h3 {
    font-size: 1.2rem;
  }

  .live-testimonial-card {
    padding: 16px;
  }

  .new-testimonial-form input,
  .new-testimonial-form textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .testimonial-content {
    padding: 16px;
  }

  .author-avatar {
    width: 40px;
    height: 40px;
  }

  .testimonial-avatar {
    width: 36px;
    height: 36px;
  }

  .image-preview-compact {
    width: 45px;
    height: 45px;
  }

  .image-preview-compact i {
    font-size: 1.1rem;
  }

  .new-testimonial-form .form-row-inline {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .section-header p {
    font-size: 0.95rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .quote-form {
    padding: 20px;
  }

  .calculator-container {
    gap: 20px;
  }

  .calculator-form {
    padding: 15px;
  }

  .result-card {
    padding: 20px;
  }

  .result-card h3 {
    font-size: 1.2rem;
  }

  .price-breakdown {
    font-size: 0.85rem;
  }

  .price-total {
    font-size: 1rem;
  }

  .price-note {
    font-size: 0.75rem;
  }

  .result-card .btn {
    padding: 12px;
    font-size: 0.9rem;
  }

  .contact-requirement {
    padding: 10px 12px;
    font-size: 0.8rem;
    margin: 12px 0;
  }

  .optional-field {
    font-size: 0.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .image-preview-compact {
    width: 42px;
    height: 42px;
  }

  .image-preview-compact i {
    font-size: 1rem;
  }

  .testimonial-form-card {
    padding: 18px;
  }

  .featured-testimonials {
    padding: 18px;
  }

  .testimonial-content {
    padding: 15px;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .quote-container {
    gap: 25px;
  }

  .quote-content h2 {
    font-size: 1.8rem;
  }

  .quote-content p {
    font-size: 0.95rem;
  }

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

  .calculator .section-header p {
    font-size: 0.9rem;
  }

  .calculator-form select,
  .calculator-form .form-group {
    width: 100%;
  }

  .calculator-form label {
    font-size: 0.9rem;
  }
}

/* Lazy Loading */
.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy.loaded {
  opacity: 1;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Font Awesome fallback (emoji icons) 🔧 */
.fas { font-style: normal; display: inline-block; line-height: 1; vertical-align: middle; }
.fas[class*="fa-"]::before { font-style: normal; display: inline-block; }
.fas.fa-sun::before { content: "☀️"; }
.fas.fa-moon::before { content: "🌙"; }
.fas.fa-check-circle::before { content: "✅"; }
.fas.fa-times::before { content: "✖️"; }
.fas.fa-spinner::before { content: "⏳"; display:inline-block; animation: fa-fallback-spin 1s linear infinite; }
.fas.fa-user::before { content: "👤"; }
.fas.fa-heart::before { content: "♥"; color: var(--primary-color); }
.fas.fa-trash::before { content: "🗑️"; }
.fas.fa-exclamation-triangle::before { content: "⚠️"; }
.fas.fa-external-link-alt::before { content: "🔗"; }
.fas.fa-clock::before { content: "🕒"; }

@keyframes fa-fallback-spin { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }

/* Shake animation for form validation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}
