/* ===================================================
   INSTANT HOME SOLUTIONS SPA — Premium Design System
   =================================================== */

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

/* --- CSS Custom Properties --- */
:root {
  --primary: #0A58CA;
  --primary-dark: #073e91;
  --primary-light: #3d7fd4;
  --primary-glow: rgba(10, 88, 202, 0.15);
  --accent: #FD7E14;
  --accent-dark: #c96209;
  --accent-glow: rgba(253, 126, 20, 0.25);
  --white: #FFFFFF;
  --bg-gray: #F4F7FC;
  --bg-dark: #0d1b35;
  --bg-card: #FFFFFF;
  --text-main: #1a2332;
  --text-muted: #5c6e8a;
  --text-light: #8a9ab5;
  --border: #e2eaf5;
  --shadow-sm: 0 2px 8px rgba(10, 88, 202, 0.06);
  --shadow-md: 0 8px 30px rgba(10, 88, 202, 0.10);
  --shadow-lg: 0 20px 60px rgba(10, 88, 202, 0.15);
  --shadow-accent: 0 8px 30px rgba(253, 126, 20, 0.35);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-height: 76px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--white);
  color: var(--text-main);
  line-height: 1.65;
  padding-top: var(--header-height);
  overflow-x: hidden;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

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

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

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* --- Layout Helper --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===================================================
   STICKY HEADER
   =================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 88, 202, 0.10);
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
}

.logo-text span {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-nav {
  display: none;
  gap: 2rem;
  align-items: center;
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px rgba(10, 88, 202, 0.35);
  border-radius: var(--radius-sm);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(10, 88, 202, 0.45);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-emergency {
  background: linear-gradient(135deg, var(--accent), #ff9f3f);
  color: white;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(253, 126, 20, 0.4);
  border-radius: var(--radius-sm);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.btn-emergency:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(253, 126, 20, 0.55);
  animation: none;
}

.btn-outline-white {
  background: transparent;
  color: white;
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  transform: translateY(-2px);
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.4);
  }

  50% {
    box-shadow: 0 4px 25px rgba(253, 126, 20, 0.65), 0 0 0 6px rgba(253, 126, 20, 0.1);
  }
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  background: linear-gradient(150deg, #f0f5ff 0%, #e8f0fe 40%, #dbeafe 100%);
  overflow: hidden;
}

/* Decorative background shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(10, 88, 202, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(253, 126, 20, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Floating bubbles */
.hero-bubble {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(10, 88, 202, 0.08), rgba(10, 88, 202, 0.03));
  animation: float 8s ease-in-out infinite;
}

.hero-bubble-1 {
  width: 80px;
  height: 80px;
  top: 15%;
  right: 25%;
  animation-delay: 0s;
}

.hero-bubble-2 {
  width: 50px;
  height: 50px;
  top: 65%;
  right: 18%;
  animation-delay: 2s;
}

.hero-bubble-3 {
  width: 120px;
  height: 120px;
  bottom: 10%;
  left: 5%;
  animation-delay: 4s;
}

@keyframes float {

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

  33% {
    transform: translateY(-20px) rotate(5deg);
  }

  66% {
    transform: translateY(-10px) rotate(-3deg);
  }
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .hero-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 1.5rem;
    gap: 4rem;
  }
}

.hero-content {
  flex: 1;
  max-width: 600px;
  text-align: center;
}

