/* ===== CSS Variables for Theme ===== */
:root {
  /* Primary Colors - Analogous Scheme */
  --primary-color: #3a57e8;
  --primary-light: #5a77ff;
  --primary-dark: #1e3cbc;
  
  /* Secondary/Accent Colors */
  --secondary-color: #6c5ce7;
  --secondary-light: #8c7cff;
  --secondary-dark: #5345c0;
  
  /* Tertiary Colors */
  --tertiary-color: #00b8d9;
  --tertiary-light: #23e0ff;
  --tertiary-dark: #0095b1;
  
  /* Neutral Colors */
  --neutral-100: #ffffff;
  --neutral-200: #f7f9fc;
  --neutral-300: #edf2f7;
  --neutral-400: #e2e8f0;
  --neutral-500: #cbd5e0;
  --neutral-600: #a0aec0;
  --neutral-700: #718096;
  --neutral-800: #4a5568;
  --neutral-900: #2d3748;
  --neutral-1000: #1a202c;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  
  /* Card & Section Styling */
  --card-radius: 16px;
  --card-shadow: 0 8px 32px 0 var(--glass-shadow);
  --card-border: 1px solid var(--glass-border);
  --section-padding: 80px 0;
  
  /* Typography */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Source Sans Pro', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

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

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

body {
  font-family: var(--body-font);
  color: var(--neutral-900);
  background-color: var(--neutral-200);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--neutral-900);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--neutral-800);
}

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

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

ul {
  list-style: none;
}

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

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  color: var(--neutral-900);
}

.section-header h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--neutral-700);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(58, 87, 232, 0.3);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(58, 87, 232, 0.4);
  color: white;
}

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

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(58, 87, 232, 0.2);
}

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

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Input elements styling matching button aesthetics */
input[type='submit'] {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(58, 87, 232, 0.3);
}

input[type='submit']:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(58, 87, 232, 0.4);
}

/* ===== Card Styles ===== */
.card {
  background: var(--neutral-100);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

.card-content {
  padding: 25px;
  text-align: center;
}

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

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

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

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

.logo a {
  color: var(--primary-color);
}

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

.nav-list {
  display: flex;
}

.nav-list li {
  margin-left: 30px;
}

.nav-list a {
  color: var(--neutral-900);
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition-fast);
  padding: 8px 0;
  position: relative;
}

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

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

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

.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--neutral-900);
  margin: 2px 0;
  transition: all var(--transition-fast);
}

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

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: left;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: white;
  font-weight: 700;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: white;
  opacity: 0.9;
}

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

/* ===== Services Section ===== */
.servicios {
  padding: var(--section-padding);
  background-color: var(--neutral-200);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* ===== Portfolio Section ===== */
.portfolio {
  padding: var(--section-padding);
  background-color: var(--neutral-100);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

/* ===== Instructors/Team Section ===== */
.instructors {
  padding: var(--section-padding);
  background-color: var(--neutral-200);
}

.instructors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* ===== Testimonials Section ===== */
.testimonials {
  padding: var(--section-padding);
  background-color: var(--neutral-100);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.testimonials .card {
  text-align: center;
}

.testimonials .card-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
}

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

.quote {
  position: relative;
  padding: 20px;
  font-style: italic;
  color: var(--neutral-800);
}

.quote::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 4rem;
  position: absolute;
  top: -20px;
  left: -10px;
  color: var(--primary-light);
  opacity: 0.3;
}

.author {
  margin-top: 20px;
}

.author h4 {
  margin-bottom: 5px;
  color: var(--neutral-900);
}

.author p {
  color: var(--neutral-700);
  font-size: 0.9rem;
}

/* ===== External Resources Section ===== */
.external-resources {
  padding: var(--section-padding);
  background-color: var(--neutral-200);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* ===== Gallery Section ===== */
.gallery {
  padding: var(--section-padding);
  background-color: var(--neutral-100);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  cursor: pointer;
}

.image-container {
  height: 300px;
  overflow: hidden;
}

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

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

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-medium);
}

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

