/* ============================================
   TRES PORTONES - Styles
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --green-primary: #4a9b3f;
  --green-dark: #367a2e;
  --green-light: #e8f5e4;
  --green-accent: #5cb950;
  --dark: #2c2c2c;
  --dark-secondary: #444;
  --gray: #6b6b6b;
  --gray-light: #f5f5f5;
  --gray-medium: #e0e0e0;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto 50px;
}

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* stagger children */
.stagger > *:nth-child(1) { transition-delay: .05s; }
.stagger > *:nth-child(2) { transition-delay: .15s; }
.stagger > *:nth-child(3) { transition-delay: .25s; }
.stagger > *:nth-child(4) { transition-delay: .35s; }
.stagger > *:nth-child(5) { transition-delay: .45s; }
.stagger > *:nth-child(6) { transition-delay: .55s; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
  height: 78px;
}
.navbar.scrolled {
  height: 64px;
  border-bottom-color: var(--gray-medium);
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-logo img {
  width: 250px;
  transition: width var(--transition);
}
.navbar.scrolled .navbar-logo img {
  width: 120px;
}
.navbar-logo span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  line-height: 1.2;
}
.navbar-logo span em {
  font-style: normal;
  color: var(--green-primary);
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--dark-secondary);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--green-primary);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover {
  color: var(--green-primary);
}
.nav-btn {
  background: var(--green-primary);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .88rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.nav-btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(74,155,63,.35);
}
.nav-btn::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 3px;
  transition: all .3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 78px;
  background: linear-gradient(135deg, var(--green-light) 0%, var(--white) 50%, #f0f9ee 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(74,155,63,.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(74,155,63,.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { max-width: 560px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74,155,63,.1);
  color: var(--green-primary);
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero-badge svg { width: 16px; height: 16px; }
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 22px;
}
.hero-title .highlight {
  color: var(--green-primary);
  position: relative;
}
.hero-title .typed-text {
  display: inline-block;
  min-width: 260px;
  text-align: left;
}
.typed-cursor {
  animation: blink-cursor .7s step-end infinite;
}
@keyframes blink-cursor {
  0%, 100% { opacity: .6; }
  50% { opacity: 0; }
}
.hero-text {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-primary);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(74,155,63,.35);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--dark);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid var(--gray-medium);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
  transform: translateY(-3px);
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-graphic {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  position: relative;
}
.hero-graphic-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(74,155,63,.15);
  animation: pulse-ring 4s ease-in-out infinite;
}
.hero-graphic-circle:nth-child(1) {
  inset: 0;
}
.hero-graphic-circle:nth-child(2) {
  inset: 12%;
  border-color: rgba(74,155,63,.2);
  animation-delay: .5s;
}
.hero-graphic-circle:nth-child(3) {
  inset: 24%;
  border-color: rgba(74,155,63,.25);
  animation-delay: 1s;
}
.hero-graphic-logo {
  position: absolute;
  inset: 32%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}
.hero-graphic-logo img {
  width: 60%;
}
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: .7; }
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-medium);
}
.hero-stat h3 {
  font-size: 2rem;
  color: var(--green-primary);
  font-weight: 800;
}
.hero-stat p {
  font-size: .85rem;
  color: var(--gray);
  font-weight: 500;
}

/* ---------- ABOUT ---------- */
.about {
  padding: 110px 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image-wrapper {
  position: relative;
}
.about-image {
  width: 100%;
  height: 440px;
  background: linear-gradient(135deg, var(--green-light) 0%, #d4edda 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-image-icon {
  font-size: 6rem;
  opacity: .2;
}
.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--green-primary);
  color: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-image-badge h4 {
  color: var(--white);
  font-size: 1.8rem;
}
.about-image-badge p {
  font-size: .82rem;
  opacity: .85;
}
.about-text p {
  color: var(--gray);
  margin-bottom: 28px;
  font-size: 1.02rem;
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--green-primary);
}
.about-feature span {
  font-weight: 500;
  font-size: .95rem;
}

/* ---------- MISSION & VISION ---------- */
.mission-vision {
  padding: 100px 0;
  background: var(--gray-light);
}
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.mv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px 44px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.mv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.mv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-accent));
}
.mv-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.mv-icon svg {
  width: 28px;
  height: 28px;
  color: var(--green-primary);
}
.mv-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.mv-card p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.8;
}

