/* ============================================
   ECOGREEN - COOPERATIVA DE ENERGIA RENOVABLE
   Stylesheet Principal
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #2ecc71;
  --primary-dark: #27ae60;
  --primary-light: #a8e6cf;
  --secondary: #1a1a2e;
  --secondary-light: #16213e;
  --accent: #00b894;
  --accent-light: #55efc4;
  --white: #ffffff;
  --light: #f8f9fa;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --dark: #0d0d0d;
  --text: #2d3436;
  --text-light: #636e72;
  --gradient-1: linear-gradient(135deg, #2ecc71 0%, #00b894 100%);
  --gradient-2: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --gradient-3: linear-gradient(135deg, #a8e6cf 0%, #55efc4 50%, #2ecc71 100%);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px rgba(46,204,113,0.3);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

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

ul { list-style: none; }

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

.section-subtitle {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  position: relative;
}

.section-subtitle::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--primary);
  vertical-align: middle;
  margin-right: 12px;
}

.section-title {
  margin-bottom: 20px;
  color: var(--secondary);
}

.section-desc {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-1);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(46,204,113,0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(46,204,113,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--secondary);
  transform: translateY(-3px);
}

.btn-dark {
  background: var(--secondary);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--secondary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--white);
  transition: var(--transition);
}

.navbar.scrolled .nav-logo {
  color: var(--secondary);
}

.nav-logo svg {
  width: 40px;
  height: 40px;
}

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

.nav-link {
  padding: 10px 20px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  border-radius: 50px;
  transition: var(--transition);
  font-size: 0.95rem;
}

.navbar.scrolled .nav-link {
  color: var(--text);
}

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

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--primary);
  background: rgba(46,204,113,0.1);
}

.nav-cta {
  margin-left: 12px;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--secondary);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-2);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(46,204,113,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,184,148,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite 2s;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero-text h1 span {
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  color: rgba(255,255,255,0.75);
  font-size: 1.2rem;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-globe {
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(46,204,113,0.3), rgba(0,184,148,0.1));
  position: relative;
  animation: float 6s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-globe svg {
  width: 340px;
  height: 340px;
  opacity: 0.9;
}

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

.hero-stats-row {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  justify-content: center;
}

.hero-stat-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 20px 28px;
  border-radius: var(--radius);
  color: var(--white);
  text-align: center;
  transition: var(--transition);
  flex: 1;
  max-width: 170px;
}

.hero-stat-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(46,204,113,0.4);
  transform: translateY(-4px);
}

.hero-stat-card .stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-card .stat-label {
  font-size: 0.8rem;
  opacity: 0.7;
  line-height: 1.3;
}

/* Floating Particles */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* --- Section Padding --- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--light);
}

/* --- Features / Services --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-light);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: rgba(46,204,113,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-1);
  transform: rotate(-5deg) scale(1.1);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon svg {
  stroke: var(--white);
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--secondary);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- About / Nosotros Preview --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image-main {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-image-float {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.about-image-float .number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.about-image-float .label {
  font-size: 0.85rem;
  color: var(--text-light);
}

.about-content .section-subtitle { margin-bottom: 8px; }
.about-content .section-title { margin-bottom: 16px; }
.about-content .section-desc { margin-bottom: 32px; }

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.about-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(46,204,113,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}

.about-feature h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--secondary);
}

.about-feature p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* --- Atom Animation --- */
.atom-container {
  position: relative;
  width: 400px;
  height: 400px;
  transform-style: preserve-3d;
}

.atom-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  z-index: 10;
  animation: atom-core-pulse 3s ease-in-out infinite;
}

.atom-core svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(46, 204, 113, 0.6));
}

/* Glow ring behind core */
.atom-core::before {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,204,113,0.2) 0%, transparent 70%);
  animation: atom-core-pulse 3s ease-in-out infinite;
}

@keyframes atom-core-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}

.atom-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  margin-top: -150px;
  margin-left: -150px;
  border-radius: 50%;
  border: 1.5px solid rgba(46, 204, 113, 0.2);
}

/* Orbita 1 - casi vertical, inclinada a la izquierda */
.atom-orbit-1 {
  transform: rotateZ(0deg) rotateX(80deg);
  animation: atom-spin 7s linear infinite;
}

/* Orbita 2 - diagonal derecha */
.atom-orbit-2 {
  transform: rotateZ(60deg) rotateX(80deg);
  animation: atom-spin 9s linear infinite reverse;
}

/* Orbita 3 - diagonal izquierda */
.atom-orbit-3 {
  transform: rotateZ(120deg) rotateX(80deg);
  animation: atom-spin 11s linear infinite;
}

.atom-electron {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #55efc4;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(85, 239, 196, 0.9), 0 0 30px rgba(85, 239, 196, 0.5), 0 0 50px rgba(85, 239, 196, 0.2);
}

.atom-orbit-1 .atom-electron {
  top: -8px;
  left: 50%;
  margin-left: -8px;
}

.atom-orbit-2 .atom-electron {
  bottom: -8px;
  left: 50%;
  margin-left: -8px;
}

.atom-orbit-3 .atom-electron {
  top: 50%;
  right: -8px;
  margin-top: -8px;
}

@keyframes atom-spin {
  from { transform: rotateZ(var(--rz, 0deg)) rotateX(80deg) rotateZ(0deg); }
  to   { transform: rotateZ(var(--rz, 0deg)) rotateX(80deg) rotateZ(360deg); }
}

