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

/* ===== CSS VARIABLES ===== */
/* ===== CSS VARIABLES ===== */
:root {
  /* Colors - Light & Crisp Theme for Maximum Trust & Authority */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.94);
  --bg-glass-light: rgba(255, 122, 54, 0.05);

  --accent-primary: #FF7A36;
  --accent-secondary: #E8631E;
  --accent-tertiary: #FFA066;
  --accent-glow: rgba(255, 122, 54, 0.12);
  --accent-glow-strong: rgba(255, 122, 54, 0.25);
  --accent-taupe: #858071;

  --text-primary: #18181B;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --text-accent: #FF7A36;

  --border-subtle: #E5E7EB;
  --border-accent: rgba(255, 122, 54, 0.35);

  --gradient-hero: linear-gradient(135deg, #FFF9F5 0%, #FFFFFF 50%, #F3F4F6 100%);
  --gradient-accent: linear-gradient(135deg, #FF7A36 0%, #E8631E 100%);
  --gradient-card: #FFFFFF;
  --gradient-text: linear-gradient(135deg, #FF7A36 0%, #E8631E 100%);

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1280px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 10px 30px rgba(255, 122, 54, 0.25);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

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

button, input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Full Width Container */
.hero-container-full {
  width: 100%;
  max-width: 100%;
  padding: 0 4%;
  margin: 0 auto;
}

/* ===== SECTION BASE ===== */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.8;
}

/* ===== ANIMATED ELEMENTS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== BACKGROUND EFFECTS ===== */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 10px 0;
  transition: var(--transition-base);
  background: rgba(242, 243, 245, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.navbar.scrolled {
  background: rgba(232, 234, 238, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo, .footer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.nav-logo-img {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 3px 12px rgba(255, 122, 54, 0.35));
  transition: var(--transition-base);
}

.footer-logo-img {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 3px 12px rgba(255, 122, 54, 0.35));
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.05) rotate(2deg);
}

.nav-logo-text, .footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-grup {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 3.5px;
  color: #111827;
}

.brand-totserveis {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  margin-left: 48px;
}

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

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

.nav-menu-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1F2937;
  position: relative;
  padding: 6px 0;
  transition: var(--transition-fast);
}

.nav-menu-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: var(--transition-base);
}

.nav-menu-links a:hover {
  color: var(--accent-primary);
}

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

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent-primary) !important;
  font-size: 0.92rem !important;
  white-space: nowrap;
}

.nav-phone svg {
  width: 18px;
  height: 18px;
  animation: phone-ring 2s ease-in-out infinite;
}

@keyframes phone-ring {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(0deg); }
}

.nav-cta {
  background: var(--gradient-accent) !important;
  color: #FFFFFF !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-base) !important;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 122, 54, 0.4) !important;
}

.nav-cta::after {
  display: none !important;
}

/* ===== HAMBURGER MENU TOGGLE ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  z-index: 2010;
  position: relative;
  transition: var(--transition-fast);
}

.nav-toggle:hover {
  background: rgba(255, 122, 54, 0.1);
  border-color: var(--accent-primary);
}

.nav-toggle span {
  width: 22px;
  height: 2.5px;
  background: #111827;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background: var(--accent-primary);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background: var(--accent-primary);
}

/* ===== HERO SECTION (100% Full Width & Image Background) ===== */
.hero {
  min-height: 95vh;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.65) 45%, rgba(255, 255, 255, 0.15) 100%), url('img/hero-workers.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  padding: 180px 0 100px 0;
}

.hero .bg-glow.glow-1 {
  width: 700px;
  height: 700px;
  background: var(--accent-glow);
  top: -200px;
  right: -100px;
}

.hero .bg-glow.glow-2 {
  width: 600px;
  height: 600px;
  background: rgba(255, 122, 54, 0.06);
  bottom: -150px;
  left: -100px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
  width: 100%;
}

.hero-text {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border-accent);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-accent);
  color: #000;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-glow);
  border: none;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.35);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: var(--transition-base);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-glass);
  color: var(--text-primary);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-base);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--border-accent);
  background: rgba(245, 158, 11, 0.05);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 40px;
}

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

.hero-stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 4px;
}

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

/* Hero Visual */
.hero-featured-badge {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-elevated), var(--shadow-glow);
  max-width: 420px;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: float-badge 6s ease-in-out infinite;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-featured-badge-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

.hero-featured-badge strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hero-featured-badge small {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.6) 0%, transparent 60%);
  pointer-events: none;
}

.hero-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.hero-image-badge-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #000;
  flex-shrink: 0;
}

.hero-image-badge strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.hero-image-badge small {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.why-us-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.why-us-team-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.why-us-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card-mini {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.stat-card-mini .stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1.2;
}

.stat-card-mini .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hero-card.featured {
  grid-column: span 2;
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.08), rgba(22, 22, 31, 0.9));
  border-color: var(--border-accent);
}

.hero-card.featured .hero-card-icon {
  margin-bottom: 0;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

/* ===== SERVICES SECTION ===== */
.services {
  background: var(--bg-secondary);
  position: relative;
}

.services .bg-glow {
  width: 500px;
  height: 500px;
  background: var(--accent-glow);
  top: 50%;
  left: -200px;
  transform: translateY(-50%);
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.services-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: var(--transition-base);
}

.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated), var(--shadow-glow);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.6rem;
  transition: var(--transition-base);
}