/* ---------- SERVICES ---------- */
.services {
  padding: 110px 0;
  background: var(--white);
}
.services-header {
  text-align: center;
  margin-bottom: 60px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-medium);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 0;
  background: linear-gradient(180deg, transparent, rgba(74,155,63,.03));
  transition: height var(--transition);
}
.service-card:hover {
  border-color: var(--green-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::after {
  height: 100%;
}
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: var(--green-primary);
}
.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--green-primary);
  transition: color var(--transition);
}
.service-card:hover .service-icon svg {
  color: var(--white);
}
.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.service-card p {
  color: var(--gray);
  font-size: .95rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.service-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--gray);
  font-size: .92rem;
}
.service-list li svg {
  width: 18px;
  height: 18px;
  color: var(--green-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---------- PROJECTS ---------- */
.projects {
  padding: 110px 0;
  background: var(--dark);
  color: var(--white);
}
.projects .section-label { color: var(--green-accent); }
.projects .section-title { color: var(--white); }
.projects .section-subtitle { color: rgba(255,255,255,.6); }
.projects-header {
  text-align: center;
  margin-bottom: 60px;
}
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.project-item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 30px 34px;
  transition: all var(--transition);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.project-item:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(74,155,63,.3);
  transform: translateX(6px);
}
.project-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-accent);
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
}
.project-content h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}
.project-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
  padding: 4px 12px;
  border-radius: 50px;
}
.project-tag svg {
  width: 12px;
  height: 12px;
}

/* ---------- CERTIFICATIONS ---------- */
.certifications {
  padding: 100px 0;
  background: var(--gray-light);
}
.cert-header {
  text-align: center;
  margin-bottom: 60px;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.cert-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  border: 1px solid var(--gray-medium);
  transition: all var(--transition);
}
.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-primary);
}
.cert-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.cert-icon svg {
  width: 32px;
  height: 32px;
  color: var(--green-primary);
}
.cert-card h4 {
  font-size: .95rem;
  margin-bottom: 6px;
}
.cert-card p {
  font-size: .82rem;
  color: var(--gray);
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 110px 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info-header {
  margin-bottom: 36px;
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--gray-light);
  transition: all var(--transition);
}
.contact-card:hover {
  background: var(--green-light);
  transform: translateX(6px);
}
.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.contact-card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--green-primary);
}
.contact-card h4 {
  font-size: .95rem;
  margin-bottom: 4px;
}
.contact-card p,
.contact-card a {
  font-size: .9rem;
  color: var(--gray);
}
.contact-card a:hover {
  color: var(--green-primary);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.contact-form-wrapper h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.contact-form-wrapper > p {
  color: var(--gray);
  font-size: .92rem;
  margin-bottom: 30px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--gray-medium);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: .95rem;
  transition: all var(--transition);
  background: var(--white);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(74,155,63,.12);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--green-primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-submit:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,155,63,.35);
}

/* ---------- MAP ---------- */
.map-section {
  height: 400px;
  position: relative;
}
.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(10%);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img {
  height: 44px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  max-width: 300px;
}
.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: .9rem;
  transition: all var(--transition);
}
.footer-links a:hover {
  color: var(--green-accent);
  padding-left: 6px;
}
.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: .88rem;
}
.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--green-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.footer-socials a:hover {
  background: var(--green-primary);
  transform: translateY(-3px);
}
.footer-socials a svg {
  width: 18px;
  height: 18px;
  color: var(--white);
}

/* ---------- WHATSAPP FAB ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.5);
}
.whatsapp-fab svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}
.whatsapp-fab .pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: wa-pulse 2s ease-in-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ---------- BACK TO TOP ---------- */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 100px;
  z-index: 998;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.back-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-top:hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
  transform: translateY(-3px);
}
.back-top:hover svg {
  color: var(--white);
}
.back-top svg {
  width: 20px;
  height: 20px;
  color: var(--dark);
  transition: color var(--transition);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-text { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }
  .hero-stats { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { height: 320px; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .cert-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    font-size: 1.2rem;
  }
  .nav-links .nav-btn {
    padding: 14px 36px;
    font-size: 1rem;
    margin-top: 8px;
  }
  .hamburger { display: flex; }

  .hero { min-height: auto; padding: 140px 0 80px; }
  .hero-title .typed-text {
    min-width: 0;
  }
  .hero-stats { flex-direction: column; gap: 20px; align-items: center; }

  .mv-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }

  .projects-list { gap: 14px; }
  .project-item { flex-direction: column; padding: 24px; }
  .project-number { width: auto; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .cert-grid { grid-template-columns: 1fr; }
  .about-image-badge { position: static; margin-top: 16px; border-radius: var(--radius); }
  .navbar-logo img { width: 160px; }
}
