/* Import modern Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Sora:wght@400;600;700;800&display=swap');

/* Design Tokens & CSS Reset */
:root {
  /* HSL Color Palette (Fire, Coal and Ashes) */
  --color-bg-dark: 224, 15%, 8%;       /* #0d0e12 - Deep onyx soot */
  --color-bg-surface: 224, 15%, 12%;   /* #15171e - Dark slate grey */
  --color-bg-elevated: 224, 15%, 18%;  /* #21242f - Lighter slate */
  
  --color-primary: 16, 100%, 50%;      /* #ff4500 - Flame orange */
  --color-primary-hover: 16, 100%, 45%;/* #e63e00 - Deeper flame orange */
  --color-primary-glow: 16, 100%, 50%, 0.35;
  
  --color-secondary: 36, 100%, 50%;    /* #ff9800 - Amber ember yellow */
  --color-secondary-glow: 36, 100%, 50%, 0.2;
  
  --color-success: 142, 72%, 29%;     /* WhatsApp Green */
  --color-text-main: 220, 15%, 95%;    /* Off-white */
  --color-text-muted: 220, 10%, 65%;   /* Ash grey */
  
  /* Fonts */
  --font-title: 'Sora', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  /* Animations & Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  /* Layout borders */
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(21, 23, 30, 0.7);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.57);
  
  scroll-behavior: smooth;
}

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

body {
  background-color: hsl(var(--color-bg-dark));
  color: hsl(var(--color-text-main));
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: hsl(var(--color-bg-dark));
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--color-bg-elevated));
  border-radius: 5px;
  border: 2px solid hsl(var(--color-bg-dark));
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--color-primary));
}

/* Typography & General Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, hsl(var(--color-primary)) 0%, hsl(var(--color-secondary)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-padding {
  padding: 100px 0;
}

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

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-header p {
  color: hsl(var(--color-text-muted));
  font-size: 1.125rem;
}

/* Glassmorphism utility */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--color-primary)) 0%, hsl(var(--color-secondary)) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(var(--color-primary-glow));
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(var(--color-primary-glow)), 0 0 12px hsl(var(--color-secondary));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Header & Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.main-header.scrolled {
  background: rgba(13, 14, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition-smooth);
}

.main-header.scrolled .nav-container {
  height: 60px;
}

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

.logo-fire {
  color: hsl(var(--color-primary));
  font-size: 1.75rem;
  animation: pulse-fire 2s infinite alternate;
}

@keyframes pulse-fire {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px hsl(var(--color-primary))); }
  100% { transform: scale(1.1); filter: drop-shadow(0 0 8px hsl(var(--color-secondary))); }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: hsl(var(--color-text-muted));
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: hsl(var(--color-text-main));
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, hsl(var(--color-primary)) 0%, hsl(var(--color-secondary)) 100%);
  transition: var(--transition-smooth);
}

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

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: var(--transition-smooth);
  background-color: hsl(var(--color-text-main));
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  overflow: hidden;
  background-color: #08090c;
}

.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  mix-blend-mode: screen;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, hsl(var(--color-bg-dark)) 85%),
              linear-gradient(to bottom, transparent 60%, hsl(var(--color-bg-dark)) 100%);
  z-index: 2;
}

#embers-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 69, 0, 0.1);
  border: 1px solid rgba(255, 69, 0, 0.2);
  border-radius: 30px;
  color: hsl(var(--color-primary));
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 24px;
  font-family: var(--font-title);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: hsl(var(--color-text-muted));
  max-width: 650px;
  margin: 0 auto 40px auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 69, 0, 0.3);
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 69, 0, 0.05);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 69, 0, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--color-primary));
  font-size: 2rem;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: hsl(var(--color-primary));
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-card p {
  color: hsl(var(--color-text-muted));
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Before/After Slider */
.slider-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 1 / 1; /* Match the 1000x1000 aspect ratio of generated images */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}