.service-card:hover .service-icon {
  background: var(--accent-glow-strong);
  transform: scale(1.05);
}

.service-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== WHY CHOOSE US ===== */
.why-us {
  position: relative;
  overflow: hidden;
}

.why-us .bg-glow {
  width: 600px;
  height: 600px;
  background: rgba(59, 130, 246, 0.06);
  top: -200px;
  right: -200px;
}

.why-us-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.why-us-text .section-subtitle {
  margin-bottom: 36px;
}

.why-us-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.why-us-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.why-us-feature:hover {
  background: var(--bg-glass-light);
}

.why-us-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-us-feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
}

.why-us-feature h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.why-us-feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Why Us Visual - Stats Grid */
.why-us-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition-base);
}

.stat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

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

.stat-card-content {
  position: relative;
  z-index: 1;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-card.featured-stat {
  grid-column: span 2;
  background: linear-gradient(145deg, rgba(255, 122, 54, 0.06), #FFFFFF);
  border-color: var(--border-accent);
}

/* ===== PROCESS SECTION ===== */
.process {
  background: var(--bg-secondary);
  position: relative;
}

.process-header {
  text-align: center;
  margin-bottom: 72px;
  position: relative;
  z-index: 1;
}

.process-header .section-subtitle {
  margin: 0 auto;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Timeline connecting line */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
  opacity: 0.3;
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step-number {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--gradient-card);
  border: 2px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-primary);
  position: relative;
  transition: var(--transition-base);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.process-step:hover .process-step-number {
  background: var(--gradient-accent);
  color: #000;
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.process-step h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 240px;
  margin: 0 auto;
}

/* ===== PROJECTS SECTION ===== */
.projects {
  position: relative;
  overflow: hidden;
}

.projects .bg-glow {
  width: 600px;
  height: 600px;
  background: var(--accent-glow);
  bottom: -200px;
  right: -200px;
}

.projects-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.projects-header .section-subtitle {
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.project-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
  group: true;
}

.project-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated), var(--shadow-glow);
}

.project-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--accent-glow) 100%);
}

.project-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.6;
  transition: var(--transition-base);
}

.project-card:hover .project-image-placeholder {
  transform: scale(1.1);
  opacity: 0.8;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.92) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-base);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
}

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

.project-overlay span {
  background: var(--gradient-accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glow);
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover .project-overlay span {
  transform: translateY(0);
}

.project-info {
  padding: 24px;
}

.project-tag {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--bg-secondary);
  position: relative;
}

.contact .bg-glow {
  width: 500px;
  height: 500px;
  background: var(--accent-glow);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
}

.contact-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.contact-header .section-subtitle {
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}

/* Contact Info Grid (4 cards, no form) */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

.contact-info-card:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.contact-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.contact-benefit svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

.contact-form-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-form-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

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

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

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: var(--transition-base);
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 28px;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border-subtle);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  margin-top: 2px;
}

.form-checkbox input[type="checkbox"]:checked {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.form-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
}

.form-checkbox-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-checkbox-text a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--gradient-accent);
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
}

/* Modal submit button — text length varies per service */
#modalSubmitBtn {
  font-size: 0.9rem;
  padding: 15px 12px;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

#modalSubmitBtn svg {
  flex-shrink: 0;
  min-width: 16px;
  width: 16px;
  height: 16px;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.form-submit svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: var(--transition-base);
}

.form-submit:hover svg {
  transform: translateX(4px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 0;
}

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

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #000;
  font-weight: 900;
}

.footer-logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}



.footer-column h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--accent-primary);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition-base);
}

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

/* ===== CTA BANNER ===== */
.cta-banner {
  position: relative;
  margin: 0 auto;
  max-width: var(--container-width);
  padding: 0 24px;
  margin-top: -60px;
  margin-bottom: 60px;
  z-index: 2;
}

.cta-banner-inner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.06));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.cta-banner-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
}

