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

:root {
  --primary: #5A7D0A;
  --primary-dark: #3D5E06;
  --primary-accent: #97C318;
  --secondary: #1B2A4A;
  --bg: #FFFFFF;
  --surface: #F8F9FA;
  --text: #2D3436;
  --text-light: #636E72;
  --border: #E9ECEF;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.3;
  font-weight: 600;
}

/* ───── Skip to content ───── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ───── Navbar ───── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: rgba(27,42,74,0.85);
  backdrop-filter: blur(8px);
}

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

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.nav-logo:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-logo img {
  height: 42px;
  width: auto;
  transition: var(--transition);
  filter: brightness(0) invert(1);
}

.nav-logo span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  transition: var(--transition);
}

.navbar.scrolled .nav-logo img {
  height: 36px;
  filter: none;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.navbar.scrolled .nav-links a {
  color: var(--text-light);
}

.nav-links a:focus-visible {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 2px;
}

.navbar.scrolled .nav-links a:focus-visible {
  outline-color: var(--primary);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--primary);
  background: rgba(90,125,10,0.08);
}

/* Nav overlay (mobile) */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0,0,0,0.3);
  -webkit-tap-highlight-color: transparent;
  -webkit-overflow-scrolling: touch;
}

.nav-overlay.open {
  display: block;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--text);
}

.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 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(27,42,74,0.85) 0%,
    rgba(27,42,74,0.6) 50%,
    rgba(90,125,10,0.3) 100%);
  z-index: 1;
}

/* ───── Hero Carousel ───── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
  z-index: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.6rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255,255,255,0.7);
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 6rem 0 4rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(90,125,10,0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(90,125,10,0.45);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

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

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

/* ───── Sections ───── */
.section {
  padding: 6rem 0;
}

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--secondary);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.section-badge {
  display: inline-block;
  background: rgba(90,125,10,0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* ───── About ───── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(27,42,74,0.1));
}

.about-content h3 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 1.2rem;
  font-size: 0.975rem;
}

.founder-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.founder-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.founder-card strong {
  display: block;
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

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

.founder-links {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.founder-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--text-light);
  transition: var(--transition);
}

.founder-links a:hover {
  color: #0077B5;
  background: rgba(0,119,181,0.08);
}

/* ───── Misión y Visión ───── */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mv-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.mv-card:hover {
  border-color: var(--primary-accent);
  background: #fff;
  box-shadow: var(--shadow);
}

.mv-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.mv-card p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 400;
}

/* ───── Stats ───── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

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

/* ───── Proyectos ───── */
.proyectos-tabs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.proyecto-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.proyecto-tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.proyecto-tab:hover {
  border-color: var(--primary-accent);
  color: var(--primary);
}

.proyecto-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(90,125,10,0.3);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0,0,0,0.08);
}

.proyecto-tab.active .tab-count {
  background: rgba(255,255,255,0.2);
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  min-height: 200px;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.proyecto-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--primary-accent);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  animation: cardIn 0.4s ease both;
}

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

.proyecto-card .p-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.proyecto-card .p-institution {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
}

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

/* ───── Experience Cards ───── */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.exp-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.exp-card .exp-icon {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.exp-card-body {
  padding: 1.75rem 1.75rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.exp-card h4 {
  font-size: 1.05rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.exp-card h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary-accent);
  border-radius: 1px;
}

.exp-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.75;
  flex: 1;
}

/* ───── Services ───── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.services-grid .service-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 600px;
  margin: 0 auto;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.service-icon {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.service-card-body {
  padding: 1.75rem 1.75rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h4 {
  font-size: 1.05rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.service-card h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary-accent);
  border-radius: 1px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.75;
  flex: 1;
}

/* ───── FAQ ───── */
.faq-grid {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  transition: var(--transition);
}

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 300;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"]::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer > div {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

/* ───── Contact ───── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  background: #fff;
  outline: none;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(90,125,10,0.1);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(90,125,10,0.1);
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-text strong {
  display: block;
  color: var(--secondary);
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

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

/* ───── Form feedback ───── */
.form-feedback {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0;
  min-height: 1.5rem;
}

.form-feedback.error {
  color: #C0392B;
}

.form-feedback.success {
  color: var(--primary);
}

/* ───── Footer ───── */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

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

.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

.footer-links a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 2px;
}

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

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

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-social a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--primary-accent);
  text-decoration: none;
}

.footer-bottom a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ───── Animations ───── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ───── Back to top ───── */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(27,42,74,0.8);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  line-height: 1;
}

.back-to-top.visible {
  opacity: 0.7;
  transform: scale(1);
}

.back-to-top:hover {
  opacity: 1;
  background: var(--secondary);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ───── Reduced motion ───── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .carousel-slide,
  .carousel-slide img {
    transition: none;
  }

  .fade-in,
  .fade-in-left,
  .fade-in-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ───── Responsive ───── */
@media (max-width: 1024px) {
  .about-grid { gap: 3rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-overlay.open {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    z-index: 999;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 2rem 2rem;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    gap: 0;
    margin: 0;
  }

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

  .nav-links a {
    font-size: 1rem;
    padding: 0.7rem 1rem;
    color: var(--text) !important;
    border-radius: var(--radius-sm);
    width: auto;
    display: inline-block;
    border: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--primary) !important;
    background: rgba(90,125,10,0.08) !important;
  }

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

  .exp-icon,
  .service-icon {
    height: 140px;
  }

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

  .proyectos-tabs {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .founder-cards {
    grid-template-columns: 1fr;
  }

  .hero-content { text-align: center; }
  .hero-content .btn { margin: 0 auto; }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }

  .footer-social {
    justify-content: center;
  }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .section { padding: 4rem 0; }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .exp-icon,
  .service-icon {
    height: 100px;
  }
}