@media (min-width: 768px) {
  .slider-wrapper {
    aspect-ratio: 4 / 3; /* Wider on desktop */
  }
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Clip path for the top layer (dirty chimney) */
.slider-img-dirty {
  z-index: 10;
  clip-path: inset(0 0 0 calc(var(--slider-pos, 50) * 1%));
}

.slider-img-clean {
  z-index: 5;
}

/* Label badges */
.slider-label {
  position: absolute;
  top: 20px;
  z-index: 15;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.slider-label-after {
  left: 20px;
  color: #4caf50;
  border-color: rgba(76, 175, 80, 0.3);
}

.slider-label-before {
  right: 20px;
  color: hsl(var(--color-primary));
  border-color: rgba(255, 69, 0, 0.3);
}

/* The actual HTML slider input */
.slider-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}

/* Visual bar and handle */
.slider-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--slider-pos, 50) * 1%);
  width: 3px;
  background: #fff;
  z-index: 20;
  pointer-events: none;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--color-bg-dark));
  font-weight: bold;
}

.slider-handle-button::before,
.slider-handle-button::after {
  content: '';
  border: solid transparent;
  border-width: 5px 6px;
  position: absolute;
}

.slider-handle-button::before {
  border-right-color: currentColor;
  left: 8px;
}

.slider-handle-button::after {
  border-left-color: currentColor;
  right: 8px;
}

/* Safety Calculator Section */
.calc-container {
  max-width: 650px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.calc-progress-bar {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 0;
  left: 0;
}

.calc-progress-fill {
  height: 100%;
  width: 33.3%;
  background: linear-gradient(90deg, hsl(var(--color-primary)) 0%, hsl(var(--color-secondary)) 100%);
  transition: var(--transition-smooth);
}

.calc-step {
  display: none;
  animation: fade-slide-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes fade-slide-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.calc-question {
  font-size: 1.4rem;
  margin-bottom: 24px;
  text-align: center;
}

.calc-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

@media (min-width: 480px) {
  .calc-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

.calc-option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.calc-option-label:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 69, 0, 0.4);
}

.calc-option-input {
  display: none;
}

.calc-option-input:checked + .calc-option-label {
  background: rgba(255, 69, 0, 0.08);
  border-color: hsl(var(--color-primary));
  box-shadow: 0 0 15px rgba(var(--color-primary-glow));
}

.calc-option-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: hsl(var(--color-text-muted));
  transition: var(--transition-smooth);
}

.calc-option-input:checked + .calc-option-label .calc-option-icon {
  color: hsl(var(--color-primary));
  transform: scale(1.1);
}

.calc-option-text {
  font-weight: 600;
  font-size: 0.95rem;
}

.calc-nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.calc-nav-buttons .btn {
  flex: 1;
}

/* Calculator Result UI */
.result-gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.result-gauge {
  position: relative;
  width: 200px;
  height: 100px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.result-gauge-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  border: 20px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  box-sizing: border-box;
}

.result-gauge-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  border: 20px solid transparent;
  border-top-color: hsl(var(--color-primary));
  border-right-color: hsl(var(--color-primary));
  border-radius: 50%;
  box-sizing: border-box;
  transform: rotate(calc(-45deg + (var(--gauge-percent, 0) * 1.8deg)));
  transition: transform 1s ease-out;
}

.result-gauge-value {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  z-index: 10;
  transform: translateY(10px);
}

