/* ================================================================
   CON INGENIO — Design System & Styles
   ================================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ================================================================
   CSS Custom Properties (Design Tokens)
   ================================================================ */
:root {
  /* --- Brand Colors --- */
  --navy: #1B2B4B;
  --navy-light: #263d66;
  --navy-dark: #111d33;
  --gold: #F5A623;
  --gold-light: #f7b84d;
  --gold-dark: #d48d10;
  --yellow: #FFD700;
  --white: #FFFFFF;
  --cloud: #F4F6F8;
  --slate: #6B7B8D;
  --slate-light: #8a97a5;
  --green: #2ECC71;
  --green-dark: #27ae60;
  --blue: #3498DB;
  --blue-dark: #2980b9;
  --sand: #FAF3E8;
  --red: #E74C3C;

  /* --- Typography --- */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  --fs-6xl: 3.75rem;

  /* --- Spacing --- */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* --- Layout --- */
  --max-width: 1280px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;

  /* --- Shadows --- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 60px rgba(0, 0, 0, 0.16);

  /* --- Transitions --- */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* ================================================================
   Reset & Base
   ================================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--navy);
  background-color: #f8fafc;
  background-image:
    linear-gradient(to bottom, rgba(9, 18, 33, 0.5), rgba(244, 246, 248, 0.7)),
    url('../img/premium_sky_energy_bg.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: var(--font);
  border: none;
  outline: none;
  background: none;
}

/* ================================================================
   Utility Classes
   ================================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-padding {
  padding: var(--space-5xl) 0;
}

.bg-white {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 1);
}

.bg-cloud {
  background: rgba(244, 246, 248, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.bg-navy {
  background: var(--navy);
  color: var(--white);
}

.bg-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.text-center {
  text-align: center;
}

.text-navy {
  color: var(--navy);
}

.text-slate {
  color: var(--slate);
}

.text-gold {
  color: var(--gold);
}

.text-white {
  color: var(--white);
}

.text-green {
  color: var(--green);
}

/* ================================================================
   Typography
   ================================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

.section-title {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-md);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: var(--space-sm);
}

.section-title.centered::after {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--slate);
  max-width: 640px;
  line-height: 1.7;
}

.section-subtitle.centered {
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-dark);
  box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-light);
  box-shadow: 0 8px 25px rgba(27, 43, 75, 0.3);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-dark);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-outline-navy {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-sm {
  padding: 10px 24px;
  font-size: var(--fs-sm);
}

.btn-lg {
  padding: 18px 42px;
  font-size: var(--fs-lg);
}

/* ================================================================
   Navigation
   ================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(27, 43, 75, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
  background: rgba(27, 43, 75, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-left: -16px;
  border-radius: 12px;
}

.nav-logo:hover {
  transform: translateY(-1px);
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

.logo-smart {
  display: block;
  max-width: 100%;
  height: auto;
  transition: var(--transition);
}

.nav-logo-box {
  width: 186px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(245, 166, 35, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
  background: linear-gradient(135deg, rgba(8, 16, 30, 0.92), rgba(20, 36, 66, 0.88));
  overflow: hidden;
  flex: 0 0 auto;
}

.nav-logo-icon {
  width: 95%;
  height: 95%;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.1) contrast(1.06);
}

.nav-logo-wordmark {
  width: 164px;
  height: 30px;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.28));
}

.hero-logo-shell {
  display: block;
  width: min(980px, 96vw);
  margin: 0 auto var(--space-xl);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(245, 166, 35, 0.35);
  background: var(--navy-dark);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), 0 0 34px rgba(245, 166, 35, 0.22);
}

.hero-logo-full {
  width: 100%;
  height: auto;
  display: block;
}

.hero-logo-part {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  filter: saturate(1.12) contrast(1.08);
}

.hero-logo-icon {
  object-position: center center;
  border-right: 1px solid rgba(245, 166, 35, 0.25);
}

.hero-logo-name {
  object-fit: contain;
  object-position: center center;
  background: linear-gradient(135deg, rgba(8, 16, 30, 0.25), rgba(245, 166, 35, 0.08));
}

.nav-logo .logo-accent {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-left: var(--space-2xl);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: var(--fs-sm);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
  border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.lang-selector {
  position: relative;
  cursor: pointer;
}

.lang-selector select {
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 6px 28px 6px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.lang-selector select:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-selector select option {
  background: var(--navy);
  color: var(--white);
}

.lang-selector::after {
  content: '▾';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 10px;
  pointer-events: none;
}

.nav-cta {
  padding: 10px 24px;
  font-size: var(--fs-sm);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 1px;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  display: flex;
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  padding: var(--space-2xl);
  gap: var(--space-lg);
  transform: translateX(100%);
  transition: var(--transition);
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav a {
  color: var(--white);
  font-size: var(--fs-xl);
  font-weight: 600;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav .lang-select {
  margin-top: var(--space-lg);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: var(--fs-lg);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 22px;
  padding-right: 44px;
}

.mobile-nav .lang-select option {
  background: var(--navy);
  color: var(--white);
}

/* ================================================================
   Hero Section
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: transparent;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(135deg, rgba(8, 16, 28, 0.9) 0%, rgba(27, 43, 75, 0.8) 100%),
    url('../img/deep_navy_premium_bg.png');
  background-size: cover;
  background-position: center;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245, 166, 35, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
  animation: pulseOrbs 10s ease-in-out infinite alternate;
}

@keyframes pulseOrbs {
  0% {
    opacity: 0.6;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--navy) 0%, transparent 100%);
}

/* Animated solar panels pattern */
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: var(--space-5xl) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  margin-bottom: var(--space-xl);
  color: var(--gold);
  font-weight: 600;
  font-size: var(--fs-sm);
}