@media (min-width: 992px) {
  .hero-content {
    text-align: left;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(10, 88, 202, 0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(10, 88, 202, 0.18);
}

.hero h1 {
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  opacity: 0.4;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

@media (min-width: 992px) {
  .trust-badges {
    justify-content: flex-start;
  }
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: white;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  box-shadow: 0 2px 12px rgba(10, 88, 202, 0.1);
  border: 1px solid rgba(10, 88, 202, 0.12);
}

.trust-badge svg {
  color: var(--primary);
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 992px) {
  .hero-cta {
    justify-content: flex-start;
  }
}

/* Floating Stats */
.hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(10, 88, 202, 0.12);
}

@media (min-width: 992px) {
  .hero-stats {
    justify-content: flex-start;
  }
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* Hero Image */
.hero-visual {
  flex: 1;
  max-width: 560px;
  width: 100%;
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(10, 88, 202, 0.08);
  aspect-ratio: 4/3;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating badge on image */
.hero-badge-floating {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: white;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 240px;
}

.hero-badge-floating-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.hero-badge-floating-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.hero-badge-floating-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Rating badge */
.hero-badge-rating {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-accent);
}

.hero-badge-rating-score {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.hero-badge-rating-stars {
  font-size: 0.65rem;
  opacity: 0.9;
  margin-top: 0.2rem;
}

/* ===================================================
   SECTION SHARED STYLES
   =================================================== */
section {
  padding: 5rem 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-tag::before {
  content: '';
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

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

.section-header h2 {
  color: var(--text-main);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===================================================
   SERVICES SECTION
   =================================================== */
.services {
  background: var(--white);
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: left;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10, 88, 202, 0.2);
}

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

.service-icon-wrap {
  width: 72px;
  height: 72px;
  background: var(--primary-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.service-icon-wrap svg {
  width: 34px;
  height: 34px;
}

.service-card h3 {
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.65;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 1.25rem;
  transition: var(--transition);
}

.service-card:hover .service-card-link {
  gap: 0.6rem;
}

/* ===================================================
   WHY CHOOSE US
   =================================================== */
.why-us {
  background: linear-gradient(150deg, var(--bg-dark) 0%, #112154 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  top: -250px;
  right: -250px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(10, 88, 202, 0.25) 0%, transparent 65%);
  pointer-events: none;
}

.why-us-inner {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .why-us-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 5rem;
  }
}

.why-us-left {
  flex: 1;
}

.why-us-left .section-tag {
  color: var(--accent);
}

.why-us-left h2 {
  color: white;
  margin-bottom: 1.25rem;
}

.why-us-left>p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.why-us-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.why-us-right {
  flex: 1;
  width: 100%;
}

.why-us-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.why-us-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.why-us-item:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateX(4px);
}

.why-us-item-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--accent), #ff9f3f);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.why-us-item-text strong {
  display: block;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.why-us-item-text span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* ===================================================
   SOCIAL PROOF / TESTIMONIALS
   =================================================== */
.social-proof {
  background: var(--bg-gray);
  padding: 5.5rem 0;
}

.insta-handle-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(10, 88, 202, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 3rem;
  border: 1px solid rgba(10, 88, 202, 0.15);
  transition: var(--transition);
  text-decoration: none;
}

.insta-handle-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.insta-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

/* Masonry Grid */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
}

@media (min-width: 768px) {
  .masonry-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .masonry-item:first-child {
    grid-row: span 2;
  }
}

.masonry-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
}

.masonry-item:first-child {
  aspect-ratio: auto;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-slow);
}

.masonry-item:hover img {
  transform: scale(1.06);
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10, 88, 202, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: var(--transition);
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.masonry-overlay-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.masonry-overlay-tag {
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.masonry-overlay svg {
  color: white;
  width: 24px;
  height: 24px;
}

/* Placeholder card for missing images */
.masonry-placeholder {
  background: linear-gradient(135deg, var(--primary-glow), rgba(253, 126, 20, 0.08));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 2px dashed rgba(10, 88, 202, 0.2);
}

.masonry-placeholder svg {
  color: var(--primary);
  opacity: 0.5;
  width: 40px;
  height: 40px;
}

.masonry-placeholder span {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===================================================
   TESTIMONIALS
   =================================================== */
.testimonials-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .testimonials-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.9rem;
}

.testimonial-location {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===================================================
   FOOTER
   =================================================== */
footer {
  background: #0a0f1e;
  color: white;
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
  }
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-brand-logo .logo-icon {
  width: 42px;
  height: 42px;
}

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
}

.footer-brand-tagline {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

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

.footer-social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-col h5 {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 4px;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-contact-item svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-contact-item a:hover {
  color: white;
}

/* Geo SEO Coverage */
.footer-coverage {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
}

.footer-coverage p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
}

.footer-coverage p strong {
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
}

.footer-bottom-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.w3c-valid-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
}

/* ===================================================
   SCROLL ANIMATIONS
   =================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.1s;
}

.fade-in-delay-2 {
  transition-delay: 0.2s;
}

.fade-in-delay-3 {
  transition-delay: 0.3s;
}

/* ===================================================
   FLOATING WHATSAPP BUTTON
   =================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: var(--transition);
  animation: wa-bounce 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 35px rgba(37, 211, 102, 0.6);
  animation: none;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

@keyframes wa-bounce {

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

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

/* ===================================================
   UTILITY: FOCUS STYLES FOR ACCESSIBILITY
   =================================================== */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 1rem;
}

/* ===================================================
   WORK CARDS GALLERY (Image + Text)
   =================================================== */
.work-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .work-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10, 88, 202, 0.2);
}

/* Image area */
.work-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-gray);
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-slow);
}

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