.result-message {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.result-alert {
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  font-weight: 500;
  text-align: center;
  border: 1px solid transparent;
}

.result-alert.danger {
  background: rgba(244, 67, 54, 0.08);
  border-color: rgba(244, 67, 54, 0.2);
  color: #ff8a80;
}

.result-alert.warning {
  background: rgba(255, 152, 0, 0.08);
  border-color: rgba(255, 152, 0, 0.2);
  color: #ffd180;
}

.result-alert.safe {
  background: rgba(76, 175, 80, 0.08);
  border-color: rgba(76, 175, 80, 0.2);
  color: #a5d6a7;
}

/* About & Story Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content p {
  color: hsl(var(--color-text-muted));
  margin-bottom: 20px;
}

.about-highlight-box {
  border-left: 3px solid hsl(var(--color-primary));
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: hsl(var(--color-text-main));
}

.coverage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.coverage-tag {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.coverage-tag::before {
  content: '📍';
  font-size: 0.9rem;
}

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

.stat-item {
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: hsl(var(--color-primary));
  margin-bottom: 8px;
}

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

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-title {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.contact-info-desc {
  color: hsl(var(--color-text-muted));
  margin-bottom: 40px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-detail-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(255, 69, 0, 0.05);
  border: 1px solid rgba(255, 69, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--color-primary));
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-detail-content h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.contact-detail-content p, 
.contact-detail-content a {
  color: hsl(var(--color-text-muted));
  font-size: 0.95rem;
}

.contact-detail-content a:hover {
  color: hsl(var(--color-primary));
}

.contact-form-card {
  padding: 40px;
  border-radius: var(--radius-lg);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: hsl(var(--color-text-main));
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: hsl(var(--color-primary));
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(var(--color-primary-glow));
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.form-checkbox input {
  margin-top: 4px;
  accent-color: hsl(var(--color-primary));
}

.form-checkbox span {
  line-height: 1.4;
  color: hsl(var(--color-text-muted));
}

.form-status {
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.2);
  color: #a5d6a7;
}

.form-status.error {
  display: block;
  background: rgba(244, 67, 54, 0.08);
  border: 1px solid rgba(244, 67, 54, 0.2);
  color: #ff8a80;
}

/* WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.whatsapp-bubble {
  width: 280px;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  position: relative;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.whatsapp-bubble.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.whatsapp-bubble-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: hsl(var(--color-text-muted));
  cursor: pointer;
  font-size: 0.9rem;
}

.whatsapp-bubble-header {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #4caf50;
  display: flex;
  align-items: center;
  gap: 6px;
}

.whatsapp-bubble-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: hsl(var(--color-text-main));
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-notification {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #ff5722;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: pulse-notification 1.5s infinite;
}

@keyframes pulse-notification {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(255, 87, 34, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 87, 34, 0); }
}

/* Footer styling */
.main-footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px 0;
  background: #08090c;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-info p {
  color: hsl(var(--color-text-muted));
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: hsl(var(--color-text-muted));
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: hsl(var(--color-primary));
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom p {
  color: hsl(var(--color-text-muted));
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: hsl(var(--color-text-muted));
  font-size: 0.85rem;
}

.footer-bottom-links a:hover {
  color: hsl(var(--color-text-main));
}

/* Page animations (Scroll reveal) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive Adjustments */
@media (max-width: 991px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background: hsl(var(--color-bg-dark));
    border-top: 1px solid var(--glass-border);
    width: 100%;
    height: calc(100vh - 80px);
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    padding: 40px 0;
    gap: 40px;
    z-index: 99;
  }

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

  .hamburger {
    display: block;
  }

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

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

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

/* Back to Top Button (Desactivado) */
.back-to-top {
  display: none !important;
}

/* ==========================================
   BLOG GRID & CARD STYLES
   ========================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.post-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 69, 0, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.post-card-img-link {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.post-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: hsl(var(--color-text-muted));
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.post-card-category {
  color: hsl(var(--color-primary));
}

.post-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.post-card-title a:hover {
  color: hsl(var(--color-primary));
}

.post-card-excerpt {
  color: hsl(var(--color-text-muted));
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.post-card-link {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  color: hsl(var(--color-primary));
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-card-link:hover {
  color: hsl(var(--color-secondary));
}

/* ==========================================
   SINGLE ARTICLE READER LAYOUT
   ========================================== */
.article-hero-section {
  position: relative;
  padding: 140px 0 60px 0;
  background: linear-gradient(to bottom, #111319 0%, hsl(var(--color-bg-dark)) 100%);
  border-bottom: 1px solid var(--glass-border);
}

.article-meta-breadcrumbs {
  font-size: 0.85rem;
  color: hsl(var(--color-text-muted));
  margin-bottom: 16px;
}

.article-meta-breadcrumbs a:hover {
  color: hsl(var(--color-primary));
}

.article-main-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 24px;
}

.article-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: hsl(var(--color-text-muted));
  font-size: 0.9rem;
  font-weight: 500;
}

