/* ====== CSS VARIABLES ====== */
:root {
  /* Color palette (Complementary color scheme) */
  --primary-color: #8C3A2D;       /* Deep maroon/red - Primary */
  --primary-light: #B26358;       /* Lighter maroon - Hover */
  --primary-dark: #5E2820;        /* Darker maroon - Active */
  
  --secondary-color: #2D688C;     /* Blue-teal - Complementary color */
  --secondary-light: #5889A6;     /* Lighter teal */
  --secondary-dark: #1D4A66;      /* Darker teal */
  
  --accent-color: #E6A65D;        /* Golden yellow accent */
  --accent-light: #FFCB8C;        /* Light gold */
  --accent-dark: #B57B3E;         /* Dark gold */
  
  /* Neutrals */
  --neutral-900: #212121;         /* Near black */
  --neutral-800: #424242;         /* Very dark gray */
  --neutral-700: #616161;         /* Dark gray */
  --neutral-600: #757575;         /* Medium dark gray */
  --neutral-500: #9E9E9E;         /* Medium gray */
  --neutral-400: #BDBDBD;         /* Medium light gray */
  --neutral-300: #E0E0E0;         /* Light gray */
  --neutral-200: #EEEEEE;         /* Very light gray */
  --neutral-100: #F5F5F5;         /* Nearly white */
  --neutral-50: #FAFAFA;          /* White-ish */
  
  /* Biomorphic shapes - for decorative elements */
  --blob-1: 70% 30% 70% 30% / 30% 70% 30% 70%;
  --blob-2: 60% 40% 60% 40% / 40% 60% 40% 60%;
  --blob-3: 50% 50% 30% 70% / 60% 40% 70% 30%;
  
  /* Typography */
  --heading-font: 'Space Grotesk', sans-serif;
  --body-font: 'DM Sans', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  --space-xxxl: 4rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ====== GENERAL STYLES ====== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--body-font);
  color: var(--neutral-800);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--neutral-50);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 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: 0 var(--space-lg);
}

/* ====== BUTTONS ====== */
.button {
  font-family: var(--body-font);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.button:hover, .button:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button:active {
  transform: translateY(0);
}

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

.is-primary:hover, .is-primary:focus {
  background-color: var(--primary-light);
  color: white;
}

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

.is-secondary:hover, .is-secondary:focus {
  background-color: var(--secondary-light);
  color: white;
}

.is-outlined {
  background-color: transparent;
  border-color: currentColor;
}

.is-primary.is-outlined {
  color: var(--primary-color);
}

.is-primary.is-outlined:hover, .is-primary.is-outlined:focus {
  background-color: var(--primary-color);
  color: white;
}

.is-rounded {
  border-radius: var(--radius-pill);
}

/* ====== HEADER/NAVBAR ====== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  background-color: transparent;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  padding: var(--space-md) 0;
}

.navbar-brand {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-item {
  padding: var(--space-sm) var(--space-md);
  color: white;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

.navbar-item:hover::after {
  width: 100%;
}

.header.scrolled .navbar-item {
  color: var(--neutral-800);
}

.navbar-burger {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  padding: 0;
}

@media screen and (max-width: 768px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow-md);
    padding: var(--space-md);
  }
  
  .navbar-menu.is-active {
    display: block;
  }
  
  .navbar-burger {
    display: block;
  }
  
  .navbar-item {
    color: var(--neutral-800);
    display: block;
    padding: var(--space-md);
  }
}

/* ====== HERO SECTION ====== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-xxl) 0;
}

.hero .title {
  color: white;
  margin-bottom: var(--space-lg);
  font-size: 3.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 1s forwards 0.5s;
}

.hero .subtitle {
  color: white;
  margin-bottom: var(--space-xl);
  font-size: 1.8rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 1s forwards 0.8s;
}

.hero p {
  color: white;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 1s forwards 1.1s;
}

.hero .buttons {
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 1s forwards 1.4s;
}

@keyframes fadeInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ====== INSTRUCTORS SECTION ====== */
.section {
  padding: var(--space-xxl) 0;
}

#instructores .card {
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

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

#instructores .card-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

#instructores .card:hover .card-image img {
  transform: scale(1.05);
}

