:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #f5f5f5;
  --text-secondary: rgba(245, 245, 245, 0.7);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-color-hover: rgba(255, 255, 255, 0.2);
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.4);
  --shadow-dark: rgba(0, 0, 0, 0.6);
  --overlay-bg: rgba(0, 0, 0, 0.8);
  --accent-overlay: rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] {
  --bg-primary: #f0f0f0;
  --bg-secondary: #ffffff;
  --text-primary: #2c2c2c;
  --text-secondary: rgba(44, 44, 44, 0.7);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(0, 0, 0, 0.12);
  --shadow-light: rgba(0, 0, 0, 0.06);
  --shadow-medium: rgba(0, 0, 0, 0.08);
  --shadow-dark: rgba(0, 0, 0, 0.15);
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --accent-overlay: rgba(0, 0, 0, 0.02);
}

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

html {
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: "Momo Trust Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

h1 {
  font-family: "Momo Trust Display", serif;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  font-family: "Momo Trust Display", serif;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

h3 {
  font-family: "Momo Trust Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h4 {
  font-family: "Momo Trust Display", serif;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

ul {
  list-style: none;
  margin-left: 1.5rem;
}

li {
  margin-bottom: 0.75rem;
  position: relative;
  color: var(--text-secondary);
}

li:before {
  content: "•";
  position: absolute;
  left: -1rem;
  opacity: 0.4;
}

blockquote {
  font-family: "Momo Trust Display", serif;
  font-style: italic;
  color: var(--text-secondary);
  padding: 1.5rem;
  background: var(--accent-overlay);
  border-left: 3px solid var(--text-secondary);
  margin: 2rem 0;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  position: relative;
}

blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 3rem;
  opacity: 0.1;
  font-family: "Momo Trust Display", serif;
}

blockquote:hover {
  border-left-color: var(--card-color, #66bb6a);
  transform: translateX(4px);
}

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

.hidden {
  display: none;
}

.bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.bg-decoration::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(136, 209, 138, 0.05) 0%, transparent 70%);
  animation: float-slow 25s ease-in-out infinite;
}

.bg-decoration::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(66, 165, 245, 0.03) 0%, transparent 70%);
  animation: float-slow 30s ease-in-out infinite reverse;
}

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

.header {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  text-align: center;
  background: #66bb6a;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.header-content {
  position: relative;
}

.header img {
  max-width: 100%;
  height: auto;
  max-height: clamp(80px, 12vw, 140px);
  opacity: 0;
  animation: fade-in 0.6s ease-out 0.2s forwards;
}

.theme-toggle {
  position: fixed;
  bottom: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  font-size: 1.25rem;
  z-index: 500;
}

.theme-toggle:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 4px 12px var(--shadow-light);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-icon {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.theme-toggle:hover .theme-icon {
  transform: rotate(20deg);
}

.main-content {
  padding: 4rem 0;
  min-height: 60vh;
}

.question {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.question::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--card-color, #66bb6a);
  border-radius: 50%;
  opacity: 0.2;
  top: -20px;
  left: 5%;
  animation: float-dot 4s ease-in-out infinite;
}

@keyframes float-dot {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-15px) translateX(5px);
    opacity: 0.1;
  }
}

.question h1 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: slide-up 0.6s ease-out 0.3s forwards;
}

.question h1::after {
  content: "";
  display: block;
  width: 200px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 2px;
  opacity: 0;
  animation: slide-up 0.6s ease-out 0.5s forwards, gradient-shift 2.5s cubic-bezier(0.4, 0, 0.6, 1) 0.8s infinite;
  background: linear-gradient(90deg, #66bb6a 0%, #3b9dff 50%, #42a5f5 100%);
  background-size: 200% 100%;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.workshop-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.workshop-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card-color);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: -1;
}

.workshop-card:hover::before {
  opacity: 0.08;
}

.workshop-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--card-color), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.workshop-card:hover::after {
  transform: scaleX(1);
}

.workshop-card.comunicacion {
  --card-color: #3b9dff;
}

.workshop-card.educacion {
  --card-color: #66bb6a;
}

.workshop-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-color);
  box-shadow: 0 12px 35px var(--shadow-medium), 0 0 0 1px var(--card-color);
}

.workshop-card h3 {
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  z-index: 1;
}

.workshop-card h3::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--card-color);
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.workshop-card:hover h3::after {
  width: 100%;
}

.workshop-card .subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.workshop-card .date,
.workshop-card .time {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

.workshop-card .price {
  font-weight: 600;
  color: var(--card-color);
  margin-top: 1rem;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.details-screen {
  animation: fade-in 0.4s ease-out;
}

.workshop-details {
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

.workshop-details.hidden {
  display: none;
}

.workshop-details h2 {
  color: var(--text-primary);
  margin-bottom: 0;
}

.workshop-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.detail-card {
  background: none;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: left;
  position: relative;
}

.detail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-overlay), transparent);
  opacity: 0;
  transition: opacity 0.3s ease-out;
  border-radius: 10px;
}

.detail-card:hover::before {
  opacity: 1;
}

.detail-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-light);
}

.card-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.75rem;
}

.detail-card h4 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.detail-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.cta-section {
  text-align: center;
  margin: 3rem 0 2rem;
}

.register-btn {
  display: inline-block;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 1.25rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.register-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: left 0.4s ease-out;
}

.register-btn:hover::before {
  left: 100%;
}

#educacion-details .register-btn:hover {
  background: #66bb6a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 187, 106, 0.4);
}

#comunicacion-details .register-btn:hover {
  background: #3b9dff;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 157, 255, 0.4);
}

.register-btn:active {
  transform: translateY(-1px);
}

.back-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease-out;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.back-btn:hover {
  background: var(--accent-overlay);
  border-color: var(--border-color-hover);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
  z-index: 999;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  max-height: 90vh;
  border: none;
}

.modal[open] {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.modal-content {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.2s ease-out;
  padding: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.modal-close:hover {
  opacity: 0.8;
  transform: rotate(90deg);
}

.modal h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.facilitator-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--accent-overlay);
  border-radius: 10px;
}

.facilitator-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.facilitator-photo:hover {
  transform: scale(1.05);
}

.facilitator-text p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  background: #1a1a1a;
  transition: background 0.3s ease;
}

html[data-theme="light"] .footer {
  background: #2c2c2c;
}

.footer-link {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.footer-link:hover {
  transform: scale(1.05);
}

.footer img {
  height: 70px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease-out;
}

.footer-link:hover img {
  opacity: 1;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .header {
    padding: 2rem 0;
  }

  .header img {
    max-height: 150px;
  }

  .theme-toggle {
    top: auto;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .main-content {
    padding: 2rem 0;
  }

  .question {
    margin-bottom: 2.5rem;
  }

  .workshop-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .facilitator-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .facilitator-photo {
    margin: 0 auto;
  }

  .modal-content {
    padding: 1.5rem;
  }

  .footer {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .workshop-card {
    padding: 1.5rem;
  }

  .detail-grid {
    gap: 1rem;
  }

  .detail-card {
    padding: 1rem;
  }

  .register-btn {
    padding: 1rem 2rem;
    font-size: 0.95rem;
  }

  .cta-section {
    margin: 2rem 0 1rem;
  }

  .modal-content {
    padding: 1rem;
    width: 95vw;
  }

  .facilitator-card {
    gap: 1rem;
  }

  .facilitator-photo {
    width: 100px;
    height: 100px;
  }
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--accent-overlay);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color-hover);
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}
