* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --accent-color: #1c3c7b;
  --accent-hover: #60a5fa;
  --border-color: #e5e7eb;
}

[data-theme="dark"] {
  --bg-color: #0f172a;
  --text-color: #f1f5f9;
  --accent-color: #e84e1e;
  --accent-hover: #ff916f;
  --border-color: #334155;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-color);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 100;
  border-radius: 0 0 4px 0;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--accent-hover);
  outline-offset: 2px;
}

body {
  font-family:
    "Barlow",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    Roboto,
    Helvetica Neue,
    Arial,
    Noto Sans,
    sans-serif,
    Apple Color Emoji,
    Segoe UI Emoji,
    Segoe UI Symbol,
    Noto Color Emoji;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  position: relative;
}

.container {
  max-width: 800px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.password-trigger {
  position: absolute;
  top: 30px;
  right: 30px;
  background: var(--border-color);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.password-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.password-trigger svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.password-trigger:hover svg {
  transform: rotate(20deg);
}

.logo-container {
  margin-bottom: 40px;
  animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideUp 0.8s ease-out 0.2s both;
}

.custom-message {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.6;
  animation: slideUp 0.8s ease-out 0.3s both;
}

.custom-message h1,
.custom-message h2,
.custom-message h3,
.custom-message h4 {
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.custom-message p {
  margin-bottom: 1em;
}

.custom-message a {
  color: var(--accent-color);
  text-decoration: underline;
}

.custom-message a:hover {
  color: var(--accent-hover);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 40px;
  line-height: 1.6;
  animation: slideUp 0.8s ease-out 0.4s both;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--border-color);
  padding: 12px 24px;
  border-radius: 50px;
  margin-bottom: 40px;
  font-weight: 500;
  animation: slideUp 0.8s ease-out 0.6s both;
}

.gear-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-color);
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.events-section {
  margin-top: 50px;
  animation: slideUp 0.8s ease-out 0.8s both;
}

#events-heading {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 35px 0;
  color: var(--text-color);
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.events-list {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.event-item-wrapper {
  list-style: none;
}

.event-card {
  display: flex;
  background: var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  align-items: center;
  height: 100%;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.event-image-wrapper {
  position: relative;
  display: block;
  width: 35%;
  min-width: 35%;
  height: 100%;
  overflow: hidden;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  aspect-ratio: 1 / 1;
}

.event-card:hover .event-image {
  transform: scale(1.1);
}

.event-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  transition: opacity 0.3s ease;
}

.event-card:hover .event-overlay {
  opacity: 0.7;
}

.event-content {
  padding: 24px;
  background: var(--border-color);
}

.event-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 10px 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.event-card:hover .event-name {
  color: var(--accent-color);
}

.event-description {
  font-size: 0.95rem;
  color: var(--text-color);
  opacity: 0.7;
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.event-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.event-card:hover .event-cta {
  transform: translateX(5px);
  color: var(--accent-hover);
}

.social-section {
  margin-top: 40px;
  animation: slideUp 0.8s ease-out 0.9s both;
}

#social-heading,
.social-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: var(--text-color);
}

.social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.social-link:hover::before {
  opacity: 0.2;
}

.social-link svg {
  width: 24px;
  height: 24px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover svg {
  transform: scale(1.2) rotate(5deg);
}

.social-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Instagram - Gradiente caracterÃ­stico */
.social-link.instagram {
  background: linear-gradient(
    135deg,
    #405de6,
    #5851db,
    #833ab4,
    #c13584,
    #e1306c,
    #fd1d1d,
    #f56040,
    #ffdc80
  );
  background-size: 200% 200%;
  color: white;
  animation: gradientShift 8s ease infinite;
}

.social-link.instagram:hover {
  background-position: right center;
  box-shadow: 0 8px 30px rgba(225, 48, 108, 0.5);
}

/* Facebook - Azul caracterÃ­stico */
.social-link.facebook {
  background: linear-gradient(135deg, #1877f2, #0c63d4);
  color: white;
}

.social-link.facebook:hover {
  background: linear-gradient(135deg, #1877f2, #0a4ead);
  box-shadow: 0 8px 30px rgba(24, 119, 242, 0.4);
}

/* YouTube - Rojo caracterÃ­stico */
.social-link.youtube {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: white;
}

.social-link.youtube:hover {
  background: linear-gradient(135deg, #ff0000, #990000);
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.4);
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: left center;
  }
  50% {
    background-position: right center;
  }
}

.contact-section {
  margin-top: 40px;
  padding: 30px;
  background: var(--border-color);
  border-radius: 16px;
  animation: slideUp 0.8s ease-out 1.1s both;
}

#contact-heading,
.contact-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: var(--text-color);
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-color);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.email-link:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.email-icon {
  width: 20px;
  height: 20px;
}

/* Modal Styles */
.password-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.password-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-color);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  opacity: 0.6;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.modal-close:hover {
  opacity: 1;
  background: var(--border-color);
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

.modal-body {
  padding: 24px;
}

.modal-description {
  margin: 0 0 20px 0;
  color: var(--text-color);
  opacity: 0.8;
  font-size: 0.95rem;
}

/* Dynamically created form styles */
.password-form {
  max-width: 100%;
}

.password-input-group {
  position: relative;
  margin-bottom: 15px;
}

.password-input-group input {
  width: 100%;
  padding: 14px 50px 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--bg-color);
  color: var(--text-color);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.password-input-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.toggle-password:hover {
  opacity: 1;
}

.toggle-password svg {
  width: 20px;
  height: 20px;
}

.password-message {
  margin-bottom: 15px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.password-message.show {
  display: block;
}

.password-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.password-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.password-submit {
  width: 100%;
  padding: 14px 24px;
  background-image: -webkit-gradient(
    linear,
    left top,
    right top,
    from(#270b01),
    to(#000e2f)
  );
  background-image: linear-gradient(90deg, #270b01, #000e2f);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.password-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.password-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .password-trigger {
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .logo {
    max-width: 300px;
  }

  #events-heading {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .events-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .event-card {
    max-width: 100%;
  }

  .event-content {
    padding: 20px;
  }

  .event-name {
    font-size: 1.1rem;
  }

  .event-description {
    font-size: 0.9rem;
  }

  .event-cta {
    font-size: 0.85rem;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .social-link {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 16px 24px;
  }

  .contact-section {
    padding: 20px;
  }

  .email-link {
    font-size: 1rem;
  }
}