#instructores .card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#instructores .title {
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
}

#instructores .subtitle {
  color: var(--neutral-600);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

/* ====== PROJECTS SECTION ====== */
#proyectos {
  background-color: var(--neutral-100);
  position: relative;
  overflow: hidden;
}

#proyectos::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background-color: rgba(230, 166, 93, 0.1);
  border-radius: var(--blob-1);
  z-index: 1;
}

#proyectos::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background-color: rgba(45, 104, 140, 0.1);
  border-radius: var(--blob-2);
  z-index: 1;
}

#proyectos .card {
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  background-color: white;
}

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

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

#proyectos .card-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

#proyectos .card:hover .card-image img {
  transform: scale(1.05);
}

#proyectos .card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#proyectos .title {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

#proyectos .button {
  margin-top: auto;
  align-self: flex-start;
}

/* ====== RESEARCH SECTION ====== */
#investigacion {
  background-color: white;
  position: relative;
}

#investigacion .title.is-2 {
  color: var(--primary-color);
  margin-bottom: var(--space-xl);
}

#investigacion .title.is-4 {
  color: var(--secondary-color);
  margin-bottom: var(--space-md);
}

#investigacion img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 100%;
  height: auto;
  transition: transform var(--transition-normal);
}

#investigacion img:hover {
  transform: scale(1.02);
}

/* ====== RESOURCES SECTION ====== */
#recursos {
  background-color: var(--neutral-100);
  position: relative;
  overflow: hidden;
}

#recursos .card {
  height: 100%;
  border-radius: var(--radius-md);
  background-color: white;
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

#recursos .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#recursos .title {
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

#recursos .button {
  margin-top: auto;
}

/* ====== TESTIMONIALS SECTION ====== */
#testimonios {
  background-color: white;
}

#testimonios .card {
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: white;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

#testimonios .card-content {
  padding: var(--space-lg);
}

#testimonios .media {
  margin-bottom: var(--space-md);
}

#testimonios .media-left {
  margin-right: var(--space-md);
}

#testimonios .image {
  overflow: hidden;
  border-radius: 50%;
}

#testimonios .image img {
  width: 96px;
  height: 96px;
  object-fit: cover;
}

#testimonios .title {
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
}

#testimonios .subtitle {
  color: var(--neutral-600);
  margin-bottom: 0;
  font-weight: 500;
}

#testimonios .content p {
  color: var(--neutral-700);
  font-style: italic;
  position: relative;
  padding-left: var(--space-md);
}

#testimonios .content p::before {
  content: "";
  font-size: 3rem;
  position: absolute;
  left: -10px;
  top: -20px;
  color: var(--primary-light);
  opacity: 0.3;
}

/* ====== SUSTAINABILITY SECTION ====== */
#sostenibilidad {
  background-color: var(--neutral-100);
  position: relative;
  overflow: hidden;
}

#sostenibilidad .title.is-2 {
  color: var(--primary-color);
  margin-bottom: var(--space-xl);
}

#sostenibilidad .title.is-4 {
  color: var(--secondary-color);
  margin-bottom: var(--space-md);
}

#sostenibilidad img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 100%;
  height: auto;
  transition: transform var(--transition-normal);
}

#sostenibilidad img:hover {
  transform: scale(1.02);
}

#sostenibilidad ul {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-lg);
}

#sostenibilidad li {
  margin-bottom: var(--space-sm);
  position: relative;
}

#sostenibilidad li::before {
  content: '•';
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: -20px;
}

/* ====== CLIENTELE SECTION ====== */
#clientes {
  background-color: white;
}

#clientes .box {
  height: 100%;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background-color: white;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