.gallery-item .overlay h3 {
color: #ffffff;
}

/* ===== Timeline Section ===== */
.timeline-section {
  padding: var(--section-padding);
  background-color: var(--neutral-200);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--primary-light);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(90, 119, 255, 0.3);
}

.timeline-content {
  position: relative;
  width: calc(50% - 40px);
  padding: 30px;
  background: var(--neutral-100);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

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

/* ===== Contact Section ===== */
.contact {
  padding: var(--section-padding);
  background-color: var(--neutral-100);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

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

.map-container {
  height: 300px;
  margin-top: 20px;
  border-radius: var(--card-radius);
  overflow: hidden;
}

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

.contact-form {
  background: var(--neutral-200);
  padding: 40px;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.contact-form h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

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

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

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

/* ===== Footer ===== */
.footer {
  background-color: var(--neutral-900);
  color: var(--neutral-300);
  padding: 70px 0 20px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo h2 {
  color: var(--neutral-100);
  font-size: 2rem;
  margin-bottom: 10px;
}

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

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-links-column h3 {
  color: var(--neutral-100);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-links-column ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-column ul li a {
  color: var(--neutral-400);
  transition: color var(--transition-fast);
}

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

.footer-links-column p {
  color: var(--neutral-400);
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.social-links li a {
  color: var(--neutral-300);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.social-links li a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

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

.footer-bottom p {
  color: var(--neutral-500);
  font-size: 0.9rem;
}

/* ===== Modal Styles ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  overflow-y: auto;
}

.modal-content {
  position: relative;
  background: var(--neutral-100);
  margin: 5% auto;
  max-width: 800px;
  width: 90%;
  border-radius: var(--card-radius);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  padding: 40px;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: var(--neutral-700);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.close-modal:hover {
  color: var(--primary-color);
}

.modal-body {
  margin-top: 20px;
}

.modal-body img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.modal-body h3 {
  color: var(--primary-color);
  margin: 20px 0 10px;
}

.modal-body ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.modal-body ul li {
  margin-bottom: 8px;
  color: var(--neutral-800);
}

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

.success-content {
  max-width: 700px;
  padding: 50px;
  background: var(--neutral-100);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

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

.success-content p {
  margin-bottom: 30px;
  font-size: 1.2rem;
}

/* ===== Terms & Privacy Pages ===== */
.terms-privacy-page {
  padding-top: 100px;
  padding-bottom: 50px;
}

.terms-privacy-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--neutral-100);
  padding: 50px;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.terms-privacy-content h1 {
  color: var(--primary-color);
  margin-bottom: 30px;
}

.terms-privacy-content h2 {
  color: var(--secondary-color);
  margin: 40px 0 20px;
  font-size: 1.8rem;
}

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

.terms-privacy-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.terms-privacy-content ul li {
  margin-bottom: 10px;
}

/* ===== Cookie Consent ===== */
#cookie-consent {
  background: var(--neutral-1000);
  color: white;
  padding: 20px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

#cookie-consent p {
  margin: 0;
  color: var(--neutral-300);
}

#accept-cookies {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

#accept-cookies:hover {
  background: var(--primary-light);
}

/* ===== Read More Links ===== */
.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  transition: all var(--transition-fast);
  position: relative;
  padding-right: 25px;
}

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

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

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

/* ===== Scroll-dependent Animations ===== */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos="fade-up"] {
  transform: translateY(50px);
}

[data-aos="fade-right"] {
  transform: translateX(-50px);
}

[data-aos="fade-left"] {
  transform: translateX(50px);
}

[data-aos="zoom-in"] {
  transform: scale(0.9);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-dot {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
  }
  
  .nav-list.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-list li {
    margin: 15px 0;
  }
  
  .burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  
  .burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .modal-content {
    padding: 20px;
    margin: 10% auto;
  }
}

@media (max-width: 576px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .gallery-grid,
  .portfolio-grid,
  .services-grid,
  .instructors-grid,
  .testimonials-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .timeline-content {
    padding: 20px;
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }
}