/* ==========================================================================
   ImpulsoApps / Impulso Informático - Modern Visual System (CSS)
   ========================================================================== */

/* 1. Imports & Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* 2. Global Custom Properties (Variables) */
:root {
  /* Fonts */
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Color Palette (HSL for high precision & flexibility) */
  --color-primary-hue: 222;
  --color-primary-saturation: 47%;
  --color-primary-lightness: 11%;
  
  --bg-primary: #f8fafc;        /* Soft Slate Gray */
  --bg-secondary: #ffffff;      /* Pure White */
  --bg-dark: #0f172a;           /* Deep Slate Blue */
  --bg-dark-light: #1e293b;     /* Navy Slate */
  
  --text-primary: #0f172a;      /* Deepest Slate Blue for maximum contrast */
  --text-secondary: #475569;    /* Muted Slate Gray for readable body text */
  --text-muted: #64748b;        /* Cool Gray */
  --text-light: #f8fafc;        /* White text for dark sections */
  --text-light-muted: #cbd5e1;  /* Light Gray */

  --brand-primary: #0f172a;     /* Navy Main */
  --brand-secondary: #1e293b;   /* Slate Deep */
  
  --accent: #f97316;            /* Vibrant Orange */
  --accent-hover: #ea580c;      /* Darker Orange for Hover */
  --accent-light: rgba(249, 115, 22, 0.1);
  --success: #10b981;           /* Emerald Green */
  --success-light: rgba(16, 185, 129, 0.1);
  
  --border-color: #e2e8f0;      /* Light border */
  --border-color-dark: #334155; /* Dark border */
  
  /* Layout & Sizing */
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --max-width: 1200px;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
  --shadow-accent: 0 8px 24px -6px rgba(249, 115, 22, 0.3);
  --shadow-whatsapp: 0 8px 24px -4px rgba(16, 185, 129, 0.4);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. CSS Reset & Global Layout */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--brand-primary);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-md);
}

/* 4. Common & Utility Layout Classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-dark h2, 
.section-dark h3, 
.section-dark h4 {
  color: var(--text-light);
}

.section-dark p {
  color: var(--text-light-muted);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

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

/* Buttons */
.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(249, 115, 22, 0.4);
}

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

.btn-secondary:hover {
  background-color: rgba(15, 23, 42, 0.04);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-light-outline {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--border-color-dark);
}

.btn-light-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--text-light);
  transform: translateY(-2px);
}

/* 5. Header & Navigation (Glassmorphism) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header.scrolled {
  height: 70px;
  box-shadow: var(--shadow-sm);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.logo-accent {
  color: var(--accent);
}

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

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-normal);
}

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

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

.nav-link.active {
  color: var(--brand-primary);
  font-weight: 600;
}

/* Burger Menu Mobile */
.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
}

.burger-icon, 
.burger-icon::before, 
.burger-icon::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  position: absolute;
  left: 8px;
  transition: all var(--transition-normal);
}

.burger-icon {
  top: 19px;
}

.burger-icon::before {
  top: -8px;
  left: 0;
}

.burger-icon::after {
  top: 8px;
  left: 0;
}

.burger-btn.active .burger-icon {
  background-color: transparent;
}

.burger-btn.active .burger-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.burger-btn.active .burger-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* 6. Footer & WhatsApp Button */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  color: var(--text-light);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-light-muted);
  max-width: 320px;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.footer-links h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.footer-links ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-contact p {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color-dark);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-light-muted);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--text-light-muted);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background-color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-whatsapp);
  z-index: 999;
  transition: all var(--transition-normal);
  color: white;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  background-color: #0e9f6e;
  box-shadow: 0 12px 28px -4px rgba(16, 185, 129, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--success);
  opacity: 0.4;
  z-index: -1;
  animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* 7. Components & Grids */

/* Hero Grid Layouts */
.hero {
  padding: 160px 0 100px;
  background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.03) 0%, rgba(255, 255, 255, 0) 50%), var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-meta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 580px;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-light);
  border-radius: var(--border-radius-md);
  z-index: 1;
}