.hero h1 {
  font-size: var(--fs-6xl);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  font-weight: 800;
}

.hero h1 .highlight {
  color: var(--gold);
  position: relative;
}

.hero p {
  font-size: var(--fs-xl);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-services-mini {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 3.5rem 0;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.hero-service-item:hover {
  transform: translateY(-5px);
}

.hero-service-item span {
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-service-item .mini-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(245, 166, 35, 0.2);
  font-size: 1.5rem;
  color: transparent;
  /* Hide fallback emoji if image loads */
}

.hero-stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-number {
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--gold);
}

.hero-stat-label {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  height: 80%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  opacity: 0.3;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--navy) 0%, transparent 40%);
  z-index: 1;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--fs-xs);
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDown 1.5s ease-in-out infinite;
}

/* ================================================================
   Cards
   ================================================================ */
.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.service-card {
  border-top: 3px solid var(--navy);
  padding: var(--space-2xl);
  text-align: center;
}

.service-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.1), rgba(245, 166, 35, 0.05));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--gold);
  transition: var(--transition);
}

.service-card:hover .icon {
  background: var(--gold);
  color: var(--white);
  transform: scale(1.1);
}

.service-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: var(--slate);
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.service-card .link {
  color: var(--blue);
  font-weight: 600;
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card .link:hover {
  gap: 8px;
}

/* ================================================================
   Services Grid
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-xl);
  margin-top: 3rem;
}

.services-grid .card { min-width: 0; }
.services-grid .card:nth-child(1) { grid-column: 1 / span 2; }
.services-grid .card:nth-child(2) { grid-column: 3 / span 2; }
.services-grid .card:nth-child(3) { grid-column: 5 / span 2; }
.services-grid .card:nth-child(4) { grid-column: 2 / span 2; }
.services-grid .card:nth-child(5) { grid-column: 4 / span 2; }

/* ================================================================
   Why Choose Us
   ================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.feature-item {
  text-align: center;
  padding: var(--space-xl);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.12), rgba(245, 166, 35, 0.04));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--gold);
  transition: var(--transition);
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
  background: var(--gold);
  color: var(--white);
}

.feature-item h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}

.feature-item p {
  color: var(--slate);
  font-size: var(--fs-sm);
}

/* ================================================================
   Stats Section
   ================================================================ */
.stats-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(245, 166, 35, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(52, 152, 219, 0.05) 0%, transparent 50%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: var(--space-xl);
}

.stat-number {
  font-size: var(--fs-5xl);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-base);
}