.article-meta-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  padding: 60px 0 100px 0;
}

@media (min-width: 992px) {
  .article-body-grid {
    grid-template-columns: 1.4fr 0.6fr;
  }
}

/* Article content typography */
.article-cover-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  margin-bottom: 40px;
}

.article-content {
  max-width: 750px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: hsl(var(--color-text-main));
}

.article-content p {
  margin-bottom: 24px;
}

.article-content h2 {
  font-size: 1.75rem;
  margin: 48px 0 20px 0;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 8px;
}

.article-content h3 {
  font-size: 1.35rem;
  margin: 32px 0 16px 0;
}

.article-content ul, 
.article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 10px;
}

/* Styled lists inside articles */
.article-content ul {
  list-style: none;
}

.article-content ul li {
  position: relative;
  padding-left: 20px;
}

.article-content ul li::before {
  content: '🔥';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.85rem;
}

/* Blockquotes */
.article-content blockquote {
  border-left: 4px solid hsl(var(--color-primary));
  background: rgba(255, 255, 255, 0.02);
  padding: 24px 30px;
  margin: 32px 0;
  font-style: italic;
  font-size: 1.15rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-content th, 
.article-content td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.article-content th {
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-title);
  font-weight: 700;
  color: #fff;
}

.article-content tr:last-child td {
  border-bottom: none;
}

/* Alert Boxes */
.article-alert-box {
  padding: 20px 24px;
  background: rgba(244, 67, 54, 0.06);
  border: 1px solid rgba(244, 67, 54, 0.2);
  border-radius: var(--radius-md);
  margin: 32px 0;
  color: #ff8a80;
  display: flex;
  gap: 16px;
}

.article-alert-box-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.article-alert-box-text h4 {
  color: #fff;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.article-alert-box-text p:last-child {
  margin-bottom: 0;
}

/* ==========================================
   SIDEBAR & WIDGETS
   ========================================== */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 992px) {
  .blog-sidebar {
    position: sticky;
    top: 110px;
  }
}

.sidebar-widget {
  padding: 30px;
  border-radius: var(--radius-lg);
}

.sidebar-widget-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  border-left: 3px solid hsl(var(--color-primary));
  padding-left: 12px;
  line-height: 1.2;
}

.recent-posts-widget-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-post-widget-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.recent-post-widget-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.recent-post-widget-info h5 {
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 4px;
  font-weight: 600;
}

.recent-post-widget-info h5 a:hover {
  color: hsl(var(--color-primary));
}

.recent-post-widget-date {
  font-size: 0.75rem;
  color: hsl(var(--color-text-muted));
}

.cta-widget {
  text-align: center;
}

.cta-widget h4 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.cta-widget p {
  font-size: 0.9rem;
  color: hsl(var(--color-text-muted));
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ==========================================
   CALL TO ACTION SECTIONS (CTA DIVIDER)
   ========================================== */
.cta-divider-box {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  background: linear-gradient(135deg, rgba(21, 23, 30, 0.9) 0%, rgba(33, 36, 47, 0.9) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  gap: 30px;
  position: relative;
  overflow: hidden;
}

/* Add a subtle warm orange glow inside the card corner */
.cta-divider-box::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 69, 0, 0.15) 0%, rgba(255, 69, 0, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

.cta-divider-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.cta-divider-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #fff;
}

.cta-divider-desc {
  color: var(--color-text-muted);
  max-width: 600px;
  font-size: 1.05rem;
}

.cta-divider-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 2;
  min-width: 280px;
}