/* SVG visual fills the image slot */
.thermal-visual,
.client-visual {
  width: 100%;
  height: 100%;
  display: block;
}

.work-card-image--thermal,
.work-card-image--client {
  background: transparent;
}

/* Badge over image (top-right) */
.work-card-image-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(34, 197, 94, 0.92);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.work-card-image-badge--blue {
  background: rgba(10, 88, 202, 0.88);
}

.work-card-image-badge--green {
  background: rgba(34, 197, 94, 0.92);
}

/* Text body */
.work-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.work-card-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.work-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0;
}

.work-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

/* Meta row: location + CTA link */
.work-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.work-card-location {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.work-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}

.work-card:hover .work-card-link {
  gap: 0.55rem;
  color: var(--accent);
}

/* ===================================================
   BLOG SECTION
   =================================================== */
.blog {
  background: var(--white);
  padding: 5.5rem 0;
  border-top: 1px solid var(--border);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Blog card */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10, 88, 202, 0.18);
}

/* Image / illustration */
.blog-card-image {
  position: relative;
  overflow: hidden;
  line-height: 0;
  /* removes inline gap */
}

.blog-illustration {
  width: 100%;
  height: 200px;
  display: block;
}

/* Category badge on illustration */
.blog-card-category-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(10, 88, 202, 0.88);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-card-category-badge--orange {
  background: rgba(253, 126, 20, 0.9);
}

.blog-card-category-badge--green {
  background: rgba(34, 197, 94, 0.9);
}

/* Body */
.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
}

/* Meta top: date + read time */
.blog-card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-card-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.blog-card-read-time {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(10, 88, 202, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
}

/* Title */
.blog-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0;
}

.blog-card:hover .blog-card-title {
  color: var(--primary);
}

/* Excerpt */
.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

/* Footer: tags + read link */
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-gray);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  transition: var(--transition);
}

.blog-card:hover .blog-card-link {
  gap: 0.55rem;
  color: var(--accent);
}

/* ===================================================
   LOGO IMAGE (reemplaza .logo-icon SVG)
   =================================================== */
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  max-width: 160px;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  max-width: 160px;
  /* El logo es negro, sobre fondo oscuro del footer se invierte */
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

/* ===================================================
   TESTIMONIALS CAROUSEL (Desktop)
   =================================================== */
.testimonials-section {
  position: relative;
}

/* Carousel wrapper: clips overflow */
.testimonials-carousel {
  display: none;
  /* oculto en mobile */
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  .testimonials-carousel {
    display: flex;
  }
}

/* Track: slides side-by-side, each slide = 100% width = 3 cards */
.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonials-track .testimonial-card {
  flex: 0 0 calc(33.333% - 1rem);
  margin-right: 1.5rem;
  width: calc(33.333% - 1rem);
}

.testimonials-track .testimonial-card:last-child {
  margin-right: 0;
}

/* Carousel controls */
.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.testimonial-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
  transition: var(--transition);
  flex-shrink: 0;
}

.testimonial-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: scale(1.08);
}

.testimonials-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.testimonial-dot.active {
  background: var(--primary);
  transform: scale(1.25);
}

/* ===================================================
   TESTIMONIALS MOBILE (ver más / ver menos)
   =================================================== */
.testimonials-mobile {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .testimonials-mobile {
    display: none;
    /* oculto en desktop, usa carousel */
  }
}

.testimonials-mobile-visible {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonials-mobile-extra {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  opacity: 0;
}

.testimonials-mobile-extra.visible {
  display: flex;
  max-height: 2000px;
  opacity: 1;
}

/* "Ver más" button */
.btn-ver-mas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.btn-ver-mas:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.ver-mas-chevron {
  transition: transform 0.3s ease;
}

.ver-mas-chevron.rotated {
  transform: rotate(180deg);
}