:root {
  /* Основная монохромная палитра */
  --primary-color: #3a5a78;
  --primary-light: #4e7199;
  --primary-dark: #274059;
  --primary-very-dark: #152636;
  --primary-very-light: #6a8caf;
  
  /* Нейтральные цвета */
  --neutral-100: #f8f9fa;
  --neutral-200: #e9ecef;
  --neutral-300: #dee2e6;
  --neutral-400: #ced4da;
  --neutral-500: #adb5bd;
  --neutral-600: #6c757d;
  --neutral-700: #495057;
  --neutral-800: #343a40;
  --neutral-900: #212529;
  
  /* Акцентные цвета */
  --accent-color: #ff8a4c;
  --accent-light: #ffa66e;
  --accent-dark: #e06c2d;
  
  /* Функциональные цвета */
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  
  /* Параметры тени для нейроморфного дизайна */
  --nm-shadow-light: 5px 5px 10px rgba(0, 0, 0, 0.1);
  --nm-shadow-dark: -5px -5px 10px rgba(255, 255, 255, 0.1);
  --nm-border-radius: 15px;
  
  /* Параметры текста */
  --heading-font: 'Raleway', sans-serif;
  --body-font: 'Open Sans', sans-serif;
  
  /* Отступы */
  --section-padding: 80px 0;
  --container-padding: 0 20px;
  
  /* Переходы */
  --transition-fast: all 0.3s ease;
  --transition-medium: all 0.5s ease;
  --transition-slow: all 0.8s ease;
}

/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-800);
  background-color: var(--neutral-100);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  margin-bottom: 20px;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 3rem;
  margin-bottom: 30px;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  position: relative;
  margin-bottom: 40px;
}

h2:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 20px;
  color: var(--neutral-700);
}

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

a:hover {
  color: var(--primary-light);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

section {
  padding: var(--section-padding);
  position: relative;
}

.section-description {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
  color: var(--neutral-600);
  font-size: 1.1rem;
}

/* Кнопки */
.btn, 
button, 
input[type="submit"] {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--nm-border-radius);
  text-align: center;
  font-weight: 600;
  font-family: var(--heading-font);
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--nm-shadow-light);
}

.btn:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transition: var(--transition-fast);
}

.btn:hover:after {
  height: 100%;
}

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

.btn.primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.btn.secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn.small {
  padding: 8px 18px;
  font-size: 0.9rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition-fast);
  padding: 15px 0;
  backdrop-filter: blur(10px);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  flex-direction: column;
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
}

.logo p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--accent-color);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.main-nav a {
  color: var(--primary-dark);
  font-weight: 600;
  position: relative;
  padding: 8px 0;
}

.main-nav a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-fast);
}

.main-nav a:hover {
  color: var(--primary-color);
}

.main-nav a:hover:after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-dark);
  border-radius: 3px;
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  overflow: hidden;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  animation-delay: 0.3s;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: var(--neutral-200);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

/* Servicios Section */
.servicios {
  background-color: var(--neutral-100);
  position: relative;
}

.servicios:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(120deg, rgba(58, 90, 120, 0.03), transparent);
  z-index: 1;
}

.servicios .container {
  position: relative;
  z-index: 2;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.card {
  background-color: white;
  border-radius: var(--nm-border-radius);
  overflow: hidden;
  box-shadow: var(--nm-shadow-light);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 25px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.card-content p {
  color: var(--neutral-700);
  margin-bottom: 20px;
}

/* Progress Bars */
.progress-container {
  margin-top: 20px;
  width: 100%;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--neutral-700);
}

.progress-bar {
  height: 10px;
  background-color: var(--neutral-200);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 5px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  transition: width 1.5s ease;
}

/* Casos de Éxito Section */
.casos-exito {
  background-color: var(--neutral-200);
  position: relative;
}

.casos-exito:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(-120deg, rgba(58, 90, 120, 0.05), transparent);
  z-index: 1;
}

.casos-exito .container {
  position: relative;
  z-index: 2;
}

.casos-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

.casos-timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--primary-light);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent-color);
  border: 4px solid white;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(255, 138, 76, 0.2);
}

.timeline-content {
  width: 45%;
  padding: 20px;
  background-color: white;
  border-radius: var(--nm-border-radius);
  box-shadow: var(--nm-shadow-light);
  position: relative;
  margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: 55%;
}

