:root {
  /* Triadic color scheme variables */
  --primary-color: #4A6FE3; /* Primary blue */
  --secondary-color: #E34A6F; /* Secondary pink/red */
  --tertiary-color: #6FE34A; /* Tertiary green */
  
  /* Shades and tints */
  --primary-dark: #2F4C9F;
  --primary-light: #7A93EA;
  --secondary-dark: #B33757;
  --secondary-light: #EA93A7;
  --tertiary-dark: #4FB32E;
  --tertiary-light: #A1EA7A;
  
  /* Neutral colors */
  --dark: #222222;
  --gray-dark: #444444;
  --gray: #777777;
  --gray-light: #DDDDDD;
  --light: #F7F7F7;
  --white: #FFFFFF;
  
  /* Shadow variables for neumorphism */
  --nm-shadow-light: 8px 8px 16px rgba(200, 200, 200, 0.4);
  --nm-shadow-dark: -8px -8px 16px rgba(255, 255, 255, 0.7);
  --nm-shadow-inset-light: inset 8px 8px 16px rgba(200, 200, 200, 0.4);
  --nm-shadow-inset-dark: inset -8px -8px 16px rgba(255, 255, 255, 0.7);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 2rem;
  --radius-circle: 50%;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base styles and typography */
body {
  font-family: 'Nunito', sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--dark);
}

.section-title {
  position: relative;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 15px auto 0;
  border-radius: var(--radius-sm);
}

p {
  margin-bottom: var(--space-sm);
}

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

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

/* Header styling */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar {
  min-height: 70px;
}

.navbar-item {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0 var(--space-sm);
  margin: 0 var(--space-xs);
  position: relative;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

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

.navbar-burger {
  height: 4rem;
}

.navbar-menu.is-active {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Hero section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

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

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

.hero .title, 
.hero .subtitle, 
.hero p {
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Neumorphic elements */
.neumorph-card {
  background-color: var(--light);
  border-radius: var(--radius-lg);
  box-shadow: var(--nm-shadow-light), var(--nm-shadow-dark);
  padding: var(--space-md);
  transition: all var(--transition-normal);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.neumorph-card:hover {
  transform: translateY(-5px);
  box-shadow: 10px 10px 20px rgba(200, 200, 200, 0.5), 
              -10px -10px 20px rgba(255, 255, 255, 0.8);
}

.neumorph-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--nm-shadow-light), var(--nm-shadow-dark);
  transition: all var(--transition-normal);
}

.neumorph-image:hover {
  transform: scale(1.02);
}

.neumorph-image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
  display: block;
}

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

.neumorph-button {
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: bold;
  letter-spacing: 0.5px;
  box-shadow: 5px 5px 10px rgba(200, 200, 200, 0.3), 
              -5px -5px 10px rgba(255, 255, 255, 0.5);
  transition: all var(--transition-normal);
  cursor: pointer;
  outline: none;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.neumorph-button:hover {
  background-color: var(--primary-dark);
  box-shadow: 3px 3px 6px rgba(200, 200, 200, 0.2), 
              -3px -3px 6px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.neumorph-button:active {
  box-shadow: var(--nm-shadow-inset-light), var(--nm-shadow-inset-dark);
  transform: translateY(0);
}

.neumorph-button-light {
  background-color: var(--light);
  color: var(--primary-color);
}

.neumorph-button-light:hover {
  background-color: var(--gray-light);
  color: var(--primary-dark);
}

.neumorph-input {
  background-color: var(--light);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  width: 100%;
  box-shadow: var(--nm-shadow-inset-light), var(--nm-shadow-inset-dark);
  transition: all var(--transition-normal);
  outline: none;
}

.neumorph-input:focus {
  box-shadow: inset 4px 4px 8px rgba(200, 200, 200, 0.5), 
              inset -4px -4px 8px rgba(255, 255, 255, 0.8);
}

/* Curved sections */
.curved-section {
  position: relative;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  background-color: var(--white);
}

.curved-section::before, 
.curved-section::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: var(--light);
}

.curved-section::before {
  top: 0;
  border-bottom-left-radius: 50% 20px;
  border-bottom-right-radius: 50% 20px;
}

.curved-section::after {
  bottom: 0;
  border-top-left-radius: 50% 20px;
  border-top-right-radius: 50% 20px;
}

/* Mission section */
#mision {
  position: relative;
  overflow: hidden;
}

#mision .content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Services section */
#servicios .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#servicios .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

#servicios .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-md);
}

#servicios .card-content h3 {
  margin-bottom: var(--space-sm);
}

#servicios .card-content p {
  margin-bottom: var(--space-md);
}

/* Process section */
.timeline {
  position: relative;
  padding: var(--space-md) 0;
}

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

.timeline-item {
  position: relative;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border: 5px solid var(--light);
  border-radius: var(--radius-circle);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  font-weight: bold;
  box-shadow: 0 0 0 4px rgba(74, 111, 227, 0.2);
  z-index: 10;
}