/* ================================================================
   Testimonials
   ================================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 4px solid var(--gold);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.stars {
  color: var(--gold);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-md);
}

.testimonial-card p {
  color: var(--slate);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: var(--fs-lg);
}

.author-name {
  font-weight: 600;
  font-size: var(--fs-sm);
}

.author-location {
  color: var(--slate);
  font-size: var(--fs-xs);
}

/* ================================================================
   CTA Section
   ================================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--yellow) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.cta-section h2 {
  font-size: var(--fs-4xl);
  color: var(--navy);
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-section p {
  color: var(--navy);
  opacity: 0.8;
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2xl);
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ================================================================
   Footer
   ================================================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand h3 {
  color: var(--white);
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-md);
}

.footer-brand .logo-accent {
  color: var(--gold);
}

.footer-brand p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: var(--white);
  font-size: var(--fs-base);
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.footer-col a {
  display: block;
  font-size: var(--fs-sm);
  padding: 6px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
  padding-left: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-sm);
}

/* ================================================================
   Page Hero (Inner pages)
   ================================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  padding: calc(72px + var(--space-4xl)) 0 var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(245, 166, 35, 0.1) 0%, transparent 60%);
}

.page-hero h1 {
  color: var(--white);
  font-size: var(--fs-5xl);
  margin-bottom: var(--space-md);
  position: relative;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-xl);
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.breadcrumb {
  margin-top: var(--space-lg);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  position: relative;
}

.breadcrumb a {
  color: var(--gold);
}

/* Check-list — used on services page */
.check-list {
  list-style: none;
  margin: var(--space-lg) 0 var(--space-xl);
  padding: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--space-sm) 0;
  color: var(--navy);
  font-size: var(--fs-base);
  line-height: 1.6;
}

.check-list li::before {
  content: '✓';
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Legal & Privacy long-form content */
.legal-content {
  color: var(--navy);
  line-height: 1.75;
  font-size: var(--fs-base);
}

.legal-content h2 {
  color: var(--navy);
  font-size: var(--fs-2xl);
  margin: var(--space-2xl) 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: var(--space-md);
  color: var(--slate);
}

.legal-content ul {
  margin: var(--space-md) 0 var(--space-lg);
  padding-left: var(--space-lg);
  list-style: disc;
  color: var(--slate);
}

.legal-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.legal-content strong {
  color: var(--navy);
  font-weight: 700;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ================================================================
   Form Controls
   ================================================================ */
.form-group {
  margin-bottom: var(--space-xl);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--navy);
  font-size: var(--fs-sm);
}

.form-group .hint {
  display: block;
  color: var(--slate);
  font-size: var(--fs-xs);
  margin-top: 4px;
}

/* Select */
.custom-select {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--cloud);
  font-size: var(--fs-base);
  color: var(--navy);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.custom-select:focus {
  border-color: var(--blue);
  background: var(--white);
}

/* Input field */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--cloud);
  font-size: var(--fs-base);
  color: var(--navy);
  border: 2px solid transparent;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

/* ================================================================
   FAQ Accordion
   ================================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--cloud);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl) 0;
  cursor: pointer;
  text-align: left;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--navy);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--gold);
}

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cloud);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  color: var(--gold);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-toggle {
  background: var(--gold);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer-inner {
  padding: 0 0 var(--space-xl);
  color: var(--slate);
  line-height: 1.8;
  font-size: var(--fs-base);
}

/* ================================================================
   Contact Page
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.contact-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--cloud);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.1), rgba(245, 166, 35, 0.05));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: var(--fs-base);
  margin-bottom: 2px;
}

.contact-item p,
.contact-item a {
  color: var(--slate);
  font-size: var(--fs-sm);
}

.contact-item a:hover {
  color: var(--blue);
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--gold);
}

.contact-form-card h3 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  text-align: center;
  color: var(--slate);
  font-size: var(--fs-sm);
  margin-top: var(--space-md);
}

/* ================================================================
   Subsidies Page
   ================================================================ */