/* Use individual animations per orbit to maintain their unique rotateZ */
.atom-orbit-1 { animation-name: atom-spin-1; }
.atom-orbit-2 { animation-name: atom-spin-2; }
.atom-orbit-3 { animation-name: atom-spin-3; }

@keyframes atom-spin-1 {
  from { transform: rotateZ(0deg) rotateX(80deg) rotate(0deg); }
  to   { transform: rotateZ(0deg) rotateX(80deg) rotate(360deg); }
}

@keyframes atom-spin-2 {
  from { transform: rotateZ(60deg) rotateX(80deg) rotate(0deg); }
  to   { transform: rotateZ(60deg) rotateX(80deg) rotate(360deg); }
}

@keyframes atom-spin-3 {
  from { transform: rotateZ(120deg) rotateX(80deg) rotate(0deg); }
  to   { transform: rotateZ(120deg) rotateX(80deg) rotate(360deg); }
}

/* --- Stats Banner --- */
.stats-banner {
  background: var(--gradient-2);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232ecc71' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-item .stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 1rem;
  opacity: 0.8;
}

/* --- Beneficios --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}

.benefit-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.benefit-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

.benefit-card h3 {
  margin-bottom: 8px;
  color: var(--secondary);
}

.benefit-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- Testimonials --- */
.testimonials-wrapper {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 30px;
  animation: scroll-testimonials 30s linear infinite;
}

@keyframes scroll-testimonials {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonials-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  min-width: 380px;
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  flex-shrink: 0;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 20px;
  height: 20px;
  fill: #f1c40f;
}

.testimonial-text {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-info h4 {
  font-size: 0.95rem;
  color: var(--secondary);
}

.testimonial-info span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- CTA Section --- */
.cta-section {
  background: var(--gradient-1);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

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

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

.cta-content h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-content .btn-dark {
  background: var(--white);
  color: var(--primary-dark);
  font-weight: 700;
}

.cta-content .btn-dark:hover {
  background: var(--secondary);
  color: var(--white);
}

/* --- Footer --- */
.footer {
  background: var(--secondary);
  color: var(--white);
  padding: 80px 0 0;
}

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

.footer-brand p {
  color: rgba(255,255,255,0.6);
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--white);
}

.footer-links li {
  margin-bottom: 12px;
}

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

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

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

.footer-contact li svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  flex-shrink: 0;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* --- Contact Page --- */
.page-hero {
  background: var(--gradient-2);
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46,204,113,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  max-width: 550px;
  margin: 0 auto;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}

.contact-info-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.contact-info-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(46,204,113,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--secondary);
}

.contact-info-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-info-card a {
  color: var(--primary);
  font-weight: 500;
}

.contact-form {
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  margin-bottom: 8px;
  color: var(--secondary);
}

.contact-form > p {
  color: var(--text-light);
  margin-bottom: 32px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(46,204,113,0.1);
}

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

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

.contact-form .btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1.05rem;
}

/* --- About Page Specific --- */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mv-card {
  padding: 48px 36px;
  border-radius: var(--radius);
  text-align: center;
}

.mv-card.mission {
  background: var(--gradient-1);
  color: var(--white);
}

.mv-card.vision {
  background: var(--secondary);
  color: var(--white);
}

.mv-card svg {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.mv-card h3 {
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.mv-card p {
  opacity: 0.85;
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  text-align: center;
  padding: 40px 30px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.value-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(46,204,113,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.value-card:hover .value-icon {
  background: var(--gradient-1);
  transform: scale(1.1);
}

.value-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--primary);
  transition: var(--transition);
}

.value-card:hover .value-icon svg {
  stroke: var(--white);
}

.value-card h3 {
  margin-bottom: 12px;
  color: var(--secondary);
}

.value-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--gradient-1);
  border-radius: 3px;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  margin-bottom: 50px;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.timeline-content {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
}

.timeline-content h4 {
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-content h3 {
  margin-bottom: 8px;
  color: var(--secondary);
}

.timeline-content p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* --- Animations (Scroll Reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.active > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text p { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }
  .hero-stats-row { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-hero-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--secondary);
    flex-direction: column;
    padding: 100px 40px 40px;
    transition: var(--transition);
    gap: 8px;
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }

  .nav-menu .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 14px 20px;
    width: 100%;
    font-size: 1.1rem;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
  }

  .nav-cta { margin-left: 0; margin-top: 16px; }

  .nav-toggle { display: flex; }

  .section { padding: 70px 0; }
  .benefits-grid { grid-template-columns: 1fr; }
  .mission-vision { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .testimonial-card { min-width: 300px; }

  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline::before { left: 15px; }
  .timeline-dot { left: 15px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .contact-form { padding: 28px 20px; }
  .feature-card { padding: 28px 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat-item .stat-number { font-size: 2.2rem; }
}

/* --- Overlay for mobile menu --- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  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);
  z-index: 999;
  transition: var(--transition);
  animation: whatsapp-pulse 2s infinite;
}

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

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

@keyframes whatsapp-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.7); }
}

/* --- Scroll to top --- */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 34px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  border: none;
}

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

.scroll-top:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
}

/* --- Page loader --- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--secondary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(46,204,113,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Smooth counter animation placeholder --- */
.count-up {
  display: inline-block;
}
