/* ============================================================
   FUNDACIÓN UNA VIDA DIGNA — Global Design System
   ============================================================ */

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

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Brand Colors */
  --color-primary:       #0d7fa0;   /* teal-blue principal */
  --color-primary-dark:  #095e77;
  --color-primary-light: #1aa3c8;
  --color-secondary:     #00b89c;   /* turquoise accent */
  --color-secondary-dark:#008f79;
  --color-gold:          #d4a849;   /* warm gold for highlights */
  --color-gold-light:    #f0c96e;

  /* Neutrals */
  --color-dark:          #0f1c26;
  --color-dark-2:        #1a2d3a;
  --color-dark-3:        #243548;
  --color-mid:           #4a6070;
  --color-light-mid:     #8faab8;
  --color-light:         #dce8ef;
  --color-pale:          #f0f6f9;
  --color-white:         #ffffff;

  /* Gradients */
  --grad-primary:    linear-gradient(135deg, #095e77 0%, #0d7fa0 50%, #00b89c 100%);
  --grad-hero:       linear-gradient(160deg, #0a1e2b 0%, #0d4a60 40%, #0a7a8f 75%, #009e88 100%);
  --grad-card:       linear-gradient(135deg, rgba(13,127,160,0.08) 0%, rgba(0,184,156,0.05) 100%);
  --grad-dark:       linear-gradient(180deg, #0f1c26 0%, #0d3044 100%);
  --grad-gold:       linear-gradient(135deg, #d4a849 0%, #f0c96e 100%);

  /* Typography */
  --font-body:       'Outfit', system-ui, sans-serif;
  --font-serif:      'Lora', Georgia, serif;

  /* Spacing scale */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  8rem;

  /* Border Radius */
  --radius-sm:  0.5rem;
  --radius-md:  1rem;
  --radius-lg:  1.5rem;
  --radius-xl:  2rem;
  --radius-full:50rem;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(13,127,160,0.12);
  --shadow-md:   0 8px 32px rgba(13,127,160,0.18);
  --shadow-lg:   0 20px 60px rgba(13,127,160,0.25);
  --shadow-glow: 0 0 40px rgba(0,184,156,0.25);

  /* Transitions */
  --transition-fast:   0.2s ease;
  --transition-base:   0.35s ease;
  --transition-slow:   0.6s ease;

  /* Layout */
  --container-max:  1200px;
  --nav-height:     80px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-white);
  color: var(--color-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 600; }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }

p { color: var(--color-mid); line-height: 1.8; }

.serif { font-family: var(--font-serif); }
.text-white { color: var(--color-white) !important; }
.text-white p { color: rgba(255,255,255,0.82) !important; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-gold { color: var(--color-gold); }
.text-center { text-align: center; }

/* --- Layout Utilities --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-sm {
  padding: var(--space-xl) 0;
}

.section-dark {
  background: var(--grad-dark);
}

.section-pale {
  background: var(--color-pale);
}

.section-primary {
  background: var(--grad-primary);
}

/* --- Section Heading --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-mid);
  max-width: 640px;
  margin: 0 auto var(--space-lg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(13,127,160,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13,127,160,0.5);
}

.btn-outline {
  border-color: var(--color-white);
  color: var(--color-white);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--color-dark);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(212,168,73,0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,168,73,0.5);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--transition-base);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-md);
  max-width: 1300px;
  margin: 0 auto;
}

.nav.scrolled {
  background: rgba(10,30,43,0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(13,127,160,0.2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 64px;
  width: 64px;
  border-radius: 50%;
  object-fit: contain;
  background-color: var(--color-white);
  border: 2px solid var(--color-secondary);
  padding: 2px;
  filter: drop-shadow(0 2px 8px rgba(0,184,156,0.3));
}

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

.nav-logo-text .logo-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.nav-logo-text .logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
}

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

.nav-cta {
  background: var(--grad-primary);
  color: var(--color-white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 4px 16px rgba(13,127,160,0.4);
  transition: all var(--transition-base);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(13,127,160,0.55);
}

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

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.card-glass {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.card-glass:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(0,184,156,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* --- Icon Box --- */
.icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(13,127,160,0.35);
}

.icon-box-lg {
  width: 80px;
  height: 80px;
  font-size: 2rem;
}

/* --- Grid Utilities --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); }

/* --- Flex Utilities --- */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* --- Stat Counter --- */
.stat-item {
  text-align: center;
  padding: var(--space-md);
}

.stat-number {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-2xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  height: 80px;
  width: 80px;
  border-radius: 50%;
  object-fit: contain;
  background-color: var(--color-white);
  border: 2px solid var(--color-secondary);
  padding: 2px;
  margin-bottom: var(--space-md);
  filter: brightness(1.1);
}

.footer-brand p {
  color: rgba(255,255,255,0.62);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 280px;
  margin-bottom: var(--space-md);
}

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

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-base);
  color: var(--color-white);
}