.subsidy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.subsidy-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  border-top: 3px solid var(--green);
  transition: var(--transition);
}

.subsidy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.subsidy-card .big-value {
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--green);
  margin-bottom: var(--space-sm);
}

.subsidy-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}

.subsidy-card p {
  color: var(--slate);
  font-size: var(--fs-sm);
}

/* Alternating sections */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse>* {
  direction: ltr;
}

.service-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--cloud), var(--sand));
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.service-detail-content h3 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-md);
}

.service-detail-content p {
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.service-detail-content ul {
  margin-bottom: var(--space-xl);
}

.service-detail-content li {
  padding: var(--space-sm) 0;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.service-detail-content li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: var(--fs-lg);
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  position: relative;
  margin-top: var(--space-3xl);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.timeline-step {
  text-align: center;
  position: relative;
}

.timeline-number {
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--fs-xl);
  margin: 0 auto var(--space-md);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.timeline-step h4 {
  font-size: var(--fs-base);
  margin-bottom: var(--space-xs);
}

.timeline-step p {
  color: var(--slate);
  font-size: var(--fs-sm);
}

/* ================================================================
   WhatsApp Floating Button
   ================================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: var(--transition);
  animation: pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* ================================================================
   Animations
   ================================================================ */
@keyframes float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes scrollDown {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 12px rgba(37, 211, 102, 0.1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 {
  transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
  transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
  transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
  transition-delay: 0.4s;
}

.animate-on-scroll.delay-5 {
  transition-delay: 0.5s;
}

/* ================================================================
   Responsive Design
   ================================================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .services-grid .card:nth-child(n) {
    grid-column: auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }


  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail.reverse {
    direction: ltr;
  }

  .subsidy-cards {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline::before {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-6xl: 2.5rem;
    --fs-5xl: 2rem;
    --fs-4xl: 1.75rem;
    --fs-3xl: 1.5rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .section-padding {
    padding: var(--space-3xl) 0;
  }

  .nav-links,
  .nav-right .nav-cta,
  .nav-right .lang-selector {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-logo {
    gap: 8px;
    margin-left: -6px;
    border-radius: 10px;
  }

  .nav-logo-box {
    width: 152px;
    height: 46px;
    border-radius: 10px;
  }

  .nav-logo-wordmark {
    width: 122px;
    height: 24px;
  }

  .hero {
    min-height: auto;
    padding: calc(72px + var(--space-3xl)) 0 var(--space-3xl);
  }

  .hero-logo-shell {
    width: min(100%, 620px);
    border-radius: 14px;
  }

  .hero h1 {
    font-size: var(--fs-4xl);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .hero-visual {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }


  .form-row {
    grid-template-columns: 1fr;
  }


  .timeline {
    grid-template-columns: 1fr;
  }


  .page-hero {
    padding: calc(72px + var(--space-2xl)) 0 var(--space-2xl);
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-stat-number {
    font-size: var(--fs-3xl);
  }

  .stat-number {
    font-size: var(--fs-3xl);
  }

}

/* ================================================================
   Contact Popup Modal
   ================================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: var(--space-xl);
}

.popup-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.popup-modal {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  text-align: center;
  position: relative;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.popup-overlay.visible .popup-modal {
  transform: translateY(0);
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  color: var(--slate-light);
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.popup-close:hover {
  color: var(--navy);
}

.popup-icon {
  width: 72px;
  height: 72px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto var(--space-xl);
}

.popup-title {
  font-size: var(--fs-2xl);
  color: var(--navy);
  margin-bottom: var(--space-md);
}

.popup-msg {
  color: var(--slate);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.popup-close-btn {
  width: 100%;
}

/* --- Loader for form submission --- */
.loader {
  width: 18px;
  height: 18px;
  border: 2px solid var(--white);
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/* ================================================================
   Auto-hide del nav al hacer scroll hacia abajo (sólo móvil/tablet)
   ================================================================ */
@media (max-width: 1024px) {
  .navbar {
    transition: transform 0.3s ease;
    will-change: transform;
  }
  .navbar.nav-hidden {
    transform: translateY(-100%);
  }
}