.hero-img {
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

/* Category Filter Chips */
.chips-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.chip {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.chip.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: var(--shadow-accent);
}

/* 6-Grid Family Layouts (Products & Services) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 40px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(249, 115, 22, 0.2);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-sm);
  background-color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-list {
  list-style: none;
  margin-bottom: 32px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.card-list li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-list li svg {
  color: var(--success);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.card .btn-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap var(--transition-fast);
}

.card .btn-link:hover {
  color: var(--accent-hover);
  gap: 10px;
}

.card .btn-link svg {
  width: 18px;
  height: 18px;
}

/* Call to Action Cierre Section */
.cta-cierre {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-light) 100%);
  color: var(--text-light);
  text-align: center;
  padding: 80px 24px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color-dark);
}

.cta-cierre::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.cta-cierre h2 {
  font-size: 2.25rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.cta-cierre p {
  color: var(--text-light-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

.cta-cierre .btn-group {
  justify-content: center;
  margin-top: 0;
}

/* 8. Specific Page Features */

/* Home Page Search Section */
.search-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.search-box-wrapper {
  max-width: 640px;
  margin: 0 auto 48px;
  position: relative;
}

.search-input-container {
  display: flex;
  align-items: center;
  background-color: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  padding: 6px 12px 6px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.search-input-container:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  background-color: white;
}

.search-input {
  flex-grow: 1;
  border: none;
  background: none;
  font-size: 1.05rem;
  font-family: var(--font-primary);
  color: var(--text-primary);
  outline: none;
  padding: 10px 0;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-icon-btn {
  background-color: var(--accent);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.search-icon-btn:hover {
  background-color: var(--accent-hover);
}

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

.search-quick-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.search-quick-links span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
}

.search-quick-btn {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-quick-btn:hover {
  border-color: var(--text-primary);
  background-color: var(--bg-secondary);
}

/* Search Results Dynamic Grid */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.search-result-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.search-result-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.search-result-category {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.search-result-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.search-result-card p {
  font-size: 0.9rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

.search-result-card .btn-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
}

.search-result-card .btn-link:hover {
  color: var(--accent-hover);
}

.search-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background-color: var(--bg-primary);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius-md);
}

.search-no-results h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.search-no-results p {
  color: var(--text-muted);
}

/* Home "Why Choose Us" Cards */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Services: "Cómo Trabajamos" Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 40px;
}

.step-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 32px 24px;
  position: relative;
  transition: all var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(249, 115, 22, 0.2);
}

.step-number {
  position: absolute;
  top: -24px;
  left: 24px;
  width: 48px;
  height: 48px;
  background-color: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--shadow-accent);
}

.step-card h3 {
  font-size: 1.15rem;
  margin: 12px 0 12px;
}

.step-card p {
  font-size: 0.9rem;
}

/* Contact Form & Info Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.contact-card h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.contact-card .card-intro {
  margin-bottom: 32px;
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-control.error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-error-msg {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}

.form-control.error + .form-error-msg {
  display: block;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.info-block {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.info-block h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-block h3 svg {
  color: var(--accent);
  width: 20px;
  height: 20px;
}

.info-block p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.info-block .btn {
  width: 100%;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 60px auto 0;
}

.faq-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.faq-icon {
  color: var(--text-muted);
  transition: transform var(--transition-normal);
  display: flex;
  align-items: center;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  background-color: var(--bg-primary);
}

.faq-content p {
  padding: 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
}

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

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Simple Dialog / Modal for Success simulation */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-icon {
  width: 64px;
  height: 64px;
  background-color: var(--success-light);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.modal-icon svg {
  width: 32px;
  height: 32px;
}

.modal h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.modal p {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.modal-debug-info {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  font-family: monospace;
  font-size: 0.75rem;
  text-align: left;
  margin-bottom: 24px;
  overflow-x: auto;
  max-height: 150px;
  color: var(--text-secondary);
}

/* 9. Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   10. Responsive Breakpoints (Mobile First to Desktop adjustments)
   ========================================================================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-subtitle {
    margin: 0 auto 30px;
  }
  
  .btn-group {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
  
  /* Mobile Navigation Hamburger transition */
  .burger-btn {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-secondary);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    align-items: center;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    z-index: 999;
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-link {
    font-size: 1.25rem;
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }
  
  .search-results-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-card {
    padding: 32px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .whatsapp-float {
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
  }
  
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* Extra Small (480px and below) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .why-us-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer {
    padding: 60px 0 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .chips-container {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
  
  .chip {
    flex-shrink: 0;
  }
}