.timeline-image {
  width: 100%;
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-content h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.timeline-content p {
  color: var(--neutral-700);
}

/* Investigación Section */
.investigacion {
  background-color: white;
}

.accordion-container {
  max-width: 900px;
  margin: 0 auto;
}

.accordion {
  margin-bottom: 15px;
  border-radius: var(--nm-border-radius);
  box-shadow: var(--nm-shadow-light);
  overflow: hidden;
  background-color: white;
}

.accordion-header {
  padding: 20px;
  background-color: var(--neutral-100);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.accordion-header h3 {
  margin-bottom: 0;
  font-size: 1.3rem;
  color: var(--primary-dark);
}

.accordion-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: var(--transition-fast);
}

.accordion.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.accordion.active .accordion-content {
  padding: 20px;
  max-height: 500px;
}

/* Recursos Financieros Section */
.recursos-financieros {
  background-color: var(--neutral-200);
  position: relative;
}

.recursos-financieros:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(45deg, rgba(58, 90, 120, 0.05), transparent);
  z-index: 1;
}

.recursos-financieros .container {
  position: relative;
  z-index: 2;
}

.recursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.recurso-card {
  background-color: white;
  border-radius: var(--nm-border-radius);
  padding: 25px;
  box-shadow: var(--nm-shadow-light);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.recurso-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.recurso-card h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-size: 1.3rem;
  line-height: 1.4;
}

.recurso-card p {
  color: var(--neutral-700);
  margin-bottom: 20px;
  flex-grow: 1;
}

.recurso-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Innovación Section */
.innovacion {
  background-color: white;
  position: relative;
}

.innovacion:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(-45deg, rgba(58, 90, 120, 0.03), transparent);
  z-index: 1;
}

.innovacion .container {
  position: relative;
  z-index: 2;
}

.innovacion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* Aliados Section */
.aliados {
  background-color: var(--neutral-100);
  position: relative;
}

.aliados:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(120deg, rgba(58, 90, 120, 0.05), transparent);
  z-index: 1;
}

.aliados .container {
  position: relative;
  z-index: 2;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.partner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  background-color: white;
  border-radius: var(--nm-border-radius);
  padding: 15px;
  box-shadow: var(--nm-shadow-light);
  transition: var(--transition-fast);
}

.partner-logo:hover {
  transform: scale(1.05);
}

.partner-logo img {
  max-width: 80%;
  max-height: 70px;
  object-fit: contain;
}

/* Galería Section */
.galeria {
  background-color: var(--neutral-200);
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.gallery-item {
  position: relative;
  border-radius: var(--nm-border-radius);
  overflow: hidden;
  box-shadow: var(--nm-shadow-light);
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-medium);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-caption h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: white;
}

.gallery-caption p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--neutral-300);
}

/* Blog Section */
.blog {
  background-color: white;
  position: relative;
}

.blog:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(-120deg, rgba(58, 90, 120, 0.03), transparent);
  z-index: 1;
}

.blog .container {
  position: relative;
  z-index: 2;
}

.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.blog-post {
  background-color: white;
  border-radius: var(--nm-border-radius);
  overflow: hidden;
  box-shadow: var(--nm-shadow-light);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.blog-post:hover .post-image img {
  transform: scale(1.1);
}

.post-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-content h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-size: 1.5rem;
  line-height: 1.4;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--neutral-600);
  margin-bottom: 15px;
}

.post-content p {
  color: var(--neutral-700);
  margin-bottom: 20px;
  flex-grow: 1;
}

.post-content .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Contacto Section */
.contacto {
  background-color: var(--neutral-100);
  position: relative;
}

.contacto:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(45deg, rgba(58, 90, 120, 0.05), transparent);
  z-index: 1;
}

.contacto .container {
  position: relative;
  z-index: 2;
}

.contacto-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-top: 50px;
}

.contacto-info {
  background-color: white;
  border-radius: var(--nm-border-radius);
  padding: 30px;
  box-shadow: var(--nm-shadow-light);
}

.info-item {
  margin-bottom: 30px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.info-item p {
  color: var(--neutral-700);
  margin-bottom: 0;
}

.contacto-form {
  background-color: white;
  border-radius: var(--nm-border-radius);
  padding: 30px;
  box-shadow: var(--nm-shadow-light);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--neutral-800);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(58, 90, 120, 0.1);
}

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