/* WhatsApp specific button style in page content */
.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  width: 100%;
  text-align: center;
  transition: var(--transition-smooth);
}

.btn-whatsapp:hover {
  background-color: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.cta-phone-link {
  color: hsl(var(--color-primary));
  font-size: 1.05rem;
  transition: var(--transition-fast);
}

.cta-phone-link:hover {
  color: hsl(var(--color-secondary));
  text-shadow: 0 0 10px rgba(255, 152, 0, 0.4);
}

/* Pulsing/Attracting attention animation for the WhatsApp button */
.btn-pulse {
  animation: pulse-whatsapp-cta 2.5s infinite;
}

@keyframes pulse-whatsapp-cta {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsiveness for CTA Divider */
@media (max-width: 992px) {
  .cta-divider-box {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  .cta-divider-desc {
    margin: 0 auto;
  }
  .cta-divider-actions {
    width: 100%;
  }
}

/* ==========================================
   THEMATIC CAPTCHA (DESHOLLINADOR CAPTCHA)
   ========================================== */
.captcha-group {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.captcha-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(var(--color-text-main));
  display: flex;
  align-items: center;
  gap: 6px;
}

.captcha-box {
  position: relative;
  height: 56px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: linear-gradient(90deg, #181920 0%, #252836 100%);
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.captcha-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Base background: Clean Chimney Flue */
.captcha-clean-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #2a2d3d 0%, #3e4359 50%, #2a2d3d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: hsl(var(--color-secondary));
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.captcha-clean-bg::after {
  content: "✨ CONDUCTO LIMPIO";
}

/* Soot overlay: Obstructed flue */
.captcha-soot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #090a0d 0%, #171822 50%, #090a0d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #616475;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: clip-path 0.1s ease-out;
  clip-path: inset(0 0 0 0);
  z-index: 2;
}

.captcha-soot::after {
  content: "⚫ CONDUCTO OBSTRUIDO (Arrastra la escoba)";
}

/* Brush indicator representing the slider thumb */
.captcha-brush-indicator {
  position: absolute;
  left: 12px;
  font-size: 1.6rem;
  z-index: 3;
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Success screen overlay */
.captcha-success-msg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #a5d6a7;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: scale(0.95);
  transition: var(--transition-smooth);
  z-index: 4;
}

/* Transparent range slider acting as controller overlay */
.captcha-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: grab;
  z-index: 5;
  margin: 0;
  padding: 0;
}

.captcha-slider:active {
  cursor: grabbing;
}

/* Error/Not solved styling when user tries to submit without solving */
.captcha-box.captcha-error {
  border-color: #ff5252;
  box-shadow: 0 0 10px rgba(255, 82, 82, 0.3);
  animation: shake-captcha 0.4s ease-in-out;
}

@keyframes shake-captcha {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ==========================================
   LANGUAGE SELECTOR
   ========================================== */
.lang-selector-li {
  position: relative;
  list-style: none;
  display: inline-flex;
  align-items: center;
}

.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: hsl(var(--color-text-main));
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: hsl(var(--color-primary));
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow);
  padding: 6px 0;
  min-width: 140px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

/* Hover effect on desktop */
@media (min-width: 992px) {
  .lang-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Toggle effect via JS (for touch support) */
.lang-selector.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: hsl(var(--color-text-muted));
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.lang-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.lang-item.active {
  color: hsl(var(--color-primary));
  font-weight: 700;
  background: rgba(255, 69, 0, 0.05);
}

.lang-flag {
  font-size: 1.1rem;
}

/* Mobile responsive language selector style */
@media (max-width: 991px) {
  .lang-selector-li {
    margin-top: 10px;
    justify-content: center;
    width: 100%;
  }

  .lang-selector {
    width: 80%;
    max-width: 250px;
  }

  .lang-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
  }

  .lang-dropdown {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .lang-selector.active .lang-dropdown {
    display: block;
  }

  .lang-item {
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}