.cta-banner-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-banner-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--gradient-accent);
  border: none;
  border-radius: 50%;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-base);
  z-index: 999;
  box-shadow: var(--shadow-glow);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.4);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-card-grid {
    max-width: 400px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-timeline::before {
    display: none;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 1024px) {
  .navbar .container {
    padding: 0 16px;
  }

  .nav-logo {
    gap: 8px;
    flex-shrink: 1;
    max-width: calc(100% - 60px);
  }

  .nav-logo-img {
    height: 65px !important;
  }

  .nav-toggle {
    display: flex !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 340px;
    height: 100vh;
    background: #FFFFFF;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 90px 24px 40px 24px;
    gap: 24px;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2005;
    margin-left: 0;
    overflow-y: auto;
  }

  .nav-menu-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }

  .nav-menu-links a {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .nav-menu-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    margin-top: 12px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
  }

  .nav-menu-actions .nav-cta {
    width: 100%;
    text-align: center;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 72px;
  }

  .hero-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-card.featured {
    grid-column: span 1;
  }

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

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-benefits {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

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

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

  .section-title {
    font-size: 1.8rem;
  }

  .why-us-visual {
    grid-template-columns: 1fr;
  }

  .stat-card.featured-stat {
    grid-column: span 1;
  }

  .contact-form-wrapper {
    padding: 24px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Counter animation */
.counter {
  display: inline-block;
}

/* ===== NEW ELEMENTS STYLES ===== */

/* Top Bar */
.top-bar {
  background: #E5E7EB;
  border-bottom: 1px solid #D1D5DB;
  padding: 9px 0;
  font-size: 0.85rem;
  color: #4B5563;
  font-weight: 500;
}

.top-bar-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.top-bar-item a {
  color: inherit;
  transition: var(--transition-fast);
}

.top-bar-item a:hover {
  color: var(--accent-primary);
}

.top-bar-phone a {
  font-weight: 700;
  color: var(--accent-primary);
}

/* Adjusted Navbar for Top Bar presence */
.navbar {
  top: 41px; /* offset for top bar */
}

.navbar.scrolled {
  top: 0; /* snap to top on scroll */
}

/* Hero Trust Badges */
.hero-stats-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  width: 100%;
}

.hero-trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.hero-trust-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.hero-trust-badge h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hero-trust-badge p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Services Grid for 10 Services with Centered Last Row */
.services-grid-10 {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 24px !important;
}

.services-grid-10 .service-card {
  flex: 0 0 calc(25% - 18px);
  max-width: calc(25% - 18px);
  width: 100%;
}

@media (max-width: 1100px) {
  .services-grid-10 .service-card {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
  }
}

@media (max-width: 768px) {
  .services-grid-10 .service-card {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}

@media (max-width: 520px) {
  .services-grid-10 .service-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.service-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-primary);
  transition: var(--transition-fast);
}

.service-card:hover .service-link {
  color: var(--accent-secondary);
  transform: translateX(4px);
}

.services-footer {
  text-align: center;
  margin-top: 56px;
}

/* Why Us Centered Header & Grid */
.why-us-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 56px auto;
  position: relative;
  z-index: 1;
}

.why-us-header .section-subtitle {
  margin: 16px auto 0 auto;
}

.why-us-features-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.why-us-cta {
  text-align: center;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.why-us-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  border-radius: var(--radius-md);
  position: relative;
  transition: var(--transition-smooth);
}

.why-us-feature-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.feature-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-glow-strong);
  position: absolute;
  top: 16px;
  right: 20px;
}

.why-us-feature-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.why-us-feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Acreditaciones Banner */
.acreditaciones {
  background: var(--bg-secondary);
  padding: 60px 0;
}

.acred-box {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.acred-text {
  max-width: 750px;
}

.acred-text h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.acred-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.acred-actions {
  flex-shrink: 0;
}

/* FAQ Accordion Section */
.faq {
  background: var(--bg-primary);
}

.faq-header {
  text-align: center;
  margin-bottom: 56px;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-base);
}

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

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-icon {
  transition: var(--transition-base);
  color: var(--text-muted);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-card);
}

.faq-answer p {
  padding: 0 24px 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* high enough for standard text */
}