.social-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.62);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-col ul li a:hover {
  color: var(--color-secondary);
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: rgba(255,255,255,0.62);
  font-size: 0.88rem;
}

.footer-contact-item .icon {
  color: var(--color-secondary);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding: var(--space-md) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

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

/* --- Hero Section Base --- */
.hero {
  min-height: 100vh;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}

.hero-shape-1 {
  width: 600px;
  height: 600px;
  background: var(--color-secondary);
  top: -200px;
  right: -150px;
  animation: floatShape 8s ease-in-out infinite;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: var(--color-primary-light);
  bottom: -100px;
  left: -100px;
  animation: floatShape 10s ease-in-out infinite reverse;
}

.hero-shape-3 {
  width: 300px;
  height: 300px;
  background: var(--color-gold);
  top: 50%;
  left: 40%;
  opacity: 0.08;
  animation: floatShape 12s ease-in-out infinite;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -20px) scale(1.03); }
  66% { transform: translate(-10px, 15px) scale(0.98); }
}

/* --- Decorative Dividers --- */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* --- Badge / Tag --- */
.badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(13,127,160,0.12);
  color: var(--color-primary);
  border: 1px solid rgba(13,127,160,0.2);
}

.badge-secondary {
  background: rgba(0,184,156,0.12);
  color: var(--color-secondary);
  border: 1px solid rgba(0,184,156,0.2);
}

.badge-gold {
  background: rgba(212,168,73,0.12);
  color: var(--color-gold);
  border: 1px solid rgba(212,168,73,0.3);
}

/* --- Testimonial --- */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-light);
  transition: all var(--transition-base);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  font-size: 5rem;
  font-family: var(--font-serif);
  color: var(--color-primary);
  opacity: 0.12;
  line-height: 1;
}

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

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-lg);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-secondary);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-secondary);
}

.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-dark-3);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 2px solid var(--color-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(13,127,160,0.12);
}

.form-control::placeholder {
  color: var(--color-light-mid);
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234a6070'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 20px;
  padding-right: 2.5rem;
}

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,184,156,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(0,184,156,0); }
}

.animate-fade-up {
  animation: fadeInUp 0.7s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* --- Scroll-triggered Entrance Animations --- */
.js [data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.js [data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delay classes */
.js [data-animate].delay-1 { transition-delay: 0.1s; }
.js [data-animate].delay-2 { transition-delay: 0.2s; }
.js [data-animate].delay-3 { transition-delay: 0.3s; }
.js [data-animate].delay-4 { transition-delay: 0.4s; }
.js [data-animate].delay-5 { transition-delay: 0.5s; }

/* Custom animation variations */
.js [data-animate="fade-in"] {
  transform: none;
}
.js [data-animate="fade-in"].in-view {
  opacity: 1;
}

.js [data-animate="fade-left"] {
  transform: translateX(-40px);
}
.js [data-animate="fade-left"].in-view {
  opacity: 1;
  transform: translateX(0);
}

.js [data-animate="fade-right"] {
  transform: translateX(40px);
}
.js [data-animate="fade-right"].in-view {
  opacity: 1;
  transform: translateX(0);
}

.js [data-animate="zoom-in"] {
  transform: scale(0.92);
}
.js [data-animate="zoom-in"].in-view {
  opacity: 1;
  transform: scale(1);
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-md);
}

.breadcrumb a {
  color: var(--color-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--color-white); }

.breadcrumb .sep { color: rgba(255,255,255,0.35); }

/* --- Page Hero (inner pages) --- */
.page-hero {
  min-height: 50vh;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
}

/* --- Scroll to Top --- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

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

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* --- CTA Section --- */
.cta-section {
  background: var(--grad-primary);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-section p {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto var(--space-lg);
}

.cta-btns {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 70px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10,30,43,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid rgba(13,127,160,0.2);
    align-items: flex-start;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .section { padding: var(--space-xl) 0; }
}

@media (max-width: 480px) {
  .btn-lg { padding: 0.9rem 1.8rem; font-size: 0.95rem; }
  .container { padding: 0 var(--space-sm); }
}

/* --- Large Screens Optimization --- */
@media (min-width: 1400px) {
  :root {
    --container-max: 1360px;
    --space-md: 2rem;
    --space-lg: 3.5rem;
    --space-xl: 5rem;
  }
  html {
    font-size: 17px;
  }
  .nav-inner {
    max-width: 1460px;
  }
}

@media (min-width: 1800px) {
  :root {
    --container-max: 1560px;
    --space-md: 2.5rem;
    --space-lg: 4.5rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
  }
  html {
    font-size: 18px;
  }
  .nav-inner {
    max-width: 1660px;
  }
}