#clientes .icon {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  transition: transform var(--transition-normal);
}

#clientes .box:hover .icon {
  transform: scale(1.1);
}

#clientes .title {
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

/* ====== FAQ SECTION ====== */
#faq {
  background-color: var(--neutral-100);
}

#faq .card {
  height: 100%;
  border-radius: var(--radius-md);
  background-color: white;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

#faq .card-content {
  padding: var(--space-lg);
}

#faq .title {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  position: relative;
  padding-left: var(--space-lg);
}

#faq .title::before {
  content: 'Q';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.5rem;
  color: var(--accent-color);
  font-weight: 700;
}

/* ====== CONTACT SECTION ====== */
#contacto {
  background-color: white;
}

#contacto .title.is-2 {
  color: var(--primary-color);
  margin-bottom: var(--space-xl);
}

#contacto .title.is-4, 
#contacto .title.is-5 {
  color: var(--secondary-color);
  margin-bottom: var(--space-md);
}

#contacto form {
  margin-bottom: var(--space-lg);
}

#contacto .label {
  font-weight: 500;
  color: var(--neutral-700);
  margin-bottom: var(--space-xs);
}

#contacto .input, 
#contacto .textarea, 
#contacto .select select {
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-300);
  padding: var(--space-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

#contacto .input:focus, 
#contacto .textarea:focus, 
#contacto .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(140, 58, 45, 0.2);
}

#contacto .field {
  margin-bottom: var(--space-md);
}

#contacto .checkbox {
  display: flex;
  align-items: center;
}

#contacto .checkbox input {
  margin-right: var(--space-sm);
}

#contacto .image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

#contacto .image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ====== FOOTER ====== */
.footer {
  padding: var(--space-xl) 0;
  color: white;
  background-color: var(--neutral-900);
}

.footer .title {
  color: white;
  margin-bottom: var(--space-md);
}

.footer p {
  margin-bottom: var(--space-md);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
}

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

.footer a {
  color: white;
  transition: color var(--transition-fast);
}

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

.footer .input {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border: none;
  padding: var(--space-sm) var(--space-md);
}

.footer .button {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.footer .social-links {
  display: flex;
  gap: var(--space-md);
}

.footer .social-links a {
  color: white;
  transition: color var(--transition-fast);
}

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

/* ====== SUCCESS PAGE ====== */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--space-lg);
}

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

.success-content .title {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

.success-content .icon {
  color: var(--accent-color);
  font-size: 4rem;
  margin-bottom: var(--space-lg);
}

/* ====== TERMS & PRIVACY PAGES ====== */
.terms-page, 
.privacy-page {
  padding-top: 100px;
  padding-bottom: var(--space-xxl);
}

.terms-page .title, 
.privacy-page .title {
  color: var(--primary-color);
  margin-bottom: var(--space-lg);
}

.terms-page p, 
.privacy-page p {
  margin-bottom: var(--space-md);
}

.terms-page ul, 
.privacy-page ul {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.terms-page li, 
.privacy-page li {
  margin-bottom: var(--space-sm);
}

/* ====== ANIMATIONS ====== */
@keyframes floatAnimation {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float {
  animation: floatAnimation 3s ease-in-out infinite;
}

/* Micro-animations */
.micro-pulse {
  transition: transform 0.3s ease;
}

.micro-pulse:hover {
  transform: scale(1.05);
}

.micro-rotate {
  transition: transform 0.3s ease;
}

.micro-rotate:hover {
  transform: rotate(5deg);
}

/* ====== RESPONSIVE ADJUSTMENTS ====== */
@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
  
  #instructores .card-image img,
  #proyectos .card-image img {
    height: 250px;
  }
}

@media screen and (max-width: 480px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .button {
    margin-bottom: var(--space-sm);
    width: 100%;
  }
}

/* Font Awesome Icons (for compatibility) */
.fas {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}

.navbar-burger{
  display: none;
}
.navbar{
  background-color: #787878;
}