/* VARIABLES AND BASE STYLES */
:root {
  /* Primary & Secondary Colors - Complementary Color Scheme */
  --primary-color: #e6394a;
  --primary-light: #ff5f70;
  --primary-dark: #c4152a;
  --secondary-color: #38bdf8;
  --secondary-light: #7cd7ff;
  --secondary-dark: #0891d5;
  --accent-color: #4ade80;
  --accent-light: #7df0a0;
  --accent-dark: #22c55e;

  /* Text Colors */
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #6b7280;

  /* Background Colors */
  --bg-light: #f8fafc;
  --bg-dark: #1f2937;
  --bg-muted: #f1f5f9;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-bg-dark: rgba(31, 41, 55, 0.6);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* GLOBAL STYLES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(230, 57, 74, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.15) 0%, transparent 40%);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* UTILITY CLASSES */
.text-center {
  text-align: center;
}

.text-white {
  color: var(--text-light);
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-accent {
  color: var(--accent-color);
}

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

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

.bg-accent {
  background-color: var(--accent-color);
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-16 {
  margin-top: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.pt-32 {
  padding-top: 8rem;
}

.pb-20 {
  padding-bottom: 5rem;
}

/* GLASSMORPHISM COMPONENTS */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glass-card-dark {
  background: var(--glass-bg-dark);
  color: var(--text-light);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px 0 rgba(31, 38, 135, 0.45);
}

/* BUTTONS & INPUTS */
.btn,
button,
input[type="submit"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-family: 'Raleway', sans-serif;
}

.btn::before,
button::before,
input[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  z-index: -1;
}

.btn:hover::before,
button:hover::before,
input[type="submit"]:hover::before {
  width: 100%;
}

.btn:focus,
button:focus,
input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 57, 74, 0.3);
}

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

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

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

.btn-secondary:hover {
  background: var(--secondary-dark);
  color: white;
}

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

.btn-accent:hover {
  background: var(--accent-dark);
  color: white;
}

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

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

/* FORM ELEMENTS */
input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid #ddd;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(230, 57, 74, 0.3);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.5rem;
}

/* CURVED GRID LAYOUT */
.curved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.curved-grid > div {
  transform: rotateY(var(--rotation, 0deg)) translateZ(var(--translation, 0));
  transition: transform var(--transition-slow);
}

.curved-grid > div:hover {
  --rotation: 0deg;
  --translation: 0;
}

/* HEADER / NAVBAR */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: color var(--transition-normal);
}

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

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

.nav-link:hover::after {
  width: 80%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
}

.hamburger span {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin-bottom: 4px;
  background-color: var(--text-dark);
  transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

/* HERO SECTION */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  z-index: 1;
}

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

#hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

#hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2rem;
  color: var(--text-light);
}

/* FEATURES SECTION */
#caracteristicas .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

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

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

.stat-widget {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* OUR PROCESS SECTION */
#proceso .glass-card {
  padding: 1.5rem;
  text-align: center;
}

#proceso .rounded-full {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background-color: var(--primary-light);
  color: var(--text-light);
}

/* PARTNERS SECTION */
#socios .glass-card {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#socios img {
  max-height: 80px;
  max-width: 80%;
  filter: grayscale(100%);
  transition: filter var(--transition-normal), transform var(--transition-normal);
}

#socios .glass-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* WORKSHOPS SECTION */
#talleres .glass-card {
  overflow: hidden;
}

#talleres .mb-4 {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

#talleres img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

#talleres .glass-card:hover img {
  transform: scale(1.05);
}

#talleres .absolute {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--text-light);
}

/* INSTRUCTORS SECTION */
#instructores .glass-card {
  text-align: center;
  padding: 2rem;
}

#instructores .rounded-full {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--primary-color);
}

#instructores img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#instructores .social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

#instructores .social-links a {
  color: var(--text-muted);
  transition: color var(--transition-normal);
}

#instructores .social-links a:hover {
  color: var(--primary-color);
}