.timeline-content {
  width: 45%;
  margin-left: 55%;
  padding: var(--space-md);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

/* Team section */
#equipo .card {
  height: 100%;
  text-align: center;
  overflow: hidden;
}

#equipo .card-image {
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

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

#equipo .card-content {
  padding: var(--space-md);
}

/* Statistics section */
.stat-box {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.stat-box .icon {
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
}

.counter {
  font-size: 3rem;
  font-weight: 700;
  margin: var(--space-xs) 0;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pricing section */
.pricing-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--secondary-color);
  z-index: 10;
}

.pricing-card .tag {
  position: absolute;
  top: 20px;
  right: -30px;
  transform: rotate(45deg);
  padding: 5px 30px;
  background-color: var(--secondary-color);
  color: var(--white);
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pricing-card .price {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: var(--space-xs) 0;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
  text-align: left;
}

.pricing-card ul li {
  padding: var(--space-xs) 0;
  position: relative;
  padding-left: 25px;
}

.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--tertiary-color);
  font-weight: bold;
}

/* Resources section */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.resource-item {
  padding: var(--space-md);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
}

.resource-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.resource-item h3 {
  margin-bottom: var(--space-xs);
}

.resource-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.resource-item a:hover {
  color: var(--secondary-color);
}

/* Success stories section */
#casos .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#casos .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

#casos .card-content {
  flex-grow: 1;
  padding: var(--space-md);
}

/* Events calendar section */
.events-calendar {
  padding: var(--space-md);
}

.event-item {
  display: flex;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--gray-light);
}

.event-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.event-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  border-radius: var(--radius-md);
  margin-right: var(--space-md);
  padding: var(--space-xs);
  text-align: center;
  box-shadow: 0 5px 15px rgba(74, 111, 227, 0.3);
}

.event-date .month {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-date .day {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.event-details {
  flex-grow: 1;
}

.event-details h3 {
  margin-bottom: var(--space-xs);
}

.event-details .location {
  color: var(--gray);
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
}

.event-details .location i {
  margin-right: 5px;
  color: var(--secondary-color);
}

/* FAQ section */
.faq-container {
  padding: var(--space-md);
}

.faq-item {
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--gray-light);
}

.faq-question {
  padding: var(--space-sm) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-question h3 {
  margin: 0;
  flex-grow: 1;
}

.faq-question .icon {
  flex-shrink: 0;
  margin-left: var(--space-sm);
  color: var(--primary-color);
  transition: transform var(--transition-fast);
}

.faq-answer {
  display: none;
  padding-bottom: var(--space-md);
}

.faq-question.active .icon i {
  transform: rotate(180deg);
}

/* Contact section */
.contact-form {
  height: 100%;
}

.contact-form .field {
  margin-bottom: var(--space-sm);
}

.map-container {
  height: 100%;
}

.map-placeholder {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: var(--space-xl) 0;
}

.footer h3 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.footer p {
  color: var(--gray-light);
  margin-bottom: var(--space-sm);
}

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

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

.footer ul li a {
  color: var(--gray-light);
  transition: color var(--transition-fast);
}

.footer ul li a:hover {
  color: var(--primary-light);
}

.footer .social-links {
  margin-top: var(--space-md);
}

.footer .social-links a {
  color: var(--gray-light);
  margin-right: var(--space-xs);
  transition: color var(--transition-fast);
}

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

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

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

/* Privacy and Terms pages */
.privacy-page, .terms-page {
  padding-top: 100px;
  padding-bottom: var(--space-xl);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.neumorph-card, .neumorph-image, .section-title {
  opacity: 0;
}

/* Responsive styles */
@media screen and (max-width: 1023px) {
  .timeline::before {
    left: 20px;
  }
  
  .timeline-marker {
    left: 20px;
  }
  
  .timeline-content {
    width: 85%;
    margin-left: 50px;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    margin-right: 0;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
}

@media screen and (max-width: 768px) {
  .event-item {
    flex-direction: column;
  }
  
  .event-date {
    margin-right: 0;
    margin-bottom: var(--space-sm);
    width: 80px;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
  }
}

/* Card-specific styles to ensure proper alignment */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.card-image {
  width: 100%;
  text-align: center;
  overflow: hidden;
}

.card-image img {
  margin: 0 auto;
  display: block;
}

.card-content {
  width: 100%;
  text-align: left;
}

/* Image container styles */
.image-container {
  height: 300px;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Button styles for 'Read more' links */
.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-right: 20px;
  transition: all var(--transition-normal);
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-normal);
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more:hover::after {
  transform: translate(5px, -50%);
}

/* Ensure social media links in footer are text-based */
.footer .social-links a {
  margin: 0 10px;
  text-decoration: none;
}

/* Cookie consent styles */
#cookie-consent {
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--white);
  padding: 15px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  text-align: center;
}

#cookie-consent button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 8px 15px;
  margin-top: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

#cookie-consent button:hover {
  background-color: var(--primary-dark);
}