/* === Base Variables === */
:root {
  /* Color scheme */
  --color-primary: #2c3e50;
  --color-primary-light: #34495e;
  --color-primary-dark: #1a252f;
  --color-secondary: #3498db;
  --color-secondary-light: #5dade2;
  --color-secondary-dark: #2980b9;
  --color-accent: #e74c3c;
  --color-accent-light: #ec7063;
  --color-accent-dark: #c0392b;
  
  /* Neutral colors */
  --color-neutral-100: #f8f9fa;
  --color-neutral-200: #e9ecef;
  --color-neutral-300: #dee2e6;
  --color-neutral-400: #ced4da;
  --color-neutral-500: #adb5bd;
  --color-neutral-600: #6c757d;
  --color-neutral-700: #495057;
  --color-neutral-800: #343a40;
  --color-neutral-900: #212529;
  
  /* Text colors */
  --text-dark: #2c3e50;
  --text-light: #f8f9fa;
  --text-muted: #6c757d;
  
  /* Background colors */
  --bg-light: #ffffff;
  --bg-dark: #212529;
  --bg-gradient: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  --bg-gradient-accent: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Font sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  
  /* Line heights */
  --lh-tight: 1.25;
  --lh-normal: 1.5;
  --lh-loose: 1.75;
  
  /* Font weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  
  /* Container widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* === Reset & Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--fs-5xl);
}

h2 {
  font-size: var(--fs-4xl);
}

h3 {
  font-size: var(--fs-3xl);
}

h4 {
  font-size: var(--fs-2xl);
}

h5 {
  font-size: var(--fs-xl);
}

h6 {
  font-size: var(--fs-lg);
}

p {
  margin-bottom: var(--space-md);
  line-height: var(--lh-loose);
}

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

a:hover {
  color: var(--color-secondary-dark);
  text-decoration: underline;
}

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

ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

/* === Layout & Container === */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--color-accent);
  margin: var(--space-sm) auto 0;
  border-radius: var(--radius-full);
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: -var(--space-lg) auto var(--space-xl);
  color: var(--text-muted);
  font-size: var(--fs-lg);
}

/* === Buttons === */
.btn, 
button,
input[type='submit'] {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-md);
  line-height: 1;
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-primary);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover, 
button:hover,
input[type='submit']:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn:active, 
button:active,
input[type='submit']:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

.primary-btn {
  background-color: var(--color-secondary);
  color: var(--text-light);
}

.primary-btn:hover {
  background-color: var(--color-secondary-dark);
  color: var(--text-light);
}

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

.secondary-btn:hover {
  background-color: var(--color-secondary);
  color: var(--text-light);
}

/* === Header & Navigation === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  z-index: 100;
  padding: var(--space-md) 0;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.header.scrolled {
  padding: var(--space-sm) 0;
  background-color: rgba(255, 255, 255, 0.98);
}

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

.logo a {
  font-family: 'Raleway', sans-serif;
  font-weight: var(--fw-bold);
  font-size: var(--fs-2xl);
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.logo a:hover {
  color: var(--color-secondary);
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li {
  margin-left: var(--space-lg);
}

.nav-menu a {
  font-family: 'Raleway', sans-serif;
  font-weight: var(--fw-medium);
  color: var(--text-dark);
  text-decoration: none;
  position: relative;
  padding: var(--space-sm) 0;
}

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

.nav-menu a:hover {
  color: var(--color-secondary);
}

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

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

.burger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

/* === Hero Section === */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--text-light);
  padding-top: 80px;
}

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

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

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: var(--fs-5xl);
  margin-bottom: var(--space-lg);
  font-weight: var(--fw-bold);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: white;
}

.hero-content p {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-xl);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  color: white;
}

/* === Servicios Section === */
.servicios-section {
  background-color: var(--bg-light);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

.card-content {
  padding: var(--space-lg);
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-content h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-sm);
}

.card-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: var(--radius-full);
}

.animated-icon {
  margin-right: var(--space-sm);
  color: var(--color-secondary);
}

/* === Estadísticas Section === */
.estadisticas-section {
  background-color: var(--color-primary);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.estadisticas-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), transparent);
  z-index: 1;
}

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

.estadisticas-section .section-title,
.estadisticas-section .section-description {
  color: var(--text-light);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.stat-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  backdrop-filter: blur(5px);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

.stat-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
}

.counter {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-sm);
}

.stat-content span {
  font-size: var(--fs-2xl);
  margin-left: var(--space-xs);
  color: var(--color-secondary);
}

.stat-content p {
  width: 100%;
  margin-top: var(--space-sm);
  font-size: var(--fs-md);
}

/* === Investigación Section === */
.investigacion-section {
  background-color: var(--bg-light);
}

.research-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.research-item {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.research-item:hover {
  box-shadow: var(--shadow-lg);
}

.research-item.reverse {
  flex-direction: row-reverse;
}

.research-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: 350px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.research-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-slow);
}

.research-item:hover .research-image img {
  transform: scale(1.05);
}

.research-content {
  flex: 2;
  padding: var(--space-lg);
}

.research-content h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  font-size: var(--fs-2xl);
}

.accordion {
  margin-top: var(--space-md);
}

.accordion-header {
  background-color: var(--color-neutral-200);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--fw-medium);
  transition: all var(--transition-normal);
}

.accordion-header:hover {
  background-color: var(--color-neutral-300);
}

.accordion-header i {
  transition: all var(--transition-normal);
}

.accordion-header.active i {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 var(--space-md);
}