/* Footer */
.footer {
  background-color: var(--primary-very-dark);
  color: white;
  padding: 70px 0 20px;
  position: relative;
}

.footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.2), transparent);
  z-index: 1;
}

.footer .container {
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo h2 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 10px;
  text-align: left;
}

.footer-logo h2:after {
  display: none;
}

.footer-logo p {
  color: var(--neutral-400);
  margin-bottom: 0;
}

.footer-links h3,
.footer-legal h3,
.footer-social h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3:after,
.footer-legal h3:after,
.footer-social h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links ul,
.footer-legal ul,
.footer-social ul {
  list-style: none;
}

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

.footer-links a,
.footer-legal a,
.footer-social a {
  color: var(--neutral-400);
  transition: var(--transition-fast);
  display: inline-block;
  position: relative;
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-social a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--neutral-500);
  margin-bottom: 0;
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 20px;
  background-color: var(--neutral-100);
}

.success-content {
  max-width: 600px;
  background-color: white;
  border-radius: var(--nm-border-radius);
  padding: 50px;
  box-shadow: var(--nm-shadow-light);
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  background-color: var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
}

.success-content h1 {
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.success-content p {
  color: var(--neutral-700);
  margin-bottom: 30px;
}

/* About, Privacy, Terms Pages */
.page-content {
  padding-top: 120px;
  padding-bottom: 80px;
}

.page-content .container {
  max-width: 900px;
}

.page-content h1 {
  margin-bottom: 40px;
  text-align: center;
}

.page-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

.page-content h2:after {
  left: 0;
  transform: none;
}

.page-content p {
  margin-bottom: 20px;
}

/* Media Queries */
@media screen and (max-width: 991px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .contacto-container {
    grid-template-columns: 1fr;
  }
  
  .timeline-content {
    width: 80%;
    margin-left: 20%;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 20%;
    margin-right: 0;
  }
  
  .casos-timeline:before {
    left: 10%;
  }
  
  .timeline-dot {
    left: 10%;
  }
}

@media screen and (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition-medium);
    padding: 100px 40px 40px;
    overflow-y: auto;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 15px;
  }
  
  .mobile-menu-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .hero-content h1 {
    font-size: 2.3rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .timeline-content {
    width: 100%;
    margin-left: 0 !important;
  }
  
  .casos-timeline:before {
    display: none;
  }
  
  .timeline-dot {
    display: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links h3:after,
  .footer-legal h3:after,
  .footer-social h3:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links a:hover,
  .footer-legal a:hover,
  .footer-social a:hover {
    transform: translateX(0) scale(1.05);
  }
}

@media screen and (max-width: 576px) {
  .servicios-grid,
  .recursos-grid,
  .innovacion-cards,
  .blog-posts {
    grid-template-columns: 1fr;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-container {
    grid-template-columns: 1fr;
  }
  
  .card-image {
    height: 180px;
  }
  
  .success-content {
    padding: 30px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(58, 90, 120, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(58, 90, 120, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(58, 90, 120, 0);
  }
}

.animate-fadeIn {
  animation: fadeIn 1s ease forwards;
}

.animate-slideUp {
  animation: slideUp 1s ease forwards;
}

.animate-slideIn {
  animation: slideIn 1s ease forwards;
}

.animate-scaleUp {
  animation: scaleUp 1s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.mb-1 {
  margin-bottom: 10px;
}

.mb-2 {
  margin-bottom: 20px;
}

.mb-3 {
  margin-bottom: 30px;
}

.mb-4 {
  margin-bottom: 40px;
}

.mt-1 {
  margin-top: 10px;
}

.mt-2 {
  margin-top: 20px;
}

.mt-3 {
  margin-top: 30px;
}

.mt-4 {
  margin-top: 40px;
}

.py-1 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.py-2 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.py-3 {
  padding-top: 30px;
  padding-bottom: 30px;
}

.py-4 {
  padding-top: 40px;
  padding-bottom: 40px;
}

.px-1 {
  padding-left: 10px;
  padding-right: 10px;
}

.px-2 {
  padding-left: 20px;
  padding-right: 20px;
}

.px-3 {
  padding-left: 30px;
  padding-right: 30px;
}

.px-4 {
  padding-left: 40px;
  padding-right: 40px;
}