/* PRICING SECTION */
#precios .glass-card {
  padding: 2rem;
  text-align: center;
  position: relative;
}

#precios .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

#precios .period {
  font-size: 1rem;
  color: var(--text-muted);
}

#precios ul {
  list-style: none;
  margin-bottom: 2rem;
}

#precios li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

#precios li svg {
  margin-right: 0.5rem;
  flex-shrink: 0;
}

#precios .popular-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 var(--radius-md) 0 var(--radius-md);
  font-weight: 700;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin: 0 1rem;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* BLOG SECTION */
#blog .glass-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#blog .relative {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

#blog .glass-card:hover img {
  transform: scale(1.05);
}

#blog .absolute {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

#blog .tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#blog h3 {
  color: white;
  margin-bottom: 0;
}

#blog .card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#blog .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

#blog .date {
  color: var(--text-muted);
  font-size: 0.875rem;
}

#blog .read-more {
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
  transition: color var(--transition-normal);
}

#blog .read-more::after {
  content: '→';
  margin-left: 0.25rem;
  transition: transform var(--transition-normal);
  display: inline-block;
}

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

#blog .read-more:hover::after {
  transform: translateX(3px);
}

/* FAQ SECTION */
#faq .glass-card {
  overflow: hidden;
}

#faq button {
  width: 100%;
  text-align: left;
  padding: 1.25rem;
  font-weight: 700;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#faq svg {
  transition: transform var(--transition-normal);
}

#faq button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

#faq .faq-content {
  padding: 0 1.25rem 1.25rem;
}

/* CONTACT SECTION */
#contacto .glass-card {
  padding: 2rem;
}

#contacto form {
  width: 100%;
}

#contacto .contact-info {
  margin-bottom: 1.5rem;
}

#contacto .contact-info h4 {
  margin-bottom: 0.5rem;
  font-weight: 700;
}

#contacto .map {
  height: 300px;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

/* FOOTER */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 5rem 0 2rem;
}

footer h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.75rem;
}

footer a {
  color: var(--text-light);
  transition: color var(--transition-normal);
}

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

footer .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

footer .social-links a {
  color: var(--text-light);
  transition: color var(--transition-normal);
}

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

footer .bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

footer .bottom p {
  margin: 0;
}

footer .legal-links {
  display: flex;
  gap: 1.5rem;
}

/* COOKIE CONSENT */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(31, 41, 55, 0.95);
  color: white;
  padding: 1rem;
  z-index: 9999;
  display: none;
}

#cookie-consent p {
  margin: 0 0 1rem 0;
}

#cookie-consent button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-normal);
}

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

/* SUCCESS PAGE */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-container {
  max-width: 600px;
  padding: 3rem;
}

.success-icon {
  font-size: 5rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
}

/* PRIVACY & TERMS PAGES */
.page-content {
  padding-top: 120px;
  padding-bottom: 5rem;
}

.page-content h1 {
  margin-bottom: 2rem;
}

.page-content section {
  margin-bottom: 3rem;
}

.page-content h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

/* ANIMATIONS */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* RESPONSIVE STYLES */
@media (max-width: 1200px) {
  h1 {
    font-size: 3rem;
  }
  
  #hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .curved-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  #hero h1 {
    font-size: 2.5rem;
  }
  
  #hero p {
    font-size: 1.125rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .hamburger {
    display: block;
  }
  
  .mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    flex-direction: column;
  }
  
  .mobile-menu.active {
    display: flex;
  }
  
  .mobile-menu a {
    padding: 0.75rem 0;
  }
  
  .hidden-mobile {
    display: none;
  }
  
  #hero h1 {
    font-size: 2rem;
  }
  
  #hero p {
    font-size: 1rem;
  }
  
  footer .bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  footer .legal-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .curved-grid {
    grid-template-columns: 1fr;
  }
  
  .py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  #hero h1 {
    font-size: 1.75rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}
#menu-toggle{
  display: none;
}