.accordion-content.active {
  max-height: 500px;
  padding: var(--space-md);
}

/* === Recursos Section === */
.recursos-section {
  background-color: var(--color-neutral-100);
}

.recursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.recurso-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.recurso-icon {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

.recurso-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.recurso-card p {
  margin-bottom: var(--space-lg);
  color: var(--text-muted);
}

.recurso-card a {
  font-weight: var(--fw-semibold);
  color: var(--color-secondary);
  transition: all var(--transition-normal);
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-xs);
}

.recurso-card a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width var(--transition-normal);
}

.recurso-card a:hover {
  color: var(--color-secondary-dark);
  text-decoration: none;
}

.recurso-card a:hover::after {
  width: 100%;
}

/* === Eventos Section === */
.eventos-section {
  background-color: var(--bg-light);
}

.eventos-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.evento-card {
  display: flex;
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

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

.evento-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 120px;
  padding: var(--space-md);
  background-color: var(--color-secondary);
  color: var(--text-light);
  text-align: center;
}

.evento-date .day {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  line-height: 1;
}

.evento-date .month {
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
}

.evento-details {
  padding: var(--space-lg);
  flex-grow: 1;
}

.evento-details h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.evento-info {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-size: var(--fs-sm);
}

.evento-info i {
  margin-right: var(--space-xs);
  color: var(--color-secondary);
}

.evento-details p {
  margin-bottom: var(--space-lg);
  color: var(--text-dark);
}

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

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: all var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

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

.gallery-overlay h3 {
  color: var(--text-light);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xs);
}

.gallery-overlay p {
  color: var(--color-neutral-300);
  font-size: var(--fs-sm);
  margin: 0;
}

/* === Contact Section === */
.contact-section {
  background-color: var(--bg-light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.info-item i {
  font-size: var(--fs-xl);
  color: var(--color-secondary);
  min-width: 24px;
  text-align: center;
}

.map-container {
  margin-top: var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 250px;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: var(--fw-medium);
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  font-family: 'Open Sans', sans-serif;
  font-size: var(--fs-md);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Style for form layout */
form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

/* === Footer === */
.footer {
  background-color: var(--color-primary);
  color: var(--text-light);
  padding: var(--space-xl) 0 var(--space-md);
}

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

.footer-logo h3 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-sm);
}

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

.footer-links h4 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: var(--radius-full);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--color-neutral-400);
  transition: all var(--transition-normal);
  position: relative;
  padding-left: var(--space-md);
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: 0;
  transition: all var(--transition-normal);
}

.footer-links a:hover {
  color: var(--text-light);
  text-decoration: none;
  padding-left: var(--space-lg);
}

.footer-links a:hover::before {
  left: 5px;
}

.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social li {
  margin-bottom: var(--space-sm);
}

.footer-social a {
  color: var(--color-neutral-400);
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
}

.footer-social a::before {
  font-family: 'Font Awesome 6 Brands';
  margin-right: var(--space-sm);
  font-size: var(--fs-lg);
}

.footer-social a[href*="facebook"]::before {
  content: '\f39e';
  color: #1877f2;
}

.footer-social a[href*="twitter"]::before {
  content: '\f099';
  color: #1da1f2;
}

.footer-social a[href*="instagram"]::before {
  content: '\f16d';
  color: #e1306c;
}

.footer-social a[href*="linkedin"]::before {
  content: '\f0e1';
  color: #0077b5;
}

.footer-social a:hover {
  color: var(--text-light);
  transform: translateX(5px);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--color-neutral-500);
  font-size: var(--fs-sm);
}

/* === Additional Pages === */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--space-xl);
}

.success-icon {
  font-size: 5rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
}

.success-content {
  max-width: 600px;
}

.content-page {
  padding-top: 100px;
  min-height: 80vh;
}

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

.content-page h1 {
  margin-bottom: var(--space-xl);
}

.content-page h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
}

/* === Responsive Styles === */
@media (max-width: 1200px) {
  :root {
    --fs-5xl: 2.5rem;
    --fs-4xl: 2rem;
    --fs-3xl: 1.75rem;
  }
}

@media (max-width: 992px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .research-item, 
  .research-item.reverse {
    flex-direction: column;
  }
  
  .research-image {
    max-width: 100%;
    min-width: 100%;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navigation {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    box-shadow: var(--shadow-md);
    padding: var(--space-md) 0;
    z-index: 99;
  }
  
  .navigation.active {
    display: block;
  }
  
  .nav-menu {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-menu li {
    margin: var(--space-md) 0;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .evento-card {
    flex-direction: column;
  }
  
  .evento-date {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    padding: var(--space-sm);
  }
  
  .evento-date .day {
    margin-right: var(--space-xs);
  }
  
  form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  :root {
    --fs-5xl: 2rem;
    --fs-4xl: 1.75rem;
    --fs-3xl: 1.5rem;
    --fs-2xl: 1.25rem;
  }
  
  .hero-content h1 {
    font-size: var(--fs-4xl);
  }
  
  .hero-content p {
    font-size: var(--fs-lg);
  }
  
  .services-container {
    grid-template-columns: 1fr;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* === Animations === */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 
  40% {transform: translateY(-20px);} 
  60% {transform: translateY(-10px);} 
}

.animated-icon {
  animation: bounce 2s infinite;
}

/* AOS animations fallback */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-right"] {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-left"] {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="zoom-in"] {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="flip-left"] {
  opacity: 0;
  transform: rotateY(90deg);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1) rotateY(0);
}
html,body{
  overflow-x: hidden;
}