/* Responsive adjustments for new elements */
@media (max-width: 992px) {
  .top-bar-container {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .navbar {
    top: 60px; /* more offset for wrapped top bar */
  }
  .navbar.scrolled {
    top: 0;
  }
  .hero-stats-new {
    grid-template-columns: 1fr;
  }
  .why-us-features-new {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .why-us-features-new {
    grid-template-columns: 1fr;
  }
  .acred-box {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }
}

/* ===== SERVICE POPUP MODAL STYLES ===== */
.service-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 14, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.service-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


.service-modal-container {
  background: #FFFFFF;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-modal-overlay.active .service-modal-container {
  transform: scale(1) translateY(0);
}

.service-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.service-modal-close:hover {
  background: var(--accent-primary);
  color: #FFFFFF;
  transform: rotate(90deg);
}

.service-modal-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
}

.service-modal-info {
  padding: 40px;
  border-right: 1px solid var(--border-subtle);
}

.service-modal-badge {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.service-modal-headline {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.service-modal-image-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.service-modal-img {
  display: none; /* hidden — visual provided by CSS on parent */
}

/* Per-service gradient banners */
.service-modal-image-wrapper[data-service="electricidad"] {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
}
.service-modal-image-wrapper[data-service="electricidad"]::before {
  content: "⚡";
  font-size: 6rem;
  filter: drop-shadow(0 0 30px rgba(255, 200, 50, 0.9));
}

.service-modal-image-wrapper[data-service="fontaneria"] {
  background: linear-gradient(135deg, #0d2137 0%, #0a3d62 50%, #1a6896 100%);
}
.service-modal-image-wrapper[data-service="fontaneria"]::before {
  content: "💧";
  font-size: 6rem;
  filter: drop-shadow(0 0 30px rgba(30, 140, 220, 0.9));
}

.service-modal-image-wrapper[data-service="gas"] {
  background: linear-gradient(135deg, #1f0a00 0%, #4a1500 50%, #7a2500 100%);
}
.service-modal-image-wrapper[data-service="gas"]::before {
  content: "🔥";
  font-size: 6rem;
  filter: drop-shadow(0 0 30px rgba(255, 100, 20, 0.9));
}

.service-modal-image-wrapper[data-service="calefaccion"] {
  background: linear-gradient(135deg, #1f0d00 0%, #5a2000 50%, #a03500 100%);
}
.service-modal-image-wrapper[data-service="calefaccion"]::before {
  content: "🌡️";
  font-size: 6rem;
  filter: drop-shadow(0 0 30px rgba(255, 122, 36, 0.9));
}

.service-modal-image-wrapper[data-service="aire-acondicionado"] {
  background: linear-gradient(135deg, #001f3f 0%, #003d7a 50%, #0060b8 100%);
}
.service-modal-image-wrapper[data-service="aire-acondicionado"]::before {
  content: "❄️";
  font-size: 6rem;
  filter: drop-shadow(0 0 30px rgba(100, 200, 255, 0.9));
}

.service-modal-image-wrapper[data-service="limpieza-conductos"] {
  background: linear-gradient(135deg, #0f1923 0%, #1e3a4a 50%, #2d5060 100%);
}
.service-modal-image-wrapper[data-service="limpieza-conductos"]::before {
  content: "🌀";
  font-size: 6rem;
  filter: drop-shadow(0 0 30px rgba(100, 200, 220, 0.9));
}

.service-modal-image-wrapper[data-service="aerotermia"] {
  background: linear-gradient(135deg, #0a1f0a 0%, #1a3d1a 50%, #2a5c2a 100%);
}
.service-modal-image-wrapper[data-service="aerotermia"]::before {
  content: "🍃";
  font-size: 6rem;
  filter: drop-shadow(0 0 30px rgba(80, 200, 80, 0.9));
}

.service-modal-image-wrapper[data-service="reformas"] {
  background: linear-gradient(135deg, #1a1208 0%, #3d2a10 50%, #6b4820 100%);
}
.service-modal-image-wrapper[data-service="reformas"]::before {
  content: "🏠";
  font-size: 6rem;
  filter: drop-shadow(0 0 30px rgba(200, 150, 60, 0.9));
}

.service-modal-image-wrapper[data-service="carpinteria"] {
  background: linear-gradient(135deg, #1a0e05 0%, #4a2a10 50%, #7a4820 100%);
}
.service-modal-image-wrapper[data-service="carpinteria"]::before {
  content: "🪟";
  font-size: 6rem;
  filter: drop-shadow(0 0 30px rgba(180, 120, 60, 0.9));
}

.service-modal-image-wrapper[data-service="trabajos-verticales"] {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3d 50%, #2a2a6b 100%);
}
.service-modal-image-wrapper[data-service="trabajos-verticales"]::before {
  content: "🧗";
  font-size: 6rem;
  filter: drop-shadow(0 0 30px rgba(150, 130, 255, 0.9));
}

.service-modal-copy p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.service-modal-form-wrapper {
  padding: 40px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-form-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.modal-form-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .service-modal-overlay, .project-modal-overlay {
    padding: 12px 8px;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .service-modal-container, .project-modal-container {
    max-height: none;
    height: auto;
    border-radius: 16px;
    width: 100%;
    margin: 8px auto;
    box-sizing: border-box;
    overflow: visible;
  }

  .service-modal-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
  }

  .service-modal-info {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .service-modal-form-wrapper {
    padding: 20px 16px 24px 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .service-modal-image-wrapper {
    height: 170px;
    margin-bottom: 16px;
  }

  .service-modal-headline {
    font-size: 1.25rem;
    margin-bottom: 16px;
    padding-right: 36px;
  }

  .service-modal-close, .project-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-input, textarea.form-input {
    font-size: 16px !important;
  }
}

/* ===== PROJECT POPUP MODAL STYLES ===== */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 14, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.project-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


.project-modal-container {
  background: #FFFFFF;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-modal-overlay.active .project-modal-container {
  transform: scale(1) translateY(0);
}

.project-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.project-modal-close:hover {
  background: var(--accent-primary);
  color: #FFFFFF;
  transform: rotate(90deg);
}

.project-modal-content {
  padding: 40px;
}

.project-modal-badge {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.project-modal-headline {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.project-modal-image-wrapper {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.project-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-section {
  margin-bottom: 20px;
}

.project-detail-section h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-detail-section p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-detail-section ul {
  margin-top: 8px;
  padding-left: 24px;
  list-style: disc;
}

.project-detail-section li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
}

.project-detail-section.highlight-box {
  background: var(--bg-glass-light);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-top: 24px;
}

.project-modal-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
}

@media (max-width: 640px) {
  .nav-logo-img {
    height: 55px !important;
  }
  .brand-grup {
    font-size: 0.72rem;
    letter-spacing: 2px;
  }
  .brand-totserveis {
    font-size: 1.15rem;
  }
  .navbar {
    padding: 6px 0 !important;
  }
  .project-modal-content {
    padding: 24px 16px;
  }
  .project-modal-image-wrapper {
    height: 180px;
    margin-bottom: 20px;
  }
  .project-modal-headline {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }
  .project-modal-footer .btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: 0.88rem;
    padding: 12px 14px;
  }
}

/* ===== FORM DATA NOTICE ===== */
.form-data-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-left: 2px solid var(--border-subtle);
  border-radius: 0 6px 6px 0;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(18, 18, 22, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 18px 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 240px;
}

.cookie-banner-text strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.cookie-banner-text p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0;
}

.cookie-banner-text a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.cookie-btn-accept {
  background: var(--gradient-accent);
  color: #fff;
  border: none;
}

.cookie-btn-accept:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.cookie-btn-info {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.cookie-btn-info:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
    justify-content: center;
  }
}


/* ==========================================================================\n   RESPONSIVE STABILIZATION LAYER\n   Consolidates header, grids, forms and modals across desktop/tablet/mobile.\n   ========================================================================== */
:root {
  --bg-base: var(--bg-primary);
  --header-offset: 104px;
}

html {
  overflow-x: hidden;
  scroll-padding-top: calc(var(--header-offset) + 16px);
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

body.page-locked {
  overflow: hidden;
  touch-action: none;
}

main,
section,
header,
footer,
.container,
.hero-content,
.contact-content,
.footer-content,
.service-modal-grid {
  min-width: 0;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

p,
li,
a,
h1,
h2,
h3,
h4,
span {
  overflow-wrap: break-word;
}

.container {
  width: min(100%, calc(var(--container-width) + 48px));
  padding-inline: clamp(16px, 3vw, 24px);
}

.section {
  padding-block: clamp(64px, 8vw, 100px);
}

section[id] {
  scroll-margin-top: calc(var(--header-offset) + 16px);
}

.bg-glow {
  max-width: 100vw;
  max-height: 100vw;
}

/* Header: use natural document height instead of fragile fixed offsets. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1900;
  width: 100%;
}

.top-bar {
  position: relative;
  z-index: 1;
  padding: 7px 0;
}

.top-bar-container {
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: nowrap;
}

.top-bar-item {
  min-width: 0;
  white-space: nowrap;
}

.navbar,
.navbar.scrolled {
  position: relative;
  inset: auto;
  top: auto;
  left: auto;
  right: auto;
  z-index: 2;
  padding: 8px 0;
}

.navbar-container {
  min-height: 68px;
}

.nav-logo,
.footer-logo {
  min-width: 0;
}

.nav-logo-img {
  width: auto;
  height: 64px;
  max-width: 76px;
  object-fit: contain;
}

.footer-logo-img {
  width: auto;
  height: 76px;
  max-width: 90px;
  object-fit: contain;
}

.nav-links {
  min-width: 0;
  margin-left: clamp(24px, 4vw, 48px);
}

.nav-menu-links {
  gap: clamp(14px, 2vw, 28px);
}

.nav-menu-links a {
  white-space: nowrap;
}

.nav-overlay {
  z-index: 10;
}

.nav-toggle {
  z-index: 30;
}

/* Hero */
.hero {
  min-height: min(850px, calc(100svh - var(--header-offset)));
  padding: clamp(76px, 9vw, 112px) 0;
  background-position: center;
}

.hero-container-full {
  padding-inline: clamp(16px, 4vw, 64px);
}

.hero-content {
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(28px, 5vw, 72px);
}

.hero-text {
  width: 100%;
}

.hero-title {
  font-size: clamp(2.35rem, 4.6vw, 3.8rem);
}

.hero-badge {
  max-width: 100%;
  white-space: normal;
}

.hero-buttons,
.hero-stats-new {
  max-width: 100%;
}

.hero-trust-badge,
.service-card,
.why-us-feature-card,
.project-card,
.contact-info-card {
  min-width: 0;
}

/* Predictable grid behavior. */
.services-grid-10 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px !important;
}

.services-grid-10 .service-card {
  display: flex;
  flex-direction: column;
  width: auto;
  max-width: none;
  min-width: 0;
  flex: initial;
}

.service-card .service-link {
  margin-top: auto;
  padding-top: 16px;
}

.why-us-features-new {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-content {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.footer-content {
  grid-template-columns: minmax(220px, 1.7fr) repeat(2, minmax(150px, 0.85fr)) minmax(220px, 1.25fr);
  gap: clamp(28px, 4vw, 48px);
}

.form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-input,
.form-submit,
.cookie-btn,
.btn-primary,
.btn-secondary {
  max-width: 100%;
}

.form-submit,
#modalSubmitBtn {
  height: auto;
  min-height: 52px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.3;
  text-align: center;
}

/* Modal: one controlled scrolling surface, no page-width overflow. */
.service-modal-overlay,
.project-modal-overlay {
  padding: clamp(10px, 3vw, 28px);
  align-items: center;
  overscroll-behavior: contain;
}

.service-modal-container,
.project-modal-container {
  width: min(100%, 960px);
  max-height: calc(100dvh - clamp(20px, 6vw, 56px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.project-modal-container {
  width: min(100%, 760px);
}

.service-modal-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.service-modal-info,
.service-modal-form-wrapper,
.project-modal-content {
  min-width: 0;
  padding: clamp(28px, 4vw, 40px);
}

.service-modal-copy p + p {
  margin-top: 12px;
}

.service-modal-image-wrapper,
.project-modal-image-wrapper {
  width: 100%;
}

/* Cookie banner contrast and safe-area handling. */
.cookie-banner {
  max-height: min(55dvh, 420px);
  overflow-y: auto;
  padding: 16px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top-color: rgba(255, 255, 255, 0.14);
}

.cookie-banner-text strong {
  color: #ffffff;
}

.cookie-banner-text p {
  color: #d1d5db;
}

.cookie-btn-info {
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.25);
}

.cookie-btn-info:hover {
  color: #ffffff;
}

/* Legal pages now share the same header behavior. */
.legal-page {
  padding: clamp(48px, 7vw, 80px) 0;
}

.legal-page .container {
  width: min(100%, 868px);
}

.legal-body ul {
  padding-left: 22px;
}

.legal-body li {
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .top-bar-address {
    display: none;
  }

  .nav-menu-links {
    gap: 14px;
  }

  .nav-menu-links a {
    font-size: 0.88rem;
  }

  .services-grid-10 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1101px) {
  .nav-toggle {
    display: none !important;
  }

  .nav-links {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    visibility: visible;
    opacity: 1;
    overflow: visible;
  }

  .nav-overlay {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  :root {
    --header-offset: 100px;
  }

  .navbar .container,
  .navbar-container {
    padding-inline: clamp(16px, 3vw, 24px);
  }

  .nav-logo {
    max-width: calc(100% - 64px);
  }

  .nav-logo-img {
    height: 56px !important;
    max-width: 66px;
  }

  .nav-toggle {
    display: flex !important;
    margin-left: auto;
    flex: 0 0 44px;
  }

  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 380px);
    max-width: 380px;
    height: 100dvh;
    margin: 0;
    padding: calc(88px + env(safe-area-inset-top)) clamp(20px, 5vw, 32px) calc(32px + env(safe-area-inset-bottom));
    background: #ffffff;
    box-shadow: -16px 0 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translate3d(105%, 0, 0);
    right: 0;
    visibility: hidden;
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.32s ease;
    z-index: 20;
  }

  .nav-links.active {
    right: 0;
    transform: translate3d(0, 0, 0);
    visibility: visible;
    opacity: 1;
  }

  .nav-menu-links,
  .nav-menu-actions {
    width: 100%;
    align-items: stretch;
  }

  .nav-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .nav-menu-links a {
    width: 100%;
    padding: 14px 2px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 1rem;
    line-height: 1.3;
    white-space: normal;
  }

  .nav-menu-links a::after {
    display: none;
  }

  .nav-menu-actions {
    margin-top: auto;
    padding-top: 20px;
  }

  .nav-menu-actions .nav-cta {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    white-space: normal;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.66);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .hero {
    min-height: auto;
    padding: clamp(72px, 9vw, 96px) 0;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .hero-text {
    max-width: 760px;
  }

  .hero-description {
    margin-inline: 0;
  }

  .hero-buttons,
  .hero-stats {
    justify-content: flex-start;
  }

  .hero-visual {
    display: flex;
    justify-content: flex-start;
  }

  .hero-featured-badge {
    max-width: 520px;
  }

  .services-grid-10 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-us-features-new,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .top-bar-container {
    justify-content: space-between;
  }

  .top-bar-email,
  .top-bar-address {
    display: none;
  }

  .hero-stats-new {
    grid-template-columns: minmax(0, 1fr);
    max-width: 680px;
  }

  .service-modal-overlay,
  .project-modal-overlay {
    align-items: center;
    padding: 8px;
  }

  .service-modal-container,
  .project-modal-container {
    width: 100%;
    max-height: calc(100dvh - 16px);
    margin: 0;
    border-radius: 16px;
    overflow-y: auto;
  }

  .service-modal-grid {
    display: block;
  }

  .service-modal-info {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .service-modal-info,
  .service-modal-form-wrapper,
  .project-modal-content {
    width: 100%;
    padding: 24px 18px;
  }

  .service-modal-close,
  .project-modal-close {
    position: sticky !important;
    top: 10px;
    right: auto;
    float: right;
    margin: 10px 10px -54px 0;
    width: 40px;
    height: 40px;
    z-index: 100;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  }

  .service-modal-headline,
  .project-modal-headline {
    padding-right: 46px;
  }

  .service-modal-image-wrapper {
    height: 150px;
  }

  .project-modal-image-wrapper {
    height: clamp(180px, 45vw, 280px);
  }
}

@media (max-width: 680px) {
  :root {
    --header-offset: 112px;
  }

  .top-bar {
    padding: 5px 0;
  }

  .top-bar-container {
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 14px;
  }

  .top-bar-item {
    justify-content: center;
    font-size: 0.75rem;
  }

  .top-bar-container > .top-bar-item:first-child,
  .top-bar-phone {
    width: 100%;
  }

  .navbar-container {
    min-height: 58px;
  }

  .nav-logo {
    gap: 8px;
  }

  .nav-logo-img {
    height: 48px !important;
    max-width: 56px;
  }

  .brand-grup {
    font-size: 0.68rem;
    letter-spacing: 2px;
  }

  .brand-totserveis {
    font-size: 1.05rem;
  }

  .hero {
    padding: 58px 0 68px;
    background-position: 62% center;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.86) 62%, rgba(255, 255, 255, 0.58) 100%), url('img/hero-workers.png');
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 2.75rem);
    line-height: 1.08;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-badge {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 16px;
    border-radius: 18px;
  }

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

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
  }

  .hero-visual {
    display: none;
  }

  .services-grid-10,
  .why-us-features-new,
  .projects-grid,
  .footer-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card,
  .why-us-feature-card,
  .contact-form-wrapper,
  .contact-info-card,
  .acred-box {
    padding: 24px 20px;
  }

  .acred-box {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .acred-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-question {
    padding: 18px;
    gap: 14px;
    font-size: 1rem;
  }

  .faq-icon {
    flex: 0 0 22px;
  }

  .faq-answer p {
    padding: 0 18px 20px;
  }

  .footer-bottom,
  .footer-legal {
    align-items: center;
    justify-content: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .project-modal-footer .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .cookie-banner-inner {
    display: block;
  }

  .cookie-banner-actions {
    width: 100%;
    margin-top: 14px;
  }

  .cookie-btn {
    min-height: 44px;
    justify-content: center;
  }

  .legal-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  .legal-body h2 {
    margin-top: 30px;
    font-size: 1.1rem;
  }

  .legal-nav {
    gap: 14px 20px;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 380px) {
  .nav-links {
    width: 94vw;
  }

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

  .btn-primary,
  .btn-secondary {
    padding-inline: 20px;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }
}

@media (hover: none) {
  .service-card:hover,
  .project-card:hover,
  .why-us-feature-card:hover,
  .contact-info-card:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }

  .project-overlay {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Final drawer layering correction: overlay below drawer/toggle, without off-canvas scroll width. */
.navbar,
.navbar.scrolled {
  z-index: auto;
}

@media (max-width: 1100px) {
  .nav-links {
    right: -100%;
    transform: none;
  }

  .nav-links.active {
    right: 0;
    transform: none;
  }
}

/* Final viewport-lock and drawer clipping corrections. */
html.page-locked,
body.page-locked {
  overflow: hidden;
}

.service-modal-overlay,
.project-modal-overlay {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .nav-links {
    right: 0;
    transform: none;
    clip-path: inset(0 0 0 100%);
    pointer-events: none;
  }

  .nav-links.active {
    right: 0;
    transform: none;
    clip-path: inset(0 0 0 0);
    pointer-events: auto;
  }

  .hero-buttons {
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: auto;
  }
}

@media (max-width: 680px) {
  .hero-buttons {
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
  }
}

/* Shared legal-page layout (moved out of duplicated inline blocks). */
.legal-page {
  min-height: 100vh;
  padding: clamp(48px, 7vw, 80px) 0;
  background: var(--bg-base);
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  transition: var(--transition-base);
}

.legal-back:hover {
  opacity: 0.8;
}

.legal-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.legal-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 12px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-body ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-body a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.legal-nav {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-base);
}

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

@media (max-width: 680px) {
  .legal-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  .legal-body h2 {
    margin-top: 30px;
    font-size: 1.1rem;
  }

  .legal-nav {
    gap: 14px 20px;
  }
}


/* ==========================================================================
   MOBILE REFINEMENT V2 — final rules loaded last
   ========================================================================== */
@media (max-width: 680px) {
  /* Keep the mobile header compact: one useful line, then logo + menu. */
  .top-bar-container > .top-bar-item:first-child,
  .top-bar-address,
  .top-bar-email {
    display: none !important;
  }

  .top-bar-container,
  .top-bar-phone {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .top-bar {
    padding: 7px 0;
  }

  .top-bar-phone {
    font-size: 0.8rem;
  }

  .navbar,
  .navbar.scrolled {
    padding: 6px 0 !important;
  }

  .navbar-container {
    min-height: 62px;
  }

  .nav-logo {
    margin: 0;
    max-width: calc(100% - 64px);
  }

  .nav-logo-img {
    height: 50px !important;
    max-width: 58px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  /* Mobile hero: readable, centred and fully contained. */
  .hero {
    padding: 52px 0 64px;
    background-position: 58% center;
  }

  .hero-content,
  .hero-text {
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-badge {
    width: auto;
    max-width: 100%;
    justify-content: center;
    margin-inline: auto;
    padding: 10px 16px;
  }

  .hero-badge .dot {
    flex: 0 0 8px;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2rem, 9.4vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  .hero-description {
    max-width: 100%;
    margin-inline: auto;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-buttons {
    align-items: stretch;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    min-height: 52px;
    white-space: normal;
    text-align: center;
  }

  .hero-stats-new {
    margin-top: 32px;
    text-align: left;
  }

  .hero-trust-badge {
    width: 100%;
  }

  /* Cards and content cannot create a wider min-content track. */
  .services-grid-10,
  .why-us-features-new,
  .projects-grid,
  .contact-content,
  .footer-content,
  .form-row {
    width: 100%;
    min-width: 0;
  }

  .service-card,
  .project-card,
  .why-us-feature-card,
  .contact-info-card,
  .contact-form-wrapper,
  .footer-column,
  .footer-brand {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .project-image {
    height: 210px;
  }

  .footer-logo-img {
    height: 64px;
    max-width: 74px;
  }

  .footer-bottom {
    width: 100%;
  }

  .footer-copyright {
    max-width: 100%;
  }

  /* One scroll surface per modal. */
  .service-modal-overlay,
  .project-modal-overlay {
    padding: 8px;
    align-items: center;
    overflow: hidden;
  }

  .service-modal-container,
  .project-modal-container {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 16px);
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 16px;
  }

  .service-modal-close,
  .project-modal-close {
    position: sticky !important;
    top: 10px;
    float: right;
    margin: 10px 10px -52px 0;
  }

  .service-modal-info,
  .service-modal-form-wrapper,
  .project-modal-content {
    padding: 24px 18px;
  }

  .service-modal-badge,
  .project-modal-badge {
    margin-right: 48px;
  }

  .service-modal-headline,
  .project-modal-headline {
    padding-right: 46px;
    overflow-wrap: anywhere;
  }

  .service-modal-image-wrapper {
    height: 150px;
  }

  .service-modal-copy p,
  .project-detail-section p,
  .project-detail-section li {
    overflow-wrap: anywhere;
  }

  #modalSubmitBtn {
    width: 100%;
    min-height: 54px;
    padding: 14px 12px;
    white-space: normal;
  }

  /* Cookie message stays inside the viewport and remains legible. */
  .cookie-banner {
    width: 100%;
    max-width: 100vw;
    max-height: 58dvh;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .cookie-banner-text,
  .cookie-banner-actions {
    width: 100%;
    min-width: 0;
  }

  .cookie-banner-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie-btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .brand-totserveis {
    font-size: 0.98rem;
  }

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

  .hero-badge {
    font-size: 0.8rem;
  }

  .cookie-banner-actions {
    grid-template-columns: 1fr;
  }
}


/* ===== CLOUDFLARE TURNSTILE ===== */
.turnstile-slot {
  width: 100%;
  min-width: 0;
  margin: 0 0 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
}

.turnstile-slot:empty {
  min-height: 0;
  margin-bottom: 0;
}

.turnstile-slot > div,
.turnstile-slot iframe {
  max-width: 100% !important;
}

@media (max-width: 640px) {
  .turnstile-slot {
    justify-content: center;
  }
}


/* ===== FORMS: HONEYPOT ANTI-SPAM =====
   Campo deliberadamente fuera de pantalla. Formspree descarta silenciosamente
   los envíos cuando el campo `_gotcha` llega rellenado. */
.gts-form-trap {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.gts-form-trap input,
.gts-form-trap label {
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================
   AJUSTES VISUALES 2026-08-07
   1) Logo de cabecera +30% aprox. sin alterar la estructura.
   2) Centrado de la última fila de servicios en escritorio.
   ========================================================== */

/* Logo principal: aproximadamente un 30% mayor que la versión anterior. */
@media (min-width: 1101px) {
  .nav-logo-img {
    height: 84px !important;
    max-width: 100px !important;
  }

  /* En escritorio de 4 columnas, Carpintería y Trabajos verticales
     ocupan las dos columnas centrales de la última fila. */
  .services-grid-10 .service-card:nth-child(9) {
    grid-column: 2;
  }

  .services-grid-10 .service-card:nth-child(10) {
    grid-column: 3;
  }
}

/* En el tramo de 3 columnas, la última tarjeta queda centrada. */
@media (min-width: 1101px) and (max-width: 1180px) {
  .services-grid-10 .service-card:nth-child(9) {
    grid-column: auto;
  }

  .services-grid-10 .service-card:nth-child(10) {
    grid-column: 2;
  }
}

/* Tablet: mantiene el menú y el resto de elementos intactos, solo escala el logo. */
@media (max-width: 1100px) {
  :root {
    --header-offset: 122px;
  }

  .nav-logo-img {
    height: 73px !important;
    max-width: 86px !important;
  }
}

/* Móvil: +30% respecto al tamaño responsive anterior. */
@media (max-width: 680px) {
  :root {
    --header-offset: 128px;
  }

  .nav-logo-img {
    height: 62px !important;
    max-width: 73px !important;
  }
}


/* ==========================================================
   AJUSTE EXTRA LOGO CABECERA 2026-08-08
   Basado en referencia del usuario: logo notablemente mayor
   en escritorio, sin descuadrar el resto del menú.
   ========================================================== */
@media (min-width: 1101px) {
  .navbar .container,
  .navbar-container {
    min-height: 74px;
    align-items: center;
  }

  .nav-logo {
    gap: 12px !important;
    flex: 0 0 auto;
    min-width: auto;
    max-width: none;
  }

  .nav-logo-img {
    height: 104px !important;
    max-width: none !important;
    width: auto !important;
  }

  .nav-logo-text {
    line-height: 0.96;
  }

  .brand-grup {
    font-size: 1rem !important;
    letter-spacing: 4px !important;
  }

  .brand-totserveis {
    font-size: 2rem !important;
    line-height: 0.95;
  }

  .nav-links {
    margin-left: 28px;
    min-width: 0;
  }

  .nav-menu-links {
    gap: 22px;
  }
}
